:root {
    --bg-white: #EBEBEB;
    --text-navy: #0a192f;
    --text-navy-light: #172a45;
    --card-yellow: #ffeda8;
    --card-yellow-hover: #efe9d4;
    --accent-blue: #0000cd;
    --light-gray: #f4f6f8;
    --card-bg: #ffeda8;
    --btn-text-primary: #0a192f;
    --theme-header-bg: #10367D;
    --theme-header-text: #ffeda8;
    --input-bg: #f4f6f8;
    --modal-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-white: #0a192f;
    --text-navy: #ccd6f6;
    --text-navy-light: #8892b0;
    --card-yellow: #112240;
    --card-yellow-hover: #1d2d50;
    --accent-blue: #64ffda;
    --light-gray: #112240;
    --card-bg: #112240;
    --btn-text-primary: #64ffda;
    --theme-header-bg: #020c1b;
    --theme-header-text: #64ffda;
    --input-bg: #172a45;
    --modal-bg: #172a45;
}

[data-theme="dark"] .email-link {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    /* Golden Gradient */
}

[data-theme="dark"] .location-link {
    background: linear-gradient(45deg, #28a745, #155724);
    /* Green Gradient */
    background-size: 200% auto;
}

[data-theme="dark"] .filter-dropdown {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccd6f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

html {
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-navy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--card-yellow);
}

/* General Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-navy);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
header {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    max-height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.search-wrapper {
    flex-grow: 1;
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.search-wrapper input {
    flex-grow: 1;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border: none;
    outline: none;
    background: transparent;
    color: #0a192f;
}

.search-btn {
    padding: 0 1.2rem;
    background: var(--card-yellow);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.search-btn i {
    color: var(--text-navy);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--card-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--card-yellow);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--theme-header-text) !important;
    color: var(--theme-header-text) !important;
    box-shadow: none !important;
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--theme-header-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wishlist-badge {
    background: #ff4d4d;
}

.cart-badge {
    background: #28a745;
}

.login-btn,
.dashboard-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.logged-in-controls {
    display: none;
    gap: 0.5rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--theme-header-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.categories-bar {
    background: var(--text-navy-light);
    padding: 10px 3%;
}

.categories-bar .filter-controls-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.categories-bar .filter-dropdown {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Outstanding Admin Button --- */
.auth-btn {
    background-color: var(--card-yellow);
    color: var(--btn-text-primary);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    /* Keeps the shine effect contained inside the button */
    z-index: 1;
    /* Keeps the text on top */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 234, 0, 0.3);
}

/* The Glossy Shine Beam */
.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    /* Angles the beam of light */
    z-index: -1;
    /* Puts the beam behind the text */
    transition: left 0.6s ease;
}

/* Triggers the sweep animation on hover */
.auth-btn:hover::before {
    left: 200%;
}

.auth-btn:hover {
    background-color: var(--card-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 234, 0, 0.5);
}

/* The Tactile Click (Pushes into the screen) */
.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(255, 234, 0, 0.4);
}

/* Keep the Logout button distinct */
.logout-btn {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

.logout-btn:hover {
    background-color: #cc0000;
    box-shadow: 0 6px 15px rgba(204, 0, 0, 0.5);
}

/* Main Content Area */
main {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 5%;
    min-height: 60vh;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.main-hero {
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    /* Full bleed breakout */
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
}

.hero-carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray); /* Placeholder color to reduce CLS/flash */
    position: relative;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 47, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-arrow:hover {
    background: var(--card-yellow);
    color: var(--text-navy);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 15px;
}

.hero-next {
    right: 15px;
}

.announcement-bar {
    background-color: var(--card-yellow);
    color: var(--text-navy);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 234, 0, 0.3);
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    min-width: 100%;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-navy);
}


/* Category Filters */
.filter-dropdown {
    width: 100%;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-navy);
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--card-yellow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a192f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.9em;
}

.filter-dropdown:hover {
    background-color: var(--card-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 234, 0, 0.3);
}

.filter-dropdown:focus {
    border-color: var(--accent-blue);
    background-color: var(--card-yellow-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 205, 0.2);
}



/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    contain: layout style paint;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

header {
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mainHero {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.2s forwards;
}

/* Off-screen sections: skip rendering until needed */
#aboutView,
#contactView {
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Image Carousel Container */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--text-navy);
}

.image-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 100%;
    width: 100%;
}

.image-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-img {
    flex: 0 0 100%;
    scroll-snap-align: center;
    object-fit: cover;
    /* Make image acquire the whole space */
    width: 100%;
    height: 100%;
    padding: 0;
    /* Removed padding */
}

/* Nav Buttons inside Carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 47, 0.75);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hides arrows normally */
}

/* Show arrows ONLY when mouse is over the image */
.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--card-yellow);
    color: var(--text-navy);
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-navy);
}


.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Stock Badges */
.stock-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.in-stock {
    background-color: #155724;
    color: #d4edda;
}

.out-of-stock {
    background-color: #721c24;
    color: #f8d7da;
}

/* Contact Social Buttons */
.contact-buttons-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 128, 0.05);
    text-align: center;
}

/* Base Button Styling */
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Space between icon and text */
    padding: 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-white);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smooth snapping animation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Keeps the text from spilling out when it shrinks */
}

/* The Text Setup */
.contact-link span {
    transition: all 0.4s ease;
    white-space: nowrap;
    /* Prevents text from wrapping to a new line */
    max-width: 300px;
    opacity: 1;
}

/* The Icon Setup */
.contact-link i {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

/* --- THE HOVER MAGIC --- */
/* 1. Remove the gap so the icon centers perfectly */
.contact-link:hover {
    gap: 0;
}

/* 2. Shrink and fade the text into nothing */
.contact-link:hover span {
    max-width: 0;
    opacity: 0;
}

/* 3. Blow up the icon so it takes over the button */
.contact-link:hover i {
    transform: scale(1.8);
}

.whatsapp-link {
    background-color: #25D366;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.insta-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.insta-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
    filter: brightness(1.1);
}

.email-link {
    background-color: var(--text-navy);
}

.email-link:hover {
    background-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 128, 0.3);
}

.location-link {
    background: linear-gradient(45deg, var(--text-navy) 0%, var(--accent-blue) 100%);
    background-size: 200% auto;
    transition: all 0.4s ease;
}

.location-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 128, 0.4);
    background-position: right center;
    filter: brightness(1.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--input-bg);
    color: var(--text-navy);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--modal-bg);
    color: var(--text-navy);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-navy);
    transition: color 0.3s;
}

.close-btn:hover {
    color: red;
}

.whatsapp-buy-btn {
    background-color: var(--text-navy);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.2);
}

.whatsapp-buy-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.4);
    color: white;
}


/* Footer */
footer {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    transition: color 0.3s ease;
}

footer:hover,
footer p:hover {
    color: var(--text-navy);
}

/* Mobile Responsiveness */
@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }
}

/* Reduce all animations on mobile for performance */
@media (max-width: 768px) {
    /* Disable per-card stagger animation on mobile - renders all at once */
    .product-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Disable header entrance animation on mobile */
    header {
        animation: none !important;
    }

    /* Disable hero scale animation on mobile */
    #mainHero {
        animation: none !important;
        opacity: 1 !important;
    }

    /* Keep card hover effects minimal on touch devices */
    .product-card:hover {
        transform: none;
    }

    /* Hide wishlist overlay until hover - no opacity transition needed */
    .card-actions {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .navbar-main {
        height: auto;
        padding: 10px 3%;
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .logo-img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        filter: brightness(1.2);
    }

    .search-wrapper {
        display: flex;
        order: 3;
        width: 100%;
        max-width: none;
    }

    .nav-actions {
        order: 2;
        flex-grow: 1;
        justify-content: flex-end;
        gap: 0.1rem;
    }

    .nav-icons {
        gap: 0.1rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.8rem;
        border: none !important;
        background: transparent !important;
    }

    .login-btn,
    .dashboard-btn {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 0.3rem;
        font-size: 1.3rem;
    }

    /* Mobile Menu Drawer Styles */
    .nav-actions.mobile-open {
        position: fixed;
        top: 155px; /* Adjust based on 2-row header + categories */
        left: 0;
        width: 100%;
        background: var(--theme-header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        z-index: 1001;
        max-height: calc(100vh - 155px);
        overflow-y: auto;
    }

    .nav-actions.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-actions.mobile-open .search-wrapper {
        display: none; /* Hide since it's now always visible in header */
    }

    .nav-actions.mobile-open .login-btn,
    .nav-actions.mobile-open .dashboard-btn,
    .nav-actions.mobile-open .logout-btn {
        display: block !important;
        width: 100%;
        margin-top: 1rem;
    }

    .categories-bar {
        padding: 8px 3%;
        background: var(--text-navy-light);
    }

    .categories-bar .filter-controls-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .categories-bar .filter-dropdown {
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        background-position: right 0.4rem center;
    }

    .announcement-bar {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .main-hero {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem 3%;
    }

    .modal-content {
        padding: 1.5rem;
        width: 92%;
    }
}

@media (max-width: 480px) {
    .navbar-main {
        gap: 0.5rem;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .nav-actions.mobile-open {
        top: 135px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-arrow {
        width: 30px;
        height: 30px;
    }
}

/* --- Wishlist & Cart Styles --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-drawer {
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: var(--admin-card-bg);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.cart-item-info {
    flex: 1;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--text-navy-light);
    background: transparent;
    color: var(--text-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.qty-btn:hover {
    background: var(--text-navy);
    color: white;
}

/* Star Buttons for Reviews */
.star-btn:hover,
.star-btn.active {
    color: #ffca08 !important;
}

.review-item {
    padding: 1.2rem;
    background: var(--bg-white);
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
}

/* Wishlist Button on Cards */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.product-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.card-action-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #0a192f;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.card-action-btn:hover {
    transform: scale(1.1);
    background: var(--card-yellow);
}

.card-action-btn.wishlist-active {
    color: #ff4d4d;
}

/* --- Custom Alert Animations --- */
#customAlertModal .modal-content {
    animation: alertBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#customAlertIcon i {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* --- Skeleton Loader for Product Grid --- */
.skeleton-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: skeleton-shimmer 1.4s infinite ease-in-out;
}

@keyframes skeleton-shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* Discount pill badge */
.discount-pill {
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
}

/* Tag badge on product images */
.tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
}

/* Cart add button (smaller icon-only variant) */
.cart-add-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0.8rem 1rem;
}