/* AVAX reusable header state for pages/templates without a hero. */
body.avax-no-hero .avax-header {
    background-color: #fff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06) !important;
}

body.avax-no-hero .avax-header nav > ul > li > a {
    color: #000 !important;
}

body.avax-no-hero .avax-header nav > ul > li > a > .sub-arrow > svg,
body.avax-no-hero .avax-header .burgericon svg,
body.avax-no-hero .avax-header .site-header-right svg,
body.avax-no-hero .avax-header .site-header-logo svg {
    fill: #000 !important;
}

/* Keep the seven top-level items on one line at laptop widths. The Elementor
   header otherwise reserves 20% for each side and hides the menu at 1366px. */
@media (min-width: 1280px) and (max-width: 1600px) {
    .elementor-17341 .avax-header .elementor-element-15ba7b8 {
        --width: 16% !important;
        flex: 0 0 16% !important;
    }
    .elementor-17341 .avax-header .elementor-element-c2e3613 {
        --width: 70% !important;
        --align-items: center;
        flex: 0 0 70% !important;
    }
    .elementor-17341 .avax-header .site-header-right {
        --width: 14% !important;
        display: flex !important;
        flex: 0 0 14% !important;
        gap: 8px;
    }
    .elementor-17341 .avax-header .wpmenu {
        display: block !important;
        width: 100%;
    }
    .elementor-17341 .avax-header .burgericon {
        display: none !important;
    }
    .elementor-17341 .avax-header .wpmenu .elementor-nav-menu {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .elementor-17341 .avax-header .wpmenu .elementor-nav-menu--main .elementor-item {
        font-size: 13px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Elementor positions desktop submenus below the fixed header. Bridge the
   empty strip so a diagonal pointer movement does not close the dropdown. */
@media (min-width: 1280px) {
    .avax-header .wpmenu .elementor-nav-menu--main .sub-menu::before {
        content: "";
        position: absolute;
        top: -48px;
        left: 0;
        width: 100%;
        height: 48px;
    }
}

/* The sticky product category toolbar sits in a stacking context above the
   Elementor header. Raise the header while its desktop mega menu is open so
   the toolbar cannot cover the first rows of links when the menu opens. */
@media (min-width: 1280px) {
    body.tax-product_cat .avax-header:not(.elementor-sticky__spacer) {
        z-index: 50 !important;
    }
}

/* The default Hello page title sits at the top of Showrooms under the fixed
   navigation. Give it its own dark band before the showroom carousel. */
body.page-id-29 #content > .page-header {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 140px max(20px, calc((100vw - 1140px) / 2)) 35px;
    background: #171717;
}
body.page-id-29 #content > .page-header .entry-title {
    color: #fff;
    margin: 0;
}

/* An Elementor off-canvas panel is inside the header stacking context. Lift
   that context above the sticky Contract Division section on small screens. */
@media (max-width: 1024px) {
    body.page-id-17415 .avax-header:not(.elementor-sticky__spacer) {
        z-index: 100 !important;
    }
}
