/* General Styles */
:root {
    --primary-color: #0274be;
    --primary-dark: #0056b3;
    --secondary-color: #f7fafc;
    --text-color: #1a202c;
    --text-muted: #4a5568;
    --heading-color: #1a202c;
    --light-gray: #e2e8f0;
    --medium-gray: #718096;
    --dark-gray: #2d3748;
    --footer-bg: #1a202c;
    --footer-text: #a0aec0;
    --link-hover-color: #0056b3;
    --border-color: #e2e8f0;
    --box-shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
    margin: 0 0 var(--spacing-sm) 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-height: 48px;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 116, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 116, 190, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 10px 0;
    border-bottom: none;
    box-shadow: none;
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.logo {
    order: 1;
    margin-right: 20px;
}

.logo img {
    max-height: 40px;
    max-width: 40px;
}

.e-search {
    order: 2;
    flex-grow: 1;
    margin: 0;
}

.e-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff;
    border-radius: 25px;
    padding: 5px 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

.e-search-input {
    border: none;
    outline: none;
    padding: 8px 40px 8px 40px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--text-color);
}

.e-search-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.e-search-label .e-font-icon-svg {
    width: 20px;
    height: 20px;
    fill: #777777; /* Darker color for the search icon */
    margin-right: 0; /* No margin needed here */
}

.header-right-icons {
    order: 3; /* Icons last */
    display: flex;
    align-items: center;
    gap: 20px; /* Space between icons */
    margin-left: 20px; /* Space between search and icons */
}

.header-right-icons .fas {
    font-size: 24px; /* Set font size for Font Awesome icons */
    color: #FFFFFF; /* Set color for Font Awesome icons */
    cursor: pointer;
}

.main-menu-container {
    background-color: #0274be; /* Keep the same blue background */
    padding: 5px 0; /* Reduced padding */
    border-top: none; /* No border */
}

.main-nav {
    margin-top: 5px;
    flex-grow: 1;
    text-align: center;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin: 0 15px; /* Adjusted spacing for menu items */
    position: relative; /* For submenu positioning */
}

.main-nav a {
    text-decoration: none;
    color: #FFFFFF; /* White text for menu items */
    font-weight: 500; /* Lighter weight */
    font-size: 14px; /* Slightly smaller font */
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8); /* Subtle hover effect */
}

/* Submenu Styles */
.main-nav .submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: var(--box-shadow-medium);
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    z-index: 1000;
    left: 0;
    top: 100%;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav ul li:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .submenu li {
    display: block;
    margin: 0;
}

.main-nav .submenu a {
    padding: 10px 20px;
    text-align: left;
    white-space: nowrap;
    font-weight: 400;
    color: var(--text-color);
    font-size: 14px;
}

.main-nav .submenu a:hover {
    background-color: var(--secondary-color);
}



/* Mobile Navigation */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #FFFFFF;
    margin-left: 25px;
}

.mobile-nav {
    display: none;
    background-color: #f8f8f8;
    border-top: none;
    padding: 10px 0;
    text-align: center;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 10px;
}

.mobile-nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 17px;
    display: block;
    padding: 12px;
}

.mobile-nav a:hover {
    background-color: var(--light-gray);
}

/* Nested mobile submenu */
.mobile-nav .submenu {
    list-style: none;
    padding-left: 25px;
    margin-top: 8px;
}

.mobile-nav .submenu li {
    margin-bottom: 8px;
}

.mobile-nav .submenu a {
    font-size: 15px;
    padding: 8px 15px;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.4em;
    font-weight: 300;
}

/* Products Section (General) */
.products, .yugioh, .singles {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid var(--light-gray);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    padding-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-medium);
}

.product-card img {
    width: 100%; /* Ensure image takes full width of its container */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
    border-bottom: 1px solid var(--light-gray);
}

.product-card h2, .product-card h3 {
    font-size: 1.3em;
    margin: 25px 0 12px;
    font-weight: 600;
    color: var(--heading-color);
}

.product-card p {
    font-size: 15px;
    color: var(--medium-gray);
    padding: 0 25px;
}

.product-card .price {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

.product-card .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.product-card .btn:hover {
    background-color: var(--link-hover-color);
}

/* About Us Section */
.about-us {
    padding: 80px 0;
}

.about-us h2 {
    font-size: 2.8em;
    margin-bottom: 35px;
    text-align: center;
    color: var(--heading-color);
}

.about-us h3 {
    font-size: 2em;
    margin-top: 45px;
    margin-bottom: 18px;
    color: var(--dark-gray);
}

.about-us p {
    font-size: 17px;
    margin-bottom: 22px;
    color: var(--medium-gray);
}

/* Most Sold Section */
.most-sold {
    padding: 40px 0;
    background-color: var(--secondary-color);
}

.most-sold h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--heading-color);
}

.most-sold .product-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.most-sold .product-grid::-webkit-scrollbar {
    height: 6px;
}

.most-sold .product-grid::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.most-sold .product-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.most-sold .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    margin: 0;
    padding: 15px;
}

.most-sold .product-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.most-sold .product-card h3 {
    font-size: 1em;
    margin: 10px 0 5px;
}

/* Most Recent Section */
.most-recent {
    padding: 40px 0;
    background-color: #fff;
}

.most-recent h2 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--heading-color);
}

.most-recent .product-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.most-recent .product-grid::-webkit-scrollbar {
    height: 6px;
}

.most-recent .product-grid::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.most-recent .product-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.most-recent .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    margin: 0;
    padding: 15px;
}

.most-recent .product-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.most-recent .product-card h3 {
    font-size: 1em;
    margin: 10px 0 5px;
}

/* Product Card Additional Elements */
.product-card .game-name {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 8px 0 4px;
    text-transform: uppercase;
}

.product-card .expansion {
    font-size: 13px;
    color: var(--medium-gray);
    margin: 4px 0;
}

.product-card .sold-count {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    margin: 8px 0 0;
}

.product-card .date-added {
    font-size: 12px;
    color: var(--medium-gray);
    margin: 8px 0 0;
}

/* Compact styling for most sold and most recent sections */
.most-sold .product-card .game-name,
.most-recent .product-card .game-name {
    font-size: 12px;
    margin: 5px 0 2px;
}

.most-sold .product-card .expansion,
.most-recent .product-card .expansion {
    font-size: 11px;
    margin: 2px 0;
}

.most-sold .product-card .sold-count,
.most-recent .product-card .date-added {
    font-size: 10px;
    margin: 5px 0 0;
}

.most-sold .product-card .price,
.most-recent .product-card .price {
    font-size: 14px;
    margin: 5px 0;
}

/* Contact Us Section */
.contact-us {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact-us h2 {
    font-size: 2.8em;
    margin-bottom: 35px;
    text-align: center;
    color: var(--heading-color);
}

.contact-us form {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border: 1px solid var(--light-gray);
    box-shadow: var(--box-shadow-medium);
    border-radius: 8px;
}

.contact-us .form-group {
    margin-bottom: 25px;
}

.contact-us label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 15px;
}

.contact-us input[type="text"],
.contact-us input[type="email"],
.contact-us textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-us input[type="text"]:focus,
.contact-us input[type="email"]:focus,
.contact-us textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-us textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-us button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    font-size: 19px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-us button:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
}

/* Yu-Gi-Oh! and Singles Sections Specifics */
.yugioh h2, .singles h2 {
    font-size: 2.8em;
    margin-bottom: 35px;
    text-align: center;
    color: var(--heading-color);
}

.yugioh p, .singles p {
    font-size: 17px;
    margin-bottom: 45px;
    text-align: center;
    color: var(--medium-gray);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 60px 0 25px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
    min-width: 220px;
    margin-bottom: 25px;
}

.footer-column h3 {
    font-size: 17px;
    margin-bottom: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    text-decoration: none;
    color: var(--footer-text);
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column form {
    display: flex;
    flex-direction: column;
}

.footer-column input[type="email"] {
    padding: 12px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-column button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-column button:hover {
    background-color: var(--link-hover-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 25px;
    font-size: 13px;
    color: var(--footer-text);
}

/* --- Submenu (Singles) Enhanced UI --- */
.submenu-hero {
	background: linear-gradient(135deg, rgba(2,116,190,0.12), rgba(0,86,179,0.12));
	padding: var(--spacing-lg) 0;
	border-bottom: 1px solid var(--light-gray);
}

.submenu-hero .subtitle {
	color: var(--text-muted);
	max-width: 900px;
	margin: 0 auto;
}

.set-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: var(--spacing-sm) 0 var(--spacing-md);
}

.set-chip {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid var(--light-gray);
	color: var(--text-color);
	font-size: 14px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.set-chip:hover {
	transform: translateY(-1px);
	border-color: var(--primary-color);
	box-shadow: var(--box-shadow-light);
}

.marketplace-section {
	padding: var(--spacing-lg) 0;
	background: #fff;
}

.marketplace {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
}

.marketplace-sidebar {
	background: #fff;
	border: 1px solid var(--light-gray);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-light);
	padding: 16px;
	position: sticky;
	top: 90px;
}

.filters-title {
	font-weight: 700;
	margin-bottom: 12px;
}

.filters-group {
	margin-bottom: 16px;
}

.filters-group h4 {
	font-size: 14px;
	margin: 0 0 8px 0;
	color: var(--text-muted);
}

.filters-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0;
	font-size: 14px;
}

.filters-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.link-clear {
	text-align: center;
	color: var(--primary-color);
	font-size: 14px;
}

.marketplace-content {}

.sort-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.sort-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.select {
	padding: 8px 10px;
	border: 1px solid var(--light-gray);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}

.listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.listing-card {
	background: #fff;
	border: 1px solid var(--light-gray);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-light);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--box-shadow-medium);
}

.listing-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: #f3f4f6;
}

.listing-body {
	padding: 14px;
}

.listing-title {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 6px;
}

.listing-meta {
	color: var(--text-muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.price {
	color: var(--primary-color);
	font-weight: 700;
	font-size: 18px;
}

.badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 9999px;
	background: var(--secondary-color);
	border: 1px solid var(--light-gray);
	font-size: 12px;
	color: var(--text-muted);
}

.seller-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.rating {
	color: #f5b50a;
	font-weight: 600;
}

.card-actions {
	display: flex;
	gap: 8px;
}

.btn-small {
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.marketplace {
		grid-template-columns: 1fr;
	}
	.marketplace-sidebar {
		position: static;
		top: auto;
	}
}
/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .main-nav ul li {
        margin: 0 10px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.3em;
    }

    .product-card h2, .product-card h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: block;
    }

    header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo, .header-icons, .mobile-menu-icon {
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 2em;
    }

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

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        padding: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .contact-us form {
        padding: 25px;
    }

    .about-us h2, .contact-us h2, .yugioh h2, .singles h2 {
        font-size: 2.2em;
    }

    .about-us h3 {
        font-size: 1.6em;
    }
}

/* Search Box Styles */
.e-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 20px;
}

.e-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff; /* White background for the search bar */
    border-radius: 25px; /* Rounded corners */
    padding: 5px 15px; /* Padding inside the search bar */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Subtle inner shadow */
    border: none; /* Remove border from search form */
}

.e-search-input {
    border: none;
    outline: none;
    padding: 8px 40px 8px 40px; /* Adjusted padding for search icon on left and clear icon on right */
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent; /* Transparent background to show the form's white background */
    color: var(--text-color);
}

.e-search-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: absolute; /* Position the search icon inside the input */
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.e-search-label .e-font-icon-svg {
    width: 20px;
    height: 20px;
    fill: #777777; /* Darker color for the search icon */
    margin-right: 0; /* No margin needed here */
}

.e-search-input::placeholder {
    color: var(--medium-gray);
}

.e-search-submit {
    display: none; /* Hidden by default, as the icon acts as the submit */
}

.e-fas-times {
    position: absolute;
    right: 15px; /* Position the clear icon inside the input */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #777777; /* Darker color for the clear icon */
    cursor: pointer;
    z-index: 1;
}

.e-search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--box-shadow-medium);
    z-index: 1001;
    display: none; /* Hidden by default */
    border-radius: 0 0 8px 8px; /* Rounded bottom corners */
}

.e-search-results {
    padding: 10px;
}

.elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Remove white borders from the top header */
header, .main-menu-container {
    border: none !important;
}

.e-search-form {
    border: none; /* Remove border from search form */
    box-shadow: none; /* Remove shadow from search form */
}

.e-search-input {
    border: none; /* Remove border from search input */
}

.e-search-results-container {
    border: none; /* Remove border from search results container */
    box-shadow: none; /* Remove shadow from search results container */
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}

#back-to-top:hover {
    background-color: var(--link-hover-color);
}

/* User Dropdown Styles */
.user-icon.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 0.9em;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-icon.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #dc3545;
    cursor: pointer;
    font-size: inherit;
}

.logout-btn:hover {
    color: #c82333;
}

/* Cart Icon and Badge Styles */
.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.cart-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: cartBadgePulse 0.6s ease-in-out;
}

@keyframes cartBadgePulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.cart-badge.highlight {
    animation: cartBadgeHighlight 0.8s ease-in-out;
}

@keyframes cartBadgeHighlight {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Authentication Form Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-google {
    width: 100%;
    padding: 12px 24px;
    background: white;
    color: #333;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-google:hover {
    border-color: #4285f4;
    background-color: #f8f9fa;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider-text {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .dropdown-menu {
        right: -50px;
        min-width: 180px;
    }
}
