/* Header: overlay/solid states, centred nav with dropdowns, icon actions, fullscreen mobile menu. */
.sav-header { --hdr-fg: var(--sav-ink); --icon-stroke-width: 1.5; position: sticky; top: 0; z-index: 100; background: var(--sav-paper); color: var(--hdr-fg); border-bottom: 1px solid var(--sav-line); transition: background .25s, color .25s, box-shadow .25s; }
.has-header-overlay .sav-header.is-overlay { position: fixed; inset: 0 0 auto; --hdr-fg: #fff; background: transparent; border-color: transparent; }
.sav-header.is-overlay.is-stuck { --hdr-fg: var(--sav-ink); background: rgb(255 255 255 / 92%); backdrop-filter: blur(12px); box-shadow: var(--sav-shadow); }
.sav-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 80px; gap: 1.5rem; }
.sav-logo { display: inline-flex; }
.sav-logo img { height: 44px; width: auto; display: block; }
.sav-header .sav-logo__light { display: none; }
.has-header-overlay .sav-header.is-overlay:not(.is-stuck) .sav-logo__light { display: block; }
.has-header-overlay .sav-header.is-overlay:not(.is-stuck) .sav-logo__dark { display: none; }

/* Nav */
.sav-nav__list, .sav-nav__list ul { list-style: none; margin: 0; padding: 0; }
.sav-nav__list { display: flex; gap: .25rem; }
.sav-nav__list > li { position: relative; }
.sav-nav__list a { display: block; padding: .75rem .8rem; text-decoration: none; font-size: .95rem; color: inherit; }
.sav-nav__list > li > a { position: relative; }
.sav-nav__list > li > a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .45rem; height: 2px; background: var(--sav-brand); transform: scaleX(0); transition: transform .25s; }
.sav-nav__list > li:hover > a::after, .sav-nav__list > li:focus-within > a::after, .sav-nav__list > .current-menu-item > a::after { transform: scaleX(1); }
.sav-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: .6rem 0; background: var(--sav-ink); border-radius: 10px; box-shadow: var(--sav-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.sav-nav li:hover > .sub-menu, .sav-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sav-nav .sub-menu a { color: #c7ccca; padding: .5rem 1.4rem; }
.sav-nav .sub-menu a:hover { color: var(--sav-brand); }

/* Actions */
.sav-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.sav-icon { display: inline-flex; }
.sav-icon svg { width: 100%; height: 100%; }
.sav-iconbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: inherit; border-radius: 50%; }
.sav-iconbtn:hover { background: rgb(128 128 128 / 18%); }
.sav-cart__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sav-brand); color: #000; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.sav-pill { margin-left: .5rem; padding: .6rem 1.4rem; border: 2px solid currentColor; border-radius: 30px; color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; transition: .2s; }
.sav-pill:hover { background: var(--sav-brand); border-color: var(--sav-brand); color: #000; }
.sav-burger { display: none; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.sav-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* Mobile menu */
.sav-overlay { position: fixed; inset: 0; z-index: 190; background: rgb(0 0 0 / 60%); }
.sav-mobile { position: fixed; inset: 0; z-index: 200; background: var(--sav-ink); color: #fff; overflow-y: auto; }
.sav-mobile[hidden], .sav-overlay[hidden] { display: none; }
.sav-mobile__top { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.sav-mobile__close { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; }
.sav-mobile__list, .sav-mobile__list ul { list-style: none; margin: 0; padding: 0; }
.sav-mobile__list > li > a { display: flex; justify-content: space-between; padding: .9rem 0; font-size: 1.6rem; font-weight: 600; text-decoration: none; color: #fff; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.sav-mobile .menu-item-has-children > a::after { content: "+"; color: var(--sav-brand); }
.sav-mobile .menu-item-has-children.is-open > a::after { content: "\2212"; }
.sav-mobile .sub-menu { display: none; padding: .5rem 0 .5rem 1rem; }
.sav-mobile .is-open > .sub-menu { display: block; }
.sav-mobile .sub-menu a { display: block; padding: .5rem 0; color: #c7ccca; text-decoration: none; }
.sav-mobile__extra { margin-top: 2rem; color: #c7ccca; }
.sav-mobile__extra a { color: var(--sav-brand); }
.sav-lock { overflow: hidden; }

@media (max-width: 1000px) {
	.sav-header__row { grid-template-columns: 1fr auto; }
	.sav-nav, .sav-hide-sm { display: none; }
	.sav-burger { display: flex; }
}
