/* One header across the storefront: transparent at the top, ivory on scroll. */
.site-header {
    --header-height: 128px;
    position: fixed;
    inset: 0 0 auto;
    z-index: 150;
    color: #fff;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { --header-height: 80px; }
.site-header.is-scrolled,
.site-header.is-menu-open,
.site-header.is-search-open {
    color: #202a2d;
    background: #fcfbf8;
    box-shadow: 0 1px 0 #26333115, 0 8px 28px #17212708;
}
.site-header__bar {
    height: var(--header-height);
    max-width: 1440px;
    padding: 0 48px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    transition: height .3s ease;
}
.site-header a { color: inherit; text-decoration: none; }
.site-header__brand { justify-self: start; display: block; }
.site-header__brand img { display: block; width: auto; height: 90px; object-fit: contain; transition: height .3s ease, filter .3s ease; }
.site-header.is-scrolled .site-header__brand img { height: 54px; }
.site-header:is(.is-scrolled,.is-menu-open,.is-search-open) .site-header__brand img { filter: invert(1); }
.site-header__links { display: flex; align-items: center; gap: 34px; }
.site-header__links a { position: relative; padding: 14px 0; font-size: 12px; font-weight: 500; letter-spacing: .07em; }
.site-header__links a::after { content: ''; position: absolute; inset: auto 0 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; opacity: .65; }
.site-header__links a:hover::after,.site-header__links a[aria-current]::after { transform: scaleX(1); }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.site-header__actions a,.site-header__actions button { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; transition: background .2s; }
.site-header__actions a:hover,.site-header__actions button:hover { background: #88888818; }
.site-header svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-header .cart-badge { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: #b99a67; color: #fff; font: 10px/17px 'Poppins',sans-serif; text-align: center; }
.site-header__actions .site-header__toggle { display: none; }
.site-header.is-menu-open .menu-line-top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.site-header.is-menu-open .menu-line-middle { opacity: 0; }
.site-header.is-menu-open .menu-line-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }
.site-header__search { max-width: 780px; margin: 0 auto; padding: 8px 24px 24px; display: flex; gap: 8px; }
.site-header__search[hidden] { display: none; }
.site-header__search input { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid #26333130; border-radius: 2px; background: #fff; color: #202a2d; font: 14px 'Poppins',sans-serif; }
.site-header__search button { border: 0; border-radius: 2px; padding: 0 24px; background: #253934; color: #fff; cursor: pointer; font: 13px 'Poppins',sans-serif; }
.site-header :focus-visible { outline: 2px solid #b99a67; outline-offset: 4px; }
html { scroll-padding-top: 96px; }
@media(max-width:1000px) {
    .site-header { --header-height: 100px; }
    .site-header.is-scrolled { --header-height: 68px; }
    .site-header__bar { padding: 0 24px; grid-template-columns: 1fr auto; gap: 16px; }
    .site-header__brand img { height: 72px; }
    .site-header.is-scrolled .site-header__brand img { height: 46px; }
    .site-header__actions .site-header__toggle { display: flex; }
    .site-header__links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 28px; color: #202a2d; background: #fcfbf8; border-top: 1px solid #26333115; max-height: calc(100dvh - var(--header-height)); overflow: auto; }
    .site-header.is-menu-open .site-header__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .site-header__links a { padding: 18px 0; font-size: 16px; }
    .site-header__links a::after { bottom: 8px; right: auto; width: 32px; }
}
@media(max-width:480px) {
    .site-header__bar { padding: 0 18px; }
    .site-header__actions { gap: 0; }
    .site-header__search { padding: 4px 18px 20px; }
    .site-header__search button { padding: 0 16px; }
}
@media(prefers-reduced-motion:reduce) {
    .site-header,.site-header__bar,.site-header__brand img,.site-header__links a::after { transition: none; }
}

/* Category dropdown belongs to the same header in both scroll states. */
.site-header__products { position: relative; }
.site-header__products-trigger { display: flex; align-items: center; gap: 3px; }
.site-header__products-trigger button { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.site-header__products-trigger svg { width: 13px; height: 13px; transition: transform .2s ease; }
.site-header__products-trigger button[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header__dropdown { position: absolute; top: 100%; left: -170px; width: min(740px, calc(100vw - 64px)); padding: 24px; border: 1px solid #26333112; border-radius: 6px; background: #fcfbf8; color: #202a2d; box-shadow: 0 20px 48px #14221c22; max-height: calc(100dvh - 150px); overflow: auto; }
.site-header__dropdown[hidden] { display: none; }
.site-header__dropdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #26333118; }
.site-header__dropdown-heading > span { font-size: 10px; letter-spacing: .15em; color: #75796e; }
.site-header__dropdown-heading a { padding: 0; font-size: 11px; }
.site-header__category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.site-header__dropdown a::after { display: none; }
.site-header__dropdown a { letter-spacing: 0; }
.site-header__category-main { display: flex; align-items: center; gap: 16px; padding: 10px !important; border-radius: 4px; transition: background .2s; }
.site-header__category-main:hover { background: #efeee7; }
.site-header__category-image { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: #eeede7; }
.site-header__category-image img { width: 100%; height: 100%; object-fit: cover; }
.site-header__category-image.is-icon img { width: 42px; height: 42px; object-fit: contain; filter: brightness(0); opacity: .7; }
.site-header__category-main > span:last-child { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.site-header__category-main small { display: block; margin-top: 7px; font-size: 10px; font-weight: 400; color: #777b71; }
.site-header__subcategories { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 10px 12px 90px; }
.site-header__subcategories a { padding: 2px 0; font-size: 11px; color: #656b61; }
.site-header__subcategories a:hover { text-decoration: underline; }
@media(max-width:1000px) {
    .site-header__products-trigger { justify-content: space-between; }
    .site-header__products-trigger button { width: 44px; }
    .site-header__dropdown { position: static; width: 100%; max-height: none; padding: 12px 0 20px; border: 0; border-radius: 0; box-shadow: none; }
    .site-header__dropdown-heading { gap: 8px; }
    .site-header__category-grid { grid-template-columns: 1fr; gap: 6px; }
    .site-header__dropdown-heading a { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .site-header__products-trigger svg { transition: none; } }
