/* Neat — design system.
   Paper background, deep-green bar, brass accent. Hand-written custom
   properties: this monolith has no build step, so there is no Tailwind here.

   1. Tokens          8. Cards, rails, tiles
   2. Base            9. Listing rows
   3. Layout         10. Spirit detail
   4. Header         11. Taste, compare, shelf
   5. Palette        12. Home extras
   6. Controls       13. Sheets, tabbar, footer
   7. Filters        14. Utilities, responsive
*/

/* 1. Tokens ------------------------------------------------------------- */

:root {
  --ink: #14211b;
  --paper: #f1f3ee;
  --card: #ffffff;
  --line: #d5dbd3;
  --line-strong: #c3ccc1;
  --muted: #55615a;
  --faint: #7b857e;

  --bar: #0e2a22;
  --bar-2: #143a2f;
  --hero-glow: #1f5242;
  --hero-text: #f2f6f1;
  --hero-muted: #b4c6ba;
  --hero-line: rgba(255, 255, 255, 0.12);
  --hero-line-2: rgba(255, 255, 255, 0.28);
  --hero-field: rgba(255, 255, 255, 0.1);

  --accent: #d9962a;
  --accent-lt: #f2c15a;
  --accent-dk: #b87f22;
  --on-accent: #1b1409;
  --accent-wash: #fbf1de;
  --accent-ink: #8a5a0e;

  --price: #237a52;
  --price-lt: #5ebf8a;
  --price-wash: #eef5ef;
  --dn: #b24a2c;
  --dn-wash: #f7ece8;

  --art-1: #edf1ea;
  --art-2: #dce4da;
  --star-off: #d8ddd5;
  --track: #e6eae3;

  --shadow-sm: 0 1px 2px rgba(14, 33, 27, 0.06);
  --shadow: 0 1px 2px rgba(14, 33, 27, 0.06), 0 8px 20px -14px rgba(14, 33, 27, 0.35);
  --shadow-lg: 0 18px 34px -18px rgba(14, 33, 27, 0.4);
  --shadow-xl: 0 30px 60px -30px rgba(14, 33, 27, 0.55);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tabbar-h: 58px;

  /* Aliases kept so view-level inline styles written against the previous
     dark theme keep resolving to something sensible. */
  --text: var(--ink);
  --text-soft: #33413a;
  --serif: var(--f-display);
  --sans: var(--f-body);
  --brass: var(--accent);
  --brass-bright: var(--accent-dk);
  --brass-dim: var(--accent);
  --brass-line: rgba(217, 150, 42, 0.55);
  --brass-wash: rgba(217, 150, 42, 0.12);
  --good: var(--price);
  --mid: var(--accent-ink);
  --low: var(--dn);
  --radius: var(--r);
  --radius-sm: var(--r-sm);
  --radius-lg: var(--r-lg);
  --radius-pill: var(--r-pill);
  --ink-950: var(--paper);
  --ink-900: var(--paper);
  --ink-850: var(--card);
  --ink-800: var(--paper);
  --ink-750: var(--track);
  --ink-700: var(--track);
  --ink-600: var(--line-strong);
}

/* 2. Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variation-settings: "opsz" 72, "SOFT" 0;
}
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; }
h3 { font-size: 20px; }

.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }

.eyebrow, .kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--price);
  margin-bottom: 6px;
}
.eyebrow--brass, .on-dark .eyebrow, .on-dark .kicker { color: var(--accent-lt); }

.lede { font-size: 16.5px; color: var(--muted); max-width: 62ch; }
.prose { color: var(--text-soft); max-width: 68ch; }
.prose p + p { margin-top: 12px; }

.link { color: var(--price); font-weight: 700; }
.link:hover { text-decoration: underline; }
.link--icon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* 3. Layout ------------------------------------------------------------- */

.wrap, .shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.shell--narrow { max-width: 860px; }

.section { margin-top: 52px; }
.section--tight { margin-top: 32px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head h2 { max-width: 24ch; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 62ch; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel--flush { padding: 0; overflow: hidden; }
.panel__title {
  margin-bottom: 12px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.empty {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 { margin-bottom: 8px; color: var(--ink); }
.empty p { max-width: 46ch; margin-inline: auto; }

.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.divider-label::before, .divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 4. Header & subnav ---------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bar);
  color: var(--hero-text);
  border-bottom: 1px solid var(--hero-line);
}
.header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hero-text);
}
.brand__mark {
  position: relative;
  width: 10px;
  height: 22px;
  border-radius: 2px 2px 6px 6px;
  background: var(--accent-lt);
}
.brand__mark::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2.5px;
  width: 5px;
  height: 7px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.searchbar {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hero-line-2);
  background: var(--hero-field);
  color: var(--hero-muted);
  font-size: 14px;
  text-align: left;
}
.searchbar:hover { border-color: var(--hero-text); }
.searchbar svg { width: 16px; height: 16px; flex-shrink: 0; }
.searchbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbar__hint {
  margin-left: auto;
  border: 1px solid var(--hero-line-2);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  opacity: 0.75;
  flex-shrink: 0;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hero-muted);
}
.nav__link:hover { color: var(--hero-text); }
.nav__link.is-current { color: var(--accent-lt); }
.header__spacer { flex: 1; }
.header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--hero-muted);
}
.icon-btn:hover { background: var(--hero-field); color: var(--hero-text); }
.icon-btn svg { width: 20px; height: 20px; }

.count-dot {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.subnav a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--line-strong)); }
.subnav a:hover, .subnav a[aria-current="true"] { background: var(--paper); color: var(--ink); }

/* 5. Command palette ---------------------------------------------------- */

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 33, 27, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.palette-backdrop.is-open { opacity: 1; pointer-events: auto; }

.palette {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 91;
  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.palette.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.palette[hidden] { display: none; }

.palette__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.palette__field svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.palette__field input { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; outline: none; }
.palette__field input::placeholder { color: var(--faint); font-weight: 400; }
.palette__spin {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--track);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.palette.is-loading .palette__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.palette__results { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pgroup + .pgroup { border-top: 1px solid var(--line); }
.pgroup__title {
  padding: 8px 16px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.presult {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}
.pgroup .presult:last-child { border-bottom: 0; }
.presult:hover, .presult.is-active { background: var(--paper); }
.presult__thumb {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--art-2) center/cover no-repeat;
}
.presult__main { min-width: 0; }
.presult__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.presult__sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.presult__score { flex-shrink: 0; }

.palette__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  color: var(--faint);
}
.kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* 6. Controls: buttons, chips, tags, selects ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.12s var(--ease);
}
.btn:hover { border-color: var(--line-strong); background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-lt); border-color: var(--accent-lt); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--bar-2); border-color: var(--bar-2); }
.btn--green { background: var(--price); border-color: var(--price); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 34px; padding: 7px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* On the dark bar and hero panels. */
.on-dark .btn:not(.btn--primary):not(.btn--dark):not(.btn--green) {
  background: transparent;
  border-color: var(--hero-line-2);
  color: var(--hero-text);
}
.on-dark .btn:not(.btn--primary):hover { background: var(--hero-field); border-color: var(--hero-text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip__count { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active .chip__count { color: rgba(255, 255, 255, 0.7); }
.chip.is-empty { opacity: 0.4; pointer-events: none; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--line-strong)); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Sibling links can run to a dozen entries, which is a wall of chips on a phone. */
@media (max-width: 900px) {
  .chip-row--rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .chip-row--rail::-webkit-scrollbar { display: none; }
  .chip-row--rail .chip { flex: 0 0 auto; }
}

.on-dark .chip, .band .chip {
  background: transparent;
  border-color: var(--hero-line-2);
  color: var(--hero-text);
}
.on-dark .chip:hover, .on-dark .chip.is-active, .on-dark .chip[aria-pressed="true"],
.band .chip:hover, .band .chip.is-active, .band .chip[aria-pressed="true"] {
  background: var(--hero-field);
  border-color: var(--hero-text);
  color: var(--hero-text);
}
.on-dark .chip__count, .on-dark .chip small,
.band .chip__count, .band .chip small { color: var(--hero-muted); font-weight: 400; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--track);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
a.tag:hover { background: var(--line); color: var(--ink); }

.select {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  color: var(--muted);
}
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select svg { display: none; }

/* Stars */
.stars { display: inline-flex; gap: 1px; }
.star { width: 13px; height: 13px; fill: var(--star-off); }
.star.on { fill: var(--accent); }
.star.half { fill: url(#half); }
.stars svg { width: 13px; height: 13px; }
.stars .is-off { fill: var(--star-off); color: var(--star-off); }

/* Score, price, badges */
.score { display: inline-flex; align-items: baseline; gap: 4px; }
.score__value { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.score__of { font-size: 11.5px; color: var(--faint); }
.score__count { font-size: 11.5px; color: var(--muted); }
.score--none { font-size: 12.5px; color: var(--faint); font-style: italic; }

.price { font-weight: 800; color: var(--price); letter-spacing: 0.02em; }
.critic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--price);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--top { background: var(--accent); color: var(--on-accent); }

.pct {
  width: max-content;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pct--mid { background: var(--paper); color: var(--muted); }

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.confidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.confidence--high { color: var(--price); border-color: rgba(35, 122, 82, 0.35); background: var(--price-wash); }
.confidence--mid { color: var(--accent-ink); border-color: rgba(217, 150, 42, 0.35); background: var(--accent-wash); }
.confidence--low { color: var(--dn); border-color: rgba(178, 74, 44, 0.3); background: var(--dn-wash); }

.match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--price-wash);
  border: 1px solid rgba(35, 122, 82, 0.3);
  color: var(--price);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 7. Browse layout & filters -------------------------------------------- */

.browse {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 56px;
}

.filters { position: sticky; top: 76px; }
.filters .sheet__body { display: flex; flex-direction: column; gap: 12px; }

.fgroup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
}
.fgroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 2px 0 8px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.fgroup__head svg { width: 14px; height: 14px; color: var(--faint); transition: transform 0.2s var(--ease); }
.fgroup.is-closed .fgroup__head svg { transform: rotate(-90deg); }
.fgroup.is-closed .fgroup__body { display: none; }
.fgroup__body { display: flex; flex-direction: column; gap: 2px; }
.fgroup__note { font-size: 12px; color: var(--faint); margin-top: 8px; }
.fgroup__more {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--price);
}
.fgroup__more:hover { text-decoration: underline; }
.fgroup__clear { font-size: 13px; font-weight: 700; color: var(--price); }
.fgroup__clear:hover { text-decoration: underline; }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.opt__box svg { width: 11px; height: 11px; opacity: 0; color: #fff; }
.opt input:checked + .opt__box { background: var(--bar); border-color: var(--bar); }
.opt input:checked + .opt__box svg { opacity: 1; }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input[type="radio"] + .opt__box { border-radius: 50%; }
.opt__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt em { font-style: normal; color: var(--muted); font-size: 13px; }
.opt b { font-weight: 700; }
.opt.is-empty { opacity: 0.42; }

/* Dual-handle price range */
.range2 { padding: 4px 0 2px; }
.range2__vals { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.range2__track { position: relative; height: 28px; }
.range2__bar, .range2__fill { position: absolute; top: 12px; height: 4px; border-radius: var(--r-pill); }
.range2__bar { left: 0; right: 0; background: var(--track); }
.range2__fill { background: var(--ink); }
.range2 input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}
.range2 input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  pointer-events: auto;
  cursor: pointer;
}
.range2 input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  pointer-events: auto;
  cursor: pointer;
}

/* Number pairs (ABV, age) */
.range { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.range input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  outline: none;
}
.range input:focus { border-color: var(--accent); }
.range span { color: var(--faint); font-size: 13px; }

/* Single slider (rating, taste dials) */
.slider {
  width: 100%;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--track) var(--fill, 0%));
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.slider::-moz-range-track { height: 4px; border-radius: var(--r-pill); background: var(--track); }
.slider::-moz-range-progress { height: 4px; border-radius: var(--r-pill); background: var(--accent); }
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
}

/* Results toolbar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.results-bar__count { font-size: 14px; color: var(--muted); }
.results-bar__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.results-bar__spacer { flex: 1; }

.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
/* The row is always in the DOM so a filter change can refill it; with nothing
   applied it should take up no space at all. */
.active-filters:empty { display: none; }
.pill-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12.5px;
  font-weight: 600;
}
.pill-x:hover { border-color: var(--line-strong); }
.pill-x--plain { background: none; border-color: transparent; color: var(--price); }
.pill-x--plain:hover { border-color: var(--line); }
.pill-x svg { width: 12px; height: 12px; color: var(--muted); }
.pill-x:hover svg { color: var(--ink); }

/* Band: the dark header on listing and landing pages */
.band {
  border-radius: var(--r-lg);
  padding: 26px 28px;
  background: radial-gradient(900px 300px at 80% -20%, var(--hero-glow) 0%, var(--bar) 60%);
  color: var(--hero-text);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}
.band h1 { font-size: clamp(26px, 3.4vw, 40px); font-variation-settings: "opsz" 72, "SOFT" 0; }
.band h1 small {
  margin-left: 10px;
  font: 15px var(--f-body);
  color: var(--hero-muted);
  letter-spacing: 0;
}
.band p { margin-top: 8px; font-size: 14px; color: var(--hero-muted); max-width: 62ch; }
.band__stats { display: flex; gap: 26px; }
.band__stats div { font-size: 12px; color: var(--hero-muted); }
.band__stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.band__quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.band .breadcrumbs { color: var(--hero-muted); }
.band .breadcrumbs a:hover { color: var(--hero-text); }
.band .breadcrumbs svg { color: var(--hero-line-2); }

/* The bottle page wears the same band with the photo and the score in it. */
.band--detail {
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 6px;
}
.band__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 250px;
  overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--art-1), var(--art-2));
}
/* Contain, not cover: on the bottle's own page the whole bottle should be visible. */
.band__art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.band .btn--ghost { border-color: var(--hero-line-2); color: var(--hero-text); }
.band .btn--ghost:hover { background: var(--hero-field); border-color: var(--hero-text); }
.band__initial { font-family: var(--f-display); font-size: 56px; font-weight: 700; color: rgba(20, 33, 27, 0.2); }
.band__main { min-width: 0; }
.band__k {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
}
.band__k:hover { color: #fff; }
.band__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--hero-muted);
}
.band__meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.band__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.band__price { font-size: 12.5px; line-height: 1.3; color: var(--hero-muted); }
.band__price em { display: block; font-style: normal; font-weight: 800; color: var(--price-lt); }

.scorepanel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--hero-line-2);
  background: var(--hero-field);
}
.scorepanel__meta { min-width: 0; }
.ring--lg { width: 104px; height: 104px; }
.ring--lg .ring__value { font-size: 30px; color: #fff; }
.scorepanel__note { margin-top: 6px; font-size: 12.5px; color: var(--hero-muted); }
.scorepanel__note span { display: block; color: var(--hero-line-2); }
.scorepanel__critic { margin-top: 10px; font-size: 12.5px; color: var(--hero-muted); }
.scorepanel__critic b { font-family: var(--f-display); font-size: 18px; color: #fff; }

/* 8. Cards, rails, tiles ------------------------------------------------ */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid > * { content-visibility: auto; contain-intrinsic-size: 320px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c, var(--line-strong)); }

.card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, var(--art-1), var(--art-2));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Artwork panels pick up a wash of the category colour. */
@supports (background: color-mix(in srgb, red 10%, blue)) {
  .card__frame, .row-item__art, .bottle, .showcard__art {
    background-image: linear-gradient(
      180deg,
      color-mix(in srgb, var(--c, var(--line-strong)) 13%, var(--art-1)),
      color-mix(in srgb, var(--c, var(--line-strong)) 26%, var(--art-2))
    );
  }
}
.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.card__frame img.is-loaded { opacity: 1; }
.card:hover .card__frame img { transform: scale(1.04); }
.card__frame--empty {
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--line-strong);
}

.card__rank {
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(20, 33, 27, 0.22);
}

.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 13px 14px 12px; }
.card__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__name {
  font-family: var(--f-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
}
.card__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__dot { color: var(--line-strong); flex-shrink: 0; }
.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.card:hover .card__actions, .card:focus-within .card__actions { opacity: 1; transform: none; }
.act {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.act svg { width: 16px; height: 16px; }
.act:hover { color: var(--ink); border-color: var(--line-strong); }
.act.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.act.is-on svg { fill: currentColor; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
/* A rail stays a rail on desktop: squeezing eight cards into the content width
   shrinks each one until the type has to be clipped mid-word. */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--c, var(--line-strong)); }
.tile__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.tile__body { position: relative; display: flex; flex-direction: column; }
.tile__name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.tile__sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 3px; max-width: 20ch; }
.tile__count { font-size: 11.5px; font-weight: 700; color: var(--price); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
}
.stat__value { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* 9. Listing rows ------------------------------------------------------- */

.list { display: flex; flex-direction: column; gap: 12px; }

.row-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 232px;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding-right: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.row-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--c, var(--line-strong)); }

.row-item__art {
  position: relative;
  height: 190px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: var(--r) 0 0 var(--r);
  background: linear-gradient(180deg, var(--tint-1, var(--art-1)), var(--tint-2, var(--art-2)));
  overflow: hidden;
}
.row-item__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.row-item__art img.is-loaded { opacity: 1; }
/* A pill rather than the mockup's ghosted numeral: real bottle photos fill the
   panel, so low-contrast ink over them is unreadable. */
.row-item__rank {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(14, 33, 27, 0.72);
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
}
.row-item__initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(20, 33, 27, 0.2);
}

.row-item__info { padding: 16px 0; min-width: 0; }
.row-item__brand { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dk); }
.row-item h3 {
  margin: 3px 0 6px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}
.row-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.row-item__meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--line-strong)); }
.row-item__say { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--ink); }
.row-item__say b {
  margin-right: 6px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.row-item__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.row-item__right {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 16px 0;
}
.row-item__right .stars { grid-column: 2; }

.ring { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.row-item__right .ring { grid-row: 1 / 4; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring__track { stroke: var(--track); }
.ring__prog { stroke: var(--ring-color, var(--accent)); stroke-linecap: round; }
.ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ring__value small { font-size: 11px; font-weight: 600; color: var(--faint); }

.row-item__cnt { font-size: 12.5px; color: var(--muted); grid-column: 2; }
.row-item__buy { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pricebtn {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--price);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.pricebtn--none { background: var(--track); color: var(--muted); font-size: 13px; font-weight: 700; }
.row-item__msrp { font-size: 12px; line-height: 1.3; color: var(--muted); }
.row-item__msrp em { display: block; font-style: normal; font-weight: 800; }
.row-item__msrp em.ok { color: var(--price); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.pagination a:hover { border-color: var(--line-strong); color: var(--ink); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .is-gap { border-color: transparent; background: none; }

.filter-fab {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 50;
  transform: translateX(-50%);
  box-shadow: var(--shadow-lg);
}

/* 10. Spirit detail ----------------------------------------------------- */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs svg { width: 12px; height: 12px; color: var(--line-strong); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 20px 0 56px;
}
.detail__aside { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 14px; }

.bottle {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--tint-1, var(--art-1)), var(--tint-2, var(--art-2)));
  box-shadow: var(--shadow);
  min-height: 260px;
}
.bottle__img { width: 100%; height: auto; object-fit: contain; }
.bottle__glow { display: none; }

.speclist { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 14px; font-size: 14px; }
.speclist dt, .speclist dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.speclist dt {
  align-self: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.speclist dd { font-weight: 600; }
.speclist dt:last-of-type, .speclist dd:last-of-type { border-bottom: 0; }
.speclist a:hover { color: var(--price); text-decoration: underline; }

.scorecard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.scorecard--bare { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 18px; }
.scoreblock { display: flex; align-items: center; gap: 12px; }
.scoreblock__label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.scoreblock__meta { min-width: 0; font-size: 12.5px; color: var(--muted); }
.scoreblock__note { font-size: 12px; color: var(--faint); }
.scoreblock .ring__value { font-size: 20px; }

.dist { display: flex; flex-direction: column; gap: 6px; }
.dist__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.dist__bar { display: block; height: 9px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.dist__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }

.notes { display: flex; flex-direction: column; gap: 9px; }
.note { display: grid; grid-template-columns: 118px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.note__label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note__track { display: block; height: 8px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.note__fill { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent-dk), var(--accent-lt)); }
.note__value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }

.radar-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 18px 26px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
.radar-wrap > :only-child { grid-column: 1 / -1; justify-self: center; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid-line { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .axis-line { stroke: var(--line); stroke-width: 1; }
.radar .axis-label { font-family: var(--f-body); font-size: 10px; font-weight: 700; fill: var(--muted); }
.radar .shape { fill: rgba(217, 150, 42, 0.22); stroke: var(--accent); stroke-width: 2; }
.radar .shape--b { fill: rgba(35, 122, 82, 0.18); stroke: var(--price); }
.radar .point { fill: var(--accent); }

.review {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.review:first-child { border-top: 0; padding-top: 4px; }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review__who { font-size: 13.5px; font-weight: 700; }
.review__when { font-size: 12px; color: var(--faint); }
.review__body { color: var(--text-soft); font-size: 14.5px; }
.review__body.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--price); }
.review__more:hover { text-decoration: underline; }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bar);
  color: var(--accent-lt);
  font-size: 11.5px;
  font-weight: 800;
}

/* 11. Taste, compare, shelf --------------------------------------------- */

.dial {
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
}
.dial__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dial__name { font-size: 14px; font-weight: 700; }
.dial__value { font-size: 12.5px; font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }

.ctable-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.ctable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ctable th, .ctable td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ctable thead th { background: #f4f6f2; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ctable tbody th {
  position: sticky;
  left: 0;
  background: var(--card);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ctable tr:last-child td, .ctable tr:last-child th { border-bottom: 0; }
.ctable__foot { padding: 12px 16px; background: #f4f6f2; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.chead { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.chead__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--art-2) center/cover no-repeat;
}
.chead__name { font-family: var(--f-display); font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--ink); }

.tray {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 45;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.tray[hidden] { display: none; }
.tray__label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tray__items { display: flex; gap: 6px; }
.tray__items img, .tray__thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--art-2) center/cover no-repeat;
  object-fit: cover;
}

@media (min-width: 901px) { .tray { bottom: 18px; } }

.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 12px; }
.brandcard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.brandcard:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.brandcard strong { font-family: var(--f-display); font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.brandcard__sub { font-size: 12px; color: var(--muted); }
.brandcard__score { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.brandcard__score b {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* 12. Home ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 60px 0 46px;
  background: radial-gradient(1200px 520px at 70% -10%, var(--hero-glow) 0%, var(--bar) 58%);
  color: var(--hero-text);
}
.hero h1 {
  max-width: 20ch;
  margin: 14px 0 10px;
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero h1 em { font-style: italic; color: var(--accent-lt); }
.hero .lede { color: var(--hero-muted); max-width: 58ch; margin-bottom: 30px; }
.hero .eyebrow { color: var(--accent-lt); }

.sentence {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 980px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-xl);
  font-family: var(--f-display);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
}
.sentence .word { font-variation-settings: "opsz" 60; }
.sentence .pair { display: inline-flex; align-items: center; gap: 10px; }
.sentence .go { margin-left: auto; font-family: var(--f-body); font-size: 15px; padding: 12px 22px; }

.slot { position: relative; }
.slot select, .slot input {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bar);
  background: #e2f0e7;
  border-radius: 8px 8px 2px 2px;
  border-bottom: 2px solid var(--bar);
  padding: 2px 30px 2px 12px;
  cursor: pointer;
  outline: none;
}
.slot input { cursor: text; width: min(8.5em, 52vw); }
.slot input::placeholder { color: #5f7a6c; font-weight: 600; }
.slot select:hover, .slot input:hover { filter: brightness(0.97); }
.slot--select::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--bar);
  border-bottom: 2px solid var(--bar);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Combobox menu used by the sentence finder and the header search */
.dd {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(420px, 84vw);
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-xl);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.dd[hidden] { display: none; }
.dd__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.dd__row:last-child { border-bottom: 0; }
.dd__row:hover, .dd__row.is-active { background: var(--paper); }
.dd__mini {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--art-2) center/cover no-repeat;
}
.dd__mini--cat { background: var(--c, var(--art-2)); border-color: transparent; }
.dd__name { min-width: 0; }
.dd__name b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__name small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__score { font-family: var(--f-display); font-size: 16px; font-weight: 700; text-align: right; }
.dd__score small { display: block; font: 11px var(--f-body); color: var(--muted); }
.dd__head {
  padding: 6px 14px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 34px; font-size: 13px; color: var(--hero-muted); }
.hero-stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hero-text);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
}
.hero-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; font-size: 15px; outline: none; }
.hero-tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

/* Showcase: what every bottle shows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.steps3 { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.s3 { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.s3__n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bar);
  color: var(--accent-lt);
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
}
.s3 b { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 2px; }
.s3 span:not(.s3__n) { font-size: 14px; color: var(--muted); }

.showcard {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  max-width: 560px;
  justify-self: end;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-xl), var(--shadow);
}
.showcard__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, var(--tint-1, var(--art-1)), var(--tint-2, var(--art-2)));
}
.showcard__art img { width: 100%; height: 100%; object-fit: cover; }
.showcard__body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px; }
.showcard__type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.showcard__type .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--line-strong)); }
.showcard h3 { font-size: 24px; font-weight: 600; line-height: 1.1; }
.showcard__nums {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.showcard__score > b { display: block; font-family: var(--f-display); font-size: 48px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.showcard__score small { display: block; font-size: 12px; color: var(--muted); }
.showcard__score small b { font-family: var(--f-body); font-size: 12px; font-weight: 800; color: var(--ink); }
.showcard__price { text-align: right; }
.showcard__price small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.showcard__price b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--price); }
.showcard__price em { font-style: normal; font-size: 12px; color: var(--muted); }
.stars-lg { display: flex; gap: 2px; margin: 6px 0 4px; }
.stars-lg .star, .stars-lg svg { width: 16px; height: 16px; }

/* Scatter */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tog {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.tog:hover { color: var(--ink); }
.tog[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.scat {
  position: relative;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.scat svg { width: 100%; height: auto; overflow: visible; }
.scat text { font-family: var(--f-body); font-size: 11px; fill: var(--muted); }
.scat .lbl { font-size: 11px; font-weight: 600; fill: var(--ink); }
.scat__tip {
  position: absolute;
  z-index: 5;
  display: none;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
}
.scat__tip span { color: var(--accent-lt); font-weight: 700; }

/* Calibration */
.calib {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bar);
  color: var(--hero-text);
}
.calib h3 { font-size: 25px; font-weight: 500; margin-bottom: 6px; }
.calib p { font-size: 14.5px; color: var(--hero-muted); max-width: 62ch; }
.calib__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 16px; }
.crow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hero-line);
}
.crow b { display: block; font-size: 14px; font-weight: 600; }
.crow small { font-size: 12px; color: var(--hero-muted); }
.crow__st { display: flex; gap: 2px; }
.crow__st button { padding: 2px; line-height: 0; }
.crow__st svg { width: 22px; height: 22px; fill: rgba(255, 255, 255, 0.18); transition: fill 0.1s var(--ease); }
.crow__st svg.on { fill: var(--accent-lt); }
.crow__rv { display: none; min-width: 96px; text-align: right; font-size: 12px; color: var(--hero-muted); }
.crow__rv b { display: inline; font-family: var(--f-display); font-size: 18px; color: var(--hero-text); }
.calib.is-done .crow { grid-template-columns: minmax(0, 1fr) auto auto; }
.calib.is-done .crow__rv { display: block; }
.calib__verdict {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--hero-line-2);
  background: var(--hero-field);
  font-size: 14px;
}
.calib__verdict[hidden] { display: none; }
.calib__big { font-family: var(--f-display); font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent-lt); }
.calib__big small {
  display: block;
  font: 11px var(--f-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.calib__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 13. Sheets, tabbar, footer -------------------------------------------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 33, 27, 0.42);
  backdrop-filter: blur(2px);
}
.sheet-backdrop[hidden] { display: none; }
.sheet__grip { display: none; }
.sheet__head, .sheet__foot { display: none; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar-h); }
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar__item svg { width: 21px; height: 21px; }
.tabbar__item.is-current { color: var(--price); }
.tabbar__item .count-dot { position: static; margin-left: 3px; }

.footer {
  margin-top: 56px;
  padding: 40px 0 32px;
  background: var(--bar);
  color: var(--hero-muted);
  font-size: 13px;
}
.footer a:hover { color: var(--hero-text); }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__grid h5 {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-text);
}
.footer__grid li { margin-bottom: 6px; }
.footer__cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer__bottom {
  width: 100%;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hero-line);
  font-size: 12px;
}
.footer .brand { color: var(--hero-text); }

/* 14. Utilities & responsive -------------------------------------------- */

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--sm { gap: 8px; }
.stack--md { gap: 14px; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 26px; }
.has-dot { display: inline-flex; align-items: center; gap: 6px; }
.has-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide-mobile { display: initial; }
.hide-desktop { display: none; }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .detail__aside { position: static; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .showcard { justify-self: stretch; max-width: none; }
}

@media (max-width: 900px) {
  .browse { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 16px; }
  .nav { display: none; }
  .filter-fab { display: inline-flex; }
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .hide-mobile { display: none !important; }
  .hide-desktop { display: initial; }

  /* Filters become a bottom sheet */
  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 70;
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -20px 50px -20px rgba(14, 33, 27, 0.5);
    transform: translateY(100%);
    transition: transform 0.24s var(--ease);
  }
  .filters.is-open, .filters:target { transform: none; }
  .filters .sheet__grip {
    display: block;
    width: 42px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: var(--r-pill);
    background: var(--line-strong);
  }
  .filters .sheet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 10px;
    border-bottom: 1px solid var(--line);
  }
  .filters .sheet__head h3 { font-size: 17px; }
  .filters .sheet__head .icon-btn { color: var(--muted); }
  .filters .sheet__head .icon-btn:hover { background: var(--track); color: var(--ink); }
  .filters .sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 16px; }
  .filters .sheet__foot {
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--card);
  }

  .row-item { grid-template-columns: 112px minmax(0, 1fr); padding: 0 14px 14px 0; }
  .row-item__art { height: 152px; }
  .row-item__right { grid-column: 2; padding: 0 0 4px; }
  .ring { width: 64px; height: 64px; }
  .ring__value { font-size: 19px; }
  .row-item__say, .row-item__tags { display: none; }
  .row-item h3 { font-size: 19px; }
  .pricebtn { padding: 8px 16px; font-size: 14px; }

  .band { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .band__stats { gap: 18px; }
  .band--detail { grid-template-columns: 118px minmax(0, 1fr); align-items: start; }
  .band__art { height: 168px; }
  .band__score { grid-column: 1 / -1; }
  .ring--lg { width: 82px; height: 82px; }
  .ring--lg .ring__value { font-size: 24px; }
  .calib__rows { grid-template-columns: minmax(0, 1fr); }
  .scoreblock + .scoreblock { border-left: 0; padding-left: 0; }
}

@media (max-width: 700px) {
  .wrap, .shell { padding: 0 16px; }
  .header__inner { gap: 10px; height: 56px; padding: 0 16px; }
  .brand { font-size: 20px; }
  .searchbar { max-width: none; }
  .searchbar__hint { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid > * { contain-intrinsic-size: 260px; }
  .tiles, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: 38px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head h2 { max-width: none; }
  .hero { padding: 38px 0 34px; }
  .hero h1 { font-size: 33px; }
  .hero .lede { font-size: 15px; margin-bottom: 22px; }
  .sentence { padding: 16px; font-size: 20px; border-radius: 16px; }
  .sentence .word { font-size: 18px; }
  .sentence .go { margin-left: 0; width: 100%; margin-top: 4px; }
  .slot input { width: min(11em, 68vw); }
  .slot select, .slot input { padding: 2px 26px 2px 10px; }
  .slot .dd { width: min(320px, 86vw); }
  .hero-stats { gap: 18px; margin-top: 24px; }
  .hero-stats b { font-size: 22px; }
  .showcard { grid-template-columns: 96px minmax(0, 1fr); }
  .showcard h3 { font-size: 21px; }
  .showcard__score > b { font-size: 40px; }
  .showcard__price b { font-size: 24px; }
  .speclist { grid-template-columns: 82px minmax(0, 1fr); }
  .footer__cols { gap: 26px; }
  .calib { padding: 18px; }
  .calib h3 { font-size: 21px; }
  .calib__verdict { flex-direction: column; align-items: flex-start; gap: 8px; }
  .note { grid-template-columns: 92px minmax(0, 1fr) 34px; }
}

@media (max-width: 460px) {
  .searchbar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .searchbar span, .searchbar__hint { display: none; }
  .row-item { grid-template-columns: 92px minmax(0, 1fr); }
  .row-item__art { height: 132px; }
  .row-item__buy { flex-wrap: wrap; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .header, .subnav, .tabbar, .footer, .filter-fab, .tray, .palette, .palette-backdrop { display: none !important; }
  body { background: #fff; }
}
