/*
 * Doudoudis desktop sticky navigation — v1.4.77.
 * Only the real Woodmart navigation row stays sticky. The navy/general header
 * scrolls away normally. Mobile header remains untouched.
 */
@media (min-width: 1025px) {
    /* Suppress Woodmart's separate desktop sticky clone. We keep the actual
       navigation row sticky so its mega menus retain the normal-header DOM. */
    .whb-sticky-header.whb-clone {
        display: none !important;
    }

    .doudoudis-sticky-header-placeholder {
        display: block;
        width: 100%;
        height: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        pointer-events: none;
    }

    body.doudoudis-desktop-header-stuck .doudoudis-sticky-header-placeholder {
        height: var(--dou-sticky-nav-height, 54px);
    }

    /* Only the menu/navigation row is fixed. */
    body.doudoudis-desktop-header-stuck .whb-header .whb-header-bottom {
        position: fixed !important;
        top: var(--dou-sticky-admin-offset, 0px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 390 !important;
    }

    /* Never pin the navy/general header. */
    body.doudoudis-desktop-header-stuck .whb-header .whb-general-header {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: auto !important;
        z-index: auto !important;
    }

    /* Woodmart may retain scroll-direction transforms on the wrapper. Remove
       them only while our real navigation row is sticky. */
    body.doudoudis-desktop-header-stuck .whb-header,
    body.doudoudis-desktop-header-stuck .whb-header.whb-hide-on-scroll,
    body.doudoudis-desktop-header-stuck .whb-header.whb-scroll-down,
    body.doudoudis-desktop-header-stuck .whb-header.whb-scroll-up,
    body.doudoudis-desktop-header-stuck .whb-header .whb-main-header,
    body.doudoudis-desktop-header-stuck .whb-header .whb-header-bottom {
        transform: none !important;
    }

    /* Keep mega menus attached directly below the real sticky menu row. */
    body.doudoudis-desktop-header-stuck .whb-header-bottom .wd-dropdown-menu,
    body.doudoudis-desktop-header-stuck .whb-header-bottom .sub-menu-dropdown {
        margin-top: 0 !important;
    }
}

@media (max-width: 1024px) {
    .doudoudis-sticky-header-placeholder {
        display: none !important;
        height: 0 !important;
    }
}
