/* Sangiovese.dk — "Varm premium". Design tokens and components extracted
   from design/*.html (desktop, 1440px) and design/Mobil-*.html (mobile,
   390px). Mobile-first: base rules match the mobile mockups, the single
   breakpoint at 900px lifts layout to the desktop mockups. */

/* Self-hosted variable fonts (latin subset only — covers æ/ø/å, U+0000-00FF).
   Two files total, well inside the "højst 4 filer i WOFF2" budget from
   docs/teknisk-brief.md; each covers the full 400-600 weight range used
   across the design, so no separate per-weight files are needed. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/fraunces-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/instrument-sans-variable.woff2') format('woff2');
}

:root {
  --bg: #F7F2EA;
  --surface: #FFFDF9;
  --text: #2A1E1C;
  --text-muted: #5E4E48;
  --text-faint: #6B5B55;
  --border: #E6DCCD;
  --border-soft: #EFE6D8;
  --border-dashed: #D2C4B0;
  --accent: #65252F;
  --accent-hover: #4A1320;
  --accent-soft: #F2E6E3;
  --brass: #A8834A;
  --ink: #2A1E1C;
  --ink-text: #F3EBDD;
  --ink-text-muted: #D9CCBF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Helvetica, sans-serif;

  --page-pad: clamp(20px, 6vw, 120px);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

table { border-collapse: collapse; }

button, select, input { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}

/* Layout ------------------------------------------------------------- */

.section {
  padding: 56px var(--page-pad) 0;
}
.section:first-of-type { padding-top: 32px; }

/* Header --------------------------------------------------------------- */

.site-header {
  height: 64px;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__logo { display: block; }
.site-header__logo svg { height: 26px; width: auto; display: block; }
.site-header__icons { display: flex; gap: 4px; }
.site-header__icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.site-nav {
  display: none;
  gap: 36px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 900px) {
  .site-header { height: 88px; padding: 0 var(--page-pad); }
  .site-header__logo svg { height: 34px; }
  .site-header__icons { display: none; }
  .site-nav { display: flex; }
}

/* Breadcrumbs ------------------------------------------------------------ */

.breadcrumbs {
  padding: 14px 20px 0;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { text-decoration: none; }
@media (min-width: 900px) {
  .breadcrumbs { padding: 32px var(--page-pad) 0; font-size: 14px; gap: 8px; }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-lg { height: 56px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }

/* Badges / pills ------------------------------------------------------ */

.badge {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.badge-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.badge-soft { background: var(--accent-soft); color: var(--accent); border: none; }

/* Trust band ------------------------------------------------------------- */

.trust-band {
  margin: 40px 16px 0;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--text-muted);
}
.trust-band strong { color: var(--text); }
.trust-band__facts { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
  .trust-band {
    margin: 0 var(--page-pad); padding: 22px 32px;
    flex-direction: row; justify-content: space-between; align-items: center;
    font-size: 15px;
  }
  .trust-band__facts { flex-direction: row; gap: 40px; }
}

/* Section headings ------------------------------------------------------- */

.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin: 0 4px 14px;
}
.section-heading h2 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.015em;
}
.section-heading a { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-intro { margin: -6px 4px 16px; font-size: 15px; color: var(--text-muted); }
@media (min-width: 900px) {
  .section-heading { margin: 0 0 36px; }
  .section-heading h2 { font-size: 44px; }
  .section-heading a { font-size: 16px; }
  .section-intro { margin: -20px 0 24px; font-size: 16px; }
}

/* Card grids --------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
  .grid-2 { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Wine card (catalog / home / similar-wines grids) ------------------------ */

.wine-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
}
.wine-card__image {
  height: 150px; background: var(--border-soft);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.wine-card__image svg { height: 70%; width: auto; }
.wine-card__badge { position: absolute; top: 10px; left: 10px; }
.wine-card__badge-secondary { position: absolute; top: 10px; right: 10px; }
.wine-card__body { padding: 14px; display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }
.wine-card__producer {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint);
}
.wine-card__name { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.25; margin: 0; }
.wine-card__meta { font-size: 13px; color: var(--text-muted); }
.wine-card__footer {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.wine-card__price { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.wine-card__shop { font-size: 12px; color: var(--text-faint); }

@media (min-width: 900px) {
  .wine-card__image { height: 220px; }
  .wine-card__body { padding: 18px; gap: 6px; }
  .wine-card__name { font-size: 19px; }
  .wine-card__price { font-size: 22px; }
}

/* Row card (mobile home list, "Lignende vine" horizontal scroll) ---------- */

.row-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; display: flex; gap: 14px; text-decoration: none; color: var(--text);
}
.row-card__image {
  width: 76px; height: 104px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--border-soft); display: flex; align-items: center; justify-content: center;
}
.row-card__body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-card__producer { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); }
.row-card__name { font-family: var(--font-display); font-size: 17px; line-height: 1.25; }
.row-card__meta { font-size: 13px; color: var(--text-muted); }
.row-card__footer { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row-card__price { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.row-card__shop { font-size: 12px; color: var(--text-faint); white-space: nowrap; }

/* Empty state -------------------------------------------------------------- */

.empty-state {
  background: var(--surface); border: 1px dashed var(--border-dashed); border-radius: 14px;
  padding: 32px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.empty-state h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.empty-state p { margin: 0; font-size: 15px; color: var(--text-muted); }

/* Hero (forside) ----------------------------------------------------------- */

.hero { padding: 32px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; }
.hero p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; }

@media (min-width: 900px) {
  .hero {
    padding: 88px var(--page-pad) 80px; flex-direction: row; gap: 80px; align-items: center;
  }
  .hero__intro { flex-grow: 1; display: flex; flex-direction: column; gap: 28px; max-width: 520px; }
  .hero h1 { font-size: 64px; }
  .hero p { font-size: 20px; }
}

.disclosure {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted);
  padding: 0 20px; margin-top: 4px;
}
.disclosure svg { flex-shrink: 0; margin-top: 2px; }
@media (min-width: 900px) { .disclosure { padding: 0; } }

/* Quick picker (hurtigvælger) ----------------------------------------------- */

.quick-picker {
  margin: 20px 16px 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 16px 40px -28px rgba(101, 37, 47, .4);
}
.quick-picker__group { display: flex; flex-direction: column; gap: 10px; }
.quick-picker__label { font-size: 15px; font-weight: 600; }

/* Budget-slider chips/track/presets: not wired up yet (fase 5 JS), so left
   out until a template needs them — see the filters comment above. */

@media (min-width: 900px) {
  .quick-picker { width: 600px; flex-shrink: 0; margin: 0; padding: 36px; gap: 28px; }
}

/* Occasion / guide cards ---------------------------------------------------- */

.occasion-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; min-height: 104px; box-sizing: border-box;
}
.occasion-card__title { font-family: var(--font-display); font-size: 19px; }
.occasion-card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
@media (min-width: 900px) {
  .occasion-card { padding: 32px 28px; gap: 16px; min-height: 230px; }
  .occasion-card__title { font-size: 26px; }
  .occasion-card__desc { font-size: 15px; }
}

.guide-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); }
.guide-card__thumb { width: 88px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm); }
.guide-card__title { font-family: var(--font-display); font-size: 18px; line-height: 1.3; }
@media (min-width: 900px) {
  .guide-card { flex-direction: column; align-items: stretch; gap: 14px; }
  .guide-card__thumb { width: auto; height: 220px; border-radius: var(--radius-md); }
  .guide-card__title { font-size: 24px; }
}

/* Editorial pick card -------------------------------------------------------- */

.pick-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.pick-card__image { height: 220px; background: var(--border-soft); display: flex; align-items: center; justify-content: center; position: relative; }
.pick-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.pick-card__producer { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); }
.pick-card__name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.pick-card__meta { font-size: 14px; color: var(--text-muted); }
.pick-card__note { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.pick-card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pick-card__price { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.pick-card__shop { font-size: 13px; color: var(--text-faint); }

/* Producer spotlight ---------------------------------------------------------- */

.producer-spotlight {
  margin: 40px 16px 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--ink-text);
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.producer-spotlight__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.producer-spotlight h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.15; }
.producer-spotlight p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-text-muted); max-width: 620px; }
.producer-spotlight a { color: var(--ink-text); font-weight: 600; }
@media (min-width: 900px) {
  .producer-spotlight { margin: 96px var(--page-pad) 0; flex-direction: row; gap: 64px; align-items: center; padding: 64px; }
}

/* Footer ----------------------------------------------------------------------- */

.site-footer {
  margin-top: auto; background: var(--surface); border-top: 1px solid var(--border);
  padding: 28px 20px; display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.site-footer__logo svg { height: 24px; width: auto; }
.site-footer__nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer__nav-col { display: contents; }
@media (min-width: 900px) {
  .site-footer {
    padding: 56px var(--page-pad); flex-direction: row; justify-content: space-between; gap: 48px;
  }
  .site-footer__about { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
  .site-footer__nav { display: flex; gap: 64px; font-size: 15px; }
  .site-footer__nav-col { display: flex; flex-direction: column; gap: 10px; }
}

/* Kategoriside: filters, results meta, sort ------------------------------------- */

.category-intro { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.category-intro h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; }
.category-intro p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 70ch; }
@media (min-width: 900px) {
  .category-intro { padding: 40px var(--page-pad) 0; gap: 20px; }
  .category-intro h1 { font-size: 56px; }
  .category-intro p { font-size: 19px; }
}

.category-layout { padding: 16px 0 0; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .category-layout { padding: 40px var(--page-pad) 0; flex-direction: row; gap: 48px; align-items: flex-start; }
}
.category-main { display: flex; flex-direction: column; gap: 16px; flex-grow: 1; min-width: 0; padding: 0 16px 40px; }
@media (min-width: 900px) { .category-main { gap: 24px; padding: 0; } }

/* Filter sidebar/drawer, budget slider, and sort: not wired up yet (they
   need classification data and the fase-5 JS layer), so their markup and
   CSS aren't shipped until a template actually uses them. */

.results-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted); flex-wrap: wrap;
}

/* Vertical row-card list (forside mobile best-buys, produkt similar-wines
   fallback). Not used together with a .grid-* class - see .category-main
   for the grid case, which needs plain block/grid display instead. */
.results { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; padding: 12px 16px 40px; }
.results--flush { padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; }
@media (min-width: 900px) { .results { padding: 0; gap: 24px; } }

/* Produktside ------------------------------------------------------------------- */

.product-gallery {
  margin: 14px 16px 0; height: 320px; border-radius: var(--radius-lg);
  background: var(--border-soft); display: flex; align-items: center; justify-content: center;
}
.product-gallery svg { height: 78%; width: auto; }
@media (min-width: 900px) {
  .product-hero { padding: 32px var(--page-pad) 0; display: flex; gap: 72px; align-items: flex-start; }
  .product-gallery { margin: 0; width: 460px; height: 560px; flex-shrink: 0; }
}

.product-info { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 18px; }
.product-info__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.product-info__brand { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); text-decoration: none; display: block; }
.product-info h1 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.product-info__meta { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
@media (min-width: 900px) {
  .product-info { flex-grow: 1; padding: 0; padding-top: 12px; gap: 22px; }
  .product-info h1 { font-size: 52px; }
  .product-info__meta { font-size: 17px; }
}

.offer-box {
  margin: 18px 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.offer-box__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.offer-box__price { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1; }
.offer-box__list-price { font-size: 12px; color: var(--text-faint); }
.offer-box__delivery { text-align: right; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.offer-box__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); }
@media (min-width: 900px) {
  .offer-box { margin: 0; padding: 28px; gap: 18px; }
  .offer-box__price { font-size: 48px; }
}

.savings-callout {
  margin: 12px 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft);
  font-size: 14px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start;
}
.savings-callout svg { flex-shrink: 0; margin-top: 2px; }
@media (min-width: 900px) { .savings-callout { margin: 0; padding: 18px 22px; } }

.secondary-actions { margin: 12px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .secondary-actions { margin: 0; display: flex; gap: 12px; } }

.offer-table-wrap {
  margin: 18px 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.offer-table-wrap__head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border-soft); gap: 12px; }
.offer-table-wrap__head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.offer-table-wrap__foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-faint); }

.offer-rows { display: flex; flex-direction: column; }
.offer-row {
  padding: 16px 20px; border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.offer-row:first-child { border-top: 0; }
.offer-row__shop { font-weight: 600; }
.offer-row__price { font-family: var(--font-display); font-size: 22px; }
.offer-row__facts { font-size: 13px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.offer-table { display: none; width: 100%; font-size: 15px; }
@media (min-width: 900px) {
  .offer-rows { display: none; }
  .offer-table { display: table; }
  .offer-table th { padding: 12px; font-weight: 600; font-size: 13px; color: var(--text-faint); text-align: left; background: var(--bg); }
  .offer-table th:first-child, .offer-table td:first-child { padding-left: 24px; }
  .offer-table th:last-child, .offer-table td:last-child { padding-right: 24px; }
  .offer-table td { padding: 18px 12px; border-top: 1px solid var(--border-soft); }
  .offer-table__price { font-family: var(--font-display); font-size: 24px; }
}

.review-layout { padding: 36px 20px 0; display: flex; flex-direction: column; gap: 32px; }
.review-body { display: flex; flex-direction: column; gap: 12px; }
.review-body h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.review-body p { margin: 0; font-size: 16px; line-height: 1.65; }
.review-byline { font-size: 13px; color: var(--text-faint); }
@media (min-width: 900px) {
  .review-layout { padding: 80px var(--page-pad) 0; flex-direction: row; gap: 72px; }
  .review-body { flex-grow: 1; gap: 20px; }
  .review-body h2 { font-size: 36px; }
  .review-body p { font-size: 18px; }
}

.taste-panel {
  margin: 28px 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.taste-panel h2 { margin: 0; font-size: 16px; font-weight: 600; }
.taste-row { display: flex; flex-direction: column; gap: 6px; }
.taste-row__labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.taste-row__track { height: 8px; border-radius: 4px; background: var(--border-soft); position: relative; }
.taste-row__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.taste-panel__note { font-size: 13px; color: var(--text-faint); line-height: 1.5; }
@media (min-width: 900px) { .taste-panel { margin: 0; width: 460px; flex-shrink: 0; padding: 28px; } }

.pairing-grid { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.pairing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pairing-card h2 { margin: 0; font-size: 15px; font-weight: 600; }
.pairing-card ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; }
@media (min-width: 900px) {
  .pairing-grid { margin: 0; padding: 56px var(--page-pad) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .pairing-card h2 { font-size: 17px; }
}

.fact-panel {
  margin: 12px 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px;
}
.fact-panel h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.fact-table { width: 100%; font-size: 14px; }
.fact-table th { text-align: left; padding: 9px 0; font-weight: 500; color: var(--text-faint); }
.fact-table td { padding: 9px 0; text-align: right; }
.fact-table tr { border-bottom: 1px solid var(--border-soft); }
.fact-table tr:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .fact-panel { margin: 0; flex-grow: 1; padding: 28px; }
  .fact-table td { text-align: left; }
}

.price-history-panel {
  margin: 12px 16px 0; border: 1px dashed var(--border-dashed); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.price-history-panel h2 { margin: 0; font-size: 15px; font-weight: 600; }
.price-history-panel p { margin: 0; font-size: 14px; color: var(--text-muted); }
@media (min-width: 900px) { .price-history-panel { margin: 0; width: 460px; flex-shrink: 0; } }

.similar-wines { padding: 36px 0 0; display: flex; flex-direction: column; gap: 12px; }
.similar-wines__heading { margin: 0 20px; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.similar-wines__intro { margin: 0 20px; font-size: 14px; color: var(--text-muted); }
.similar-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; }
.similar-scroll .row-card { width: 150px; flex-shrink: 0; flex-direction: column; padding: 0; overflow: hidden; }
.similar-scroll .row-card__image { width: auto; height: 120px; border-radius: 0; }
.similar-scroll .row-card__body { padding: 10px; }
@media (min-width: 900px) {
  .similar-wines { padding: 80px var(--page-pad) 0; }
  .similar-wines__heading { margin: 0; font-size: 36px; }
  .similar-wines__intro { margin: 0; font-size: 16px; }
  .similar-scroll { overflow: visible; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .similar-scroll .row-card { width: auto; flex-direction: row; padding: 20px; align-items: center; }
  .similar-scroll .row-card__image { width: 80px; height: 120px; border-radius: var(--radius-sm); }
}

.faq { padding: 36px 20px 40px; display: flex; flex-direction: column; gap: 4px; max-width: 900px; }
.faq h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.faq-item { border-top: 1px solid var(--border); padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.faq-item h3 { margin: 0; font-size: 16px; font-weight: 600; }
.faq-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
@media (min-width: 900px) { .faq { padding: 80px var(--page-pad) 0; } }

.grape-panel {
  margin: 12px 16px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.grape-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.grape-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
@media (min-width: 900px) { .grape-panel { margin: 0; width: 460px; flex-shrink: 0; padding: 28px; } }

/* Responsive show/hide toggles ---------------------------------------------
   Kept last and written as compound selectors (class combined with itself)
   so these always win the cascade against whatever layout classes
   (.results, .grid-4, ...) a toggled element also carries, regardless of
   where those are defined above. */
.best-buys-desktop.best-buys-desktop { display: none; }
@media (min-width: 900px) {
  .best-buys-mobile.best-buys-mobile { display: none; }
  .best-buys-desktop.best-buys-desktop { display: grid; }
}
