    /* Header Theme Colors: #2f343b (Dark) + #f39321 (Orange) */
    :root {
        --header-brand: #2f343b;
        --header-accent: #f39321;
        --header-brand-light: #3a4149;
        --header-bg: #faf9f7; /* Warm white tone matching homepage */
        --header-border: rgba(0, 0, 0, 0.06);
    }

    /* Override Bootstrap's bg-white with our warm tone */
    header.bg-white {
        background-color: var(--header-bg) !important;
        border-color: var(--header-border) !important;
    }


    .header-brand-color {
        color: var(--header-brand);
    }

    .header-accent-color {
        color: var(--header-accent);
    }

    /* Logo Text - Animated Gradient Style (like homepage hero title) */
    .header-logo-text {
        background: linear-gradient(135deg,
                #2f343b 0%,
                rgba(47, 52, 59, 0.9) 25%,
                #f39321 50%,
                rgba(47, 52, 59, 0.9) 75%,
                #2f343b 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
        letter-spacing: -0.025em;
        animation: logoGradientShift 6s ease-in-out infinite;
    }

    @keyframes logoGradientShift {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    .header-brand-bg {
        background-color: var(--header-brand);
    }

    .header-accent-bg {
        background-color: var(--header-accent);
    }

    .header-brand-gradient {
        background: linear-gradient(135deg, var(--header-brand) 0%, var(--header-brand-light) 100%);
    }

    .header-link {
        color: var(--header-brand);
        transition: color 0.2s ease;
        text-decoration: none;
    }

    .header-link:hover {
        color: var(--header-accent);
        text-decoration: none;
    }

    .header-btn {
        background-color: var(--header-brand);
        transition: background-color 0.2s ease;
        border: none;
        color: white;
    }

    .header-btn:hover {
        background-color: var(--header-brand-light);
        color: white;
    }

    .header-icon-accent {
        color: var(--header-accent);
    }

    .header-avatar-bg {
        background-color: rgba(243, 147, 33, 0.1);
    }

    /* Logo Icon - Lightning Flash Animation (synchronized with text gradient) */
    .header-logo-icon {
        animation: lightningFlash 6s ease-in-out infinite;
    }

    @keyframes lightningFlash {

        /* Gradient starts at dark, icon stays white */
        0%,
        6% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Flash when orange gradient reaches "L" (start of text) - slower and more visible */
        7% {
            color: #f39321;
            transform: scale(1.2);
            filter: drop-shadow(0 0 15px rgba(243, 147, 33, 1));
        }

        8% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        9% {
            color: #f39321;
            transform: scale(1.15);
            filter: drop-shadow(0 0 12px rgba(243, 147, 33, 0.9));
        }

        10% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        11% {
            color: #f39321;
            transform: scale(1.1);
            filter: drop-shadow(0 0 10px rgba(243, 147, 33, 0.8));
        }

        12% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Stay white while gradient moves through middle */
        13%,
        46% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Flash when orange gradient is at peak (around 50%) - slower */
        47% {
            color: #f39321;
            transform: scale(1.15);
            filter: drop-shadow(0 0 12px rgba(243, 147, 33, 1));
        }

        48% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        49% {
            color: #f39321;
            transform: scale(1.1);
            filter: drop-shadow(0 0 10px rgba(243, 147, 33, 0.9));
        }

        50% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Stay white while gradient moves back */
        51%,
        89% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Flash when orange gradient returns to "L" (around 90-93%) - slower and more visible */
        90% {
            color: #f39321;
            transform: scale(1.2);
            filter: drop-shadow(0 0 15px rgba(243, 147, 33, 1));
        }

        91% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        92% {
            color: #f39321;
            transform: scale(1.15);
            filter: drop-shadow(0 0 12px rgba(243, 147, 33, 0.9));
        }

        93% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        94% {
            color: #f39321;
            transform: scale(1.1);
            filter: drop-shadow(0 0 10px rgba(243, 147, 33, 0.8));
        }

        95% {
            color: white;
            transform: scale(1);
            filter: none;
        }

        /* Rest of cycle - white */
        96%,
        100% {
            color: white;
            transform: scale(1);
            filter: none;
        }
    }

    /* Remove underline from all header links */
    header a {
        text-decoration: none;
    }

    header a:hover {
        text-decoration: none;
    }

    header button {
        text-decoration: none;
    }

    /* Mobile Native Optimizations */
    @media (max-width: 991px) {

        /* Mobile Header - More compact */
        header {
            padding: 0;
        }

        header .container {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        /* Touch-friendly buttons - minimum 44x44px */
        header button,
        header .header-link {
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Mobile Menu - Native Bottom Sheet */
        #mobile-menu {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-height: 90vh;
            max-height: 90dvh;
            background: white;
            border-radius: 1.5rem 1.5rem 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 1060;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: env(safe-area-inset-bottom, 0);
            touch-action: pan-y;
        }

        #mobile-menu.show {
            transform: translateY(0);
        }

        /* Bottom Sheet Handle */
        .mobile-menu-handle {
            width: 40px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 0.75rem auto;
            cursor: grab;
        }

        .mobile-menu-handle:active {
            cursor: grabbing;
        }

        /* Mobile Menu Overlay */
        #mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1059;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        #mobile-menu-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile Menu Header */
        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            position: sticky;
            top: var(--demo-banner-height, 0);
            background: white;
            z-index: 10;
        }

        /* Mobile Menu Content */
        #mobile-menu .container {
            padding: 0;
        }

        #mobile-menu nav {
            padding: 1rem;
        }

        #mobile-menu nav a,
        #mobile-menu nav button {
            padding: 1rem;
            font-size: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
        }

        /* Native Category Navigation */
        .mobile-category-view {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            z-index: 1;
            pointer-events: auto;
        }

        .mobile-category-view.active {
            transform: translateX(0);
            z-index: 2;
        }

        .mobile-category-view.prev {
            transform: translateX(-100%);
        }

        .mobile-menu-nav {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .mobile-category-header {
            display: flex;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            position: sticky;
            top: var(--demo-banner-height, 0);
            background: white;
            z-index: 10;
        }

        .mobile-category-back {
            border: 0;
            background: transparent;
            padding: 0.5rem;
            margin-right: 0.75rem;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-category-title {
            flex: 1;
            font-weight: 600;
            font-size: 1.125rem;
            color: #2f343b;
            text-align: left;
        }

        .mobile-category-content {
            padding: 1rem;
            text-align: left;
        }

        .mobile-category-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            text-decoration: none;
            color: #2f343b;
            font-weight: 500;
            transition: background-color 0.2s;
            text-align: left;
        }

        .mobile-category-item>div {
            text-align: left;
        }

        .mobile-category-item:hover,
        .mobile-category-item:active {
            background-color: #f9fafb;
        }

        .mobile-category-item.has-children::after {
            content: '\f054';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #9ca3af;
            font-size: 0.875rem;
        }

        /* Mobile Search - Bottom Sheet Style */
        #mobile-search-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-height: 90vh;
            background: white;
            z-index: 1070;
            border-radius: 1.5rem 1.5rem 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: env(safe-area-inset-bottom, 0);
            touch-action: pan-y;
        }

        #mobile-search-container.show {
            transform: translateY(0);
        }

        #mobile-search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1069;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        #mobile-search-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .mobile-search-handle {
            width: 40px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 0.75rem auto;
            cursor: grab;
        }

        .mobile-search-handle:active {
            cursor: grabbing;
        }

        /* Mobile Cart - Bottom Sheet Style */
        .cart-dropdown {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            border-radius: 1rem 1rem 0 0 !important;
            max-height: 80vh !important;
            max-height: 80dvh !important;
            margin: 0 !important;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .cart-group:hover .cart-dropdown,
        .cart-group.active .cart-dropdown {
            transform: translateY(0);
        }

        /* Mobile Cart Container - Bottom Sheet */
        #mobile-cart-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-height: 90vh;
            background: white;
            border-radius: 1.5rem 1.5rem 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: env(safe-area-inset-bottom, 0);
            touch-action: pan-y;
            z-index: 1060;
        }

        #mobile-cart-container.show {
            transform: translateY(0);
        }

        #mobile-cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1059;
        }

        #mobile-cart-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .mobile-cart-handle {
            width: 40px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 0.75rem auto;
            cursor: grab;
        }

        .mobile-cart-handle:active {
            cursor: grabbing;
        }

        /* Prevent body scroll when cart is open */
        body.mobile-cart-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Mobile Favorites Container - Bottom Sheet */
        #mobile-favorites-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-height: 90vh;
            background: white;
            border-radius: 1.5rem 1.5rem 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: env(safe-area-inset-bottom, 0);
            touch-action: pan-y;
            z-index: 1060;
        }

        #mobile-favorites-container.show {
            transform: translateY(0);
        }

        #mobile-favorites-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1059;
        }

        #mobile-favorites-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .mobile-favorites-handle {
            width: 40px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 0.75rem auto;
            cursor: grab;
        }

        .mobile-favorites-handle:active {
            cursor: grabbing;
        }

        /* Prevent body scroll when favorites is open */
        body.mobile-favorites-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Mobile Profile Container - Bottom Sheet */
        #mobile-profile-container {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-height: 90vh;
            background: white;
            border-radius: 1.5rem 1.5rem 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: env(safe-area-inset-bottom, 0);
            touch-action: pan-y;
            z-index: 1060;
        }

        #mobile-profile-container.show {
            transform: translateY(0);
        }

        #mobile-profile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1059;
        }

        #mobile-profile-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .mobile-profile-handle {
            width: 40px;
            height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 0.75rem auto;
            cursor: grab;
        }

        .mobile-profile-handle:active {
            cursor: grabbing;
        }

        /* Prevent body scroll when profile is open */
        body.mobile-profile-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Mobile User Dropdown - Bottom Sheet Style */
        .user-dropdown {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            border-radius: 1rem 1rem 0 0 !important;
            margin: 0 !important;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .user-group:hover .user-dropdown,
        .user-group.active .user-dropdown {
            transform: translateY(0);
        }

        /* Prevent body scroll when menu is open */
        body.mobile-menu-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Mobile Bottom Navigation Bar */
        #mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            max-width: 100vw;
            background: white;
            border-top: 1px solid #e5e7eb;
            z-index: 1040;
            padding-bottom: env(safe-area-inset-bottom, 0);
            box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
            overflow-x: hidden;
            overflow-y: hidden;
        }

        .mobile-bottom-nav-container {
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 0.5rem 0;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            overflow-y: hidden;
            box-sizing: border-box;
        }

        .mobile-bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1 1 0;
            min-width: 0;
            max-width: 100%;
            padding: 0.5rem 0.25rem;
            text-decoration: none;
            color: #6b7280;
            transition: color 0.2s;
            position: relative;
            box-sizing: border-box;
            overflow: hidden;
            border: none;
            background: transparent;
            cursor: pointer;
        }

        .mobile-bottom-nav-item.active {
            color: #f39321;
        }

        .mobile-bottom-nav-item i {
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
            flex-shrink: 0;
        }

        .mobile-bottom-nav-item span {
            font-size: 0.75rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            display: block;
        }

        .mobile-bottom-nav-item .badge {
            position: absolute;
            top: 0.25rem;
            right: 50%;
            transform: translateX(50%);
            background: #f39321;
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 0.625rem;
            font-weight: 600;
            min-width: 18px;
            text-align: center;
            flex-shrink: 0;
        }

        .mobile-notification-badge {
            position: absolute;
            top: 0.15rem;
            right: 0.5rem;
            background: #dc3545;
            color: white;
            border-radius: 10px;
            padding: 1px 5px;
            font-size: 0.6rem;
            font-weight: 600;
            min-width: 16px;
            text-align: center;
            line-height: 1.3;
        }

        /* Prevent horizontal scroll on body */
        body {
            overflow-x: hidden;
            max-width: 100vw;
        }

        /* Add padding to body when bottom nav is visible */
        body.has-bottom-nav {
            padding-bottom: 70px;
            padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
            overflow-x: hidden;
        }

        /* Ensure no horizontal scroll on mobile */
        @media (max-width: 991px) {

            html,
            body {
                overflow-x: hidden;
                max-width: 100vw;
                position: relative;
            }

            #mobile-bottom-nav {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100vw;
                max-width: 100vw;
            }
        }
    }

    /* Modern Cart Dropdown Styles */
    #cart-items::-webkit-scrollbar {
        width: 6px;
    }

    #cart-items::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 3px;
    }

    #cart-items::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }

    #cart-items::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

    /* Mega Menu Section Titles - Hero Title Style */
    .mega-menu-section-title {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
        font-weight: 800;
        line-height: 1.25;
        background: linear-gradient(135deg,
                var(--header-brand) 0%,
                var(--header-brand) 50%,
                var(--header-accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.025em;
        margin: 0;
    }

    .mega-menu-section-title-wrapper {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mega-menu-section-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mega-menu-section-icon i {
        font-size: 1.25rem;
    }

    /* Header Search Styles */
    #header-search-results {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    #header-search-results.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #header-search-results::-webkit-scrollbar {
        width: 6px;
    }

    #header-search-results::-webkit-scrollbar-track {
        background: transparent;
    }

    #header-search-results::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }

    #header-search-results::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

    #header-search-input:focus {
        box-shadow: 0 0 0 3px rgba(243, 147, 33, 0.1);
        border-color: var(--header-accent);
    }

    /* Mega Menu Positioning */
    #categories-mega-menu {
        position: static;
    }

    #categories-mega-dropdown {
        position: fixed;
        top: calc(80px + var(--demo-banner-height, 0px));
        /* Header height + Banner height */
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 1040;
        background: white;
        /* box-shadow removed to prevent double-box look */
        padding-top: 0.5rem;
        padding-bottom: 1rem;
        margin-top: -0.5rem;
        /* Overlap with header to prevent gap */
    }

    /* Mega menu content should be centered */
    #categories-mega-dropdown .container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* On larger screens, keep centered */
    @media (min-width: 1200px) {
        #categories-mega-dropdown .container {
            max-width: 1140px;
            margin-left: auto;
            margin-right: auto;
            padding-left: 1.5rem;
        }
    }

    @media (max-width: 991px) {
        #categories-mega-dropdown {
            top: auto;
            position: absolute;
            left: 0;
            right: 0;
            width: 100%;
        }
    }

    /* Fix mega menu hover - ensure it opens on hover (only when not toggled) */
    .mega-menu-group:not(.menu-open):hover .mega-menu-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* Keep mega menu open when hovering over it (only when not toggled) */
    .mega-menu-group:not(.menu-open) .mega-menu-dropdown:hover,
    .mega-menu-group:not(.menu-open) #categories-mega-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* Also keep open when directly hovering mega menu */
    #categories-mega-dropdown:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* When menu is open via click (menu-open class), keep it visible always */
    .mega-menu-group.menu-open .mega-menu-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* Rotate chevron when menu is open */
    .mega-menu-group.menu-open #categories-chevron {
        transform: rotate(180deg);
    }

    /* Rotate chevron on hover (only when not toggled) */
    .mega-menu-group:not(.menu-open):hover #categories-chevron {
        transform: rotate(180deg);
    }

    /* Mega menu dropdown default state */
    .mega-menu-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: none;
        transition: all 0.3s ease;
    }

    /* Cart dropdown */
    .cart-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .cart-group:hover .cart-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* User dropdown */
    .user-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Bridge area - invisible area to keep hover active */
    .user-dropdown::before {
        content: '';
        position: absolute;
        top: -4px;
        left: 0;
        right: 0;
        height: 4px;
        background: transparent;
    }

    .user-group:hover .user-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
