/* ============================================================
   Charsutra — Site Header  (v2)
   ------------------------------------------------------------
   Loaded after style.css. Own `cs-` namespace so it does not
   have to fight the theme's .th-header / .header-layout4 rules.
   The drawer shell keeps .th-* classes (main.js binds to them).
   ============================================================ */

:root {
    --cs-navy: #0F1E33;
    --cs-navy-soft: #1B2E48;
    --cs-gold: #A9825A;
    --cs-gold-light: #C39C72;
    --cs-cream: #E9DCC8;
    --cs-terracotta: #B5523B;
    --cs-line: #E7E2DA;
    --cs-ink: #0F1E33;
    --cs-muted: #6B7688;
    --cs-header-h: 76px;
    /* Set per element by header.js from the admin speed setting */
    --cs-ticker-duration: 24s;
    --cs-ticker-distance: 100%;
}

/* NOTE: this header does NOT use position:sticky.
   style.css sets `body { overflow-x: hidden }`, which makes body a scroll
   container, and sticky does nothing inside one. Switching body to
   `overflow-x: clip` fixes that on paper, but Chrome also breaks sticky
   inside a clip container, so that route failed on Android too.
   header.js pins the bar with position:fixed and compensates with a
   spacer element — deterministic on every browser. */

.cs-header-shell {
    position: relative;
    z-index: 500;
}

/* ============================================================
   1. Utility bar + notice ticker
   ============================================================ */
.cs-topbar {
    background-color: var(--cs-navy);
    color: rgba(255, 255, 255, .85);
    font-size: 12.5px;
    line-height: 1;
}

.cs-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 40px;
    overflow: hidden;
}

.cs-ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}

/* Duration comes from JS: distance ÷ speed(px/s), so the speed the admin
   sets is a real speed and does not change with the length of the text. */
.cs-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 70px;
    white-space: nowrap;
    will-change: transform;
    animation: cs-ticker var(--cs-ticker-duration) linear infinite;
}

.cs-ticker:hover .cs-ticker-track {
    animation-play-state: paused;
}

.cs-ticker-item {
    letter-spacing: .3px;
    font-weight: 500;
}

@keyframes cs-ticker {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-1 * var(--cs-ticker-distance)), 0, 0); }
}

.cs-topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.cs-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}

.cs-topbar-link:hover { color: var(--cs-gold-light); }

.cs-topbar-link i {
    font-size: 12px;
    color: var(--cs-gold);
}

.cs-topbar-track {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

/* Static contact utility row. The old welcome ticker is no longer rendered. */
.cs-topbar--static {
    min-height: 34px;
}

.cs-topbar-inner--contacts {
    height: 34px;
}

/* Desktop utility row uses three equal zones so the phone is truly left,
   email truly centered, and Track Order truly right regardless of text width. */
.cs-topbar-links--static {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "phone email track";
    align-items: center;
    width: 100%;
    gap: 16px;
}

.cs-topbar-links--static .cs-topbar-link {
    min-width: 0;
}

.cs-topbar-links--static .cs-topbar-link--phone {
    grid-area: phone;
    justify-self: start;
}

.cs-topbar-links--static .cs-topbar-link--email {
    grid-area: email;
    justify-self: center;
    max-width: 100%;
}

.cs-topbar-links--static .cs-topbar-track {
    grid-area: track;
    justify-self: end;
    padding-left: 0;
    border-left: 0;
}

.cs-topbar-links--static .cs-topbar-link--email span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   2. Main bar — frozen on scroll
   ============================================================ */
.cs-header {
    position: relative;
    z-index: 510;
    background-color: #fff;
    transition: box-shadow .3s ease;
}

/* Desktop: the whole header (logo bar + nav band) pins. */
@media (min-width: 992px) {
    .cs-fixed-mode.is-pinned .cs-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
}

/* Mobile: ONLY the logo bar pins — the band that was marked in the
   screenshot. The utility bar and the search row scroll away above it,
   which keeps the pinned strip to ~58px instead of eating 100px of a
   phone screen. */
@media (max-width: 991.98px) {
    .cs-fixed-mode.is-pinned .cs-main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #fff;
        box-shadow: 0 4px 18px rgba(15, 30, 51, .13);
        border-bottom-color: transparent;
    }
}

.cs-header-spacer {
    height: 0;
}

.cs-header.is-stuck {
    box-shadow: 0 6px 24px rgba(15, 30, 51, .13);
}

.cs-main {
    background-color: #fff;
    border-bottom: 1px solid var(--cs-line);
}

.cs-header.is-stuck .cs-main { border-bottom-color: transparent; }

.cs-main-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--cs-header-h);
    transition: height .28s ease;
}

.cs-header.is-stuck .cs-main-row { height: 64px; }

/* --- Logo --- */
.cs-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.cs-logo img {
    height: 54px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    transition: height .28s ease;
}

.cs-header.is-stuck .cs-logo img { height: 44px; }

/* --- Hamburger --- */
.cs-hamburger {
    display: none;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--cs-line);
    border-radius: 11px;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.cs-hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background-color: var(--cs-navy);
    transition: width .2s ease;
}

.cs-hamburger span:nth-child(1) { width: 100%; }
.cs-hamburger span:nth-child(2) { width: 70%; }
.cs-hamburger span:nth-child(3) { width: 85%; }
.cs-hamburger:hover span { width: 100%; }

/* ============================================================
   Search
   ============================================================ */
.cs-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    padding-left: 46px;
    padding-right: 5px;
    background-color: #F6F4F0;
    border: 1.5px solid var(--cs-line);
    border-radius: 999px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

/* Search takes the middle, actions are pinned right by margin-left:auto
   below — that pairing is what keeps the icon cluster hard against the
   container edge instead of floating with leftover space beside it. */
.cs-search--desktop {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 620px;
    margin-left: 14px;
}

.cs-search:focus-within {
    background-color: #fff;
    border-color: var(--cs-gold);
    box-shadow: 0 0 0 4px rgba(169, 130, 90, .14);
}

.cs-search-icon {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--cs-muted);
    pointer-events: none;
}

.cs-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--cs-ink);
}

.cs-search-input::placeholder {
    color: var(--cs-muted);
    opacity: .85;
}

.cs-search-clear {
    display: none;
    width: 26px;
    height: 26px;
    margin-right: 5px;
    border: none;
    border-radius: 50%;
    background-color: rgba(15, 30, 51, .07);
    color: var(--cs-muted);
    font-size: 11px;
    flex: 0 0 auto;
}

.cs-search-clear:hover {
    background-color: rgba(15, 30, 51, .13);
    color: var(--cs-ink);
}

.cs-search.has-value .cs-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cs-search-submit {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    background-color: var(--cs-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background-color .2s ease, color .2s ease;
}

.cs-search-submit:hover {
    background-color: var(--cs-gold);
    color: var(--cs-navy);
}

/* --- Suggestions --- */
.cs-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 30, 51, .16);
    overflow: hidden;
    z-index: 60;
}

.cs-suggest[hidden] { display: none; }

.cs-suggest-list {
    max-height: 380px;
    overflow-y: auto;
}

.cs-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--cs-ink);
    border-bottom: 1px solid #F2EFEA;
    transition: background-color .15s ease;
}

.cs-suggest-item:last-child { border-bottom: none; }

.cs-suggest-item:hover,
.cs-suggest-item.is-active { background-color: #FAF7F2; }

.cs-suggest-thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F3F1ED;
}

.cs-suggest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-suggest-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cs-suggest-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-suggest-meta {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--cs-muted);
}

.cs-suggest-price {
    flex: 0 0 auto;
    text-align: right;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cs-navy);
    white-space: nowrap;
}

.cs-suggest-price del {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--cs-muted);
}

.cs-suggest-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #FAF7F2;
    border-top: 1px solid var(--cs-line);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--cs-navy);
    text-decoration: none;
}

.cs-suggest-all:hover { color: var(--cs-gold); }

.cs-suggest-empty,
.cs-suggest-loading {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--cs-muted);
}

/* ============================================================
   Actions — pinned to the right edge
   ============================================================ */
.cs-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;   /* <- keeps the cluster flush right */
}

.cs-action {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 54px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background-color: transparent;
    color: var(--cs-navy);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.cs-action:hover {
    background-color: #F6F4F0;
    color: var(--cs-gold);
}

.cs-action i {
    font-size: 17px;
    line-height: 1;
}

.cs-action-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--cs-muted);
}

.cs-action:hover .cs-action-label { color: var(--cs-gold); }

/* Mobile-only search toggle */
.cs-action--searchtoggle { display: none; }

.cs-action .cs-badge,
.cs-action .badge {
    position: absolute;
    top: 3px;
    right: 7px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--cs-terracotta);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cs-action .cs-badge[hidden] { display: none; }
/* The theme's jQuery toggles these ids with .show()/.hide(), i.e. inline
   display, so nothing here may use !important. */

/* --- Highlighted B2B customer login --- */
.cs-b2b-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 13px;
    margin-left: 2px;
    border: 1px solid #B58B5C;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF5E6 0%, #EBCB9F 100%);
    color: var(--cs-navy);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(169, 130, 90, .24);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.cs-b2b-login:hover {
    color: var(--cs-navy);
    border-color: var(--cs-gold);
    box-shadow: 0 7px 18px rgba(169, 130, 90, .24);
    transform: translateY(-1px);
}

.cs-b2b-login-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background-color: var(--cs-gold);
    color: #fff;
    font-size: 12px;
}

.cs-b2b-login-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.cs-b2b-login-copy strong {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .2px;
}

.cs-b2b-login-copy small {
    margin-top: 3px;
    color: #7E654B;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .15px;
}

.cs-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 20px;
    margin-left: 8px;
    border-radius: 999px;
    background-color: var(--cs-gold);
    color: var(--cs-navy);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.cs-account-btn:hover {
    background-color: var(--cs-navy);
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   3. Nav band
   ============================================================ */
.cs-navbar {
    background-color: var(--cs-navy);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.cs-navbar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 54px;
}

/* --- Primary links: uppercase, spaced, pill hover + gold underline --- */
.cs-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

.cs-nav-links > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 17px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    font-family: var(--body-font, inherit);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .9px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.cs-nav-links > li > a::after {
    content: '';
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--cs-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.cs-nav-links > li > a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, .07);
}

.cs-nav-links > li > a.is-active {
    color: #fff;
    background-color: rgba(255, 255, 255, .05);
}

.cs-nav-links > li > a:hover::after,
.cs-nav-links > li > a.is-active::after {
    transform: scaleX(1);
}

.cs-navbar-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--cs-cream);
    text-decoration: none;
    transition: color .2s ease;
}

.cs-navbar-cta:hover { color: var(--cs-gold-light); }
.cs-navbar-cta i { color: var(--cs-gold); }

/* ============================================================
   All Categories dropdown + right flyout
   ============================================================ */
.cs-cat {
    position: relative;
    flex: 0 0 auto;
    margin-right: 16px;
}

.cs-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background-color: #fff;
    color: var(--cs-navy);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.cs-cat-btn:hover,
.cs-cat.is-open .cs-cat-btn {
    background-color: var(--cs-gold);
    color: var(--cs-navy);
}

.cs-cat-caret {
    font-size: 10px;
    transition: transform .25s ease;
}

.cs-cat.is-open .cs-cat-caret { transform: rotate(180deg); }

.cs-cat-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 286px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(15, 30, 51, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 60;
}

.cs-cat.is-open .cs-cat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cs-cat-list,
.cs-cat-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-cat-item {
    position: relative;
}

.cs-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--cs-ink);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.cs-cat-link:hover,
.cs-cat-item.is-open > .cs-cat-link {
    background-color: #FAF7F2;
    color: var(--cs-gold);
}

.cs-cat-arrow {
    flex: 0 0 auto;
    font-size: 10px;
    color: var(--cs-muted);
    transition: transform .2s ease, color .2s ease;
}

.cs-cat-item.is-open > .cs-cat-link .cs-cat-arrow {
    color: var(--cs-gold);
    transform: translateX(2px);
}

/* --- The flyout: sits beside the parent row, not below it --- */
.cs-cat-flyout {
    position: absolute;
    top: -8px;
    left: calc(100% + 9px);
    width: 264px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 10px 10px;
    background-color: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(15, 30, 51, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 70;
}

.cs-cat-item.is-open > .cs-cat-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Flipped by header.js when there isn't room on the right */
.cs-cat-item.flip-left > .cs-cat-flyout {
    left: auto;
    right: calc(100% + 9px);
    transform: translateX(6px);
}

.cs-cat-item.flip-left.is-open > .cs-cat-flyout { transform: translateX(0); }

.cs-cat-flyout-title {
    display: block;
    padding: 0 12px 9px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--cs-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--cs-muted);
}

.cs-cat-sub li a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--cs-ink);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}

.cs-cat-sub li a:hover {
    background-color: #FAF7F2;
    color: var(--cs-gold);
    padding-left: 16px;
}

.cs-cat-flyout-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--cs-line);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--cs-navy);
    text-decoration: none;
}

.cs-cat-flyout-all:hover { color: var(--cs-gold); }

.cs-mobile-search { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1299.98px) {
    .cs-search--desktop { max-width: 470px; }
    .cs-nav-links > li > a { padding: 0 13px; letter-spacing: .6px; }
    .cs-nav-links > li > a::after { left: 13px; right: 13px; }
}

@media (max-width: 1199.98px) {
    .cs-main-row { gap: 16px; }
    .cs-search--desktop { max-width: 360px; }
    .cs-account-btn span { display: none; }
    .cs-account-btn { padding: 0 15px; }
    .cs-b2b-login { padding: 0 10px; gap: 6px; }
    .cs-b2b-login-icon { width: 26px; height: 26px; }
    .cs-b2b-login-copy small { display: none; }
    .cs-navbar-cta { display: none; }
    .cs-nav-links > li > a { font-size: 11.5px; padding: 0 11px; }
    .cs-nav-links > li > a::after { left: 11px; right: 11px; }
}

/* --- Under 992px --- */
@media (max-width: 991.98px) {
    :root { --cs-header-h: 62px; }

    .cs-hamburger { display: flex; }

    .cs-logo { margin: 0 auto; }

    .cs-logo img {
        height: 40px;
        max-width: 150px;
    }

    .cs-header.is-stuck .cs-logo img { height: 36px; }
    .cs-header.is-stuck .cs-main-row { height: 58px; }

    .cs-search--desktop { display: none; }
    .cs-account-btn { display: none; }
    .cs-b2b-login { display: none; }
    .cs-action-label { display: none; }

    /* Wishlist is in the bottom nav on mobile — not needed twice */
    .cs-action--wishlist { display: none; }

    .cs-action {
        width: 42px;
        height: 42px;
    }

    .cs-navbar { display: none; }

    /* Scrolls away with the page; the magnifier in the pinned bar brings
       the user back up to it. */
    .cs-mobile-search {
        display: block;
        padding: 9px 0 11px;
        background-color: #fff;
        border-bottom: 1px solid var(--cs-line);
    }

    .cs-action--searchtoggle {
        display: inline-flex;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    /* Only useful once the search row has scrolled out of view */
    .cs-fixed-mode.is-pinned .cs-action--searchtoggle {
        opacity: 1;
        pointer-events: auto;
    }

    .cs-search--mobile {
        height: 42px;
        padding-right: 6px;
    }

    .cs-topbar-inner { height: 36px; }
    .cs-topbar-links { gap: 14px; }
    .cs-hide-md { display: none; }
    .cs-topbar-track { padding-left: 14px; }
}

@media (max-width: 575.98px) {
    .cs-main-row { gap: 8px; }

    .cs-logo img {
        height: 36px;
        max-width: 124px;
    }

    .cs-topbar { font-size: 10.5px; }
    .cs-topbar-inner--contacts {
        height: auto;
        min-height: 48px;
        padding: 5px 0;
    }
    .cs-topbar-links--static {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "phone track"
            "email email";
        gap: 5px 12px;
    }
    .cs-topbar-links--static .cs-topbar-link span { display: inline; }
    .cs-topbar-links--static .cs-topbar-link--email {
        justify-self: center;
        max-width: 90vw;
    }
    .cs-topbar-links--static .cs-topbar-track {
        justify-self: end;
        padding-left: 0;
        border-left: 0;
    }
    .cs-action { width: 40px; }
    .cs-suggest-thumb { width: 40px; height: 48px; }
    .cs-suggest-item { padding: 9px 11px; }
}

/* ============================================================
   Mobile drawer
   ============================================================ */
.cs-drawer .th-menu-area {
    padding: 0 0 34px;
    text-align: left;
    background-color: #fff;
}

.cs-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-drawer-logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.cs-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--cs-line);
    border-radius: 10px;
    background-color: #fff;
    color: var(--cs-navy);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cs-drawer-close:hover {
    background-color: var(--cs-navy);
    color: #fff;
}

.cs-drawer-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 20px;
    padding: 13px 15px;
    border-radius: 14px;
    background-color: var(--cs-navy);
    color: #fff;
    text-decoration: none;
}

.cs-dnav-item--b2b {
    padding: 7px 12px;
}

.cs-dnav-item--b2b .cs-dnav-row > a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(169, 130, 90, .45);
    border-radius: 11px;
    background: #FFF8ED;
    color: var(--cs-navy);
    font-weight: 800;
}

.cs-dnav-item--b2b .cs-dnav-row > a i {
    color: var(--cs-gold);
}

.cs-dnav-item--b2b .cs-dnav-row > a span {
    margin-left: auto;
    color: #8C7358;
    font-size: 10px;
    font-weight: 600;
}

.cs-drawer-account-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cs-drawer-account strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.cs-drawer-account small {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .68);
}

.cs-drawer-account > i {
    color: var(--cs-gold);
    font-size: 13px;
}

.cs-drawer-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--cs-gold);
    color: var(--cs-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.cs-drawer-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 20px 10px;
    height: 44px;
    padding-left: 42px;
    background-color: #F6F4F0;
    border: 1.5px solid var(--cs-line);
    border-radius: 999px;
}

.cs-drawer-search i {
    position: absolute;
    left: 17px;
    color: var(--cs-muted);
    font-size: 14px;
}

.cs-drawer-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding-right: 16px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}

/* --- Drawer accordion --- */
.cs-dnav { padding: 4px 12px; }

.cs-dnav-list,
.cs-dnav-sub ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-dnav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #F2EFEA;
}

.cs-dnav-row > a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 6px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--cs-ink);
    text-decoration: none;
}

.cs-dnav-row > a:active { color: var(--cs-gold); }

/* [+] / [−] drawn with pseudo elements rather than an icon font, so it
   can't break if "Font Awesome 6 Pro" isn't loaded on a given page. */
.cs-dnav-plus {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid var(--cs-line);
    border-radius: 8px;
    background-color: #F8F6F2;
    transition: background-color .2s ease, border-color .2s ease;
}

.cs-dnav-plus::before,
.cs-dnav-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--cs-navy);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.cs-dnav-plus::before {
    width: 11px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.cs-dnav-plus::after {
    width: 2px;
    height: 11px;
    transform: translate(-50%, -50%);
}

/* Open → the vertical bar collapses, leaving a minus */
.cs-dnav-item.is-open > .cs-dnav-row > .cs-dnav-plus {
    background-color: var(--cs-gold);
    border-color: var(--cs-gold);
}

.cs-dnav-item.is-open > .cs-dnav-row > .cs-dnav-plus::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

.cs-dnav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.cs-dnav-sub > ul {
    padding-left: 14px;
    border-left: 2px solid #F1EDE6;
    margin: 4px 0 4px 6px;
}

.cs-dnav-sub .cs-dnav-row > a {
    font-size: 13.5px;
    font-weight: 400;
    color: #4A5568;
}

.cs-dnav-sub .cs-dnav-sub > ul {
    border-left-color: var(--cs-cream);
}

.cs-drawer-foot {
    margin: 18px 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--cs-line);
}

.cs-drawer-foot-title {
    display: block;
    margin-bottom: 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--cs-muted);
}

.cs-drawer-foot a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--cs-ink);
    text-decoration: none;
}

.cs-drawer-foot a i {
    color: var(--cs-gold);
    font-size: 13px;
}

.cs-drawer-foot a:hover { color: var(--cs-gold); }

/* ============================================================
   Accessibility
   ============================================================ */
.cs-header a:focus-visible,
.cs-header button:focus-visible,
.cs-topbar a:focus-visible,
.cs-drawer a:focus-visible,
.cs-drawer button:focus-visible {
    outline: 2px solid var(--cs-gold);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .cs-ticker-track { animation: none; }

    .cs-main-row,
    .cs-logo img,
    .cs-cat-panel,
    .cs-cat-flyout,
    .cs-dnav-sub,
    .cs-mobile-search {
        transition: none;
    }
}
