/* -------------------------------------------------------------------------- */
/*   1. VARIABLES, RESET & BASE STYLES */
/* -------------------------------------------------------------------------- */

:root {
	--color-brand: #222222;
	--color-brand-dark: #000000;
	--red-extra: #FC0202;
	--color-brand-shadow: rgba(252,2,2,0.2);
	
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--red-100: #fee2e2;
	--red-500: #ef4444;
	--yellow-400: #fbbf24;
	
	--bg-body: var(--gray-50);
	--text-main: var(--gray-900);
	--text-light: var(--gray-600);
	--bg-white: #ffffff;
}
* {
	-webkit-tap-highlight-color:transparent;
	-webkit-user-select:none;
	user-select:none;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: 'Normal';
	font-weight: 400;
	background-color: black;
	color: var(--text-main);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-moz-user-select: none;
}
html {
	overflow-x: hidden; 
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-block;
	vertical-align: middle;
	fill: currentColor;
}
.small {
	width: 16px;
	height: 16px;
}
.icon-sm {
	width: 1rem;
	height: 1rem;
}
.icon-lg {
	width: 1.75rem;
	height: 1.75rem;
}
.icon-stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.icon-fill {
	fill: currentColor;
	stroke: none;
}
.invert {
	color: #fff;
}


/* -------------------------------------------------------------------------- */
/*   2. TYPOGRAPHY & FONTS */
/* -------------------------------------------------------------------------- */

@font-face {
	font-family: 'Bold';
	src: url('font/bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Normal';
	src: url('font/normal.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Normal';
	src: url('font/normal-thin.otf') format('opentype');
	font-weight: 200;
	font-display: swap;
}

.brand-title { 
	font-family: 'Bold';
	font-weight: 700;
}
.text-brand { 
	color: var(--red-extra); 
}


/* -------------------------------------------------------------------------- */
/*   3. UTILITIES & LAYOUT HELPERS */
/* -------------------------------------------------------------------------- */

/* Visibility & State */
.hidden { display: none !important; }
.block { display: block; }
.scale-0 { transform: scale(0); }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.grayscale { filter: grayscale(100%); }
.pointer-events-none { pointer-events: none; }
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.width-icon {
	width: 1.25rem;
	text-align: center;
}

/* Layout Helpers */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
}
.grid-2 { 
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	gap: 0.75rem; 
}

/* Main Wrapper */
#content-wrapper {
	position: relative;
	z-index: 10;
	background-color: var(--gray-50);
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
	min-height: 100vh;
	padding-top: 70px;
	will-change: auto;
}

/* Check Box */
.checkbox-container {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: -0.5rem;
	cursor: pointer;
	user-select: none;
}
.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.checkmark {
	height: 18px;
	width: 18px;
	background-color: #fff;
	border: 2px solid #000;
	display: inline-block;
	position: relative;
	transition: all 0.2s ease;
}
.checkbox-container:hover input ~ .checkmark {
	background-color: #fff;
}
.checkbox-container input:checked ~ .checkmark {
	background-color: #000;
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}
.checkbox-label {
	font-size: 0.85rem;
	color: #000;
	font-weight: 500;
}


/* -------------------------------------------------------------------------- */
/*   4. BUTTONS & FORMS */
/* -------------------------------------------------------------------------- */

/* Primary Button */
.btn-primary {
	width: 100%;
	background-color: var(--color-brand);
	color: white;
	font-weight: 700;
	padding: 0.75rem;
	border-radius: 0rem;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 0.5rem;
}
.btn-primary:hover { 
	background-color: var(--color-brand-dark); 
	transform: translateY(-1px); 
}
.btn-primary:active { 
	transform: scale(0.95); 
}
.btn-primary:disabled { 
	background-color: var(--gray-400); 
	cursor: not-allowed; 
	box-shadow: none; 
	transform: none; 
}

/* Secondary Buttons */
.text-btn { 
	color: var(--color-brand); 
	font-weight: 500; 
	background: none; 
	border: none; 
	cursor: pointer; 
}
.text-btn-gray { 
	color: var(--gray-600); 
	font-weight: 500; 
	background: none; 
	border: none; 
	cursor: pointer; 
}
.btn-small-dark { 
	padding: 0.5rem 1rem; 
	font-size: 0.875rem; 
	color: white; 
	background: var(--gray-800); 
	border-radius: 0.5rem; 
	border: none; 
	cursor: pointer; 
}

/* Form Elements */
.form-group { 
	margin-bottom: 1rem; 
}
.form-label { 
	display: block; 
	font-size: 0.875rem; 
	font-weight: 500; 
	color: var(--gray-700); 
	margin-bottom: 0.25rem; 
}
.form-input {
	width: 100%; 
	padding: 0.75rem 1rem;
	border-radius: 0.75rem; 
	background-color: var(--gray-50);
	border: 1px solid var(--gray-200); 
	outline: none; 
	transition: all 0.2s;
}
.form-input:focus { 
	border-color: var(--color-brand); 
	box-shadow: 0 0 0 1px var(--color-brand); 
	transform: scale(1.01); 
}

/* Error Messages */
.error-msg { 
	color: var(--red-500); 
	font-size: 0.875rem; 
	padding: 0.5rem; 
	background: var(--red-100); 
	border-radius: 0.5rem; 
}
.error-text { 
	color: var(--red-500); 
	font-size: 0.875rem; 
	margin-top: 0.5rem; 
}


/* -------------------------------------------------------------------------- */
/*   5. NAVIGATION & HEADER */
/* -------------------------------------------------------------------------- */

/* Navbar */
.navbar {
	background-color: rgba(255, 255, 255, 0.9);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 40;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	will-change: transform;
	transform: translateZ(0);
}
.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	height: 70px;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.nav-btn {
	position: relative;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}
.nav-btn:hover { 
	background-color: var(--gray-100);
}
.nav-btn svg { 
	width: 24px; 
	height: 24px; 
	color: var(--gray-700); 
	transition: color 0.2s; 
}
.nav-btn svg, .nav-btn i { 
	font-size: 1.1rem;
	color: var(--gray-700); 
	transition: color 0.2s; 
}
.nav-btn:hover svg { 
	color: var(--color-brand); 
}
.nav-btn:hover svg, .nav-btn:hover i { 
	color: var(--color-brand); 
}

.cart-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	background-color: var(--color-brand);
	color: white;
	font-size: 10px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 9999px;
	transition: transform 0.2s;
}

/* Logo */
.logo-text {
	font-size: 1.25rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	margin-right: auto;
}
@media (min-width: 768px) { 
	.logo-text { font-size: 1.5rem; } 
}

/* User Menu */
#auth-buttons button {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-700);
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s;
}
#auth-buttons button:hover { 
	color: var(--color-brand); 
}
#auth-buttons button:active { 
	transform: scale(0.95); 
}

.user-dropdown {
	right: 0;
	top: 120%;
	position: absolute;
	right: 0;
	top: 120%;
	width: 12rem;
	background: var(--bg-white);
	border-radius: 0.75rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	border: 1px solid var(--gray-100);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.2s ease-out;
	z-index: 100;
}
.user-dropdown button {
	width: 100%;
	text-align: left;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: var(--gray-700);
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	transition: background-color 0.1s;
}
.user-dropdown button:hover { 
	background-color: var(--gray-50); 
	color: var(--color-brand); 
}
#user-menu.menu-open .user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Search Bar */
.search-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.98);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}
.search-overlay.active {
	opacity: 1;
	visibility: visible;
}
.close-search-btn {
	position: absolute;
	top: 2rem;
	right: 2rem;
	font-size: 2rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--gray-400);
	transition: color 0.2s;
}
.close-search-btn:hover {
	color: var(--color-brand);
}
.search-content {
	width: 100%;
	max-width: 600px;
	padding: 2rem;
	transform: translateY(20px);
	transition: transform 0.3s ease-out;
}
.search-overlay.active .search-content {
	transform: translateY(0);
}
.search-input-wrapper {
	position: relative;
	border-bottom: 2px solid var(--gray-200);
	display: flex;
	align-items: center;
}
.big-search-input {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	padding: 1rem 3rem 1rem 0;
	outline: none;
	color: var(--gray-900);
	font-weight: 500;
}
.big-search-input::placeholder {
	color: var(--gray-300);
}
.search-submit-btn {
	position: absolute;
	right: 0;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--gray-400);
	cursor: pointer;
}
.big-search-input:focus + .search-submit-btn {
	color: var(--color-brand);
}


/* -------------------------------------------------------------------------- */
/*   6. PRODUCT LISTING (GRID & CARDS) */
/* -------------------------------------------------------------------------- */

.products-section {
	padding-bottom: 3rem;
	min-height: 90vh;
	background-color: var(--gray-50);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0rem 0; 
	width: 100%;
	padding: 0;
	overflow: hidden;
}
@media (min-width: 1024px) { 
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	} 
}
@media (min-width: 1280px) { 
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	} 
}

.product-card {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	width: 100%;
	overflow: hidden;
	border: none;
	margin: 0;
	position: relative;
	content-visibility: auto; 
	contain-intrinsic-size: 1px 450px;
}
.product-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
	border: 1px solid transparent;
	transition: border-color 0.2s ease-in-out;
}
.product-card:hover::after {
	border-color: var(--color-brand);
}

.product-image-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	background-color: var(--gray-100);
	aspect-ratio: 2 / 3; 
	contain: paint;
}
.product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.product-overlay {
	display: none;
}

.product-details {
	padding: 0.75rem 1rem; 
	display: flex;
	flex-direction: column;
	gap: 0.1rem; 
	background-color: var(--bg-white);
	flex-grow: 1;
}
.product-name {
	font-size: 0.97rem;
	font-family: 'Normal';
	font-weight: 200;
	color: var(--gray-900);
	line-height: 1.2;
	text-transform: capitalize;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	display: block;
}
.product-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0;
}
.product-price {
	font-size: 0.9rem;
	font-family: 'Normal';
	font-weight: 700;
	color: var(--gray-900);
}

.oos-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	z-index: 5;
}
.product-img.grayscale { 
	filter: grayscale(100%); 
}

.wishlist-btn {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border-radius: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: none;
	z-index: 10;
	opacity: 1;
	transform: none;
}
.wishlist-btn i { 
	font-size: 1rem;
	color: var(--gray-100);
	transition: color 0.2s; 
}
.wishlist-btn.active i { 
	color: var(--red-500); 
	font-weight: 900; 
}


/* -------------------------------------------------------------------------- */
/*   7. FOOTER */
/* -------------------------------------------------------------------------- */

#main-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: black;
	color: var(--gray-300);
	z-index: 1;
}
#footer-content {
	padding: 3rem 1.5rem;
	text-align: center;
	opacity: 1;
	transform: scale(0.9);
	transition: all 0.1s ease-out;
}
.footer-brand {
	font-size: 2.25rem;
	color: var(--red-extra);
	display: inline-block;
	text-decoration: none;
	letter-spacing: 0.05em;
	transition: color 0.3s;
}
@media (min-width: 768px) { 
	.footer-brand { font-size: 3.75rem; } 
}
.footer-rights {
	color: var(--gray-600); 
	font-size: 0.75rem; 
	margin-top: 0;
	margin-bottom: 0.5rem;
}
.footer-links-group {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin: 0.5rem 0;
	font-size: 0.9rem;
	row-gap: 0.5rem;
}
.footer-top-links {
	margin-bottom: 1rem;
}
.footer-link {
	color: var(--gray-300);
	text-decoration: none;
	padding: 0 0.6rem;
	transition: color 0.2s;
	font-weight: 400;
}
.footer-separator {
	color: var(--gray-600);
	font-size: 0.9rem;
}
.footer-social-icon {
	color: #ffffff;
	font-size: 1.25rem;
	padding: 0 0.5rem;
}
.footer-hr {
	border: none;
	height: 1px;
	background-color: var(--gray-800);
	width: 50%;
	max-width: 300px;
	margin: 0.5rem auto 1rem auto;
}


/* -------------------------------------------------------------------------- */
/*   8. MODALS & OVERLAYS */
/* -------------------------------------------------------------------------- */

/* Generic Modal Overlay */
.modal-overlay { 
	position: fixed; 
	inset: 0; 
	z-index: 50; 
	display: none;
}
.modal-overlay.active { 
	display: block; 
}
.modal-backdrop {
	position: absolute; 
	inset: 0; 
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(4px); 
	opacity: 0; 
	transition: opacity 0.3s;
}
.modal-overlay.active .modal-backdrop { 
	opacity: 1; 
}
.modal-container {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

/* Modal Box (Auth/Generic) */
.modal-box {
	background: var(--bg-white);
	width: 100%;
	max-width: 28rem;
	border-radius: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	opacity: 0;
	transform: scale(0.95) translateY(15px);
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box { 
	opacity: 1; 
	transform: scale(1) translateY(0); 
}
.close-modal-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--gray-400);
	cursor: pointer;
	transition: all 0.3s;
	z-index: 10;
}
.close-modal-btn:hover {
	color: var(--gray-600);
	transform: rotate(90deg);
}

/* Auth Modal Specifics */
.auth-tabs {
	display: flex;
	position: relative;
	width: 100%;
	border-bottom: 2px solid var(--gray-200);
	margin-bottom: 1.5rem;
}
.auth-tabs::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 50%;
	height: 2px;
	background: black;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-tabs:has(#tab-register.active)::after {
	transform: translateX(100%);
}
.auth-tab-btn {
	flex: 1;
	font-size: 1rem;
	font-weight: 700;
	background: none;
	border: none;
	padding: 1rem 0;
	cursor: pointer;
	color: var(--gray-700);
	transition: color 0.3s ease;
	text-align: center;
}
.auth-tab-btn.active {
	color: var(--color-brand);
}

/* Form Transition Animation */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	animation: authFadeIn 0.4s ease forwards;
}
.auth-form.hidden {
	display: none;
}
@keyframes authFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Page styles */
.auth-page-wrapper {
	min-height: calc(100vh - 70px - 200px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 3rem 1rem;
	background-color: var(--gray-50);
}
.auth-footer-text {
	text-align: center;
	font-size: 0.9em;
	margin-top: 15px; 
}
.auth-card {
	width: 100%;
	max-width: 420px;
	padding: 1rem;
}
.auth-header {
	text-align: center;
	margin-bottom: 2rem;
}
.auth-page-wrapper .auth-tab-btn {
	padding-bottom: 0.75rem;
	font-size: 1rem;
}
.text-link {
	color: var(--gray-700);
	text-decoration: underline;
	font-weight: 500;
}
.text-link:hover {
	color: var(--color-brand);
}


/* -------------------------------------------------------------------------- */
/*   9. CART SIDEBAR */
/* -------------------------------------------------------------------------- */

.cart-backdrop {
	position: fixed; 
	inset: 0; 
	z-index: 190; 
	opacity: 0; 
	visibility: hidden;
	transition: all 0.3s ease; 
	backdrop-filter: blur(4px);
	background: rgba(0,0,0,0.2);
}
.cart-backdrop.active { 
	opacity: 1; 
	visibility: visible; 
}

.cart-sidebar {
	position: fixed; 
	top: 0; 
	right: 0; 
	width: 100%; 
	max-width: 400px; 
	height: 100%;
	background-color: var(--bg-white); 
	z-index: 200;
	transform: translateX(100%); 
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: -10px 0 30px rgba(0,0,0,0.1);
	display: flex; 
	flex-direction: column;
}
.cart-sidebar.active { 
	transform: translateX(0); 
}

.cart-header {
	padding: 1.25rem;
	align-items: center;
}
.cart-items-container {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.cart-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--gray-100);
	background-color: var(--gray-50);
}

/* Cart Item */
.cart-item {
	display: flex;
	gap: 1rem;
}
.cart-img-box {
	width: 5rem;
	height: 6rem;
	background-color: var(--gray-100);
	border-radius: 0.5rem;
	overflow: hidden;
	flex-shrink: 0;
}
.cart-img-box img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
}
.cart-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.cart-qty-box {
	display: flex;
	align-items: center;
	border: 1px solid var(--gray-200);
	border-radius: 0.5rem;
	width: fit-content;
}
.cart-qty-btn {
	padding: 0.25rem 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
}
.cart-qty-btn:hover { 
	background-color: var(--gray-50); 
}


/* -------------------------------------------------------------------------- */
/*   10. PRODUCT DETAIL OVERLAY */
/* -------------------------------------------------------------------------- */

.product-detail-overlay {
	position: fixed; 
	inset: 0; 
	z-index: 1000; 
	background: var(--bg-white);
	transform: translateY(100%); 
	transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
	visibility: hidden; 
	overflow-y: auto;
}
.product-detail-overlay.active { 
	transform: translateY(0); 
	visibility: visible; 
}

.close-detail-btn {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0;
	width: 40px;
	height: 40px;
	background: rgba(250,250,250,0.7);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	cursor: pointer;
	box-shadow: none;
	transition: all 0.3s;
	text-decoration: none;
	color: #000000;
}
.close-detail-btn:hover {
	color: var(--gray-600);
	transform: rotate(90deg);
}

/* --- Layout Logic --- */

.detail-layout {
	display: flex; 
	flex-direction: column; 
	min-height: 100vh;
	align-items: flex-start;
	width: 100%;
}

/* Gallery Section */
.detail-gallery {
	position: relative;
	background-color: var(--gray-100); 
	overflow: hidden;
	flex-shrink: 0;
}

/* Image Container Logic */
.gallery-scroll {
	width: 100%; 
	height: 100%; 
	display: flex; 
	overflow-x: auto;
	scroll-snap-type: x mandatory; 
	scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { 
	display: none; 
}
.gallery-scroll img {
	flex-shrink: 0; 
	width: 100%; 
	height: 100%; 
	object-fit: contain;
	scroll-snap-align: center;
	display: block;
}

/* Info Section */
.detail-info {
	width: 100%; 
	padding: 1.5rem; 
	background: var(--bg-white);
	display: flex; 
	flex-direction: column; 
	justify-content: flex-start;
	opacity: 0; 
	animation: fadeIn 0.6s ease-out 0.3s forwards;
	box-sizing: border-box;
}

/* --- Responsive Behavior --- */

@media (max-width: 767px) {
	.detail-layout {
		height: auto;
		overflow: visible;
	}
	.detail-gallery {
		width: 100%;
		aspect-ratio: 2 / 3;
	}
	.detail-info {
		height: auto;
		overflow: visible;
		transform: translateY(20px);
	}
}
@media (min-width: 768px) {
	.detail-layout {
		flex-direction: row; 
		align-items: stretch;
		height: calc(100vh - 70px);
		overflow: hidden;
	}
	.detail-gallery {
		height: 100%;
		aspect-ratio: 2 / 3; 
		width: auto; 
		flex: 0 0 auto;
	}
	.detail-info {
		flex: 1;
		height: 100%;
		overflow-y: auto;
		padding: 4rem;
		animation: none;
		opacity: 1;
		scrollbar-width: thin;
		scrollbar-color: var(--gray-300) transparent;
	}
	.product-page-container .detail-layout {
		min-height: calc(100vh - 70px);
	}
}

.detail-content-wrapper { 
	max-width: 32rem; 
	margin: 0 auto; 
	width: 100%; 
}

/* Gallery Controls */
.gallery-dots-container { 
	position: absolute; 
	bottom: 1rem; 
	left: 0; 
	right: 0; 
	display: flex; 
	justify-content: center; 
	gap: 0.5rem; 
	z-index: 20; 
}
.gallery-dot { 
	width: 8px; 
	height: 8px; 
	border-radius: 50%;
	background: transparent; 
	border: 1px solid rgba(0,0,0,0.8);
	transition: all 0.3s; 
}
.gallery-dot.active { 
	background: var(--gray-900);
	border: none;
	transform: scale(1.4);
}
.gallery-nav { 
	position: absolute; 
	top: 50%; 
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer; 
	z-index: 30; 
	transition: all 0.2s;
	border: none;
	background: transparent;
	color: var(--gray-900);
}
.gallery-nav:hover {
	transform: translateY(-50%) scale(1.1);
}
.gallery-nav.prev { 
	left: 1rem; 
}
.gallery-nav.next { 
	right: 1rem; 
}
@media (hover: hover) {
	.group:not(:hover) .gallery-nav { 
		opacity: 0; 
	}
}

.detail-title { 
	font-size: 1.4rem; 
	font-weight: 200; 
	color: var(--gray-900); 
	margin-bottom: 0rem; 
	line-height: 1.2; 
}
.detail-price { 
	font-size: 1.2rem; 
	color: var(--color-brand); 
	font-weight: 700; 
	margin-bottom: 1.75rem; 
}
.stock-badge {
	display: inline-block;
	background: transparent;
	color: var(--red-extra);
	padding: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

/* Size Selector */
.size-label {
	font-size: 0.9rem;
	font-weight: 400; 
	margin-bottom: 0.5rem; 
}
.size-grid { 
	display: flex; 
	gap: 0rem; 
	margin-bottom: 1rem;
}
.size-btn {
	width: 3.5rem; 
	height: 3rem; 
	border-radius: 0rem;
	border: 1px solid var(--gray-200); 
	background: var(--bg-white);
	display: flex; 
	align-items: center; 
	justify-content: center;
	cursor: pointer; 
	transition: all 0.2s;
	font-weight: 500;
}
.size-btn:hover { 
	border-color: var(--color-brand); 
	color: var(--color-brand); 
}
.size-btn.selected { 
	background-color: var(--text-main); 
	color: white; 
	border-color: var(--text-main); 
}
.size-btn:disabled { 
	opacity: 0.5; 
	cursor: not-allowed; 
}

/* Accordions (Size Guide & Description) */
.accordion-container {
	margin-top: 0;
	border-bottom: none;
}
.accordion-container:last-of-type {
	border-top: none; 
}
.accordion-header {
	width: 100%;
	font-family: inherit;
	background: none;
	border: none;
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--gray-900);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
	transition: color 0.2s;
	text-transform: uppercase;
}
.accordion-header:hover {
	color: var(--color-brand);
}
.accordion-icon {
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}
.accordion-icon.rotate {
	transform: rotate(90deg);
}
.accordion-collapse {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease-out;
}
.accordion-collapse.open {
	grid-template-rows: 1fr;
}
.accordion-body {
	overflow: hidden;
}

.guide-svg {
	display: block;
	max-width: 150px;
	margin: 0 auto 1.5rem auto;
	height: auto;
}
.guide-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	width: 100%;
	border-top: 1px solid var(--gray-200);
	border-left: 1px solid var(--gray-200);
	margin-bottom: 1.5rem;
}
.guide-cell {
	background: var(--bg-white);
	border-right: 1px solid var(--gray-200);
	border-bottom: 1px solid var(--gray-200);
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	color: var(--gray-900);
	font-weight: 200;
}
.header-cell {
	font-weight: 600;
	background-color: var(--gray-50);
}
.label-cell {
	font-weight: 600;
	justify-content: flex-start;
	padding-left: 1.5rem;
	text-transform: uppercase;
}
.global-desc-text {
	font-weight: 200;
	color: var(--text-light);
	white-space: pre-wrap;
	line-height: 1.6;
	padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.guide-inner-layout {
		display: flex;
		align-items: flex-start;
		gap: 2rem;
	}
	.guide-svg {
		margin: 0;
		order: 2;
	}
	.guide-grid {
		flex: 1;
	}
}

/* -------------------------------------------------------------------------- */
/*   11. CHECKOUT, ORDERS & WISHLIST MODALS */
/* -------------------------------------------------------------------------- */

.checkout-modal-box {
	background: var(--bg-white); 
	width: 100%; 
	max-width: 42rem;
	border-radius: 1rem; 
	display: flex; 
	flex-direction: column; 
	max-height: 90vh;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
	overflow: hidden;
}
.checkout-summary-list { 
	display: flex; 
	flex-direction: column; 
	gap: 0.75rem; 
	margin-bottom: 1rem; 
}
.checkout-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-brand);
	border-top: 1px solid var(--gray-200);
	padding-top: 1rem;
}
.checkout-footer { 
	padding: 1.25rem; 
	border-top: 1px solid var(--gray-100); 
	background: var(--gray-50); 
	display: flex; 
	justify-content: flex-end; 
}
.address-grid { 
	display: grid; 
	grid-template-columns: 1fr; 
	gap: 1rem; 
}
@media (min-width: 768px) { 
	.address-grid { grid-template-columns: 1fr 1fr; } 
}
.address-form-box { 
	display: flex; 
	flex-direction: column; 
	gap: 0.75rem; 
	padding: 1.5rem;
	border: 1px solid var(--gray-200); 
	border-radius: 0.75rem; 
	background: var(--gray-50);
}
.address-card {
	border: 1px solid var(--gray-200); 
	border-radius: 0.75rem; 
	padding: 1rem;
	cursor: pointer; 
	position: relative; 
	transition: all 0.2s;
	background: var(--bg-white);
}
.address-card:hover { 
	border-color: var(--gray-300); 
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.address-card.selected { 
	border-color: var(--color-brand); 
	background-color: var(--gray-50); 
	box-shadow: 0 0 0 1px var(--color-brand);
}
.address-card h4 { 
	font-weight: 700; 
	margin-bottom: 0.25rem; 
	font-size: 0.95rem;
	color: var(--gray-900);
}
.address-card p { 
	font-size: 0.85rem; 
	color: var(--gray-600); 
	line-height: 1.4;
}

/* Address Checkmark */
.address-check {
	position: absolute; 
	top: 1rem; 
	right: 1rem; 
	width: 20px; 
	height: 20px;
	border-radius: 50%; 
	border: 2px solid var(--gray-300); 
	display: flex; 
	align-items: center; 
	justify-content: center;
	background: var(--bg-white);
	transition: all 0.2s;
}
.address-card.selected .address-check { 
	border-color: var(--color-brand); 
	background: var(--color-brand); 
}
.address-check i { 
	color: white; 
	font-size: 10px; 
	opacity: 0; 
}
.address-card.selected .address-check i { 
	opacity: 1; 
}

/* Order History */
.inline-search-wrapper {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	background: var(--bg-white);
	padding: 0 1rem;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transform: translateX(20px); 
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}
.navbar.search-mode .inline-search-wrapper {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}
.navbar.search-mode .brand-title,
.navbar.search-mode .nav-actions {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-20px);
	pointer-events: none;
	transition: all 0.2s ease;
}
.search-input-box {
	flex: 1;
	display: flex;
	align-items: center;
	height: 40px;
	background: var(--gray-100);
	border-radius: 9999px;
	margin: 0 0.5rem;
	padding: 0 1rem;
	border: 1px solid transparent;
	transition: all 0.2s;
}
.search-input-box:focus-within {
	background: var(--bg-white);
	border-color: var(--color-brand);
}
#inline-search-input {
	width: 100%;
	background: transparent;
	border: none;
	outline: none;
	font-size: 1rem;
	color: var(--gray-900);
}
.suggestions-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg-white);
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
	border-top: 1px solid var(--gray-100);
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
	overflow: hidden;
	z-index: 45;
	max-height: 60vh;
	overflow-y: auto;
}
.suggestion-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	cursor: pointer;
	transition: background 0.1s;
	border-bottom: 1px solid var(--gray-50);
}
.suggestion-item:hover {
	background-color: var(--gray-50);
}
.suggestion-icon {
	width: 24px;
	display: flex;
	justify-content: center;
	margin-right: 1rem;
	color: var(--gray-400);
	font-size: 0.9rem;
}
.suggestion-text {
	flex: 1;
	font-size: 0.95rem;
	color: var(--gray-900);
	font-weight: 500;
	display: flex;
	flex-direction: column;
}
.suggestion-thumb {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 4px;
	margin-right: 0.75rem;
	background: var(--gray-200);
}
.suggestion-remove {
	color: var(--gray-400);
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	font-size: 0.8rem;
}
.suggestion-remove:hover {
	color: var(--color-brand);
}


/* -------------------------------------------------------------------------- */
/*   12. TOASTS */
/* -------------------------------------------------------------------------- */

.toast-container { 
	position: fixed; 
	bottom: 1.25rem; 
	right: 1.25rem; 
	z-index: 2000; 
	display: flex; 
	flex-direction: column; 
	gap: 0.5rem; 
	pointer-events: none; 
}
.toast {
	background: var(--bg-white); 
	padding: 12px 20px; 
	border-radius: 8px;
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
	border-left: 4px solid var(--color-brand);
	display: flex; 
	align-items: center; 
	gap: 12px; 
	font-size: 0.9rem;
	animation: slideInRight 0.3s ease-out; 
	pointer-events: auto;
	color: var(--text-main);
}
.toast.error { 
	border-color: var(--red-500); 
	color: var(--red-500); 
}


/* -------------------------------------------------------------------------- */
/*   13. ANIMATIONS */
/* -------------------------------------------------------------------------- */

@keyframes fadeIn { 
	from { opacity: 0; } 
	to { opacity: 1; } 
}
@keyframes slideUpFade { 
	from { opacity: 0; transform: translateY(10px); } 
	to { opacity: 1; transform: translateY(0); } 
}
@keyframes slideInRight { 
	from { transform: translateX(100%); opacity: 0; } 
	to { transform: translateX(0); opacity: 1; } 
}
@keyframes shimmer { 
	from { transform: translateX(-100%); } 
	to { transform: translateX(100%); } 
}
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

.scroll-fade { 
	opacity: 0; 
}
.scroll-fade.fade-in { 
	animation: fadeIn 0.7s ease-out forwards; 
}
.animate-shake { 
	animation: shake 0.4s ease-in-out; 
}
.animate-slide-up { 
	animation: slideUpFade 0.4s ease-out forwards; 
}

/* Skeleton Loading */
.skeleton { 
	background: #e2e8f0; 
	border-radius: 0.5rem; 
	position: relative; 
	overflow: hidden; 
}
.skeleton::after {
	content: ''; 
	position: absolute; 
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	animation: shimmer 1.5s infinite linear;
}
.product-skeleton { 
	opacity: 1; 
	transition: opacity 0.5s; 
	padding-bottom: 2rem; 
}
.product-skeleton.fade-out { 
	opacity: 0; 
}

/* Payment Status Spinner */
.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid var(--gray-200);
	border-top-color: var(--color-brand);
	border-radius: 50%;
	margin: 0 auto;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
#payment-status-modal .modal-box {
	display: flex;
	flex-direction: column;
	align-items: center;
}


/* -------------------------------------------------------------------------- */
/*   13. CART PAGE STYLES */
/* -------------------------------------------------------------------------- */

.cart-page-wrapper {
	min-height: calc(100vh - 70px);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2rem 1rem;
	background-color: var(--gray-50);
}
.cart-page-box {
	background: var(--bg-white);
	width: 100%;
	max-width: 600px;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--gray-100);
}
.cart-page-box .cart-items-container {
	overflow-y: visible;
	max-height: none;
}


/* -------------------------------------------------------------------------- */
/*   14. ACCOUNT PAGES (Orders, Wishlist, Address) */
/* -------------------------------------------------------------------------- */

.account-page-wrapper {
	min-height: calc(100vh - 70px);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2rem 1rem;
}
.account-page-box {
	background: transparent;
	box-shadow: none;
	border: none;
	width: 100%;
	max-width: 800px;
	padding: 2rem 0;
}
@media (max-width: 768px) {
	.account-page-box {
		padding: 1rem 0;
	}
}

/* -------------------------------------------------------------------------- */
/*   15. CHRISTMAS DECORATION */
/* -------------------------------------------------------------------------- */

.snow-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity 2s ease-in-out;
	overflow: hidden;
}
.snow-container.active {
	opacity: 1;
}
.snowflake {
	position: absolute;
	top: -5vh;
	background: white;
	border-radius: 50%;
	box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
	will-change: transform, top;
}
@keyframes fall {
	0% {
		top: -10vh;
	}
	100% {
		top: 110vh;
	}
}
@keyframes sway-left {
	0% { transform: translateX(0px) rotate(0deg); }
	100% { transform: translateX(-30px) rotate(90deg); }
}
@keyframes sway-right {
	0% { transform: translateX(0px) rotate(0deg); }
	100% { transform: translateX(30px) rotate(-90deg); }
}
.xmas-btn {
	background: none;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	color: var(--gray-500);
	position: relative;
	z-index: 10000;
}
.xmas-btn:hover {
	color: white;
	transform: scale(1.1);
}
.xmas-btn.active {
	color: var(--red-extra, #ff3333);
	text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}
.xmas-btn.active i {
	font-weight: 900;
	animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}