/* =====================================================
   NEW NAVIGATION MEGA MENU STYLES
   Based on Figma designs: DIY Products, DIY Projects, Trade Menu
   ===================================================== */

/* =====================================================
   NEW HEADER DESIGN - Figma Layout
   Logo | DIY ▼ | TRADE ▼ | (spacer) | Search | FIND A STORE
   ===================================================== */

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
  
@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-ExtraBoldItalic.ttf") format("truetype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Figtree";
    src: url("/fonts/newhomepage/Figtree-BlackItalic.ttf") format("truetype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}


.header__inner {
    background: #FFFFFF;
    box-shadow:none;
}
/* Header container - positioned for mega menu dropdown */
.header--new-design {
    background: #FFFFFF;
    position: fixed;
    width: 100%;
    z-index: 1001;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Header inner container */
.header--new-design .header__inner {
    background: #FFFFFF;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Header Row */
.header__wrapper--new {
    padding: 0;
}

.header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    border-bottom: none; /* Remove border to eliminate gap with mega menu */
}

/* Left Section: Logo + DIY/TRADE Menu */
.header-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 48px;
    width: auto;
}

/* Main Navigation - DIY/TRADE Toggle */
.header-main-nav {
    display: flex;
    align-items: center;
}

.nav-audience-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-audience-item {
    position: relative;
    display: flex !important;
    column-gap: 5px;
    align-items: center;
}

.nav-audience-item .nav-audience-link {
    padding: 0;
}



/* Invisible hover bridge to prevent menu from closing when moving mouse to dropdown */
.nav-audience-item[data-mega-menu]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 30px; /* Bridge height to cover gap between nav item and dropdown */
    background: transparent;
}

.nav-audience-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: "Figtree", sans-serif;
}

.nav-audience-link:hover {
    color: #1B1B1B;
    text-decoration: none;
}

/* Active state - TRADE is underlined */
.nav-audience-link--active,
.nav-audience-item.active .nav-audience-link {
    color: #1B1B1B;
    border-bottom-color: #1B1B1B;
}

.nav-dropdown-arrow {
    width: 10px;
    height: 6px;
    transition: transform 0.2s ease;
}

.nav-audience-item:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Right Section: Search + Find A Store */
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Button */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #333333;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-search-btn:hover {
    color: #002D72;
}

.header-search-btn svg {
    width: 24px;
    height: 24px;
}

/* Find A Store Button - Figma Design (Dark Blue Pill) */
.header-find-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background-color: #001489;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 1000px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-family: "Figtree", sans-serif;
}

.header-find-store-btn:hover {
    background-color: #001a4d;
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =====================================================
   MOBILE HEADER - Figma Design
   ===================================================== */
.header__wrapper--mobile {
    padding: 12px 0;
}

.header-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-mobile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-mobile-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-mobile-center img {
    height: 52px;
    width: auto;
}

.header-mobile-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-toggle,
.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle svg,
.mobile-search-toggle svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   MEGA MENU DROPDOWN STYLES - Figma Design
   Light blue border around dropdown, Products label on top
   ===================================================== */

/* Mega menu container - positioned directly below header with no gap */
.megaMenu {
    position: absolute;
    top: 100%; /* Position directly below header using percentage */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    overflow: visible;
    background: #FFFFFF; /* White background to prevent bleed-through */
    pointer-events: none; /* Allow clicks through when not showing menu */
    margin: 0;
    padding: 0;
}

/* Enable pointer events when menu is visible */
.megaMenu:has(.mega-menu--visible) {
    pointer-events: auto;
}

.mega-menu-container {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}

/* Main mega menu dropdown */
.mega-menu {
    display: none;
    position: relative !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #FFFFFF;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.mega-menu.mega-menu--visible {
    display: block;
}

/* Active Section Indicator Label - shown above dropdown (e.g., "Products") */
.mega-menu-indicator {
    display: none; /* Hide indicator for full-width layout */
}

.mega-menu-indicator__label {
    display: none;
}

.mega-menu-wrapper {
    position: relative;
    max-width: 1280px;
    width: 100%;
    min-height: 280px;
    background: #FFFFFF;
    margin: 0 auto;
    padding: 20px;
}

/* Main layout container - left sidebar + right content */
.sl-megamenu-container {
    display: flex;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 280px;
    background: #FFFFFF;
}

/* =====================================================
   LEFT SIDEBAR - Category Navigation (Figma Design)
   Products, Application, Brands, Documents
   ===================================================== */
.mega-left {
    width: 200px;
    min-width: 200px;
    background: #fff;
    padding: 24px 0;
    position: relative;
}

/* Vertical separator line between left and right sections */
.mega-left::after {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    right: 0;
    width: 1px;
    background-color: #C3C3C3;
}

.mm-left-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.mm-left-menu li {
    cursor: pointer;
    position: relative;
    width: 100%;
}

.mm-left-menu li a {
        display: block;
        padding: 12px 24px;
        color: #001489;
        font-size: 20px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        font-family: "Figtree", sans-serif;
}

.mm-left-menu li a:hover {
    color: #001489;
    font-weight: 700;
}

/* Active state - bold text */
.mm-left-menu li.active a {
    font-weight: 700;
}

/* Right border on separator line for hover and active states */
.mm-left-menu li {
    margin-right: 0;
}

.mm-left-menu li a {
    position: relative;
    margin-right: 0;
    height: 59px;
}

.mm-left-menu li a::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 5px;
    background-color: transparent;
    z-index: 2;
}

.mm-left-menu li:hover a::after,
.mm-left-menu li.active a::after {
    background-color: #001489;
    width: 6px;
    right: -2.5px;
}

/* =====================================================
   RIGHT PANEL - Content Area (Figma Design)
   ===================================================== */
.DIY {
}

.mega-right {
    flex: 1;    
    padding: 28px 78px 32px 64px;
    background: #fff;
}

/* Panel visibility */
.mm-panel {
    display: none;
}

.mm-panel.active {
    display: block;
}

/* Products grid layout - Figma shows horizontal layout */
.mm-products {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 40px; /* Equal gap between Column 1, Column 2, Column 3 */
    width: 100%;
    justify-content: space-between;
}

/* =====================================================
   MENU COLUMNS - Individual Sections (Figma Design)
   Equal width for all 3 columns: By Range, Brands, Most Popular Products
   ===================================================== */
.mm-column {
    flex: 1; /* Equal width for all columns */
    min-width: 0;
    display: block;
}

/* Section headers (By Range, Brands, Most Popular Products, etc.) */
.mm-column h2 {
    font-size: 14px;
    font-weight: 700;
    color: #002D72;
    text-transform: none;
    margin: 0 0 20px 0;
    padding: 0;
    letter-spacing: 0;
}

/* Menu items list */
.mm-column ul,
.mm-column ul.mm-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.mm-column ul li,
.mm-column ul.mm-items-list li {
    margin-bottom: 12px;
    display: block;
}

.mm-column ul li a,
.mm-column ul.mm-items-list li a {
    color: #002D72;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.7;
    transition: color 0.2s ease;
    display: block;
    font-family: "Figtree", sans-serif;
}

.mm-column ul li a:hover,
.mm-column ul.mm-items-list li a:hover {
    color: #002D72;
    text-decoration: underline;
}

    /* =====================================================
   MULTI-COLUMN LAYOUTS
   For sections like "By Range" that need 2 columns
   ===================================================== */

    /* Two-column list layout */
    .mm-column.two-columns ul {
        column-count: 2;
        column-gap: 60px; /* Same gap as Trade items */
    }

        .mm-column.two-columns ul li {
            break-inside: avoid;
        }

/* Alternative: flex-based two columns */
.mm-column-group {
    display: flex;
    gap: 60px; /* Same gap as Trade items */
}

    .mm-column-group .mm-column {
        flex: 1;
    }

/* =====================================================
   SPECIFIC SECTION STYLING
   ===================================================== */

/* By Range section - needs more width for 2 columns */
.mm-column.by-range {
    min-width: 280px;
}

    .mm-column.by-range ul {
        column-count: 2;
        column-gap: 60px; /* Same gap as Trade items */
    }

/* Brands section */
.mm-column.brands {
    min-width: 150px;
}

/* Most Popular Products section */
.mm-column.popular-products {
    min-width: 200px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media sreen and (max-width: 1200px) {

    .mega-right {

        column-gap: 40px;
        padding: 24px 30px;
    }

    .diy.mm-products {
        justify-content: flex-start !important;
    }   
    
}

@media screen and (max-width: 992px) {  
    .mm-column {
        min-width: calc(50% - 15px);
    }

    .mm-column.by-range ul {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .mega-menu-container.hide-for-small-only {
        display: none;
    }

    /* Hide desktop navigation on mobile */
    .header__navigation.hide-for-small-only {
        display: none !important;
    }
}

/* =====================================================
   MOBILE HEADER STYLES - Figma Design
   Hamburger menu + Search + Logo layout
   ===================================================== */
@media screen and (max-width: 767px) {
    /* Mobile header icons container */
    .mobile-header-icons {
        display: flex;
        align-items: center;
        gap: 16px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-header-icons li {
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle svg,
    .mobile-search-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Center logo on mobile */
    .header__logo__image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header__logo__image img {
        max-height: 40px;
        width: auto;
    }
}

/* =====================================================
   MOBILE NAVIGATION STYLES
   Based on Figma: mobile-menu.png
   Drill-down navigation pattern with back arrows
   ===================================================== */

@media screen and (max-device-width: 767px), screen and (max-width: 767px) {
    /* Override existing takeover-nav styles for new design */
    .reveal-overlay .takeover-nav {
        background-color: #FFFFFF !important;
        padding: 0 !important;
    }

        .reveal-overlay .takeover-nav .takeover-nav__content {
            background: #FFFFFF !important;
        }

            /* Header with close button */
            .reveal-overlay .takeover-nav .takeover-nav__content .nav-menu-header {
                padding: 15px 20px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                width: 100% !important;
                border-bottom: 1px solid #E5E5E5 !important;
                background: #FFFFFF !important;
                float: none !important;
            }

                .reveal-overlay .takeover-nav .takeover-nav__content .nav-menu-header .nav-menu-title {
                    color: #002D72 !important;
                    font-family: Montserrat, sans-serif !important;
                    font-size: 16px !important;
                    font-weight: 600 !important;
                    line-height: 24px !important;
                    text-transform: none !important;
                    float: none !important;
                }

                .reveal-overlay .takeover-nav .takeover-nav__content .nav-menu-header .close-button {
                    position: relative !important;
                    float: none !important;
                    width: 24px !important;
                    height: 24px !important;
                    font-size: 24px !important;
                    color: #002D72 !important;
                    background: none !important;
                    line-height: 1 !important;
                }

                    .reveal-overlay .takeover-nav .takeover-nav__content .nav-menu-header .close-button span {
                        color: #002D72 !important;
                        font-size: 28px !important;
                        line-height: 1 !important;
                    }

            /* Main menu container */
            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu {
                padding: 0 !important;
                margin: 0 !important;
                background: #FFFFFF !important;
            }

                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu.audience {
                    border-top: none !important;
                    margin: 0 !important;
                    padding: 0 !important;
                }

                /* Level 1 menu items (Products, Projects, FAQ) */
                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li {
                    margin: 0 !important;
                    padding: 0 !important;
                    border-bottom: 1px solid #E5E5E5 !important;
                    background: #FFFFFF !important;
                    line-height: normal !important;
                }

                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li > a {
                        display: flex !important;
                        align-items: center !important;
                        justify-content: space-between !important;
                        padding: 16px 20px !important;
                        font-size: 16px !important;
                        font-weight: 400 !important;
                        color: #002D72 !important;
                        font-family: Montserrat, sans-serif !important;
                        text-decoration: none !important;
                        background: #FFFFFF !important;
                        margin: 0 !important;
                        line-height: 24px !important;
                    }

                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li > .takeover-nav__dropdown-link {
                        display: flex !important;
                        align-items: center !important;
                        justify-content: space-between !important;
                        padding: 16px 20px !important;
                        font-size: 16px !important;
                        font-weight: 400 !important;
                        color: #002D72 !important;
                        font-family: Montserrat, sans-serif !important;
                        text-decoration: none !important;
                        background: #FFFFFF !important;
                        margin: 0 !important;
                        line-height: 24px !important;
                        width: 100% !important;
                    }

                    /* Arrow icon for drill-down items */
                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li > a::after {
                        content: ">" !important;
                        font-size: 18px !important;
                        color: #002D72 !important;
                        font-weight: 300 !important;
                        border: none !important;
                        width: auto !important;
                        height: auto !important;
                        position: relative !important;
                        right: auto !important;
                        transform: none !important;
                    }

                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li > .takeover-nav__dropdown-link::after {
                        content: ">" !important;
                        font-size: 18px !important;
                        color: #002D72 !important;
                        font-weight: 300 !important;
                        border: none !important;
                        width: auto !important;
                        height: auto !important;
                        position: relative !important;
                        right: auto !important;
                        left: auto !important;
                        transform: none !important;
                        text-align: right !important;
                    }

                    /* Remove arrow for single links without submenu */
                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li[data-mg-single] > a::after {
                        content: none !important;
                    }

                    /* Active/expanded state - Blue header with back arrow */
                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li[aria-expanded="true"] {
                        background: #FFFFFF !important;
                        display: block !important;
                        width: 100% !important;
                    }

                        .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li[aria-expanded="true"] > .takeover-nav__dropdown-link {
                            background: #002D72 !important;
                            color: #FFFFFF !important;
                            font-weight: 600 !important;
                        }

                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li[aria-expanded="true"] > .takeover-nav__dropdown-link::before {
                                content: "<" !important;
                                margin-right: 10px !important;
                                font-size: 18px !important;
                                font-weight: 300 !important;
                                color: #FFFFFF !important;
                            }

                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li[aria-expanded="true"] > .takeover-nav__dropdown-link::after {
                                content: none !important;
                                display: none !important;
                            }

                    /* Submenu container */
                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu,
                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested {
                        border: 0 !important;
                        padding: 0 !important;
                        margin: 0 !important;
                        background: #FFFFFF !important;
                    }

                        /* Level 2 submenu items (By Range, Brands, etc.) */
                        .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li,
                        .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li {
                            padding: 0 !important;
                            margin: 0 !important;
                            border-bottom: 1px solid #E5E5E5 !important;
                            background: #FFFFFF !important;
                        }

                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li:last-child,
                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li:last-child {
                                margin-bottom: 0 !important;
                            }

                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li a,
                            .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li a {
                                display: flex !important;
                                align-items: center !important;
                                justify-content: space-between !important;
                                padding: 16px 20px !important;
                                font-size: 16px !important;
                                font-weight: 400 !important;
                                color: #002D72 !important;
                                text-decoration: none !important;
                                background: #FFFFFF !important;
                                margin: 0 !important;
                                line-height: 24px !important;
                            }

                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li a::after,
                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li a::after {
                                    content: ">" !important;
                                    font-size: 18px !important;
                                    color: #002D72 !important;
                                    font-weight: 300 !important;
                                }

                                /* Section title styling (nestedli__title) - these are section headers like "By Range" */
                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li .nestedli__title,
                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li .nestedli__title,
                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li a.nestedli__title,
                                .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li a.nestedli__title {
                                    color: #002D72 !important;
                                    font-size: 16px !important;
                                    font-weight: 400 !important;
                                    margin: 0 !important;
                                    padding: 16px 20px !important;
                                    display: flex !important;
                                    justify-content: space-between !important;
                                    align-items: center !important;
                                    background: #FFFFFF !important;
                                }

                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li .nestedli__title::before,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li .nestedli__title::before,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li a.nestedli__title::before,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li a.nestedli__title::before {
                                        content: none !important;
                                        background: none !important;
                                        display: none !important;
                                    }

                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li .nestedli__title::after,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li .nestedli__title::after,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .submenu li a.nestedli__title::after,
                                    .reveal-overlay .takeover-nav .takeover-nav__content .takeover-nav__menu > li .menu.vertical.nested li a.nestedli__title::after {
                                        content: ">" !important;
                                        font-size: 18px !important;
                                        color: #002D72 !important;
                                        font-weight: 300 !important;
                                    }

            /* Audience menu styling */
            .reveal-overlay .takeover-nav .takeover-nav__content .audience li {
                padding: 0 !important;
                border-bottom: 1px solid #E5E5E5 !important;
            }

                .reveal-overlay .takeover-nav .takeover-nav__content .audience li a {
                    font-weight: 400 !important;
                    margin: 0 !important;
                    font-size: 16px !important;
                    padding: 16px 20px !important;
                    color: #002D72 !important;
                    display: flex !important;
                    justify-content: space-between !important;
                    align-items: center !important;
                }

                    .reveal-overlay .takeover-nav .takeover-nav__content .audience li a::after {
                        content: ">" !important;
                        font-size: 18px !important;
                        color: #002D72 !important;
                        font-weight: 300 !important;
                    }

                .reveal-overlay .takeover-nav .takeover-nav__content .audience li:nth-child(2) a::after {
                    content: ">" !important;
                    background: none !important;
                    width: auto !important;
                    height: auto !important;
                }

    /* Hide desktop mega menu on mobile */
    .megaMenu,
    .mega-menu-container {
        display: none !important;
    }

    /* =====================================================
       MOBILE 3-LEVEL DRILL-DOWN MENU
       ===================================================== */

    /* Mobile level containers */
    .reveal-overlay .takeover-nav .mobile-level-2,
    .reveal-overlay .takeover-nav .mobile-level-3,
    .reveal-overlay .takeover-nav .mobile-level-4 {
        padding: 0 !important;
        margin: 0 !important;
        background: #FFFFFF !important;
        list-style: none !important;
    }

    /* Mobile menu items */
    .reveal-overlay .takeover-nav .mobile-menu-item {
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #E5E5E5 !important;
        background: #FFFFFF !important;
    }

        .reveal-overlay .takeover-nav .mobile-menu-item > a {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 16px 20px !important;
            font-size: 16px !important;
            font-weight: 400 !important;
            color: #002D72 !important;
            font-family: Montserrat, sans-serif !important;
            text-decoration: none !important;
            background: #FFFFFF !important;
            margin: 0 !important;
            line-height: 24px !important;
        }

        /* Arrow for items with submenu */
        .reveal-overlay .takeover-nav .mobile-menu-item.has-submenu > a::after {
            content: ">" !important;
            font-size: 18px !important;
            color: #002D72 !important;
            font-weight: 300 !important;
        }

        /* Back button state - blue background with back arrow */
        .reveal-overlay .takeover-nav .mobile-menu-item > a.mobile-back-btn {
            background: #002D72 !important;
            color: #FFFFFF !important;
            font-weight: 600 !important;
        }

            .reveal-overlay .takeover-nav .mobile-menu-item > a.mobile-back-btn::before {
                content: "<" !important;
                margin-right: 10px !important;
                font-size: 18px !important;
                font-weight: 300 !important;
                color: #001489 !important;
            }

            .reveal-overlay .takeover-nav .mobile-menu-item > a.mobile-back-btn::after {
                content: none !important;
                display: none !important;
            }

    /* Level 4 items (final links) - no arrow, gray text */
    .reveal-overlay .takeover-nav .mobile-level-4 .mobile-menu-item > a::after {
        content: none !important;
    }

    .reveal-overlay .takeover-nav .mobile-level-4 .mobile-menu-item > a {
        color: #666666 !important;
    }

    /* Final items - leaf items without submenu (gray text, no arrow) */
    .reveal-overlay .takeover-nav .mobile-menu-item.final-item > a,
    .reveal-overlay .takeover-nav .takeover-nav__content .final-item > a {
        color: #666666 !important;
    }

    .reveal-overlay .takeover-nav .mobile-menu-item.final-item > a::after,
    .reveal-overlay .takeover-nav .takeover-nav__content .final-item > a::after {
        content: none !important;
        display: none !important;
    }

    /* Ensure proper nesting display */
    .reveal-overlay .takeover-nav .mobile-level-2 {
        display: block !important;
    }

    .reveal-overlay .takeover-nav .mobile-level-3,
    .reveal-overlay .takeover-nav .mobile-level-4 {
        display: none;
    }

        .reveal-overlay .takeover-nav .mobile-level-3.show,
        .reveal-overlay .takeover-nav .mobile-level-4.show {
            display: block !important;
        }

    /* =====================================================
       MOBILE MENU - Figma Design Updates
       Accordion style with chevrons for collapsed sections
       ===================================================== */

    /* Collapsed accordion sections - show chevron down */
    .reveal-overlay .takeover-nav .mobile-menu-item.collapsed > a::after {
        content: "∨" !important;
        font-size: 14px !important;
        color: #002D72 !important;
        font-weight: 400 !important;
    }

    /* Expanded accordion sections - show chevron up */
    .reveal-overlay .takeover-nav .mobile-menu-item.expanded > a::after {
        content: "∧" !important;
        font-size: 14px !important;
        color: #002D72 !important;
        font-weight: 400 !important;
    }

    /* Final level items (actual product links) - no arrow */
    .reveal-overlay .takeover-nav .mobile-menu-item.final-item > a::after {
        content: none !important;
        display: none !important;
    }

    /* Mobile header - hamburger + search + logo layout */
    .header__wrapper--mobile .header-mobile-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        background: #FFFFFF;
    }

    .header__wrapper--mobile .header-mobile-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .header__wrapper--mobile .mobile-menu-toggle,
    .header__wrapper--mobile .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .header__wrapper--mobile .mobile-menu-toggle svg,
    .header__wrapper--mobile .mobile-search-toggle svg {
        width: 24px;
        height: 24px;
        color: #002D72;
    }

    /* Mobile menu overlay - full screen white background */
    .reveal-overlay {
        background: #FFFFFF !important;
    }

    .reveal-overlay .takeover-nav {
        background: #FFFFFF !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    /* Mobile menu header with close button */
    .reveal-overlay .takeover-nav .takeover-nav__header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        background: #FFFFFF !important;
        border-bottom: 1px solid #E5E5E5 !important;
    }

    .reveal-overlay .takeover-nav .takeover-nav__header .close-button {
        width: 24px !important;
        height: 24px !important;
        color: #002D72 !important;
        font-size: 24px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }
}

/* =====================================================
   ANIMATION & TRANSITIONS
   ===================================================== */
.mm-panel {
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .mm-panel.active {
        opacity: 1;
    }

/* Smooth hover transitions */
.mm-left-menu li a,
.mm-column ul li a {
    transition: all 0.15s ease;
}

/* =====================================================
   TYPOGRAPHY REFINEMENTS
   ===================================================== */

/* Ensure consistent font family */
.sl-megamenu,
.sl-megamenu-container,
.mega-left,
.mega-right,
.mm-left-menu,
.mm-column {
    font-family: inherit;
}

    /* Link reset */
    .sl-megamenu a {
        text-decoration: none;
    }

        .sl-megamenu a:focus {
            outline: 2px solid #002D72;
            outline-offset: 2px;
        }

/* =====================================================
   TRADE MENU LAYOUT - Figma Design
   Dynamic column layout based on item count:
   - ≤4 items: 1 column, up to 4 rows
   - 5-6 items: 2 columns, 3 rows each
   - >6 items: 4 rows max, equally divided columns
   ===================================================== */

/* Trade Products container - flex layout */
.trade.mm-products {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 50px;
    width: 100%;
    justify-content: flex-start;
}

/* Base trade column styles */
.trade .mm-column {
    flex: 1;
    min-width: auto;
}

.trade .mm-column h2 {
    display: none; /* Hide section headers in trade menu as per Figma */
}

/* Common trade menu item styles */
.trade .mm-column ul.mm-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trade .mm-column ul.mm-items-list li {
    padding: 12px 0px !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
}

.trade .mm-column ul.mm-items-list li a {
    font-size: 18px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -0.022em;
    color: #001489;
    white-space: nowrap;
    display: block;
}

.trade .mm-column ul.mm-items-list li a:hover {
    color: #001489;
    text-decoration: underline;
}

/* Trade: 1-4 items - Single column layout */
.trade .mm-column.trade-cols-1 ul.mm-items-list {
    column-count: 1;
}

/* Trade: 5-6 items - 2 columns, 3 rows each */
.trade .mm-column.trade-cols-2 ul.mm-items-list {
    display: grid;
    grid-auto-flow: column;     
    grid-template-rows: repeat(3, auto);
    gap: 0 40px;
    max-width: 100%;      
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Trade: 7+ items - 4 rows max, auto columns equally divided */
.trade .mm-column.trade-cols-auto ul.mm-items-list {
    display: grid;
    grid-auto-flow: column;     
    grid-template-rows: repeat(4, auto);
    gap: 0 40px;
    max-width: 100%;      
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =====================================================
   DIY MENU LAYOUT - Figma Design
   3 columns: By Range (2 sub-cols), Brands, Most Popular Products
   ===================================================== */

/* DIY Products container - flex layout with proper gaps */
.diy.mm-products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    width: 100%;
    justify-content: space-between;
}

/* DIY columns - proper sizing */
.diy .mm-column {
    flex: 0 0 auto;
    min-width: 0;
}


/* Brands column */
.diy .mm-column:nth-child(2) {
    flex: 0 0 180px;
    min-width: 180px;
}

/* Most Popular Products column */
.diy .mm-column:nth-child(3) {
    flex: 0 0 220px;
    min-width: 220px;
}

/* DIY section headers */
.diy .mm-column h2 {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #001489;
    margin: 0 !important;
    padding: 0;
    white-space: nowrap;
    font-family: "Figtree", sans-serif;
    min-height: 50px;
    margin-bottom: 4px;
}

/* DIY items list - base styles */
.diy .mm-column ul.mm-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}


.diy .mm-column ul.mm-items-list li a {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #929292;
    white-space: nowrap;
    display: block;
    text-decoration: none;
    font-family: "Figtree", sans-serif;
}

.diy .mm-column ul.mm-items-list li a:hover {
    color:#001489;
    font-weight: 500;
    text-decoration: none;
}

/* DIY Column Layout Classes
   - <6 items: 1 column, max 5 rows
   - =6 items: 2 columns, 3 rows
   - >6 items: 5 rows max, equal columns
   Row height: 14px font * 1.7 line-height + 8px margin = ~32px per row
*/

/* DIY: <6 items - Single column layout, max 5 rows */
.diy .mm-column.diy-cols-1 ul.mm-items-list {
    column-count: 1;
}

/* DIY: 6 items - 2 columns, 3 rows each */
.diy .mm-column.diy-cols-2 ul.mm-items-list {
    column-count: 2;
    column-gap: 40px;
}

/* DIY: >6 items - 5 rows max, equally divided columns */
.diy .mm-column.diy-cols-auto ul.mm-items-list {
    column-count: 2;
    column-gap: 40px;
}

.diy .mm-column ul.mm-items-list li {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 4px !important;
    display: block;
    padding: 0;
    margin: 0;
}

/* =====================================================
   NEW MOBILE NAVIGATION - Figma Design
   Multi-level drill-down navigation with back buttons
   ===================================================== */

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-nav-overlay.is-open {
    display: block !important;
}

/* Mobile Nav Container */
.mobile-nav-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-logo img {
    height: 36px;
    width: auto;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
}

/* Mobile Nav Content */
.mobile-nav-content {
    flex: 1;
    padding: 0;
}

/* Mobile Menu Lists */
.mobile-menu-level-1,
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Items */
.mobile-menu-item {
    border-bottom: 1px solid #E5E5E5;
    padding: 0;
}

.mobile-menu-link {
    font-family: "Figtree", sans-serif;
    font-style: normal;
    /* identical to box height, or 54px */
    letter-spacing: -0.022em;
    color: #001489;
    text-decoration: none;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

.mobile-menu-link.mobile-accordion-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-item.has-accordion {
    padding: 0;
}

.mobile-menu-link.mobile-accordion-trigger span {
    flex: initial;
}

.mobile-menu-item.has-accordion.is-open{
    button {
        svg {
            transform: rotate(180deg);
        }
    }
}

.mobile-menu-item.mobile-final-item:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    text-decoration: none;
    background: #FFFFFF;
    color: #002D72;
}

.mobile-menu-link span {
    flex: 1;
}

/* Arrow for items with submenu */
.mobile-menu-arrow {
    flex-shrink: 0;
    margin-left: 12px;
}

/* Back Button Header - Blue background */
.mobile-menu-back-header {
    background: #00148933;
    height: 54px;
}

.mobile-back-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 600;
    color: #001489;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: "Figtree", sans-serif;
    text-align: left;
}

.mobile-back-btn svg {
    margin-right: 32px;
    flex-shrink: 0;
     color: #001489;
}

.mobile-back-btn span {
    flex: 1;
}

/* Submenu Levels - positioned below header */
.mobile-submenu-level-2,
.mobile-submenu-level-3,
.mobile-submenu-level-4 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    overflow-y: auto;
    z-index: 5;
}

/* When showing Level 2/3, hide the main header */
.mobile-nav-overlay .mobile-submenu-level-2[style*="block"] ~ .mobile-menu-level-1,
.mobile-nav-overlay .mobile-submenu-level-3[style*="block"] ~ .mobile-menu-level-1 {
    display: none;
}

/* Accordion Sections */
.mobile-accordion .mobile-menu-link {
    color: #002D72;
    font-weight: 400;
}

.mobile-accordion .mobile-menu-chevron {
    transition: transform 0.2s ease;
    color: #002D72;
}

.mobile-accordion .mobile-menu-chevron svg {
    stroke: #002D72;
}

.mobile-accordion.is-open .mobile-menu-chevron {
    transform: rotate(180deg);
}

/* Accordion Content */
.mobile-accordion-content {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}

.mobile-accordion-content .mobile-menu-item {
    border-bottom: 1px solid #E5E5E5;
}

.mobile-accordion-content .mobile-menu-link {
    padding: 14px 20px 14px 20px;
    font-size: 16px;
    color: #666666;
    font-weight: 400;

}


.mobile-level4-accordion {
    margin-top: 16px;
    border-top: 1px solid #eee;
  }
  
  .accordion-header {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: 0;
    font-weight: 600;
  }
  
  .accordion-content {
    padding-left: 16px;
  }
  
  .accordion-header.is-open .accordion-arrow {
    transform: rotate(90deg);
  }

/* Final Items (no arrow) - gray text */
.mobile-final-item .mobile-menu-link {
    color: #666666;
    font-family: "Figtree", sans-serif;
    font-size: 20px;
}

.mobile-final-item .mobile-menu-link::after,
.mobile-final-item .mobile-menu-arrow {
    display: none !important;
}

/* Position relative for submenu containers */
.mobile-menu-item.has-submenu {
    position: relative;
}

/* Only show toggle on mobile */
@media (min-width: 768px) {
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Mobile-only styles */
@media (max-width: 767px) {
    
    .header {
        margin-top: 0;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile menu container positioning */
    .mobile-nav-content {
        position: relative;
    }

    /* Full height submenus */
    .mobile-submenu-level-2,
    .mobile-submenu-level-3,
    .mobile-submenu-level-4 {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    /* Mobile overlay toggle behavior */
    .mobile-nav-overlay {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-nav-overlay.is-open {
        display: block;
        transform: translateX(0);
    }
}

