:root { --gwbhv4-bg: rgba(255, 255, 255, .9); --gwbhv4-panel: #fff; --gwbhv4-text: #101828; --gwbhv4-muted: #667085; --gwbhv4-border: rgba(15, 23, 42, .08); --gwbhv4-soft: rgba(15, 23, 42, .055); --gwbhv4-primary: var(--byno-var-main-color, #14a36f); --gwbhv4-shadow: 0 16px 42px rgba(15, 23, 42, .08); }

/* kill older custom header patches without touching Buyno default markup */
.gwbsh-header,
.gwbph-header,
.gw-buyno-header,
.gwbsd-header,
.gwbsd-search-modal,
.gwbsd-category-drawer,
.gwbsd-mobile-category-trigger {
    display: none !important;
}

.gwbhv4-force-hidden,
.header-byno-full .wishlist-btn-byno,
.header-byno-full .byno-header-btn-support {
    display: none !important;
}

@media (min-width: 1025px) {
    .header-byno-full.byno-only-desktop {
        position: sticky !important;
        top: 0;
        z-index: 9000;
        width: 100%;
        padding: 10px 0 !important;
        background: transparent !important;
        direction: rtl;
    }

    .admin-bar .header-byno-full.byno-only-desktop {
        top: 32px;
    }

    .header-byno-full .banner-top-header-buyno {
        display: none !important;
    }

    .header-byno-full .inner-header-byno.gwbhv4-single-shell {
        width: min(1220px, calc(100% - 28px)) !important;
        margin-inline: auto !important;
        padding: 0 !important;
        background: var(--gwbhv4-bg) !important;
        border: 1px solid var(--gwbhv4-border) !important;
        border-radius: 22px !important;
        box-shadow: var(--gwbhv4-shadow) !important;
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        overflow: visible !important;
    }

    .header-byno-full .top-head-in-header-byno.gwbhv4-top-collapsed {
        display: none !important;
    }

    .header-byno-full .bottom-head-in-header-byno.gwbhv4-single-row {
        min-height: 66px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .header-byno-full .right-bottom-header-box-byno.gwbhv4-primary-side,
    .header-byno-full .left-bottom-header-box-byno.gwbhv4-action-side {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        min-width: 0;
    }

    .header-byno-full .right-bottom-header-box-byno.gwbhv4-primary-side {
        flex: 1 1 auto !important;
        overflow: visible !important;
    }

    .header-byno-full .left-bottom-header-box-byno.gwbhv4-action-side {
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
    }

    .header-byno-full .logo-header-byno.gwbhv4-logo {
        width: auto !important;
        min-width: 110px !important;
        max-width: 160px !important;
        height: 46px !important;
        padding: 0 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        text-decoration: none !important;
    }

    .header-byno-full .logo-header-byno.gwbhv4-logo img,
    .header-byno-full .logo-header-byno.gwbhv4-logo svg {
        max-width: 145px !important;
        max-height: 42px !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }

    /* Buyno default category button/icon + default mega-menu trigger are preserved. */
    .header-byno-full .category-btn-byno {
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
        border-radius: 16px !important;
        background: var(--gwbhv4-soft) !important;
        border: 1px solid transparent !important;
        color: var(--gwbhv4-text) !important;
        text-decoration: none !important;
        transition: .18s ease;
        white-space: nowrap !important;
    }

    .header-byno-full .category-btn-byno:hover {
        background: #fff !important;
        border-color: color-mix(in srgb, var(--gwbhv4-primary) 28%, transparent) !important;
        color: var(--gwbhv4-primary) !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    }

    .header-byno-full .category-btn-byno svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .header-byno-full .title-category-btn-header-byno {
        font-size: 13px !important;
        font-weight: 850 !important;
        color: inherit !important;
        white-space: nowrap !important;
    }

    .header-byno-full .header-menu-byno {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-byno-full .header-menu-byno > ul,
    .header-byno-full .byno-nav-main-menu {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .header-byno-full .header-menu-byno > ul::-webkit-scrollbar,
    .header-byno-full .byno-nav-main-menu::-webkit-scrollbar {
        display: none;
    }

    .header-byno-full .header-menu-byno li {
        flex: 0 0 auto !important;
    }

    .header-byno-full .header-menu-byno a {
        min-height: 40px !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 14px !important;
        color: var(--gwbhv4-text) !important;
        font-size: 13px !important;
        font-weight: 750 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .header-byno-full .header-menu-byno a:hover {
        background: var(--gwbhv4-soft) !important;
        color: var(--gwbhv4-primary) !important;
    }

    .header-byno-full .byno-search-wrapper-desktop,
    .header-byno-full .logo-search-box-header-byno,
    .header-byno-full .btns-login-cart-box-header-byno:empty {
        display: none !important;
    }

    .gwbhv4-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }

    .gwbhv4-search-toggle,
    .header-byno-full .gwbhv4-action-link,
    .header-byno-full .gwbhv4-cart-wrap > .cart-btn-byno {
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 16px !important;
        border: 1px solid transparent !important;
        background: var(--gwbhv4-soft) !important;
        color: var(--gwbhv4-text) !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        cursor: pointer;
        white-space: nowrap !important;
        line-height: 1 !important;
        transition: .18s ease;
    }

    .gwbhv4-search-toggle {
        width: 44px !important;
        padding: 0 !important;
        font: inherit !important;
    }

    .gwbhv4-search-toggle:hover,
    .header-byno-full .gwbhv4-action-link:hover,
    .header-byno-full .gwbhv4-cart-wrap > .cart-btn-byno:hover {
        background: #fff !important;
        border-color: color-mix(in srgb, var(--gwbhv4-primary) 28%, transparent) !important;
        color: var(--gwbhv4-primary) !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    }

    .gwbhv4-search-toggle svg,
    .header-byno-full .gwbhv4-action-link svg,
    .header-byno-full .gwbhv4-cart-wrap > .cart-btn-byno svg {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
        display: block !important;
    }

    .header-byno-full .gwbhv4-action-link .title-cart-btn-header-byno,
    .header-byno-full .gwbhv4-cart-wrap > .cart-btn-byno .title-cart-btn-header-byno,
    .header-byno-full .gwbhv4-cart-wrap > .cart-btn-byno span:not(.cart-count-badge) {
        display: inline-flex !important;
        color: inherit !important;
        font-size: 13px !important;
        font-weight: 850 !important;
    }

    .header-byno-full .gwbhv4-cart-wrap {
        position: relative !important;
        display: inline-flex !important;
    }

    .header-byno-full .gwbhv4-cart-wrap .cart-count-badge,
    .header-byno-full .cart-count-badge {
        position: absolute !important;
        top: 3px !important;
        left: 4px !important;
        z-index: 2;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: var(--gwbhv4-primary) !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .byno-desktop-menu-box {
        z-index: 97000 !important;
    }
}

/* desktop search popup */
.gwbhv4-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    direction: rtl;
    transition: opacity .2s ease, visibility .2s ease;
}

.gwbhv4-search-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gwbhv4-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 16, 19, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gwbhv4-search-card {
    position: relative;
    width: min(640px, calc(100vw - 28px));
    margin: 9vh auto 0;
    padding: 22px;
    background: var(--gwbhv4-panel);
    border: 1px solid var(--gwbhv4-border);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
    transform: translateY(14px) scale(.98);
    transition: transform .22s ease;
}

.gwbhv4-search-modal.is-open .gwbhv4-search-card {
    transform: translateY(0) scale(1);
}

.gwbhv4-search-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--gwbhv4-soft);
    color: var(--gwbhv4-text);
    cursor: pointer;
}

.gwbhv4-search-close svg {
    width: 21px;
    height: 21px;
}

.gwbhv4-search-title {
    margin: 4px 0 18px;
    padding-left: 52px;
    color: var(--gwbhv4-text);
    font-size: 20px;
    font-weight: 900;
}

.gwbhv4-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    background: #f5f7fb;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
}

.gwbhv4-search-form-icon {
    width: 28px;
    height: 28px;
    color: var(--gwbhv4-muted);
    flex: 0 0 28px;
}

.gwbhv4-search-form-icon svg {
    width: 100%;
    height: 100%;
}

.gwbhv4-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--gwbhv4-text);
    font-size: 15px;
    font-weight: 650;
}

.gwbhv4-search-form button[type="submit"] {
    height: 42px;
    min-width: 86px;
    border: 0;
    border-radius: 14px;
    background: var(--gwbhv4-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

body.gwbhv4-modal-lock {
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    /* keep Buyno default mobile header/menu, hide only bottom nav bar */
    .header-byno-full,
    .gwbsd-header,
    .gwbsh-header,
    .gwbph-header,
    .gw-buyno-header {
        display: none !important;
    }

    .byno-mobile-header {
        display: flex !important;
        overflow: visible !important;
    }

    .mobile-navigation-byno:not(.byno-mobile-product-nav) {
        display: none !important;
    }

    .mobile-navigation-byno-before {
        display: none !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) !important;
        z-index: 10010 !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav.is-hidden {
        transform: translateX(-50%) !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav + .mobile-navigation-byno-before {
        display: block !important;
        height: 92px !important;
        width: 100% !important;
    }

    .byno-mobile-header .byno-header-btn-support {
        display: none !important;
    }

    .byno-mobile-header .left-box-m-header-byno,
    .byno-mobile-header .right-box-m-header-byno {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .byno-mobile-header .left-box-m-header-byno {
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        min-width: 0;
    }

    .byno-mobile-header .right-box-m-header-byno {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .gwbhv4-mobile-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
    }

    .gwbhv4-mobile-actions .gwbhv4-mobile-action,
    .byno-mobile-header .item-mobile-nav-byno.searchicon-m-header,
    .byno-mobile-header .byno-mobile-header-shop-btn,
    .byno-mobile-header .byno-mobile-header-goback {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: var(--byno-var-color-light-dark-opacity-bg, rgba(15, 23, 42, .06)) !important;
        color: var(--byno-var-color-light-dark-opacity-text, #334155) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        text-decoration: none !important;
        position: relative !important;
        overflow: visible !important;
        box-shadow: none !important;
        flex: 0 0 38px !important;
    }

    .gwbhv4-mobile-actions .gwbhv4-mobile-action svg,
    .byno-mobile-header .item-mobile-nav-byno.searchicon-m-header svg,
    .byno-mobile-header .byno-mobile-header-shop-btn svg,
    .byno-mobile-header .byno-mobile-header-goback svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        display: block !important;
        margin: 0 !important;
    }

    .gwbhv4-mobile-actions .title-item-mobile-nav,
    .gwbhv4-mobile-actions .title-cart-btn-header-byno,
    .gwbhv4-mobile-actions .title-category-btn-header-byno {
        display: none !important;
    }

    .gwbhv4-mobile-actions .cart-count-badge,
    .byno-mobile-header .cart-count-badge {
        position: absolute !important;
        top: -4px !important;
        left: -4px !important;
        z-index: 5;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--gwbhv4-primary) !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .byno-mobile-header-logo img,
    .byno-mobile-header-logo svg {
        max-height: 40px !important;
        width: auto !important;
    }

    .gwbhv4-search-modal {
        display: none !important;
    }
}

/* v6: AJAX search results */
@media (min-width: 1025px) {
    .header-byno-full.byno-only-desktop.gwbhv6-done.header-scrolled .bottom-head-in-header-byno.gwbhv4-single-row {
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .header-byno-full.byno-only-desktop.gwbhv6-done.header-scrolled .inner-header-byno.gwbhv4-single-shell {
        padding: 0 !important;
        gap: 0 !important;
    }

    .header-byno-full.byno-only-desktop.gwbhv6-done.header-scrolled {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .gwbhv6-mini-cart-wrap {
        position: relative !important;
    }

    .header-byno-full .gwbhv6-mini-cart-wrap .mini-cart-dropdown-byno {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        z-index: 96000 !important;
        text-align: right !important;
    }

    .header-byno-full .gwbhv6-mini-cart-wrap:hover .mini-cart-dropdown-byno,
    .header-byno-full .gwbhv6-mini-cart-wrap.is-open .mini-cart-dropdown-byno {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

.gwbhv6-search-intro {
    margin: 0 0 14px;
    color: var(--gwbhv4-muted);
    font-size: 13px;
    line-height: 1.8;
}

.gwbhv6-search-results {
    margin-top: 14px;
    min-height: 58px;
}

.gwbhv6-search-message {
    min-height: 58px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--gwbhv4-border);
    border-radius: 18px;
    background: rgba(15, 23, 42, .035);
    color: var(--gwbhv4-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.gwbhv6-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.gwbhv6-results-head strong {
    color: var(--gwbhv4-text);
    font-size: 14px;
    font-weight: 900;
}

.gwbhv6-results-head a {
    color: var(--gwbhv4-primary);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.gwbhv6-results-list {
    display: grid;
    gap: 9px;
    max-height: min(56vh, 480px);
    overflow: auto;
    padding-left: 3px;
}

.gwbhv6-result-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid var(--gwbhv4-border);
    border-radius: 18px;
    background: #fff;
    color: var(--gwbhv4-text);
    text-decoration: none;
    transition: .18s ease;
}

.gwbhv6-result-item:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--gwbhv4-primary) 28%, transparent);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.gwbhv6-result-img {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: rgba(15, 23, 42, .045);
    overflow: hidden;
}

.gwbhv6-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gwbhv6-result-info {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.gwbhv6-result-title {
    color: var(--gwbhv4-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwbhv6-result-meta {
    color: var(--gwbhv4-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwbhv6-result-price {
    color: var(--gwbhv4-primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.gwbhv6-category-results {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.gwbhv6-category-chip {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .055);
    color: var(--gwbhv4-text);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    transition: .18s ease;
}

.gwbhv6-category-chip:hover {
    background: color-mix(in srgb, var(--gwbhv4-primary) 14%, #fff);
    color: var(--gwbhv4-primary);
}

@media (max-width: 640px) {
    .gwbhv6-result-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .gwbhv6-result-price {
        grid-column: 2;
    }
}


/* v6: keep mobile product purchase bar and make mobile header identical on all pages */
body.buyno-child-active,
.header-byno-full.gwbhv4-done,
.gwbhv4-search-modal,
.gwbhv4-search-overlay,
.gwbhv4-mini-cart {
    --gwbhv6-primary: var(--byno-var-main-color, #2C8943);
    --gwbhv4-primary: var(--byno-var-main-color, #2C8943);
}

@media (max-width: 1024px) {
    .single-product .byno-mobile-header,
    .byno-mobile-header.gwbhv6-mobile-unified {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .single-product .byno-mobile-header .middle-box-m-header-byno,
    .single-product .byno-mobile-header .page-title-mobile-byno,
    .byno-mobile-header .byno-mobile-header-goback,
    .byno-mobile-header .byno-header-btn-support {
        display: none !important;
    }

    .byno-mobile-header .right-box-m-header-byno {
        order: 1 !important;
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
    }

    .byno-mobile-header .left-box-m-header-byno {
        order: 2 !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
    }

    .byno-mobile-header .gwbhv6-mobile-logo-slot,
    .byno-mobile-header .byno-mobile-header-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 78px !important;
        max-width: 132px !important;
        height: 42px !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }

    .byno-mobile-header .gwbhv6-mobile-logo-slot img,
    .byno-mobile-header .gwbhv6-mobile-logo-slot svg,
    .byno-mobile-header .byno-mobile-header-logo img,
    .byno-mobile-header .byno-mobile-header-logo svg {
        max-width: 128px !important;
        max-height: 40px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .gwbhv6-mobile-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
    }

    .gwbhv6-mobile-actions .gwbhv4-mobile-action,
    .gwbhv6-mobile-actions .gwbhv6-mobile-action,
    .gwbhv6-mobile-actions .item-mobile-nav-byno,
    .gwbhv6-mobile-actions .searchicon-m-header,
    .gwbhv6-mobile-actions .byno-mobile-header-shop-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        flex: 0 0 38px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: var(--byno-var-color-light-dark-opacity-bg, rgba(15,23,42,.06)) !important;
        color: var(--byno-var-color-light-dark-opacity-text, #334155) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: visible !important;
        text-decoration: none !important;
        box-shadow: none !important;
        line-height: 1 !important;
    }

    .gwbhv6-mobile-actions svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        display: block !important;
        margin: 0 !important;
    }

    .gwbhv6-mobile-actions .title-item-mobile-nav,
    .gwbhv6-mobile-actions .title-cart-btn-header-byno,
    .gwbhv6-mobile-actions .title-category-btn-header-byno {
        display: none !important;
    }

    .gwbhv6-mobile-actions .cart-count-badge {
        background: var(--gwbhv6-primary) !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) !important;
        bottom: 10px !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav.is-hidden {
        transform: translateX(-50%) !important;
    }

    .single-product .mobile-navigation-byno.byno-mobile-product-nav .byno-mobile-purchase-btn,
    .single-product .mobile-navigation-byno.byno-mobile-product-nav button,
    .single-product .mobile-navigation-byno.byno-mobile-product-nav a {
        background-color: var(--gwbhv6-primary) !important;
        border-color: var(--gwbhv6-primary) !important;
    }
}


/* =========================================================
   GW FINAL FIX - mini-cart + mega menu stable layer
   - Mega menu position remains Buyno default
   - Only z-index/overflow needed for header and cart is fixed
   - No fixed/inset override for .byno-desktop-menu-box
========================================================= */

@media (min-width: 1025px) {

    /* Sticky header layer */
    .header-byno-full.byno-only-desktop,
    .header-byno-full.byno-only-desktop.gwbhv4-done,
    .header-byno-full.byno-only-desktop.gwbhv6-done {
        position: sticky !important;
        top: 0 !important;
        z-index: 9000 !important;
        overflow: visible !important;
    }

    .admin-bar .header-byno-full.byno-only-desktop,
    .admin-bar .header-byno-full.byno-only-desktop.gwbhv4-done,
    .admin-bar .header-byno-full.byno-only-desktop.gwbhv6-done {
        top: 32px !important;
    }

    /* Only the required header wrappers must allow dropdowns to escape */
    .header-byno-full .inner-header-byno,
    .header-byno-full .bottom-head-in-header-byno,
    .header-byno-full .left-bottom-header-box-byno,
    .header-byno-full .gwbhv4-action-side,
    .header-byno-full .gwbhv4-actions,
    .header-byno-full .gwbhv4-cart-wrap,
    .header-byno-full .gwbhv6-mini-cart-wrap,
    .header-byno-full .cart-btn-byno,
    .header-byno-full .header-cart-byno,
    .header-byno-full .shop-cart-byno {
        overflow: visible !important;
    }

    /* Keep Buyno mega menu default positioning; only lift its layer */
    .byno-desktop-menu-box,
    body > .byno-desktop-menu-box,
    .header-byno-full .byno-desktop-menu-box {
        z-index: 97000 !important;
    }

    .byno-desktop-menu-box.is-open,
    .byno-desktop-menu-box.active,
    .byno-desktop-menu-box.open,
    .byno-desktop-menu-box.show {
        z-index: 97000 !important;
    }

    .byno-desktop-menu-inside,
    .byno-desktop-menu-box .mega-menu-byno,
    .byno-desktop-menu-box .vertical-menu-byno,
    .byno-desktop-menu-box .category-menu-byno,
    .byno-desktop-menu-box .cats-menu-byno,
    .byno-desktop-menu-box .menu-categories-byno,
    .byno-desktop-menu-box .dropdown-menu,
    .byno-desktop-menu-box .sub-menu {
        z-index: 97010 !important;
    }

    /* Mini-cart wrapper must sit above the header shell */
    .header-byno-full .gwbhv4-cart-wrap,
    .header-byno-full .gwbhv6-mini-cart-wrap,
    .header-byno-full .cart-btn-byno,
    .header-byno-full .header-cart-byno,
    .header-byno-full .shop-cart-byno {
        position: relative !important;
        z-index: 98000 !important;
        overflow: visible !important;
    }

    /* Mini-cart dropdown: visible below cart button, not hidden behind header/content */
    .header-byno-full .mini-cart-dropdown-byno,
    .header-byno-full .gwbhv6-mini-cart,
    .header-byno-full .gwbhv4-mini-cart,
    .header-byno-full .widget_shopping_cart,
    .header-byno-full .cart-dropdown,
    .header-byno-full .cart-content {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        z-index: 98010 !important;
        max-height: min(70vh, 560px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transform: translateY(0) !important;
    }

    .header-byno-full .gwbhv6-mini-cart-wrap:hover .mini-cart-dropdown-byno,
    .header-byno-full .gwbhv6-mini-cart-wrap.is-open .mini-cart-dropdown-byno,
    .header-byno-full .gwbhv4-cart-wrap:hover .mini-cart-dropdown-byno,
    .header-byno-full .gwbhv4-cart-wrap.is-open .mini-cart-dropdown-byno,
    .header-byno-full .header-cart-byno:hover .mini-cart-dropdown-byno,
    .header-byno-full .shop-cart-byno:hover .mini-cart-dropdown-byno {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Search modal stays above everything */
    .gwbhv4-search-modal,
    .gwbhv6-search-modal {
        z-index: 100000 !important;
    }
}

/* Mobile purchase bar should stay untouched */
@media (max-width: 1024px) {
    .single-product .mobile-navigation-byno.byno-mobile-product-nav {
        z-index: 10010 !important;
    }
}

/* =========================================================
   GW ELEMENTOR NAVBAR + HEADER FINAL RESPONSIVE CONTROL
   Logic:
   - 0..1024px  => Buyno mobile header + Elementor navbar 577
   - 1025px+    => Buyno desktop header only
========================================================= */

/* Elementor navbar must be hidden by default; media queries below decide visibility. */
.gw-elementor-navbar-577,
.gw-mobile-navbar,
.elementor-element.gw-elementor-navbar-577,
.elementor-element.gw-mobile-navbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    /* Desktop header must not appear on mobile/tablet. */
    .header-byno-full.byno-only-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Buyno mobile header stays visible. */
    .byno-mobile-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 99990 !important;
        overflow: visible !important;
    }

    /* Buyno default bottom navigation remains off; Elementor navbar replaces it. */
    .mobile-navigation-byno:not(.byno-mobile-product-nav),
    .mobile-navigation-byno-before:not(.byno-mobile-product-nav + .mobile-navigation-byno-before) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Elementor mobile navbar: visible through tablet, always above Elementor sections/sliders. */
    .gw-elementor-navbar-577,
    .gw-mobile-navbar,
    .elementor-element.gw-elementor-navbar-577,
    .elementor-element.gw-mobile-navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 999999 !important;
        transform: none !important;
    }

    .gw-elementor-navbar-577 *,
    .gw-mobile-navbar *,
    .elementor-element.gw-elementor-navbar-577 *,
    .elementor-element.gw-mobile-navbar * {
        visibility: visible !important;
    }

    body:not(.single-product) {
        padding-bottom: 74px !important;
    }
}

@media (min-width: 1025px) {
    /* Hide mobile header and every mobile navbar on desktop. */
    .byno-mobile-header,
    .mobile-navigation-byno,
    .mobile-navigation-byno-before,
    .gw-elementor-navbar-577,
    .gw-mobile-navbar,
    .elementor-element.gw-elementor-navbar-577,
    .elementor-element.gw-mobile-navbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    body {
        padding-bottom: 0 !important;
    }

    /* Prevent the raw two-row desktop header flash while JS is rearranging. */
    .header-byno-full.byno-only-desktop:not(.gwbhv6-done) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        max-height: 92px !important;
        overflow: hidden !important;
    }

    .header-byno-full.byno-only-desktop.gwbhv6-done,
    .header-byno-full.byno-only-desktop.gwbhv4-done {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
}
