/* GASTROMANIA.STORE — navigation (header menus) and collection page. Uses the tokens of site.css. */

/* 1 — header navigation ------------------------------------------------------ */
.nav { gap: clamp(14px, 1.7vw, 30px); }
.nav__item { display: flex; align-items: center; }
.nav a.nav__link { white-space: nowrap; }
.nav .mega a::after { content: none; }
.nav__more { display: grid; place-items: center; width: 24px; height: 44px; margin-right: -10px; color: inherit; opacity: .55; transition: transform .3s var(--ease), opacity .2s; }
.nav__more:hover { opacity: 1; }
.nav__item.is-open .nav__more { transform: rotate(180deg); opacity: 1; }
.nav__item.is-open .nav__link::after { transform: scaleX(1); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 32px 48px -32px rgba(27, 26, 24, .28); animation: mega .32s var(--ease); }
@keyframes mega { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega__in { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: clamp(24px, 4vw, 72px); padding-block: clamp(32px, 3vw, 48px) clamp(36px, 3.6vw, 56px); min-height: 300px; }
.mega__head { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.mega__head .h3 { font-size: clamp(24px, 2vw, 32px); }
.mega__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(16px, 2vw, 32px); align-content: start; list-style: none; margin: 0; padding: 0; }
.nav .mega__list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0; border: 0; font-size: 15px; line-height: 1.3; }
.nav .mega__list a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.mega__thumb { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: var(--studio); }
.mega__thumb img { max-width: 52px; max-height: 52px; width: auto; height: auto; }
.nav .mega__head .link { padding: 8px 0; }
.nav .mega__head .link::after { content: "→"; position: static; height: auto; background: none; transform: none; }
.nav .mega__pic { padding: 0; display: block; overflow: hidden; background: var(--studio); aspect-ratio: 5 / 4; }
.mega__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__pic:hover img { transform: scale(1.03); }
html.hdr-dark.mega-open:not(.menu-open):not(.search-open) .header { background: var(--ivory); color: var(--ink); }
html.hdr-dark.mega-open:not(.menu-open):not(.search-open) .quote-pill { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
html.hdr-dark.mega-open:not(.menu-open):not(.search-open) .quote-pill b { background: var(--ink); color: var(--paper); }
html.hdr-dark.mega-open:not(.menu-open):not(.search-open) .lang { color: var(--grey); }
.mega-open .header, .menu-open .header, .search-open .header { background: var(--ivory); }
.header .wordmark { padding: 13px 0; }
.header .lang, .header .search-btn, .header .quote-pill { min-height: 44px; min-width: 44px; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header__in { grid-template-columns: 1fr auto; }
}
/* 2 — mobile menu ------------------------------------------------------------- */
.menu nav { width: 100%; max-width: 560px; }
.menu .menu__item, .menu .acco__btn { min-height: 56px; padding: 10px 0; border-bottom: 0; align-items: center; gap: 12px; font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.menu small[data-n] { display: none; }
.acco__btn span { flex: 1; text-align: left; }
.acco__btn i { position: relative; width: 14px; height: 14px; flex: none; }
.acco__btn i::before, .acco__btn i::after { content: ""; position: absolute; left: 1px; right: 1px; top: 6.5px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.acco__btn i::after { transform: rotate(90deg); }
.acco__btn[aria-expanded="true"] i::after { transform: none; }
.acco__body { padding: 0 0 12px; }
.acco__body a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-size: 15px; color: var(--grey); }
.acco__body a:hover { color: var(--ink); }
.menu__pic { display: none; }
.menu__quote { margin-top: 28px; }
.menu__quote span { margin-left: 4px; }
/* 2b — glass menu and mega panel (owner, 30 Nov 2026: lighter, transparent, smaller one-word labels) */
.menu__scrim { position: fixed; inset: 0; z-index: 98; background: rgba(13, 12, 11, .18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .menu__scrim { opacity: 1; visibility: visible; }
.menu { inset: calc(var(--header) + 6px) 10px auto 10px; max-height: calc(100svh - var(--header) - 16px); padding: 8px; justify-content: flex-start; border-radius: 22px;
  background: rgba(250, 248, 244, .62); -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 30px 60px -24px rgba(27, 26, 24, .4), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: translateY(-10px) scale(.97); transform-origin: top right; transition: opacity .28s var(--ease), transform .42s var(--ease), visibility .28s; }
.menu-open .menu { transform: none; }
.menu nav { max-width: none; }
.menu .menu__item, .menu .acco__btn { min-height: 46px; padding: 8px 14px; border-radius: 14px; font-size: 17px; font-weight: 450; letter-spacing: -.01em; transition: background .2s; }
.menu .menu__item:hover, .menu .acco__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .55); }
.menu .menu__item small { font-size: 12px; }
.acco__body { padding: 2px 14px 8px 26px; }
.acco__body a { min-height: 36px; font-size: 14px; }
.menu__quote { margin-top: 8px; min-height: 48px; border-radius: 14px; font-size: 15px; }
@media (min-width: 600px) { .menu { left: auto; width: 360px; right: var(--gut); } }
html.menu-open:not(.search-open) .header { background: rgba(243, 240, 233, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.mega { left: var(--gut); right: var(--gut); top: calc(100% + 6px); border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; overflow: hidden;
  background: rgba(250, 248, 244, .72); -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: 0 30px 60px -24px rgba(27, 26, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.mega__in { padding: 22px 24px; min-height: 0; gap: clamp(20px, 3vw, 48px); }
.mega__head .h3 { font-size: 20px; }
.nav .mega__list a { min-height: 52px; font-size: 14px; gap: 12px; }
.mega__thumb { width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.mega__thumb img { max-width: 42px; max-height: 42px; }
.nav .mega__pic { border-radius: 14px; aspect-ratio: 16 / 10; }
.mega-open:not(.menu-open):not(.search-open) .header, html.hdr-dark.mega-open:not(.menu-open):not(.search-open) .header { background: rgba(243, 240, 233, .8); }
.acco__body small { color: var(--grey); font-size: 13px; }

/* 3 — collection page --------------------------------------------------------- */
.shop__head { padding-bottom: clamp(20px, 2.4vw, 36px); padding-top: calc(var(--header) + clamp(28px, 4vw, 64px)); }
.shop__head .h1 { font-size: clamp(34px, 4.4vw, 68px); outline: none; overflow-wrap: anywhere; min-height: 1em; }
.shop__head .lede { min-height: 1.55em; margin-top: 14px; }
.shop .crumbs { min-height: 24px; align-items: center; }
.shop .crumbs a { padding: 8px 0; margin: -8px 0; }
.subs[hidden] { display: none; }
.subs { display: flex; gap: clamp(20px, 2.2vw, 36px); min-height: 52px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); position: relative; }
.subs::-webkit-scrollbar { display: none; }
.subs a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 52px; font-size: 15px; color: var(--grey); white-space: nowrap; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.subs a:hover, .subs a[aria-current] { color: var(--ink); }
.subs a[aria-current] { border-color: var(--ink); }
.subs small { font-size: 12px; color: var(--grey); }
.subs a:focus-visible, .opt input:focus-visible + .opt__box, .facet summary:focus-visible { outline-offset: -2px; }
.bar { position: sticky; top: var(--header); z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
.hdr-hidden .bar { top: 0; }
.bar__in { display: flex; align-items: center; gap: 16px 24px; min-height: 56px; }
.bar .count { flex: none; min-width: 0; padding: 0; }
.bar .count--note { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.bar .count--note::before { content: "·"; margin-right: 10px; }
.bar__filter { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: 14px; font-weight: 400; }
.bar__filter b, .facet summary b { font-size: 13px; font-weight: 400; color: var(--grey); font-variant-numeric: tabular-nums; }
.bar__filter b::before, .facet summary b::before { content: "("; } .bar__filter b::after, .facet summary b::after { content: ")"; }
.bar__sort { margin-left: auto; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); white-space: nowrap; min-width: 0; }
.bar__sort select { appearance: none; -webkit-appearance: none; min-height: 44px; min-width: 0; max-width: 100%; border: 0; border-radius: 0; padding: 0 20px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); text-overflow: ellipsis; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231b1a18' stroke-width='1.4'%3E%3Cpath d='M2 4.2 6 8l4-3.8'/%3E%3C/svg%3E") no-repeat right center / 11px; }

.shop__body { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; min-height: 100svh; padding-top: clamp(20px, 2vw, 32px); }
.no-side .shop__body { grid-template-columns: minmax(0, 1fr); }
.shop__main { min-width: 0; min-height: 80svh; }
.shop .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 40px) clamp(12px, 1.2vw, 16px); }
.no-side.shop .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* tableware: colour collections down the page (collection.js), separated by space only — a quiet serif name and a small count */
.cgroup { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 0 0 clamp(-24px, -1.4vw, -10px); scroll-margin-top: calc(var(--header) + 32px); }
.cgroup:not(:first-child) { margin-top: clamp(48px, 6vw, 104px); }
.cgroup__l { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.01em; }
.cgroup__n { font-size: 12px; color: var(--grey); white-space: nowrap; }
/* tableware collection cards (collection.js): a square photo, the name in the serif, the count. For now the photo is one piece's scene; stacked set photos come later */
.grid--sets { row-gap: clamp(28px, 3vw, 48px); }
.pset { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.pset__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--studio); margin-bottom: 10px; }
.pset__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pset:hover .pset__img img { transform: scale(1.03); }
.pset__name { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; }
.pset__n { font-size: 12px; color: var(--grey); }
.pset:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .pset__img img { transition: none; } }
/* folder cards come in one after another; the last card opens every plate */
@keyframes pset-in { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
.pset { animation: pset-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.morphing .pset { animation: none; }
.pset__name { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; align-self: flex-start; }
.pset:hover .pset__name, .pset:focus-visible .pset__name { background-size: 100% 1px; }
.pset--all .pset__img { display: grid; place-items: center; background: var(--studio); border: 0; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.pset__all { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pset__all-n { font-family: var(--serif); font-size: clamp(56px, 6vw, 96px); line-height: 1; }
.pset__all-a { font-size: 22px; transition: transform .5s var(--ease); }
.pset--all:hover .pset__img { background: var(--ink); color: var(--ivory); }
.pset--all:hover .pset__all-a { transform: translateX(8px); }
/* folder page: the cover photo large, slowly settling; a soft round button back */
@keyframes shero-in { from { transform: scale(1.08); } to { transform: none; } }
.shero { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--studio); margin: clamp(4px, 1vw, 12px) 0 clamp(8px, 1.6vw, 24px); }
.shero__img { width: 100%; height: 100%; object-fit: cover; animation: shero-in 2.4s var(--ease) both; }
.morphing .shero__img { animation: none; }
.shero__back { position: absolute; left: clamp(12px, 1.6vw, 24px); top: clamp(12px, 1.6vw, 24px); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius); font-size: 14px; color: var(--ink);
  background: color-mix(in srgb, var(--ivory) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s, transform .4s var(--ease); }
.shero__back span { transition: transform .4s var(--ease); }
.shero__back:hover { background: var(--ivory); }
.shero__back:hover span { transform: translateX(-4px); }
::view-transition-group(set-cover) { animation-duration: .7s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
/* folder poster (plate_collections.json "hero"): full-bleed sunlit photo with the name over it */
.has-poster .shop__head .h1, .has-poster .shop__head .lede { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.poster { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: min(calc(100svh - var(--header) - 40px), 62vw); min-height: 560px; overflow: hidden; color: #fffaf2; margin-bottom: clamp(32px, 4vw, 64px); }
.poster picture, .poster__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster__img { object-fit: cover; object-position: 60% 50%; animation: shero-in 3.2s var(--ease) both; }
.poster::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(40, 26, 14, .5), rgba(40, 26, 14, .12) 55%, transparent); pointer-events: none; }
.poster__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: min(46%, 620px); margin-left: clamp(24px, 5vw, 96px); }
@keyframes poster-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes poster-line { from { transform: scaleY(0); } to { transform: none; } }
.poster__in > * { animation: poster-up 1.1s var(--ease) both; }
.poster__kick { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; animation-delay: .15s; }
.poster__line { width: 1px; height: clamp(36px, 5vw, 64px); background: currentColor; opacity: .8; margin: 18px 0 22px; transform-origin: top; animation: poster-line 1s .35s var(--ease) both; }
.poster__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(48px, 6vw, 88px); line-height: .95; animation-delay: .45s; text-shadow: 0 2px 30px rgba(40, 26, 14, .25); }
.poster__tag { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 28px); margin-top: 14px; animation-delay: .65s; }
.poster__pts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 32px); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; animation: none; }
.poster__pts li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; animation: poster-up 1s var(--ease) both; animation-delay: calc(.9s + var(--i) * .15s); }
.poster__go { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(28px, 3.4vw, 48px); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: inherit; padding-bottom: 8px; background: linear-gradient(currentColor, currentColor) 50% 100% / 60% 1px no-repeat; transition: background-size .5s var(--ease); animation-delay: 1.4s; }
@keyframes poster-bob { 50% { transform: translateY(5px); } }
.poster__go:hover { background-size: 100% 1px; }
@keyframes poster-float { 50% { transform: translateY(-8px); } }
.poster__badge { position: absolute; z-index: 2; right: clamp(20px, 6vw, 120px); top: 18%; width: clamp(128px, 12vw, 176px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.7; background: rgba(120, 90, 60, .32); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: poster-up 1s 1.1s var(--ease) both, poster-float 6s 2.2s ease-in-out infinite; }
.poster .shero__back { z-index: 3; top: clamp(16px, 2vw, 28px); left: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) {
  .poster { height: auto; min-height: 0; aspect-ratio: 3 / 4.4; }
  .poster__img { object-position: 50% 100%; }
  .poster::before { background: linear-gradient(180deg, rgba(40, 26, 14, .45), rgba(40, 26, 14, .1) 45%, transparent 60%, rgba(40, 26, 14, .45)); }
  .poster__in { width: auto; margin: 0 var(--gut); justify-content: flex-start; padding: 40px 0 24px; }
  .poster__pts { margin-top: auto; gap: 8px; } .poster__pts li { font-size: 10px; letter-spacing: .1em; }
  .poster__go { margin-top: auto; }
  .poster__badge { top: 64px; bottom: auto; right: 12px; width: 100px; font-size: 8.5px; padding: 10px; gap: 4px; }
}
/* Light photo (white marble): dark ink, soft paper wash behind the text */
.poster--light { color: var(--ink); }
.poster--light::before { background: linear-gradient(90deg, rgba(250, 248, 244, .86), rgba(250, 248, 244, .55) 38%, transparent 62%); }
.poster--light .poster__title { text-shadow: none; }
.poster--light .poster__badge { color: #fffaf2; background: rgba(60, 70, 40, .5); }
@media (max-width: 860px) { .poster--light::before { background: linear-gradient(180deg, rgba(250, 248, 244, .9), rgba(250, 248, 244, .5) 38%, transparent 55%, transparent 72%, rgba(250, 248, 244, .88)); } }
@media (prefers-reduced-motion: reduce) { .poster__img, .poster__in > *, .poster__line, .poster__pts li, .poster__badge, .poster__go span { animation: none; } }
/* the next folder, at the end of a folder page */
.snext { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 7vw, 112px); padding: clamp(16px, 2vw, 24px) 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.snext__img { flex: none; width: clamp(72px, 8vw, 120px); aspect-ratio: 1; overflow: hidden; background: var(--studio); }
.snext__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.snext__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.snext__t small { font-size: 12px; color: var(--grey); }
.snext__name { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.05; }
.snext__a { margin-left: auto; font-size: 26px; transition: transform .5s var(--ease); }
.snext:hover .snext__img img { transform: scale(1.08); }
.snext:hover .snext__a { transform: translateX(10px); }
@media (max-width: 860px) { .shero { aspect-ratio: 4 / 3; margin-inline: calc(var(--gut) * -1); } }
@media (prefers-reduced-motion: reduce) { .pset, .shero__img { animation: none; } .pset__name, .pset__all-a, .snext__a, .snext__img img, .shero__back span { transition: none; } }
.by-colour .listing { padding-top: clamp(8px, 1.6vw, 24px); }
.shop__main, .shop__main * { overflow-anchor: none; }   /* scroll positions are restored by collection.js */
.anchor-hold .shop__main, .anchor-hold .shop__main * { overflow-anchor: auto; }   /* after a jump to a colour group (collection.js) */
.skel { aspect-ratio: 4 / 5; background: var(--studio); margin-bottom: 112px; }
.shop .card__add .add { min-height: 40px; }
.shop .card__add .stepper { height: 46px; }
.shop .card__add .stepper button { min-width: 44px; height: 44px; }
.side { position: sticky; top: calc(var(--header) + 56px + 24px); max-height: calc(100svh - var(--header) - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 12px; min-height: 200px; }

@media (max-width: 1279px) { .shop .card__body { flex-direction: column; gap: 4px; justify-content: flex-start; } .shop .card__price { text-align: left; } }

/* facets */
.facet { border-bottom: 1px solid var(--line); }
.facet summary { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary span { flex: 1; }
.facet summary::after { content: ""; width: 7px; height: 7px; margin: -4px 4px 0 0; border: solid currentColor; border-width: 0 1.3px 1.3px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.facet[open] summary::after { transform: translateY(4px) rotate(225deg); }
.facet__list { padding-bottom: 14px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.opt__box { flex: none; width: 16px; height: 16px; border: 1px solid var(--grey-2); border-radius: 2px; background: transparent; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.opt:hover .opt__box { border-color: var(--ink); }
.opt input:checked + .opt__box { background: var(--ink); border-color: var(--ink); }
.opt input:checked + .opt__box::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--amber); outline-offset: 3px; }
.opt__l { flex: 1; min-width: 0; line-height: 1.3; }
.opt small { font-size: 12px; color: var(--grey); }
.opt.is-off { cursor: default; } .opt.is-off .opt__l, .opt.is-off .dot { opacity: .4; }
.dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(27, 26, 24, .16); }
.dot--multi { background: conic-gradient(#7fa6bd, #6f8a62, #d9a441, #7a2430, #7fa6bd); }
.dot--metal { background: linear-gradient(135deg, #8d7444, #efe0b8 45%, #a58a58 70%, #d9c48f); }
.dot--clear { background: linear-gradient(135deg, #fff, #dfe6e8); }

/* active filters */
.active { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-bottom: 20px; }
.active:empty { min-height: 64px; }   /* a filtered link: the chips arrive with the data */
.pick { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--line); }
.pick:hover { border-color: var(--ink); }
.pick > span { color: var(--grey); font-size: 17px; }
.pick .dot { width: 14px; height: 14px; }
.pick--clear { color: var(--grey); border-bottom-color: transparent; }
.more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: clamp(48px, 5vw, 80px); }
.shop .empty { display: flex; flex-direction: column; align-items: center; gap: 12px; grid-column: 1 / -1; }
.shop .empty .link { min-height: 44px; }

/* drawer */
.drawer { display: none; }
.drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: fixed; inset: auto 0 0 0; width: 100%; max-width: 720px; height: auto; max-height: 88svh; margin: 0 auto; padding: 0; border: 0; border-radius: 14px 14px 0 0; background: var(--ivory); color: var(--ink); overflow: hidden; animation: drawer .38s var(--ease); }
.drawer::backdrop { background: rgba(13, 12, 11, .5); }
@keyframes drawer { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-open { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px var(--gut); border-bottom: 1px solid var(--line); }
.drawer__x { width: 48px; height: 48px; font-size: 26px; color: var(--grey); }
.drawer__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut) 16px; }
.drawer__foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__foot .btn { padding-inline: 20px; }

/* quote bar (phones and tablets) */
.qbar { display: none; }

@media (max-width: 1023px) {
  .side { display: none; }
  .shop__body { grid-template-columns: minmax(0, 1fr); }
  .shop .grid, .no-side.shop .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt { min-height: 48px; font-size: 16px; } .facet summary { min-height: 60px; font-size: 16px; } .opt__box { width: 20px; height: 20px; } .dot { width: 22px; height: 22px; }
  .bar__in { gap: 12px 18px; }
  .qbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); min-height: 56px; background: var(--paper); border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
  .qbar span::after { content: " →"; }
  .qbar b { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; display: grid; place-items: center; }
  body.has-qbar .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-qbar .footer { padding-bottom: 96px; }
}
@media (min-width: 1024px) { .bar__filter { display: none; } }
@media (max-width: 620px) {
  .shop .grid, .no-side.shop .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .bar__sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bar .count { text-align: left; }
  .bar__in { flex-wrap: wrap; row-gap: 0; }
  .bar .count--note { flex-basis: 100%; order: 3; padding: 0 0 10px; margin-top: -6px; font-size: 12px; }
  .bar .count--note::before { content: none; }
  .subs a { font-size: 15px; }
}
@media (max-width: 620px) {
  .toast { left: 16px; right: 16px; max-width: none; justify-content: space-between; border-radius: 14px; padding: 12px 12px 12px 18px; line-height: 1.35; transform: translateY(24px); }
  .toast.is-on { transform: none; }
  .toast a { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .mega, .drawer[open] { animation: none; } }
