﻿/* ---------------------------------------------------------
   GLOBAL RESET + LAYOUT
--------------------------------------------------------- */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	font-family: "Inter", "SF Pro Display", Arial, sans-serif;
	background: #0f0f11;
	color: #e5e7eb;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.page-content {
	flex: 1;
	padding: 40px 20px;
	animation: fadeIn 0.4s ease;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* ---------------------------------------------------------
   DESIGN TOKENS
--------------------------------------------------------- */

:root {
	--bg: #0f0f11;
	--bg-card: #1a1b1e;
	--bg-card-hover: #222327;
	--bg-nav: #111215;

	--text: #e5e7eb;
	--text-light: #9ca3af;

	--primary: #4f8cff;
	--primary-hover: #3b6fe0;

	--radius: 14px;
	--radius-sm: 8px;

	--shadow: 0 8px 20px rgba(0,0,0,0.35);
	--shadow-soft: 0 4px 12px rgba(0,0,0,0.25);

	--transition: 0.25s ease;
}

/* ---------------------------------------------------------
   NAVBAR
--------------------------------------------------------- */

.navbar {
	background: var(--bg-nav);
	padding: 18px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--shadow-soft);
	position: sticky;
	top: 0;
	z-index: 50;
}

.nav-left {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: -0.5px;
}

.nav-links {
	display: flex;
	gap: 26px;
}

.nav-links a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 15px;
	transition: var(--transition);
}

.nav-links a:hover {
	color: var(--primary);
}

.nav-toggle {
	display: none;
	font-size: 26px;
	cursor: pointer;
}

@media (max-width: 750px) {
	.nav-links {
		display: none;
		flex-direction: column;
		background: var(--bg-card);
		padding: 20px;
		position: absolute;
		right: 20px;
		top: 70px;
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}

	.nav-links.show {
		display: flex;
	}

	.nav-toggle {
		display: block;
	}
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.footer {
	background: var(--bg-nav);
	padding: 20px;
	text-align: center;
	color: var(--text-light);
	font-size: 14px;
	margin-top: auto;
}

/* ---------------------------------------------------------
   HEADINGS
--------------------------------------------------------- */

h1 {
	text-align: center;
	font-size: 34px;
	font-weight: 700;
	margin-bottom: 30px;
	color: var(--text);
}

/* ---------------------------------------------------------
   PRODUCT GRID
--------------------------------------------------------- */

#product-list,
#cart-list {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 26px;
}

.product,
.cart-item {
	background: var(--bg-card);
	padding: 22px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	transition: var(--transition);
	cursor: pointer;
}

.product:hover,
.cart-item:hover {
	background: var(--bg-card-hover);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.product img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	margin-bottom: 14px;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

button {
	background: var(--primary);
	color: white;
	border: none;
	padding: 12px 18px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	width: 100%;
}

button:hover {
	background: var(--primary-hover);
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

input,
textarea,
select {
	width: 100%;
	padding: 14px;
	background: #141416;
	border: 1px solid #2a2b2f;
	border-radius: var(--radius-sm);
	color: var(--text);
	margin-bottom: 16px;
	font-size: 15px;
	transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--primary);
	outline: none;
}

/* ---------------------------------------------------------
   CHECKOUT BOX
--------------------------------------------------------- */

.checkout-box {
	max-width: 500px;
	margin: 0 auto;
	background: var(--bg-card);
	padding: 30px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   ORDER CARDS
--------------------------------------------------------- */

.order-card {
	background: var(--bg-card);
	padding: 22px;
	border-radius: var(--radius);
	margin-bottom: 20px;
	box-shadow: var(--shadow-soft);
}

.order-item {
	color: var(--text-light);
	margin-bottom: 6px;
}

/* ---------------------------------------------------------
   TOAST
--------------------------------------------------------- */

#toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--primary);
	color: white;
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   IMAGE MODAL
--------------------------------------------------------- */

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.75);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.modal-overlay.show {
	display: flex;
}

.modal-content img {
	max-width: 90vw;
	max-height: 80vh;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   ANIMATIONS
--------------------------------------------------------- */

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}