/* ── NOSA custom header ── */

/* Hide broken orphan nodes until JS moves them into the shell */
@media screen and (min-width: 990px) {
    body.store-theme-active #siteHeader > .header__heading-link,
    body.store-theme-active #siteHeader > .header__inline-menu,
    body.store-theme-active #siteHeader > .header__icons {
        display: none !important;
    }
}

body.store-theme-active #siteHeader .shopify-section-group-header-group,
body.store-theme-active #siteHeader sticky-header.header-wrapper,
body.store-theme-active #siteHeader .header-wrapper,
body.store-theme-active #siteHeader .section-header {
    background: #3a4242 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.store-theme-active #siteHeader .header.tks-header-custom {
    --color-foreground: 255 255 255;
    --color-background: 58 66 66;
    background: transparent !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: none !important;
}

/* Hide legacy Dawn row on desktop */
@media screen and (min-width: 990px) {
    body.store-theme-active #siteHeader .header.tks-header-custom > header-drawer {
        display: none !important;
    }

    body.store-theme-active #siteHeader .header.tks-header-custom > .header__heading-link,
    body.store-theme-active #siteHeader .header.tks-header-custom > .header__inline-menu,
    body.store-theme-active #siteHeader .header.tks-header-custom > .header__icons,
    body.store-theme-active #siteHeader .header.tks-header-custom > .tks-header-bar {
        display: none !important;
    }
}

/* ── Main shell ── */
body.store-theme-active .tks-site-logo__img,
body.store-theme-active .header__heading-logo-wrapper img {
    display: block;
    height: 4.125rem;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

body.store-theme-active .tks-nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media screen and (min-width: 990px) {
    body.store-theme-active .tks-nav-shell {
        height: 8.25rem;
        padding: 0 clamp(1.25rem, 3vw, 3.5rem);
    }
}

body.store-theme-active .tks-nav__logo {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    transition: opacity 0.2s ease;
}

body.store-theme-active .tks-nav__logo-img {
    display: block;
    height: 4.125rem;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

body.store-theme-active .tks-nav__logo:hover {
    opacity: 0.82;
}

/* Nav — true visual center (desktop only) */
@media screen and (min-width: 990px) {
    body.store-theme-active #siteHeader .header.tks-header-custom {
        display: block !important;
    }

    body.store-theme-active .tks-nav__center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        max-width: min(1100px, calc(100vw - 28rem));
        pointer-events: none;
    }

    body.store-theme-active .tks-nav__center .header__inline-menu,
    body.store-theme-active .tks-nav__center .list-menu--inline,
    body.store-theme-active .tks-nav__center .header__menu-item,
    body.store-theme-active .tks-nav__center summary.header__menu-item {
        pointer-events: auto;
    }

    body.store-theme-active .tks-nav__center .header__inline-menu {
        display: block !important;
        margin: 0 !important;
    }

    body.store-theme-active .tks-nav__center .list-menu--inline {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.525rem !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body.store-theme-active .tks-nav__center .header__menu-item,
    body.store-theme-active .tks-nav__center summary.header__menu-item,
    body.store-theme-active .tks-nav__center .header__menu-item.caption-large,
    body.store-theme-active .tks-nav__center summary.header__menu-item.caption-large {
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 1.125rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        line-height: 1.3 !important;
        padding: 0.5rem 0.85rem !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    body.store-theme-active .tks-nav__center .header__menu-item:hover,
    body.store-theme-active .tks-nav__center summary.header__menu-item:hover,
    body.store-theme-active .tks-nav__center .header__active-menu-item {
        color: #fff !important;
    }

    body.store-theme-active .tks-nav__center .header__menu-item span,
    body.store-theme-active .tks-nav__center summary.header__menu-item span {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }

    body.store-theme-active .tks-nav__center .icon-caret {
        color: rgba(255, 255, 255, 0.7) !important;
        width: 0.95rem !important;
        height: 0.95rem !important;
        margin-left: 0.35rem !important;
    }

    body.store-theme-active .tks-nav__center .header__submenu {
        background: #4a5353 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
    }

    body.store-theme-active .tks-nav__center .header__submenu .header__menu-item {
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 1.125rem !important;
        padding: 0.75rem 1.4rem !important;
    }
}

/* Actions — right */
body.store-theme-active .tks-nav__actions {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    margin-left: auto !important;
}

body.store-theme-active .tks-nav__actions .header__icons {
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.store-theme-active .tks-nav__actions .header__icon,
body.store-theme-active .tks-nav__actions .header__icon span {
    color: #fff !important;
}

@media screen and (min-width: 990px) {
    body.store-theme-active .tks-nav__actions .header__icon .icon,
    body.store-theme-active .tks-nav__actions .header__icon svg {
        color: #fff !important;
        fill: currentColor !important;
        width: 2.4rem !important;
        height: 2.4rem !important;
    }

    body.store-theme-active .tks-nav__actions .header__icon {
        width: 4.125rem !important;
        height: 4.125rem !important;
        padding: 0 !important;
        opacity: 0.88;
        transition: opacity 0.2s ease;
    }

    body.store-theme-active .tks-nav__actions .header__icon:hover {
        opacity: 1;
    }

    /* Cart icon — larger tap target */
    body.store-theme-active .tks-nav__actions .header__icon--cart,
    body.store-theme-active .tks-nav__actions #cart-icon-bubble {
        position: relative !important;
        overflow: visible !important;
        width: 6.75rem !important;
        height: 6.75rem !important;
        flex-shrink: 0 !important;
    }

    body.store-theme-active .tks-nav__actions .header__icon--cart .icon,
    body.store-theme-active .tks-nav__actions .header__icon--cart svg,
    body.store-theme-active .tks-nav__actions #cart-icon-bubble .icon,
    body.store-theme-active .tks-nav__actions #cart-icon-bubble svg,
    body.store-theme-active .tks-nav__actions #cart-icon-bubble svg.icon-cart-empty,
    body.store-theme-active .tks-nav__actions #cart-icon-bubble svg.icon-cart {
        width: 4.3125rem !important;
        height: 4.3125rem !important;
        min-width: 4.3125rem !important;
        min-height: 4.3125rem !important;
    }

    body.store-theme-active .tks-nav__actions .cart-count-bubble {
        position: absolute !important;
        top: 12px !important;
        right: 4px !important;
        bottom: auto !important;
        left: auto !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        color: #3a4242 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
        z-index: 5 !important;
        pointer-events: none !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    body.store-theme-active .tks-nav__actions .cart-count-bubble span {
        display: block !important;
        color: #3a4242 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 18px !important;
    }
}

body.store-theme-active .tks-nav__actions .cart-count-bubble.is-visible {
    display: flex !important;
}

/* ── Mobile: custom single-row topbar ── */
@media screen and (max-width: 989px) {
    #siteHeader[data-tks-mobile-topbar="1"] {
        background: #3a4242 !important;
        min-height: 3.25rem !important;
        height: auto !important;
        position: relative !important;
        z-index: 10080 !important;
    }

    #siteHeader[data-tks-mobile-topbar="1"] .tks-dawn-header-hidden,
    #siteHeader[data-tks-mobile-topbar="1"] .announcement-bar-section,
    #siteHeader[data-tks-mobile-topbar="1"] .section-header,
    #siteHeader[data-tks-mobile-topbar="1"] sticky-header,
    #siteHeader[data-tks-mobile-topbar="1"] cart-notification,
    #siteHeader[data-tks-mobile-topbar="1"] .header {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    .tks-mobile-topbar {
        display: block;
        width: 100%;
        background: #3a4242;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10081;
    }

    .tks-mobile-topbar--menu-open .tks-mobile-topbar__menu svg {
        opacity: 0;
    }

    .tks-mobile-topbar--menu-open .tks-mobile-topbar__menu::after {
        content: "\00d7";
        position: absolute;
        font-size: 1.75rem;
        line-height: 1;
        color: #fff;
    }

    .tks-mobile-topbar__menu {
        position: relative;
    }

    .tks-mobile-topbar__inner {
        display: -webkit-box;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        height: 3.25rem;
        max-height: 3.25rem;
        padding: 0 0.65rem;
        box-sizing: border-box;
        gap: 0.25rem;
    }

    .tks-mobile-topbar__btn {
        display: -webkit-inline-box;
        display: inline-flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        flex: 0 0 2.75rem;
    }

    .tks-mobile-topbar__logo {
        -webkit-box-flex: 1;
        flex: 1 1 auto;
        display: -webkit-box;
        display: flex;
        -webkit-box-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        align-items: center;
        min-width: 0;
        line-height: 0;
        text-decoration: none;
    }

    .tks-mobile-topbar__logo img {
        display: block;
        height: 2rem;
        width: auto;
        max-width: min(170px, 52vw);
        object-fit: contain;
    }

    .tks-mobile-topbar__actions {
        display: -webkit-box;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: end;
        justify-content: flex-end;
        flex: 0 0 10rem;
        gap: 0;
    }

    .tks-mobile-topbar__btn--cart {
        width: 4rem;
        height: 4rem;
        min-width: 4rem;
        flex: 0 0 4rem;
    }

    .tks-mobile-topbar__btn--cart svg,
    .tks-mobile-topbar__btn--cart .icon {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }

    .tks-mobile-topbar__cart {
        position: relative;
    }

    .tks-mobile-topbar__cart-count {
        position: absolute;
        top: 2px;
        right: 0;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #fff;
        color: #3a4242;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        display: none;
    }

    .tks-mobile-topbar__cart-count.is-visible {
        display: block;
    }

    .tks-mobile-header-portal {
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        overflow: visible;
        z-index: 10076;
        pointer-events: none;
    }

    .tks-mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(18, 18, 18, 0.55);
        z-index: 10074;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .tks-mobile-backdrop[hidden]:not(.is-visible) {
        display: none !important;
    }

    .tks-menu-drawer-close {
        position: absolute;
        top: 0.65rem;
        right: 0.65rem;
        z-index: 5;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.75rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    html.tks-mobile-menu-open #tksMobileHeaderPortal .menu-drawer,
    html.tks-mobile-menu-open #tksMobileHeaderPortal #menu-drawer {
        padding-top: 2.75rem !important;
        box-sizing: border-box !important;
    }

    .tks-mobile-header-portal header-drawer,
    .tks-mobile-header-portal details-modal.header__search,
    .tks-mobile-header-portal details-modal {
        pointer-events: auto;
    }

    .tks-mobile-header-portal .menu-drawer,
    .tks-mobile-header-portal .search-modal,
    .tks-mobile-header-portal .search-modal.details[open],
    .tks-mobile-header-portal #searchBox[open] {
        pointer-events: auto;
    }

    .tks-mobile-header-portal summary.header__icon--menu,
    .tks-mobile-header-portal details-modal.header__search > summary,
    .tks-mobile-header-portal details-modal.header__search > .summary,
    .tks-mobile-header-portal #searchTrigger {
        position: fixed;
        top: -9999px;
        left: 0;
        opacity: 0;
        pointer-events: none;
    }

    html:not(.tks-mobile-menu-open) #tksMobileHeaderPortal .menu-drawer,
    html:not(.tks-mobile-menu-open) #tksMobileHeaderPortal #menu-drawer {
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html.tks-mobile-menu-open #tksMobileHeaderPortal .menu-drawer,
    html.tks-mobile-menu-open #tksMobileHeaderPortal #menu-drawer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(88vw, 360px) !important;
        max-width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        display: block !important;
        z-index: 10077 !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }

    html.tks-mobile-search-open #tksMobileHeaderPortal #searchBox[open],
    html.tks-mobile-search-open #tksMobileHeaderPortal .search-modal.details[open] {
        position: fixed !important;
        inset: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 4.5rem 1rem 1rem !important;
        z-index: 10062 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html.tks-mobile-search-open #tksMobileHeaderPortal .search-modal__content {
        width: min(920px, 100%) !important;
        position: relative !important;
        inset: auto !important;
    }

    .tks-mobile-search-sheet {
        position: fixed;
        inset: 0;
        z-index: 10078;
        pointer-events: none;
    }

    .tks-mobile-search-sheet:not([hidden]) {
        pointer-events: auto;
    }

    .tks-mobile-search-sheet__panel {
        position: fixed;
        top: 3.25rem;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0.75rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        z-index: 10079;
    }

    .tks-mobile-search-sheet__head {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .tks-mobile-search-sheet__form {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }

    .tks-mobile-search-sheet__input {
        flex: 1;
        min-width: 0;
        height: 2.75rem;
        padding: 0 0.85rem;
        border: 1px solid rgba(18, 18, 18, 0.14);
        border-radius: 8px;
        font-size: 1rem;
        color: #121212;
        background: #fff;
    }

    .tks-mobile-search-sheet__submit {
        flex: 0 0 auto;
        height: 2.75rem;
        padding: 0 1rem;
        border: 0;
        border-radius: 8px;
        background: #3a4242;
        color: #fff;
        font-size: 0.9375rem;
        font-weight: 600;
    }

    .tks-mobile-search-sheet__close {
        flex: 0 0 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: #121212;
        font-size: 1.75rem;
        line-height: 1;
    }

    html.tks-mobile-search-open #tksMobileHeaderPortal .modal-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(18, 18, 18, 0.35) !important;
        z-index: -1 !important;
    }

    #siteHeader[data-tks-mobile-topbar="1"] > :not(.tks-mobile-topbar),
    #siteHeader[data-tks-mobile-topbar="1"] .shopify-section-group-header-group,
    #siteHeader[data-tks-mobile-topbar="1"] .section-header,
    #siteHeader[data-tks-mobile-topbar="1"] sticky-header,
    #siteHeader[data-tks-mobile-topbar="1"] .header-wrapper,
    #siteHeader[data-tks-mobile-topbar="1"] .header,
    #siteHeader[data-tks-mobile-topbar="1"] .header__inline-menu,
    #siteHeader[data-tks-mobile-topbar="1"] .header__heading-link,
    #siteHeader[data-tks-mobile-topbar="1"] .header__icons {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
        border: 0 !important;
    }
}

/* ── Mobile: Dawn native header — only when custom topbar is NOT active ── */
@media screen and (max-width: 989px) {
    #siteHeader:not([data-tks-mobile-topbar="1"]) {
        background: #3a4242 !important;
    }

    #siteHeader:not([data-tks-mobile-topbar="1"]) .announcement-bar-section,
    #siteHeader .utility-bar,
    #siteHeader cart-notification,
    body.store-theme-active #siteHeader .announcement-bar-section,
    body.store-theme-active #siteHeader .utility-bar {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #siteHeader .section-header,
    body.store-theme-active #siteHeader .section-header {
        margin: 0 !important;
        padding: 0 !important;
        background: #3a4242 !important;
    }

    #siteHeader .shopify-section-group-header-group,
    #siteHeader .section-header,
    #siteHeader sticky-header,
    #siteHeader .header-wrapper,
    body.store-theme-active #siteHeader .shopify-section-group-header-group,
    body.store-theme-active #siteHeader .section-header,
    body.store-theme-active #siteHeader sticky-header,
    body.store-theme-active #siteHeader .header-wrapper,
    body.store-theme-active #siteHeader .section-header {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #3a4242 !important;
        border: none !important;
        overflow: visible !important;
    }

    #siteHeader .shopify-section-header-sticky,
    body.store-theme-active #siteHeader .shopify-section-header-sticky {
        position: relative !important;
        top: auto !important;
    }

    body.store-theme-active #siteHeader .tks-nav-shell,
    body.store-theme-active #siteHeader .header__inline-menu {
        display: none !important;
    }

    #siteHeader sticky-header.header-wrapper,
    #siteHeader .header-wrapper,
    body.store-theme-active #siteHeader sticky-header.header-wrapper,
    body.store-theme-active #siteHeader .header-wrapper,
    body.store-theme-active #siteHeader .section-header {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #3a4242 !important;
    }

    #siteHeader .header.tks-mobile-header-native,
    #siteHeader .header.header--middle-left.header--has-menu,
    #siteHeader .header.header--middle-left.drawer-menu.header--has-menu,
    body.store-theme-active #siteHeader .header.tks-mobile-header-native,
    body.store-theme-active #siteHeader .header.header--middle-left.header--has-menu,
    body.store-theme-active #siteHeader .header.header--middle-left.drawer-menu.header--has-menu {
        display: grid !important;
        grid-template-areas: "navigation heading icons" !important;
        grid-template-columns: 2.75rem 1fr 5.5rem !important;
        align-items: center !important;
        padding: 0 0.65rem !important;
        min-height: 3.25rem !important;
        height: 3.25rem !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    #siteHeader .header.page-width,
    body.store-theme-active #siteHeader .header.page-width {
        max-width: 100% !important;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    #siteHeader header-drawer,
    body.store-theme-active #siteHeader header-drawer {
        grid-area: navigation !important;
        margin: 0 !important;
        justify-self: start !important;
        align-self: center !important;
    }

    #siteHeader header-drawer .header__icon--menu,
    #siteHeader header-drawer summary.header__icon,
    body.store-theme-active #siteHeader header-drawer .header__icon--menu,
    body.store-theme-active #siteHeader header-drawer summary.header__icon {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #siteHeader header-drawer .icon-hamburger,
    #siteHeader header-drawer .icon-close,
    body.store-theme-active #siteHeader header-drawer .icon-hamburger,
    body.store-theme-active #siteHeader header-drawer .icon-close {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    #siteHeader .header__heading-link,
    body.store-theme-active #siteHeader .header__heading-link {
        grid-area: heading !important;
        justify-self: center !important;
        align-self: center !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
        max-width: min(170px, 50vw) !important;
    }

    #siteHeader .tks-site-logo__img,
    #siteHeader .header__heading-logo,
    #siteHeader .header__heading-logo-wrapper img,
    body.store-theme-active #siteHeader .tks-site-logo__img,
    body.store-theme-active #siteHeader .header__heading-logo,
    body.store-theme-active #siteHeader .header__heading-logo-wrapper img {
        display: block !important;
        height: 2rem !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    #siteHeader .header__icons,
    body.store-theme-active #siteHeader .header__icons {
        grid-area: icons !important;
        justify-self: end !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #siteHeader .header__icon,
    #siteHeader details-modal.header__search .header__icon--search,
    body.store-theme-active #siteHeader .header__icon,
    body.store-theme-active #siteHeader details-modal.header__search .header__icon--search {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        padding: 0 !important;
        opacity: 1 !important;
    }

    #siteHeader .header__icon .icon,
    #siteHeader .header__icon svg,
    body.store-theme-active #siteHeader .header__icon .icon,
    body.store-theme-active #siteHeader .header__icon svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        min-width: 1.2rem !important;
        min-height: 1.2rem !important;
        color: #fff !important;
        fill: currentColor !important;
    }

    #siteHeader .header__icon--cart,
    #siteHeader #cart-icon-bubble,
    body.store-theme-active #siteHeader .header__icon--cart,
    body.store-theme-active #siteHeader #cart-icon-bubble {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
    }

    #siteHeader .header__icon--cart svg,
    #siteHeader #cart-icon-bubble svg,
    body.store-theme-active #siteHeader .header__icon--cart svg,
    body.store-theme-active #siteHeader #cart-icon-bubble svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        min-width: 1.2rem !important;
        min-height: 1.2rem !important;
    }

    #siteHeader .cart-count-bubble,
    body.store-theme-active #siteHeader .cart-count-bubble {
        top: 0 !important;
        right: -2px !important;
        min-width: 14px !important;
        height: 14px !important;
        font-size: 9px !important;
    }

    #siteHeader .cart-count-bubble span,
    body.store-theme-active #siteHeader .cart-count-bubble span {
        font-size: 9px !important;
        line-height: 14px !important;
    }

    #MainContent,
    #homeMain,
    #collectionMain,
    #productMain,
    #cartMain {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ── Search modal: break out of compact header icon box ── */
body.store-theme-active details-modal.header__search {
    position: static;
}

body.store-theme-active details-modal.header__search .details.search-modal[open],
body.store-theme-active details-modal.header__search .search-modal.details[open] {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.98) !important;
    --color-background: 255 255 255;
    --color-foreground: 18 18 18;
    border: none !important;
}

body.store-theme-active details-modal.header__search .search-modal .modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(18, 18, 18, 0.35) !important;
    z-index: -1 !important;
}

body.store-theme-active details-modal.header__search .search-modal__content {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: min(920px, calc(100vw - 2rem)) !important;
    max-width: min(920px, calc(100vw - 2rem)) !important;
    height: auto !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
}

body.store-theme-active details-modal.header__search .search-modal__form,
body.store-theme-active details-modal.header__search predictive-search.search-modal__form {
    width: 100% !important;
    display: block !important;
}

body.store-theme-active details-modal.header__search .search-modal form.search {
    width: 100% !important;
}

body.store-theme-active details-modal.header__search .search-modal .field {
    width: 100% !important;
    margin: 0 !important;
}

body.store-theme-active details-modal.header__search .search-modal .field::before,
body.store-theme-active details-modal.header__search .search-modal .field::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
}

body.store-theme-active details-modal.header__search .search-modal .search__input.field__input {
    width: 100% !important;
    min-height: 3.25rem !important;
    height: 3.25rem !important;
    padding: 0 6.5rem 0 1rem !important;
    margin: 0 !important;
    border: 1px solid rgba(18, 18, 18, 0.14) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #121212 !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

body.store-theme-active details-modal.header__search .search-modal .field__label {
    display: none !important;
}

body.store-theme-active details-modal.header__search .search-modal .search__button,
body.store-theme-active details-modal.header__search .search-modal .reset__button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #121212 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2 !important;
}

body.store-theme-active details-modal.header__search .search-modal .search__button {
    right: 0.35rem !important;
}

body.store-theme-active details-modal.header__search .search-modal .reset__button {
    right: 3.2rem !important;
}

body.store-theme-active details-modal.header__search .search-modal .reset__button::after {
    display: none !important;
    content: none !important;
}

body.store-theme-active details-modal.header__search .search-modal .search__button .icon,
body.store-theme-active details-modal.header__search .search-modal .reset__button .icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #121212 !important;
}

body.store-theme-active details-modal.header__search .search-modal .tks-predictive-results,
body.store-theme-active details-modal.header__search .search-modal .predictive-search {
    position: absolute !important;
    top: calc(100% + 0.35rem) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: min(50vh, 420px) !important;
    overflow: auto !important;
    border: 1px solid rgba(18, 18, 18, 0.1) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 32px rgba(18, 18, 18, 0.12) !important;
}

body.store-theme-active details-modal.header__search:has(.details[open]) .modal__toggle-open {
    display: none !important;
}

body.store-theme-active details-modal.header__search:has(.details[open]) .modal__toggle-close {
    display: inline-block !important;
}
