/* Site header (includes/site_header). Classes start with "sh-" so the site theme can not override them. */
.sh {
    --sh-ink: #111111;
    --sh-muted: #8a8f98;
    --sh-line: #ececec;
    --sh-accent: #fe7e00;
    --sh-accent-dark: #e57100;
    position: relative; z-index: 1000; background: #fff; color: var(--sh-ink);
    font-size: 14px; line-height: 1.5;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a { text-decoration: none !important; }
.sh svg { flex: none; }
.sh-container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 992px) { .sh-container { padding: 0 20px; } }

/* ---------- top bar ---------- */
.sh-top { display: none; background: #141414; color: #d6d6d6; font-size: 12px; }
.sh-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.sh-top a { color: #d6d6d6 !important; }
.sh-top a:hover { color: #fff !important; }
.sh-top svg { width: 15px; height: 15px; color: var(--sh-accent); }
.sh-top__welcome, .sh-top__features li, .sh-top__features a, .sh-top__end a { display: inline-flex; align-items: center; gap: 6px; }
.sh-top__features { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.sh-top__end { display: flex; align-items: center; gap: 18px; }
.sh-top__lang { padding-inline-start: 18px; border-inline-start: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }

/* ---------- main row ---------- */
.sh-main { border-bottom: 1px solid var(--sh-line); }
.sh-main__row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.sh-logo { display: inline-flex; flex: none; }
.sh-logo img { height: 40px; width: auto; display: block; }

.sh-search { order: 3; flex: 1 1 100%; position: relative; display: flex; }
.sh-search input {
    width: 100%; height: 44px; padding: 0 18px; padding-inline-end: 50px;
    border: 1.5px solid transparent; border-radius: 24px; background: #f3f3f5; color: var(--sh-ink);
    font: inherit; font-size: 14px; outline: 0; transition: border-color .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.sh-search input::placeholder { color: #9a9a9a; }
.sh-search input:focus { border-color: var(--sh-accent); background: #fff; }
.sh-search button {
    position: absolute; top: 4px; inset-inline-end: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: transparent; color: var(--sh-ink); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.sh-search button:hover { background: var(--sh-accent); color: #fff; }
.sh-search svg { width: 20px; height: 20px; }

.sh-icons { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.sh-icon {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 48px; padding: 4px 6px; border-radius: 12px; color: var(--sh-ink) !important; transition: color .2s, background .2s;
}
.sh-icon:hover { color: var(--sh-accent) !important; background: #fff7ef; }
.sh-icon svg { width: 25px; height: 25px; }
.sh-icon span { display: none; font-size: 12px; font-weight: 600; }
.sh .sh-badge {
    position: absolute; top: 0; inset-inline-start: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--sh-accent); color: #fff !important; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-style: normal;
}
.sh-icon--account, .sh-icon--wish { display: none; }

/* mobile quick links */
.sh-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chips a {
    flex: none; padding: 6px 14px; border-radius: 18px; background: #f3f3f5; color: var(--sh-ink) !important;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.sh-chips a.is-active, .sh-chips a:hover { background: var(--sh-accent); color: #fff !important; }

/* ---------- orange navigation ---------- */
.sh-nav { display: none; background: var(--sh-accent); }
.sh-nav__row { display: flex; align-items: stretch; gap: 4px; height: 48px; }
.sh .sh-nav__link {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; background: none; cursor: pointer;
    color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; position: relative; transition: background .2s;
}
.sh .sh-nav__link:hover, .sh .sh-nav__link.is-active { background: rgba(0, 0, 0, .1); }
.sh .sh-nav__link.is-active::after { content: ""; position: absolute; inset-inline: 16px; bottom: 6px; height: 2px; border-radius: 1px; background: #fff; }
.sh-nav__link svg { width: 18px; height: 18px; }

.sh-cats { position: relative; display: flex; margin-inline-start: auto; }
.sh-cats__chev { width: 14px !important; height: 14px !important; transition: transform .2s; }
.sh-cats.is-open .sh-cats__chev { transform: rotate(180deg); }
.sh-cats__panel {
    position: absolute; top: 100%; inset-inline-end: 0; z-index: 1001; width: min(1000px, 92vw); max-height: 70vh; overflow-y: auto;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; padding: 22px;
    background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 24px 50px rgba(17, 17, 17, .18);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sh-cats.is-open .sh-cats__panel { opacity: 1; visibility: visible; transform: none; }
.sh-cats__main { display: flex; align-items: center; gap: 10px; color: var(--sh-ink) !important; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.sh-cats__main img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff4e8; border: 1px solid #f3e2d0; }
.sh-cats__main:hover { color: var(--sh-accent) !important; }
.sh-cats__col ul { list-style: none; margin: 0; padding: 0; padding-inline-start: 50px; display: grid; gap: 4px; }
.sh-cats__col li a { color: #555 !important; font-size: 13px; }
.sh-cats__col li a:hover { color: var(--sh-accent) !important; }

/* ---------- sticky header (all screens) ---------- */
.sh { position: sticky; top: 0; transition: box-shadow .25s; }
.sh.is-stuck { box-shadow: 0 6px 20px rgba(17, 17, 17, .10); }
.sh-logo img, .sh-main__row { transition: height .25s, padding .25s; }

@media (max-width: 991.98px) {
    .sh { box-shadow: 0 2px 10px rgba(17, 17, 17, .06); }
    .sh-main { border-bottom: 0; }
    /* scrolled: keep logo, cart and search, hide the quick links */
    .sh.is-stuck .sh-chips { display: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 992px) {
    .sh-top { display: block; }
    .sh-main__row { flex-wrap: nowrap; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
    .sh-logo img { height: 54px; }
    .sh-search { order: 0; flex: 1 1 auto; max-width: 600px; margin: 0 auto; }
    .sh-search input { height: 48px; }
    .sh-search button { top: 6px; }
    .sh-icons { gap: 10px; margin-inline-start: 0; }
    .sh-icon--account, .sh-icon--wish { display: inline-flex; }
    .sh-icon span { display: block; }
    .sh-chips { display: none; }
    .sh-nav { display: block; }
}

/* desktop, scrolled: hide the black bar and make the logo row smaller */
@media (min-width: 992px) {
    .sh.is-stuck .sh-top { display: none; }
    .sh.is-stuck .sh-main__row { padding-top: 8px; padding-bottom: 8px; }
    .sh.is-stuck .sh-logo img { height: 42px; }
    .sh.is-stuck .sh-icon span { display: none; }
}
