/* Design System */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    --primary: #A28D7A; /* Exact matches logo background */
    --primary-dark: #8c7868;
    --secondary: #e2c299; /* Gold from logo */
    --accent: #d4af37; /* Gold detail */
    --text-dark: #2c2c2c;
    --text-muted: #666666;
    --bg-light: #f5eee6; /* Cream from logo */
    --bg-white: #ffffff;
    --border-color: #e0d7cf;
    --success: #27ae60;
    --error: #e74c3c;
    
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #ffffff;
    background-image: 
        /* Vertical deep scratches (shadows) */
        repeating-linear-gradient(90deg, rgba(162, 141, 122, 0.08) 0, rgba(162, 141, 122, 0.08) 1.5px, transparent 1.5px, transparent 60px),
        /* Vertical highlights (depth) */
        repeating-linear-gradient(90deg, transparent 0, transparent 1.5px, rgba(255, 255, 255, 0.8) 1.5px, rgba(255, 255, 255, 0.8) 3px, transparent 3px, transparent 60px),
        /* Fine secondary scratches */
        repeating-linear-gradient(90deg, rgba(162, 141, 122, 0.04) 0, rgba(162, 141, 122, 0.04) 1px, transparent 1px, transparent 25px),
        /* Subtle horizontal texture */
        repeating-linear-gradient(0deg, rgba(162, 141, 122, 0.02) 0, rgba(162, 141, 122, 0.02) 1px, transparent 1px, transparent 35px);
    background-size: 100% 100%;
    background-position: 0 0, 1px 0, 15px 0, 0 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .subtitle {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 21, 75, 0.3);
}

.btn-dark {
    background-color: var(--text-dark);
    color: white;
}

.btn-dark:hover {
    background-color: #333;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.top-bar a {
    color: var(--secondary);
    font-weight: 700;
    margin-left: 5px;
    text-decoration: underline;
}

/* Header */
#main-header {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--bg-white);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--bg-white);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        margin-right: 15px;
    }
    .desktop-only {
        display: none !important;
    }
}

.logo img {
    height: 100px;
    display: block;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.05);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar input:focus {
    background-color: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    border-color: var(--bg-white);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--bg-white);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.action-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.action-item:hover {
    color: var(--secondary);
}

.cart-btn {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.cart-btn:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
    align-items: center;
}

.mini-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-item-info {
    flex: 1;
}

.mini-item-info h5 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-dark);
}

.mini-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0;
}

.mini-cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--primary);
}

.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: var(--error);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Navigation */
.main-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
}

/* Ensure container inside nav is positioned for absolute children */
/* Ensure container inside nav is positioned for absolute children */
.main-nav .container {
    position: relative;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 15px 0;
    display: inline-block;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.main-nav a.highlight {
    color: var(--error);
}

.main-nav a i {
    font-size: 0.7rem;
    margin-left: 3px;
    vertical-align: middle;
}

/* Mega Menu */
.has-mega-menu {
    position: static; /* Allows mega menu to align with container */
    z-index: 1000; /* Keep on top */
}

/* Show mega menu on hover with smooth animation */
.has-mega-menu:hover .mega-menu,
.has-mega-menu .mega-menu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px; /* keep max width */
}

/* Promo column should span two columns on larger screens */
.promo-col {
    grid-column: span 2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .promo-col {
        grid-column: span 2; /* full width on tablet */
    }
}

@media (max-width: 768px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
    .promo-col {
        grid-column: span 1; /* stack on mobile */
    }
}

.mega-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--primary);
    display: inline-block;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* add breathing room */
}

.mega-col ul li a {
    display: block;
    padding: 10px 8px;
    text-transform: none;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

.mega-col ul li a:hover {
    background-color: rgba(0,0,0,0.04);
    color: var(--primary);
    padding-left: 8px;
}

    .promo-col {
        grid-column: span 2; /* make promo card occupy two columns */
    }
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 30px;
        row-gap: 30px;
    }

.promo-col .promo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px; /* larger image area */
    height: 100%;
    /* Use a subtle gradient overlay via pseudo-element */
}

/* Gradient overlay for promo card */
.promo-col .promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Ensure image appears above overlay */
.promo-col img {
    position: relative;
    z-index: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-col .promo-card:hover img {
    transform: scale(1.05);
}

.promo-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.promo-info p {
    font-weight: 700;
    margin-bottom: 10px;
}

/* Hero Section */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
    color: white;
}

.hero-text .subtitle {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.hero-text h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-item i {
    font-size: 2rem;
    color: var(--primary);
}

.badge-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.badge-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Categories */
.categories {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.view-all {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.category-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.btn-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
}

/* Product Cards */
.products {
    padding: 0 0 80px 0;
}

.product-grid.carousel-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.product-grid.carousel-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.product-grid.carousel-grid .product-card {
    flex: 0 0 280px; /* Desktop width */
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .product-grid.carousel-grid .product-card {
        flex: 0 0 80%; /* Mobile width */
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    z-index: 1;
}

.product-badge.discount {
    background: var(--error);
}

.product-image {
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.9);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-actions button:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px 0;
    text-align: center;
}

.brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    height: 2.4rem;
    overflow: hidden;
}

.rating {
    color: var(--accent);
    font-size: 0.7rem;
    margin-bottom: 15px;
}

.rating span {
    color: var(--text-muted);
    margin-left: 5px;
}

.price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.pix-price {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    font-size: 0.75rem;
}

.btn-add-cart:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: none;
    transform: none;
}

/* Newsletter Section - Redesigned */
.newsletter {
    background: none; /* remove solid gradient */
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white !important;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    padding: 15px 40px; /* Larger padding */
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem; /* Larger font */
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form .btn:hover {
    background: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .newsletter-form .btn {
        width: 100%; /* Full width on mobile */
    }
    .newsletter h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

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

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.brand-col .logo h2 {
    color: var(--secondary);
}

.brand-col p {
    margin: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 20px;
}

.security-badges {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Mobile Adjustments */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: var(--transition-smooth);
    padding: 30px;
    box-shadow: 10px 0 50px rgba(0,0,0,0.2);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

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

.mobile-nav ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin-top: 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
}
/* Mobile Navigation Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Fix scroll */
}

.mobile-nav.active {
    left: 0 !important;
}

.mobile-nav-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-nav ul li ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

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

.mobile-nav ul li .toggle-sub {
    float: right;
    cursor: pointer;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}@media (max-width: 768px) {
    .container {
        padding: 0; /* Let child elements handle padding */
    }

    /* Header Mobile Refinements */
    #main-header {
        padding: 5px 0; /* Discrete header */
    }

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

    .menu-toggle {
        display: block;
        order: 1;
        padding-left: 20px; /* Requested padding */
        font-size: 1.3rem;
        flex: 0 0 50px;
    }

    .logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo img {
        height: 40px !important; /* Smaller logo */
        width: auto;
    }

    .header-actions {
        order: 3;
        padding-right: 20px; /* Requested padding */
        display: flex;
        justify-content: flex-end;
        gap: 15px;
        flex: 0 0 80px;
    }

    .search-bar {
        order: 4;
        flex: 0 0 100%;
        display: flex;
        justify-content: center; /* Center the 80% input */
        margin: 5px 0;
    }

    .search-bar input {
        width: 80% !important; /* Requested width */
        height: 36px !important;
        padding: 0 15px !important;
        font-size: 0.8rem;
    }

    .search-bar button {
        right: 10%; /* Adjust button position for 80% input */
        top: 0 !important; /* Requested top: 0 */
        width: 36px;
        height: 36px;
    }

    /* General Responsive Fixes & Alignment */
    .container {
        padding: 0 15px !important;
    }

    h2, h3 {
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    /* Grid Alignments */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 5px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .category-card {
        height: 250px !important;
    }

    .trust-badges {
        grid-template-columns: 1fr !important;
        padding: 30px 20px !important;
        gap: 20px !important;
    }

    .badge-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    /* Product Page (PDP) Alignment */
    .product-essential {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .product-buy-box {
        align-items: center !important;
        width: 100%;
    }

    .product-gallery {
        width: 100%;
    }

    .buy-actions {
        width: 100%;
        flex-direction: column;
    }

    .qty-selector {
        justify-content: center;
        margin-bottom: 10px;
    }

    /* Cart Page Alignment */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr !important;
        text-align: left;
    }

    .cart-summary {
        width: 100%;
        position: static !important;
    }

    /* Footer Alignment - Back to Left */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .footer-col {
        align-items: flex-start !important;
    }

    .social-links, .payment-methods, .security-badges {
        justify-content: flex-start !important;
    }

    .brand-col .logo {
        justify-content: flex-start !important;
    }
}
