:root {
	--primary: #0f172a;
	--secondary: #1e293b;
	--accent: #7e22ce;
	--accent-light: #a855f7;
	--light: #e0e7ff;
	--text: #cbd5e1;
	--transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	--nav-height: 80px;
	--nav-margin: 20px;
	--ribbon-color: #e3342f;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	background: radial-gradient(circle at top left, var(--primary) 0%, #0a0e1a 100%);
	color: var(--text);
	line-height: 1.7;
	font-family: 'Montserrat', sans-serif;
	overflow-x: hidden;
	padding-top: var(--nav-height);
	min-height: 100vh;
	user-select: none;
	position: relative;
	scroll-behavior: smooth;
}

/* Subtle falling dots background */
#dot-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

.dot {
	position: absolute;
	top: -5px;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: fall linear forwards;
}



@keyframes fall {
	to {
		transform: translateY(110vh);
	}
}

h1, h2, h3, h4 {
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--light);
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

header {
	background-color: transparent;
	padding: 20px 0;
	position: fixed;
	width: calc(100% - 2 * var(--nav-margin));
	top: var(--nav-margin);
	left: var(--nav-margin);
	z-index: 1000;
	transition: var(--transition);
	border-radius: 0;
}
		.nav-search-desktop {
			position: relative;
		}
		
		.search-dropdown {
			position: absolute;
			top: 100%;
			left: 0;
			background: var(--secondary);
			border-radius: 10px;
			margin-top: 5px;
			box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
			z-index: 1000;
			display: none;
			max-height: 400px;
			overflow-y: auto;
			min-width: 100%;
			width: max-content;
			max-width: 500px;
		}
		
		.search-dropdown.active {
			display: block;
		}
		
		.search-dropdown-item {
			padding: 12px 15px;
			cursor: pointer;
			border-bottom: 1px solid rgba(126, 34, 206, 0.2);
			display: flex;
			align-items: center;
			gap: 15px;
			transition: var(--transition);
			white-space: nowrap;
		}
		
		.search-dropdown-item:hover {
			background: rgba(126, 34, 206, 0.1);
		}
		
		.search-dropdown-item:last-child {
			border-bottom: none;
		}
		
		.search-item-image {
			width: 50px;
			height: 50px;
			border-radius: 8px;
			overflow: hidden;
			flex-shrink: 0;
		}
		
		.search-item-image img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
		
		.search-item-content {
			flex: 1;
			min-width: 0;
			overflow: hidden;
		}
		
		.search-item-title {
			font-weight: 600;
			color: var(--light);
			margin-bottom: 4px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		
		.search-item-description {
			font-size: 0.85rem;
			color: var(--text);
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		
		.search-item-price {
			color: var(--accent-light);
			font-weight: 600;
			flex-shrink: 0;
			margin-left: 10px;
		}

		/* Mobile search dropdown - FIXED POSITIONING */
		.nav-search-mobile {
			position: relative;
		}

		.nav-search-mobile .search-dropdown {
			position: fixed;
			top: 120px !important; /* Below the fixed header */
			left: 20px;
			right: 20px;
			width: auto !important;
			max-width: none !important;
			z-index: 10000;
		}

		/* Ensure dropdown is visible on mobile when header is not floating */
		@media (max-width: 850px) {
			.nav-search-mobile .search-dropdown {
				top: 100px !important; /* Adjusted for non-floating header */
			}
			
			header.scrolled ~ body .nav-search-mobile .search-dropdown {
				top: 80px !important; /* Adjusted for scrolled/floating header */
			}
		}

		/* See All Products Button */
		.see-all-container {
			text-align: right;
			margin: 30px 0 20px;
		}

		.see-all-btn {
			display: inline-flex;
			align-items: center;
			gap: 10px;
			background: var(--accent);
			color: white;
			padding: 12px 25px;
			border-radius: 50px;
			text-decoration: none;
			font-weight: 600;
			font-size: 1rem;
			transition: var(--transition);
			border: 2px solid var(--accent);
			box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
		}

		.see-all-btn:hover {
			background: #6d1cb1;
			transform: translateY(-3px);
			box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
		}

		.see-all-btn i {
			font-size: 0.9rem;
			transition: transform 0.3s ease;
		}

		.see-all-btn:hover i {
			transform: translateX(3px);
		}
		
		/* Category Section Styles */
		.product-category-section {
			margin-bottom: 80px;
		}
		
		.category-title {
			font-size: 2.5rem;
			text-align: center;
			margin-bottom: 20px;
			color: var(--light);
		}
		
		.category-underline {
			width: 200px;
			height: 6px;
			margin: 0 auto 30px;
			border-radius: 3px;
			background: linear-gradient(to right, var(--accent), var(--ribbon-color));
		}
		
		.category-banner {
			width: 100%;
			height: 200px;
			background-size: cover;
			background-position: center;
			border-radius: 20px;
			margin-bottom: 30px;
			box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
		}
		
		/* Mobile header layout fix */
		@media (max-width: 850px) {
			.header-container {
				display: grid;
				grid-template-columns: auto 1fr auto;
				align-items: center;
				gap: 15px;
			}
			
			.logo {
				grid-column: 1;
			}
			
			.nav-search-mobile {
				grid-column: 2;
				display: block !important;
				margin: 0;
				position: relative;
			}
			
			.mobile-toggle {
				grid-column: 3;
				position: static;
				transform: none;
			}
			
			.nav-search-desktop {
				display: none;
			}
			
			/* Hide regular nav items on mobile */
			nav ul li:not(.nav-search-mobile) {
				display: none;
			}
			
			nav ul {
				justify-content: flex-end;
			}

			/* See All Button mobile */
			.see-all-container {
				text-align: center;
				margin: 25px 0 15px;
			}

			.see-all-btn {
				width: 100%;
				max-width: 280px;
				justify-content: center;
			}
			
			/* Category mobile styles */
			.category-title {
				font-size: 2rem;
			}
			
			.category-banner {
				height: 150px;
			}
		}
		
		/* Hide nav search mobile on desktop */
		@media (min-width: 851px) {
			.nav-search-mobile {
				display: none !important;
			}
		}

		/* Ensure dropdown doesn't go off-screen on desktop */
		@media (min-width: 851px) {
			.nav-search-desktop {
				position: relative;
			}
			
			.search-dropdown {
				width: max-content;
				min-width: 300px;
				max-width: 500px;
			}
		}

header.scrolled {
	background-color: rgba(15, 23, 42, 0.92);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border-radius: 15px;
	padding: 10px 0;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transform: translateY(0);
	width: calc(100% - 40px);
	left: 20px;
}

/* Desktop Navigation - UPDATED WITH SEARCH BAR */
nav ul {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 10px;
}

/* Navbar Search - DESKTOP */
.nav-search-desktop {
	display: flex;
	align-items: center;
	margin: 0 15px;
}

.nav-search-form {
	display: flex;
	align-items: center;
	background: rgba(30, 41, 59, 0.6);
	border-radius: 50px;
	padding: 5px 15px;
	border: 1px solid rgba(126, 34, 206, 0.4);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: var(--transition);
	animation: navGlow 2s infinite alternate;
}

.nav-search-form:focus-within {
	box-shadow: 0 0 20px var(--accent-light);
	animation: none;
}

@keyframes navGlow {
	from {
		box-shadow: 0 0 5px var(--accent-light);
	}
	to {
		box-shadow: 0 0 15px var(--accent-light);
	}
}

.nav-search-input {
	background: transparent;
	border: none;
	color: var(--light);
	padding: 8px 0;
	width: 180px;
	outline: none;
}

.nav-search-input::placeholder {
	color: #aab8ff;
}

.nav-search-button {
	background: transparent;
	border: none;
	color: var(--accent-light);
	cursor: pointer;
	transition: var(--transition);
}

.nav-search-button:hover {
	color: var(--light);
}

/* Mobile Toggle */
.mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--light);
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

/* Mobile Navigation - UPDATED WITH SEARCH BAR */
@media (max-width: 850px) {
    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    nav ul li {
        margin: 8px 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 1.1rem;
        text-align: left;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:hover {
        background: rgba(126, 34, 206, 0.15);
        color: var(--light);
        transform: translateX(5px);
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin: 8px 0;
        padding: 12px 20px;
    }

    /* Hide desktop search on mobile */
    .nav-search-desktop {
        display: none;
    }

    /* Mobile search in nav */
    .nav-search-mobile {
        display: block;
        width: 100%;
        padding: 10px 20px;
        margin-bottom: 10px;
    }

    .nav-search-mobile .nav-search-form {
        width: 100%;
        animation: navGlow 2s infinite alternate;
    }

    .nav-search-mobile .nav-search-input {
        width: 100%;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Hide mobile search on desktop */
.nav-search-mobile {
    display: none;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20px;
	font-weight: 700;
}

.logo-text {
	font-family: 'Quicksand', sans-serif;
	font-size: 26px;
	font-weight: 700;
	background: linear-gradient(to right, var(--light), var(--accent-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.5px;
}

/* Desktop Navigation */
nav ul {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 15px;
}

nav ul li a {
	color: rgba(224, 231, 255, 0.9);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 8px 16px;
	border-radius: 30px;
	font-size: 1.05rem;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent-light);
	transition: var(--transition);
	transform: translateX(-50%);
}

nav ul li a:hover {
	color: var(--light);
}

nav ul li a:hover::after {
	width: 70%;
}

.nav-btn {
	padding: 10px 24px;
	border-radius: 30px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	font-size: 1.05rem;
}

.btn-login {
	background: transparent;
	border: 2px solid var(--accent-light);
	color: var(--accent-light);
}

.btn-login:hover {
	background: rgba(168, 85, 247, 0.1);
	transform: translateY(-3px);
}

.btn-signup {
	background: var(--accent);
	color: white;
	border: 2px solid var(--accent);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.btn-signup:hover {
	background: #6d1cb1;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--light);
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.mobile-toggle:hover {
	background: rgba(168, 85, 247, 0.1);
}

.mobile-toggle.active {
	background: rgba(168, 85, 247, 0.2);
}

/* Mobile Navigation - FIXED */
@media (max-width: 850px) {
    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    nav ul li {
        margin: 8px 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 1.1rem;
        text-align: left;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:hover {
        background: rgba(126, 34, 206, 0.15);
        color: var(--light);
        transform: translateX(5px);
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin: 8px 0;
        padding: 12px 20px;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
	padding: 80px 0 100px;
	position: relative;
	overflow: hidden;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.hero-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-content {
	z-index: 2;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 25px;
	line-height: 1.1;
	background: linear-gradient(to right, #e0e7ff, #a855f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero p {
	font-size: 1.2rem;
	max-width: 600px;
	margin-bottom: 40px;
	color: #c2cbff;
}

.hero-buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-buttons .btn {
	display: inline-block;
	background: var(--accent);
	color: white;
	padding: 14px 35px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1.2px;
	transition: var(--transition);
	border: 2px solid var(--accent);
	font-size: 1.1rem;
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
	width: 100%;
	text-align: center;
}

.hero-buttons .btn:hover {
	background: #6d1cb1;
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(126, 34, 206, 0.5);
}

.hero-buttons .sub-buttons {
	display: flex;
	gap: 20px;
}

.hero-buttons .sub-buttons .btn-outline {
	display: inline-block;
	background: transparent;
	border-color: var(--accent-light);
	color: var(--accent-light);
	padding: 14px 35px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.1rem;
	letter-spacing: 1.2px;
	transition: var(--transition);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
	flex: 1;
	text-align: center;
}

.hero-buttons .sub-buttons .btn-outline:hover {
	background: rgba(168, 85, 247, 0.1);
	color: var(--light);
}

.hero-slider {
	position: relative;
	height: 500px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
	z-index: 1;
	perspective: 1000px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	display: flex;
	align-items: flex-end;
	padding: 30px;
	cursor: pointer;
}

.slide.active {
	opacity: 1;
}

.slide-content {
	background: rgba(15, 23, 42, 0.85);
	padding: 25px;
	border-radius: 15px;
	width: 100%;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(126, 34, 206, 0.3);
	transition: var(--transition);
}

.slide:hover .slide-content {
	background: rgba(15, 23, 42, 0.95);
}

.slide h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--light);
}

.slide p {
	font-size: 1rem;
	color: #aab8ff;
	margin-bottom: 0;
}

.slider-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 10;
}

.progress-container {
	width: 100%;
	height: 4px;
	background: rgba(224, 231, 255, 0.2);
	border-radius: 2px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: var(--accent-light);
	transition: width 4.8s linear;
}

.dots-container {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(224, 231, 255, 0.3);
	cursor: pointer;
	transition: var(--transition);
}

.slider-dot.active {
	background: var(--accent-light);
	transform: scale(1.2);
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

/* Products Section */
.products {
	padding: 0 0 100px;
	position: relative;
}

/* Hide products temporarily */
.product-category {
	display: none;
}

/* Promotion Banner */
.promotion-banner {
	width: 100%;
	height: 200px;
	background-image: url('https://placehold.co/1200x400/1e293b/white');
	background-size: cover;
	background-position: center;
	border-radius: 20px;
	margin-bottom: 20px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Promo Section */
.promo-section {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 20px;
}

.promo-link {
	text-decoration: none;
	display: block;
	flex: 1 1 300px;
	cursor: pointer;
	transition: var(--transition);
}

.promo-link:hover {
	transform: translateY(-10px);
}

.promo-container {
	position: relative;
	padding: 30px;
	border-radius: 20px;
	background: rgba(30, 41, 59, 0.4);
	border: 1px solid rgba(126, 34, 206, 0.2);
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 0 20px var(--accent-light);
	animation: glow 2s infinite alternate;
	height: 100%;
	transition: var(--transition);
}

.promo-container.classic {
	animation: none;
	box-shadow: none;
	border-color: rgba(126, 34, 206, 0.2);
}

@keyframes glow {
	from {
		box-shadow: 0 0 10px var(--accent-light);
	}
	to {
		box-shadow: 0 0 40px var(--accent-light);
	}
}

.promo-image {
	position: relative;
	flex: 1 1 200px;
	border-radius: 15px;
	overflow: hidden;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.promo-details {
	flex: 2 1 300px;
	color: var(--text);
	text-align: center;
}

.promo-details h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--light);
}

.promo-details p {
	font-size: 0.95rem;
	margin-bottom: 20px;
	color: #c2cbff;
	line-height: 1.6;
}

.promo-price {
	margin-bottom: 15px;
	text-align: center;
}

.promo-original {
	font-size: 1.3rem;
	color: #e0e7ff;
	text-decoration: line-through;
	margin-right: 10px;
}

.promo-discount {
	font-size: 2rem;
	color: var(--accent-light);
	font-weight: 700;
}

.promo-cart-btn {
	background: var(--accent);
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 1px;
	cursor: pointer;
	transition: var(--transition);
	display: block;
	margin: 0 auto;
	pointer-events: none;
}

.promo-cart-btn:hover {
	background: var(--accent-light);
	transform: translateY(-3px);
}

/* Gallery Collage */
.gallery {
	padding: 60px 0;
	position: relative;
}

.gallery h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 10px;
	color: var(--light);
}

.gallery-underline {
	width: 200px;
	height: 6px;
	margin: 0 auto 10px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--accent), var(--ribbon-color));
}

.gallery-subtitle {
	text-align: center;
	font-size: 1.5rem;
	color: #cbd5e1;
	margin-bottom: 30px;
}

.gallery-collage {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 150px;
	gap: 10px;
}

.collage-item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.3s;
}

.collage-item:hover {
	transform: scale(1.05);
}

/* Modal for Gallery */
.gallery-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background: var(--secondary);
	border: 2px solid var(--accent-light);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	background: var(--accent);
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	color: white;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.modal-close {
	font-size: 1.8rem;
	color: white;
	cursor: pointer;
	transition: color 0.3s;
}

.modal-close:hover {
	color: #ffdddd;
}

.modal-body {
	position: relative;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--primary);
}

.modal-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 5px;
}

.modal-prev,
.modal-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.5rem;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	padding: 8px;
	cursor: pointer;
	border-radius: 50%;
	z-index: 10;
	transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
	left: 15px;
}

.modal-next {
	right: 15px;
}

/* Newsletter Section */
.newsletter {
	padding: 120px 0;
	background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
				url('https://placehold.co/1200x800/1e293b/white') center/cover;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	border-radius: 30px;
	margin: 0 30px 100px;
	border: 1px solid rgba(126, 34, 206, 0.3);
}

.newsletter-container {
	display: flex;
	align-items: center;
	gap: 50px;
	max-width: 1200px;
	margin: 0 auto;
}

.newsletter-content {
	flex: 1;
	position: relative;
	z-index: 2;
	text-align: left;
}

.newsletter-banner {
	flex: 1;
	height: 300px;
	background: url('https://placehold.co/500x300/7e22ce/white') center/cover;
	border-radius: 20px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
	display: block;
}

.newsletter h2 {
	font-size: 2.8rem;
	margin-bottom: 25px;
	background: linear-gradient(to right, #e0e7ff, #a855f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.newsletter p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	color: #c2cbff;
}

.newsletter-form {
	display: flex;
	max-width: 600px;
	gap: 15px;
	background: rgba(30, 41, 59, 0.6);
	padding: 5px;
	border-radius: 50px;
	border: 1px solid rgba(126, 34, 206, 0.4);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.newsletter-form input {
	flex: 1;
	padding: 18px 30px;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	outline: none;
	background: rgba(15, 23, 42, 0.7);
	color: var(--light);
}

.newsletter-form input::placeholder {
	color: #aab8ff;
}

.newsletter-form button {
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 50px;
	padding: 0 40px;
	font-weight: 600;
	font-size: 1.1rem;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.newsletter-form button:hover {
	background: #6d1cb1;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Footer */
footer {
	background: var(--primary);
	color: white;
	padding: 100px 0 30px;
	position: relative;
	border-top: 1px solid rgba(126, 34, 206, 0.2);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 50px;
	margin-bottom: 70px;
}

.footer-column h3 {
	font-size: 1.4rem;
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 15px;
	color: var(--light);
}

.footer-column h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 15px;
}

.footer-links a {
	color: #aab8ff;
	text-decoration: none;
	transition: var(--transition);
	display: inline-block;
}

.footer-links a:hover {
	color: var(--accent-light);
	transform: translateX(5px);
}

.contact-list {
	list-style: none;
}

.contact-list li {
	margin-bottom: 15px;
}

.contact-list a {
	color: #aab8ff;
	text-decoration: none;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.contact-list a:hover {
	color: var(--accent-light);
	transform: translateX(5px);
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 25px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: rgba(30, 41, 59, 0.5);
	border-radius: 50%;
	color: var(--light);
	transition: var(--transition);
	font-size: 1.2rem;
}

.social-links a:hover {
	background: var(--accent);
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(126, 34, 206, 0.2);
	color: #aab8ff;
	font-size: 1rem;
}

/* Product Page Styles */
:root {
    --comment-bg: rgba(30, 41, 59, 0.8);
    --single-comment-bg: rgba(15, 23, 42, 0.7);
    --gradient-line: linear-gradient(to right, var(--accent), #e3342f);
}

/* Main Content Wrapper - FIXED TOP MARGIN */
.main-content {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto 40px; /* Reduced from 120px to 60px */
    padding: 0 30px;
    flex-wrap: wrap;
}

/* Product Section Container */
.product-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 40px;
    flex: 1 1 100%;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.product-image-container {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-details {
    flex: 1 1 300px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.product-underline {
    width: 200px;
    height: 6px;
    margin-bottom: 20px;
    border-radius: 3px;
    background: var(--gradient-line);
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-original {
    font-size: 1.5rem;
    color: #e0e7ff;
    text-decoration: line-through;
}

.product-discount {
    font-size: 2.5rem;
    color: var(--accent-light);
    font-weight: 700;
}

.product-description {
    font-size: 1rem;
    color: #c2cbff;
    line-height: 1.6;
    margin-bottom: 30px;
}

.marketplace-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.marketplace-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.marketplace-btn i {
    font-size: 1.2rem;
}

.marketplace-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* Comments Section Container */
.comments-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 1400px;
    margin: 60px auto;
    width: calc(100% - 60px);
}

.comments-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.comments-underline {
    width: 200px;
    height: 6px;
    margin: 0 auto 20px;
    border-radius: 3px;
    background: var(--gradient-line);
}

.comments-desc {
    text-align: center;
    font-size: 1rem;
    color: #c2cbff;
    margin-bottom: 40px;
}

.comment-item {
    background: var(--single-comment-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-avatar {
    flex-shrink: 0;
    font-size: 2rem;
    color: #aab8ff;
    align-self: flex-start;
}

.comment-content {
    flex: 1;
}

.comment-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 5px;
}

.comment-rating {
    color: #f5c518;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 1rem;
    color: #c2cbff;
    line-height: 1.6;
}

/* Fallback Page Styles */
.fallback-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px auto 40px; /* Reduced top margin */
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fallback-icon {
    font-size: 4rem;
    color: var(--accent-light);
    margin-bottom: 30px;
}

.fallback-container h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 20px;
}

.fallback-underline {
    width: 200px;
    height: 6px;
    background: var(--gradient-line);
    margin: 0 auto 30px;
    border-radius: 3px;
}

.fallback-container p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.fallback-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.fallback-buttons .nav-btn {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.fallback-buttons .nav-btn:hover {
    transform: translateY(-3px);
}

/* STICKY SEARCH BAR */
.sticky-search-container {
    position: sticky;
    top: 100px; /* Below the navbar */
    z-index: 999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.3);
    padding: 20px 0;
    transition: var(--transition);
    margin-bottom: 40px;
}

.sticky-search-container.sticky-bottom {
    position: fixed;
    bottom: 0;
    top: auto;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(126, 34, 206, 0.3);
    border-bottom: none;
}

.search-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(126, 34, 206, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    background: rgba(15, 23, 42, 0.7);
    color: var(--light);
}

.search-input::placeholder {
    color: #aab8ff;
}

.search-button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.search-button:hover {
    background: #6d1cb1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Product Not Found Container - FIXED */
.product-not-found {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto; /* Reduced margin */
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.not-found-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 2rem;
    flex-shrink: 0;
}

.not-found-text {
    flex: 1;
    text-align: left;
}

.not-found-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.not-found-text p {
    color: var(--text);
    margin: 0;
    font-size: 1rem;
}

/* Available Products Section - FIXED & CENTERED */
.available-products {
    margin-top: 40px; /* Reduced margin */
    padding: 0 20px;
}

.available-products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.products-underline {
    width: 200px;
    height: 6px;
    background: var(--gradient-line);
    margin: 0 auto 40px;
    border-radius: 3px;
}

/* SORTING UI */
.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Desktop Sorting */
.sorting-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 140px;
}

.sorting-button {
    background: var(--comment-bg);
    border: none;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sorting-button:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.sorting-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sorting-text {
    text-align: left;
    flex: 1;
}

.sorting-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.sorting-text p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
}

.sorting-dropdown {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
}

.sorting-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sorting-option {
    background: none;
    border: none;
    color: var(--text);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.sorting-option:hover {
    background: rgba(126, 34, 206, 0.1);
    color: var(--light);
}

.sorting-option.active {
    background: rgba(126, 34, 206, 0.2);
    color: var(--accent-light);
    font-weight: 600;
}

.sorting-option i {
    width: 20px;
    text-align: center;
}

/* Mobile Sorting */
.mobile-sorting {
    display: none;
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-sorting-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.mobile-sorting-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mobile-sorting-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.mobile-sorting-text p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
}

.mobile-sorting-dropdown {
    margin-top: 15px;
    display: none;
}

.mobile-sorting-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.products-grid-container {
    flex: 1;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 0;
}

/* CLICKABLE PRODUCT CARDS */
.product-card {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    flex: 0 1 300px;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--light);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-card p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-card .product-price {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Search relevance styling */
.product-card.relevance-high {
    order: 1;
}

.product-card.relevance-medium {
    order: 2;
}

.product-card.relevance-low {
    order: 3;
}

.product-card.relevance-none {
    order: 4;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-slider {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    nav ul {
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

/* Tablet and Small Desktop Breakpoint */
@media (max-width: 950px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav ul {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-margin: 10px;
    }

    .hero {
        padding: 40px 0 80px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .sub-buttons {
        flex-direction: column;
    }

    .hero-buttons .sub-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn, .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-slider {
        height: 400px;
    }

    .promotion-banner {
        height: 150px;
    }

    .promo-section {
        flex-direction: column;
        align-items: center;
    }

    .promo-link {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .promo-container {
        flex-direction: column;
        text-align: center;
    }

    .promo-image {
        width: 100%;
        min-height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 20px;
    }

    .newsletter-form button {
        padding: 18px;
    }

    .newsletter-container {
        flex-direction: column;
    }

    .newsletter-banner {
        display: none;
    }

    /* Product Page Mobile Styles */
    .main-content {
        flex-direction: column;
        gap: 30px;
        margin: 80px auto 40px; /* Adjusted for mobile */
        padding: 0 20px;
    }

    .product-container {
        flex: 1 1 100%;
        padding: 30px 20px;
    }

    .marketplace-buttons {
        justify-content: center;
    }

    .comments-container {
        padding: 30px 20px;
        margin: 40px 20px;
        width: calc(100% - 40px);
    }

    .comment-item {
        padding: 15px;
    }

    /* Fallback Page Mobile Styles */
    .fallback-container {
        margin: 30px 20px 30px; /* Reduced top margin */
        padding: 40px 20px;
    }
    
    .fallback-container h1 {
        font-size: 2rem;
    }
    
    .fallback-container p {
        font-size: 1.1rem;
    }
    
    .fallback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .fallback-buttons .nav-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .available-products h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    /* Search Bar Mobile */
    .search-container {
        padding: 20px;
        margin: 0 20px 30px;
    }

    .search-form {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
    }

    .search-button {
        padding: 15px;
        width: 100%;
    }

    /* Product Not Found Mobile */
    .product-not-found {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 20px;
    }

    .not-found-image {
        margin-bottom: 15px;
    }

    .not-found-text {
        text-align: center;
    }

    /* Sorting Mobile */
    .products-layout {
        flex-direction: column;
    }

    .sorting-sidebar {
        display: none;
    }

    .mobile-sorting {
        display: block;
    }

    .sticky-search-container {
        top: 80px; /* Adjusted for mobile */
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide h3 {
        font-size: 1.2rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    .promotion-banner {
        height: 120px;
    }

    .promo-details h3 {
        font-size: 1.5rem;
    }

    .promo-details p {
        font-size: 0.9rem;
    }

    .promo-cart-btn {
        width: 100%;
        text-align: center;
    }

    .gallery-collage {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    /* Product Page Mobile Small */
    .product-details h1 {
        font-size: 2rem;
    }

    .product-discount {
        font-size: 2rem;
    }

    .marketplace-buttons {
        flex-direction: column;
        align-items: center;
    }

    .marketplace-btn {
        width: 100%;
        justify-content: center;
    }

    .comments-container {
        margin: 40px 15px;
        width: calc(100% - 30px);
        padding: 20px 15px;
    }

    /* Fallback Page Mobile Small */
    .fallback-container {
        margin: 20px 15px 20px; /* Further reduced top margin */
        padding: 30px 15px;
    }
    
    .fallback-container h1 {
        font-size: 1.8rem;
    }
    
    .available-products h2 {
        font-size: 1.8rem;
    }

    /* Sticky Search Mobile */
    .sticky-search-container {
        padding: 15px 0;
    }

    .search-container {
        padding: 20px;
    }
}

/* Fix for the in-between breakpoint (850px - 1100px) */
@media (min-width: 851px) and (max-width: 1100px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    
    nav ul li:last-child {
        margin-top: 5px;:root {
	--primary: #0f172a;
	--secondary: #1e293b;
	--accent: #7e22ce;
	--accent-light: #a855f7;
	--light: #e0e7ff;
	--text: #cbd5e1;
	--transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	--nav-height: 80px;
	--nav-margin: 20px;
	--ribbon-color: #e3342f;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

body {
	background: radial-gradient(circle at top left, var(--primary) 0%, #0a0e1a 100%);
	color: var(--text);
	line-height: 1.7;
	font-family: 'Montserrat', sans-serif;
	overflow-x: hidden;
	padding-top: var(--nav-height);
	min-height: 100vh;
	user-select: none;
	position: relative;
	scroll-behavior: smooth;
}

/* Subtle falling dots background */
#dot-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
}

.dot {
	position: absolute;
	top: -5px;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: fall linear forwards;
}

@keyframes fall {
	to {
		transform: translateY(110vh);
	}
}

h1, h2, h3, h4 {
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--light);
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

/* Header */
header {
	background-color: transparent;
	padding: 20px 0;
	position: fixed;
	width: calc(100% - 2 * var(--nav-margin));
	top: var(--nav-margin);
	left: var(--nav-margin);
	z-index: 1000;
	transition: var(--transition);
	border-radius: 0;
}

header.scrolled {
	background-color: rgba(15, 23, 42, 0.92);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border-radius: 15px;
	padding: 10px 0;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transform: translateY(0);
	width: calc(100% - 40px);
	left: 20px;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20px;
	font-weight: 700;
}

.logo-text {
	font-family: 'Quicksand', sans-serif;
	font-size: 26px;
	font-weight: 700;
	background: linear-gradient(to right, var(--light), var(--accent-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.5px;
}

/* Desktop Navigation */
nav ul {
	display: flex;
	list-style: none;
	align-items: center;
	gap: 15px;
}

nav ul li a {
	color: rgba(224, 231, 255, 0.9);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	padding: 8px 16px;
	border-radius: 30px;
	font-size: 1.05rem;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent-light);
	transition: var(--transition);
	transform: translateX(-50%);
}

nav ul li a:hover {
	color: var(--light);
}

nav ul li a:hover::after {
	width: 70%;
}

.nav-btn {
	padding: 10px 24px;
	border-radius: 30px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	font-size: 1.05rem;
}

.btn-login {
	background: transparent;
	border: 2px solid var(--accent-light);
	color: var(--accent-light);
}

.btn-login:hover {
	background: rgba(168, 85, 247, 0.1);
	transform: translateY(-3px);
}

.btn-signup {
	background: var(--accent);
	color: white;
	border: 2px solid var(--accent);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.btn-signup:hover {
	background: #6d1cb1;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--light);
	font-size: 24px;
	cursor: pointer;
	z-index: 1001;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.mobile-toggle:hover {
	background: rgba(168, 85, 247, 0.1);
}

.mobile-toggle.active {
	background: rgba(168, 85, 247, 0.2);
}

/* Mobile Navigation - FIXED */
@media (max-width: 850px) {
    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    nav ul li {
        margin: 8px 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 1.1rem;
        text-align: left;
    }

    nav ul li a::after {
        display: none;
    }

    nav ul li a:hover {
        background: rgba(126, 34, 206, 0.15);
        color: var(--light);
        transform: translateX(5px);
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin: 8px 0;
        padding: 12px 20px;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
	padding: 80px 0 100px;
	position: relative;
	overflow: hidden;
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.hero-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-content {
	z-index: 2;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 25px;
	line-height: 1.1;
	background: linear-gradient(to right, #e0e7ff, #a855f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero p {
	font-size: 1.2rem;
	max-width: 600px;
	margin-bottom: 40px;
	color: #c2cbff;
}

.hero-buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-buttons .btn {
	display: inline-block;
	background: var(--accent);
	color: white;
	padding: 14px 35px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1.2px;
	transition: var(--transition);
	border: 2px solid var(--accent);
	font-size: 1.1rem;
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
	width: 100%;
	text-align: center;
}

.hero-buttons .btn:hover {
	background: #6d1cb1;
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(126, 34, 206, 0.5);
}

.hero-buttons .sub-buttons {
	display: flex;
	gap: 20px;
}

.hero-buttons .sub-buttons .btn-outline {
	display: inline-block;
	background: transparent;
	border-color: var(--accent-light);
	color: var(--accent-light);
	padding: 14px 35px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.1rem;
	letter-spacing: 1.2px;
	transition: var(--transition);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
	flex: 1;
	text-align: center;
}

.hero-buttons .sub-buttons .btn-outline:hover {
	background: rgba(168, 85, 247, 0.1);
	color: var(--light);
}

.hero-slider {
	position: relative;
	height: 500px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
	z-index: 1;
	perspective: 1000px;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	display: flex;
	align-items: flex-end;
	padding: 30px;
	cursor: pointer;
}

.slide.active {
	opacity: 1;
}

.slide-content {
	background: rgba(15, 23, 42, 0.85);
	padding: 25px;
	border-radius: 15px;
	width: 100%;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(126, 34, 206, 0.3);
	transition: var(--transition);
}

.slide:hover .slide-content {
	background: rgba(15, 23, 42, 0.95);
}

.slide h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--light);
}

.slide p {
	font-size: 1rem;
	color: #aab8ff;
	margin-bottom: 0;
}

.slider-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 10;
}

.progress-container {
	width: 100%;
	height: 4px;
	background: rgba(224, 231, 255, 0.2);
	border-radius: 2px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: var(--accent-light);
	transition: width 4.8s linear;
}

.dots-container {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(224, 231, 255, 0.3);
	cursor: pointer;
	transition: var(--transition);
}

.slider-dot.active {
	background: var(--accent-light);
	transform: scale(1.2);
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

/* Products Section */
.products {
	padding: 0 0 100px;
	position: relative;
}

/* Hide products temporarily */
.product-category {
	display: none;
}

/* Promotion Banner */
.promotion-banner {
	width: 100%;
	height: 200px;
	background-image: url('https://placehold.co/1200x400/1e293b/white');
	background-size: cover;
	background-position: center;
	border-radius: 20px;
	margin-bottom: 20px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Promo Section */
.promo-section {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 20px;
}

.promo-link {
	text-decoration: none;
	display: block;
	flex: 1 1 300px;
	cursor: pointer;
	transition: var(--transition);
}

.promo-link:hover {
	transform: translateY(-10px);
}

.promo-container {
	position: relative;
	padding: 30px;
	border-radius: 20px;
	background: rgba(30, 41, 59, 0.4);
	border: 1px solid rgba(126, 34, 206, 0.2);
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 0 20px var(--accent-light);
	animation: glow 2s infinite alternate;
	height: 100%;
	transition: var(--transition);
}

.promo-container.classic {
	animation: none;
	box-shadow: none;
	border-color: rgba(126, 34, 206, 0.2);
}

@keyframes glow {
	from {
		box-shadow: 0 0 10px var(--accent-light);
	}
	to {
		box-shadow: 0 0 40px var(--accent-light);
	}
}

.promo-image {
	position: relative;
	flex: 1 1 200px;
	border-radius: 15px;
	overflow: hidden;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.promo-details {
	flex: 2 1 300px;
	color: var(--text);
	text-align: center;
}

.promo-details h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--light);
}

.promo-details p {
	font-size: 0.95rem;
	margin-bottom: 20px;
	color: #c2cbff;
	line-height: 1.6;
}

.promo-price {
	margin-bottom: 15px;
	text-align: center;
}

.promo-original {
	font-size: 1.3rem;
	color: #e0e7ff;
	text-decoration: line-through;
	margin-right: 10px;
}

.promo-discount {
	font-size: 2rem;
	color: var(--accent-light);
	font-weight: 700;
}

.promo-cart-btn {
	background: var(--accent);
	color: white;
	border: none;
	padding: 12px 25px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 1px;
	cursor: pointer;
	transition: var(--transition);
	display: block;
	margin: 0 auto;
	pointer-events: none;
}

.promo-cart-btn:hover {
	background: var(--accent-light);
	transform: translateY(-3px);
}

/* Gallery Collage */
.gallery {
	padding: 60px 0;
	position: relative;
}

.gallery h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 10px;
	color: var(--light);
}

.gallery-underline {
	width: 200px;
	height: 6px;
	margin: 0 auto 10px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--accent), var(--ribbon-color));
}

.gallery-subtitle {
	text-align: center;
	font-size: 1.5rem;
	color: #cbd5e1;
	margin-bottom: 30px;
}

.gallery-collage {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 150px;
	gap: 10px;
}

.collage-item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.3s;
}

.collage-item:hover {
	transform: scale(1.05);
}

/* Modal for Gallery */
.gallery-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background: var(--secondary);
	border: 2px solid var(--accent-light);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	background: var(--accent);
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	color: white;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.modal-close {
	font-size: 1.8rem;
	color: white;
	cursor: pointer;
	transition: color 0.3s;
}

.modal-close:hover {
	color: #ffdddd;
}

.modal-body {
	position: relative;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--primary);
}

.modal-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 5px;
}

.modal-prev,
.modal-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.5rem;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	padding: 8px;
	cursor: pointer;
	border-radius: 50%;
	z-index: 10;
	transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
	left: 15px;
}

.modal-next {
	right: 15px;
}

/* Newsletter Section */
.newsletter {
	padding: 120px 0;
	background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
				url('https://placehold.co/1200x800/1e293b/white') center/cover;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	border-radius: 30px;
	margin: 0 30px 100px;
	border: 1px solid rgba(126, 34, 206, 0.3);
}

.newsletter-container {
	display: flex;
	align-items: center;
	gap: 50px;
	max-width: 1200px;
	margin: 0 auto;
}

.newsletter-content {
	flex: 1;
	position: relative;
	z-index: 2;
	text-align: left;
}

.newsletter-banner {
	flex: 1;
	height: 300px;
	background: url('https://placehold.co/500x300/7e22ce/white') center/cover;
	border-radius: 20px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
	display: block;
}

.newsletter h2 {
	font-size: 2.8rem;
	margin-bottom: 25px;
	background: linear-gradient(to right, #e0e7ff, #a855f7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.newsletter p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	color: #c2cbff;
}

.newsletter-form {
	display: flex;
	max-width: 600px;
	gap: 15px;
	background: rgba(30, 41, 59, 0.6);
	padding: 5px;
	border-radius: 50px;
	border: 1px solid rgba(126, 34, 206, 0.4);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.newsletter-form input {
	flex: 1;
	padding: 18px 30px;
	border: none;
	border-radius: 50px;
	font-size: 1.1rem;
	outline: none;
	background: rgba(15, 23, 42, 0.7);
	color: var(--light);
}

.newsletter-form input::placeholder {
	color: #aab8ff;
}

.newsletter-form button {
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 50px;
	padding: 0 40px;
	font-weight: 600;
	font-size: 1.1rem;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.newsletter-form button:hover {
	background: #6d1cb1;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Footer */
footer {
	background: var(--primary);
	color: white;
	padding: 100px 0 30px;
	position: relative;
	border-top: 1px solid rgba(126, 34, 206, 0.2);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 50px;
	margin-bottom: 70px;
}

.footer-column h3 {
	font-size: 1.4rem;
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 15px;
	color: var(--light);
}

.footer-column h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 15px;
}

.footer-links a {
	color: #aab8ff;
	text-decoration: none;
	transition: var(--transition);
	display: inline-block;
}

.footer-links a:hover {
	color: var(--accent-light);
	transform: translateX(5px);
}

.contact-list {
	list-style: none;
}

.contact-list li {
	margin-bottom: 15px;
}

.contact-list a {
	color: #aab8ff;
	text-decoration: none;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.contact-list a:hover {
	color: var(--accent-light);
	transform: translateX(5px);
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 25px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: rgba(30, 41, 59, 0.5);
	border-radius: 50%;
	color: var(--light);
	transition: var(--transition);
	font-size: 1.2rem;
}

.social-links a:hover {
	background: var(--accent);
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(126, 34, 206, 0.2);
	color: #aab8ff;
	font-size: 1rem;
}

/* Product Page Styles */
:root {
    --comment-bg: rgba(30, 41, 59, 0.8);
    --single-comment-bg: rgba(15, 23, 42, 0.7);
    --gradient-line: linear-gradient(to right, var(--accent), #e3342f);
}

/* Main Content Wrapper - FIXED TOP MARGIN */
.main-content {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto 40px; /* Reduced from 120px to 60px */
    padding: 0 30px;
    flex-wrap: wrap;
}

/* Product Section Container */
.product-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 40px;
    flex: 1 1 100%;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.product-image-container {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-details {
    flex: 1 1 300px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.product-underline {
    width: 200px;
    height: 6px;
    margin-bottom: 20px;
    border-radius: 3px;
    background: var(--gradient-line);
}

.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-original {
    font-size: 1.5rem;
    color: #e0e7ff;
    text-decoration: line-through;
}

.product-discount {
    font-size: 2.5rem;
    color: var(--accent-light);
    font-weight: 700;
}

.product-description {
    font-size: 1rem;
    color: #c2cbff;
    line-height: 1.6;
    margin-bottom: 30px;
}

.marketplace-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.marketplace-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.marketplace-btn i {
    font-size: 1.2rem;
}

.marketplace-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* Comments Section Container */
.comments-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 1400px;
    margin: 60px auto;
    width: calc(100% - 60px);
}

.comments-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.comments-underline {
    width: 200px;
    height: 6px;
    margin: 0 auto 20px;
    border-radius: 3px;
    background: var(--gradient-line);
}

.comments-desc {
    text-align: center;
    font-size: 1rem;
    color: #c2cbff;
    margin-bottom: 40px;
}

.comment-item {
    background: var(--single-comment-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-avatar {
    flex-shrink: 0;
    font-size: 2rem;
    color: #aab8ff;
    align-self: flex-start;
}

.comment-content {
    flex: 1;
}

.comment-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 5px;
}

.comment-rating {
    color: #f5c518;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 1rem;
    color: #c2cbff;
    line-height: 1.6;
}

/* Fallback Page Styles */
.fallback-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px auto 40px; /* Reduced top margin */
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fallback-icon {
    font-size: 4rem;
    color: var(--accent-light);
    margin-bottom: 30px;
}

.fallback-container h1 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 20px;
}

.fallback-underline {
    width: 200px;
    height: 6px;
    background: var(--gradient-line);
    margin: 0 auto 30px;
    border-radius: 3px;
}

.fallback-container p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.fallback-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.fallback-buttons .nav-btn {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.fallback-buttons .nav-btn:hover {
    transform: translateY(-3px);
}

/* STICKY SEARCH BAR */
.sticky-search-container {
    position: sticky;
    top: 100px; /* Below the navbar */
    z-index: 999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.3);
    padding: 20px 0;
    transition: var(--transition);
    margin-bottom: 40px;
}

.sticky-search-container.sticky-bottom {
    position: fixed;
    bottom: 0;
    top: auto;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(126, 34, 206, 0.3);
    border-bottom: none;
}

.search-container {
    background: var(--comment-bg);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(126, 34, 206, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    background: rgba(15, 23, 42, 0.7);
    color: var(--light);
}

.search-input::placeholder {
    color: #aab8ff;
}

.search-button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.search-button:hover {
    background: #6d1cb1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(126, 34, 206, 0.5);
}

/* Product Not Found Container - FIXED */
.product-not-found {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto; /* Reduced margin */
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.not-found-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 2rem;
    flex-shrink: 0;
}

.not-found-text {
    flex: 1;
    text-align: left;
}

.not-found-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.not-found-text p {
    color: var(--text);
    margin: 0;
    font-size: 1rem;
}

/* Available Products Section - FIXED & CENTERED */
.available-products {
    margin-top: 40px; /* Reduced margin */
    padding: 0 20px;
}

.available-products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.products-underline {
    width: 200px;
    height: 6px;
    background: var(--gradient-line);
    margin: 0 auto 40px;
    border-radius: 3px;
}

/* SORTING UI */
.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Desktop Sorting */
.sorting-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 140px;
}

.sorting-button {
    background: var(--comment-bg);
    border: none;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sorting-button:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.sorting-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sorting-text {
    text-align: left;
    flex: 1;
}

.sorting-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.sorting-text p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
}

.sorting-dropdown {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
}

.sorting-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sorting-option {
    background: none;
    border: none;
    color: var(--text);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.sorting-option:hover {
    background: rgba(126, 34, 206, 0.1);
    color: var(--light);
}

.sorting-option.active {
    background: rgba(126, 34, 206, 0.2);
    color: var(--accent-light);
    font-weight: 600;
}

.sorting-option i {
    width: 20px;
    text-align: center;
}

/* Mobile Sorting */
.mobile-sorting {
    display: none;
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-sorting-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.mobile-sorting-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mobile-sorting-text h3 {
    color: var(--light);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.mobile-sorting-text p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
}

.mobile-sorting-dropdown {
    margin-top: 15px;
    display: none;
}

.mobile-sorting-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.products-grid-container {
    flex: 1;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 0;
}

/* CLICKABLE PRODUCT CARDS */
.product-card {
    background: var(--comment-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    flex: 0 1 300px;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--light);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-card p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-card .product-price {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Search relevance styling */
.product-card.relevance-high {
    order: 1;
}

.product-card.relevance-medium {
    order: 2;
}

.product-card.relevance-low {
    order: 3;
}

.product-card.relevance-none {
    order: 4;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-slider {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    nav ul {
        gap: 10px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

/* Tablet and Small Desktop Breakpoint */
@media (max-width: 950px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav ul {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-margin: 10px;
    }

    .hero {
        padding: 40px 0 80px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .sub-buttons {
        flex-direction: column;
    }

    .hero-buttons .sub-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn, .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-slider {
        height: 400px;
    }

    .promotion-banner {
        height: 150px;
    }

    .promo-section {
        flex-direction: column;
        align-items: center;
    }

    .promo-link {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .promo-container {
        flex-direction: column;
        text-align: center;
    }

    .promo-image {
        width: 100%;
        min-height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 20px;
    }

    .newsletter-form button {
        padding: 18px;
    }

    .newsletter-container {
        flex-direction: column;
    }

    .newsletter-banner {
        display: none;
    }

    /* Product Page Mobile Styles */
    .main-content {
        flex-direction: column;
        gap: 30px;
        margin: 80px auto 40px; /* Adjusted for mobile */
        padding: 0 20px;
    }

    .product-container {
        flex: 1 1 100%;
        padding: 30px 20px;
    }

    .marketplace-buttons {
        justify-content: center;
    }

    .comments-container {
        padding: 30px 20px;
        margin: 40px 20px;
        width: calc(100% - 40px);
    }

    .comment-item {
        padding: 15px;
    }

    /* Fallback Page Mobile Styles */
    .fallback-container {
        margin: 30px 20px 30px; /* Reduced top margin */
        padding: 40px 20px;
    }
    
    .fallback-container h1 {
        font-size: 2rem;
    }
    
    .fallback-container p {
        font-size: 1.1rem;
    }
    
    .fallback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .fallback-buttons .nav-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .available-products h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    /* Search Bar Mobile */
    .search-container {
        padding: 20px;
        margin: 0 20px 30px;
    }

    .search-form {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
    }

    .search-button {
        padding: 15px;
        width: 100%;
    }

    /* Product Not Found Mobile */
    .product-not-found {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin: 20px;
    }

    .not-found-image {
        margin-bottom: 15px;
    }

    .not-found-text {
        text-align: center;
    }

    /* Sorting Mobile */
    .products-layout {
        flex-direction: column;
    }

    .sorting-sidebar {
        display: none;
    }

    .mobile-sorting {
        display: block;
    }

    .sticky-search-container {
        top: 80px; /* Adjusted for mobile */
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide h3 {
        font-size: 1.2rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    .promotion-banner {
        height: 120px;
    }

    .promo-details h3 {
        font-size: 1.5rem;
    }

    .promo-details p {
        font-size: 0.9rem;
    }

    .promo-cart-btn {
        width: 100%;
        text-align: center;
    }

    .gallery-collage {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    /* Product Page Mobile Small */
    .product-details h1 {
        font-size: 2rem;
    }

    .product-discount {
        font-size: 2rem;
    }

    .marketplace-buttons {
        flex-direction: column;
        align-items: center;
    }

    .marketplace-btn {
        width: 100%;
        justify-content: center;
    }

    .comments-container {
        margin: 40px 15px;
        width: calc(100% - 30px);
        padding: 20px 15px;
    }

    /* Fallback Page Mobile Small */
    .fallback-container {
        margin: 20px 15px 20px; /* Further reduced top margin */
        padding: 30px 15px;
    }
    
    .fallback-container h1 {
        font-size: 1.8rem;
    }
    
    .available-products h2 {
        font-size: 1.8rem;
    }

    /* Sticky Search Mobile */
    .sticky-search-container {
        padding: 15px 0;
    }

    .search-container {
        padding: 20px;
    }
}

/* Fix for the in-between breakpoint (850px - 1100px) */
@media (min-width: 851px) and (max-width: 1100px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    
    nav ul li:last-child {
        margin-top: 5px;
        flex-basis: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}


    
    
    
    
    
    
    
    
    
    
    
    