/* =========================================================
   DZ LOGO + SEARCH + NAV STICKY V4.1.5
   Top strip scrolls normally.
   Middle header + navbar become fixed together after reaching top.
   ========================================================= */

@media (min-width: 1200px) {
    /* Undo V4.1.4 full-header sticky. */
    .header {
        position: relative !important;
        top: auto !important;
        inset-block-start: auto !important;
        z-index: 1030 !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        isolation: auto !important;
    }

    /* Top strip is NOT sticky. */
    .header .header-top {
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
        box-shadow: none !important;
    }

    /* Shared desktop sticky block: logo/search + navbar. */
    .dz-sticky-main-header {
        position: relative;
        width: 100%;
        z-index: 1035;
        background: var(--dz-header-bg, #fff);
        overflow: visible !important;
    }

    .dz-sticky-main-header.dz-is-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1035 !important;
        background: var(--dz-header-bg, #fff);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
    }

    .dz-sticky-main-header-spacer {
        display: block;
        width: 100%;
        height: 0;
        pointer-events: none;
    }

    /* Keep both lower header rows together. */
    .dz-sticky-main-header .header-middle,
    .dz-sticky-main-header .header-main,
    .dz-sticky-main-header .header-main.love-sticky,
    .dz-sticky-main-header .header-main.love-sticky.fixed,
    .dz-sticky-main-header .header-main.love-sticky.active,
    .dz-sticky-main-header .header-main.fixed,
    .dz-sticky-main-header .header-main.sticky,
    .dz-sticky-main-header .header-main.fixed-top {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        inset-block-start: auto !important;
        inset-block-end: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .dz-sticky-main-header .header-middle {
        z-index: 2 !important;
    }

    .dz-sticky-main-header .header-main {
        z-index: 3 !important;
    }

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

    /* Dropdowns stay above homepage content in normal and fixed states. */
    .dz-sticky-main-header .dropdown-menu,
    .dz-sticky-main-header .dropdown-menu.show,
    .dz-sticky-main-header .dropdown--menu,
    .dz-sticky-main-header .dropdown--menu .sub-menu,
    .dz-sticky-main-header .main-menu .sub-menu,
    .dz-sticky-main-header .main-menu .megamenu,
    .dz-sticky-main-header .search-result-box {
        z-index: 1220 !important;
    }
}

[theme="dark"] .dz-sticky-main-header,
[theme="dark"] .dz-sticky-main-header.dz-is-fixed {
    background: var(--dz-header-bg, #141414);
}

/* Mobile remains on the original 6Valley behavior. */
@media (max-width: 1199.98px) {
    .dz-sticky-main-header-spacer {
        display: none !important;
        height: 0 !important;
    }
}
