/* =========================================================
   DZ HEADER STACKING + STICKY COMPATIBILITY V4.1.3
   Keeps dropdowns in front at page top WITHOUT overriding
   the theme's native love-sticky scroll positioning.
   ========================================================= */

@media (min-width: 1200px) {
    /*
     * Give the whole header a stacking context from first paint.
     * IMPORTANT: do NOT force position on .header-main/.love-sticky.
     * The native 6Valley sticky script/CSS remains free to switch
     * that bar to its original sticky/fixed state while scrolling.
     */
    .header {
        position: relative !important;
        z-index: 1030 !important;
        overflow: visible !important;
        isolation: isolate;
    }

    .header-top,
    .header-middle {
        position: relative;
        overflow: visible !important;
    }

    .header-main,
    .header-main.love-sticky {
        z-index: 1031 !important;
        overflow: visible !important;
    }

    .header-main > .container,
    .header-main > .container > .d-flex,
    .header-main .nav-wrapper,
    .header-main .dropdown,
    .header-main .main-menu,
    .header-main .main-menu > li {
        overflow: visible !important;
    }

    /* Main Select Category dropdown */
    .header-main .dropdown > .dropdown-menu.dropdown--menu,
    .header-main .dropdown-menu.dropdown--menu.show {
        z-index: 1200 !important;
    }

    /* Category children / grandchildren / mega menus */
    .header-main .dropdown--menu .sub-menu,
    .header-main .dropdown--menu li:hover > .sub-menu,
    .header-main .main-menu > li > .sub-menu,
    .header-main .main-menu li:hover > .sub-menu,
    .header-main .main-menu .megamenu {
        z-index: 1210 !important;
    }

    .header .dropdown-menu.show,
    .header .search-result-box {
        z-index: 1220 !important;
    }
}
