/* Mobile-first tokens. Contrasts: see palette.html / contrast.py */
:root {
  --paper: #FFFFFF;
  --ink: #2A1810;
  --cherry: #8A1B24;
  --cherry-hover: #6E141C;
  --roast: #53443C;
  --latte: #F3EEE7;
  --ice: #E6F5FA;
  --wash: var(--latte);
  --alert: #0E5A66;
  --alert-hover: #0C4F5A;
  --sun: #F0C000;
  --sun-hover: #E3B000;
  --rule: #8A7364;
  --hairline: #E4DDD4;
  --focus-gold: #FFDD00;
  --hero-scrim: rgba(42, 24, 16, 0.66);
  --font-sans: "Quicksand", "Segoe UI", sans-serif;
  --font-serif: "Fredoka", "Segoe UI", sans-serif;
  --header-h: 3rem;
}
.theme-blauw { --wash: var(--ice); }
.theme-latte { --wash: var(--latte); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cherry); text-underline-offset: 0.12em; }
a:hover { color: var(--cherry-hover); }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-gold);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3.5rem;
  z-index: 40;
  background: var(--focus-gold);
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  min-height: 2.75rem;
  text-decoration: none;
}
.skip-link:focus-visible { top: 0.4rem; }

/* Voorbeelddata strip: compact maar leesbaar (14px) */
.example-bar {
  background: var(--cherry);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  padding: 0.2rem 0.5rem;
}

/* Compact white header */
.site-header {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 0.35rem;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cherry);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--cherry-hover); }
.logo-mark { width: 1.2rem; height: 1.2rem; flex: 0 0 1.2rem; }
.site-nav { display: none; }
.menu-panel { display: none; }

.site-header:has(#menu[aria-expanded="true"]) + .menu-panel,
.menu-panel.is-open { display: block; } /* static: stays closed in screenshots */


/* Prijsalert: prominent under header, like luieraanbiedingen */
.alert-bar {
  background: var(--paper);
  padding: 0.3rem 0.65rem 0.35rem;
}
.alert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--alert);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--alert);
  border-radius: 0.4rem;
}
.alert-btn:hover { background: var(--alert-hover); color: #fff; border-color: var(--alert-hover); }
.alert-btn svg { width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; }
.alert-soon {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid #fff;
  border-radius: 0.2rem;
  letter-spacing: 0.01em;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #2A1810 url("/img/hero.webp?v=03248ba4f683ecd0") center 42% / cover no-repeat;
  padding: 0.55rem 0.7rem 0.6rem;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,24,16,0.74) 0%, rgba(42,24,16,0.58) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(42,24,16,0.45);
}
.hero-count {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.hero-count strong { color: var(--sun); font-weight: 700; }
.filters-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 2px 14px rgba(42,24,16,0.22);
}
.filter-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.4rem;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.filter-row select {
  flex: 1;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-right: 0;
  border-radius: 0.25rem 0 0 0.25rem;
  padding: 0 0.65rem;
  appearance: none;
  -webkit-appearance: none;
}
.filter-row .go {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--rule);
  border-radius: 0 0.25rem 0.25rem 0;
  cursor: pointer;
  padding: 0;
}
.filter-row .go:hover { background: var(--sun-hover); }
.filter-row .go svg { width: 1.05rem; height: 1.05rem; }

/* Intro / methodology strip */
.intro {
  background: var(--wash);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
}
.intro p { margin: 0 0 0.3rem; }
.intro p:last-child { margin: 0; }
.cheapest { font-weight: 650; color: var(--ink); }
.muted { color: var(--roast); }

/* Page heading for category/product (no full hero) */
.page-head {
  padding: 0.7rem 0.85rem 0.5rem;
}
.crumb { font-size: 0.8125rem; color: var(--roast); margin: 0 0 0.3rem; }
.crumb a { font-weight: 600; }
.page-head h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
}
.page-head .filters-panel {
  box-shadow: 0 1px 6px rgba(42,24,16,0.1);
  margin-top: 0.55rem;
}

.sort-row {
  display: flex;
  align-items: stretch;
  margin: 0.55rem 0 0;
}
.sort-row label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.sort-row select {
  flex: 1;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-right: 0;
  border-radius: 0.25rem 0 0 0.25rem;
  padding: 0 0.65rem;
  appearance: none;
  -webkit-appearance: none;
}

/* Cards */
.deals {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.65rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.deal {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem 0.35rem;
}
.deals > li:nth-child(even) .deal { background: var(--wash); }
.deal-top {
  display: grid;
  grid-template-columns: 1fr 3rem;
  gap: 0.4rem;
  align-items: start;
}
.deal-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}
.deal-title a { color: var(--ink); text-decoration: none; }
.deal-title a:hover { color: var(--cherry); text-decoration: underline; }
.deal-sub { margin: 0.1rem 0 0; font-size: 0.8125rem; color: var(--roast); }
.pack {
  width: 3rem;
  height: 3.6rem;
  background: var(--ink);
  position: relative;
  justify-self: end;
}
.pack::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.32rem;
  background: #F3E6D8;
}
.pack::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  width: 0.85rem;
  height: 0.62rem;
  margin-left: -0.42rem;
  border: 1.5px solid var(--paper);
  border-radius: 0 0 0.15rem 0.15rem;
}
.pack-rosso { background: #6E141C; }
.pack-aroma { background: #3D1F14; }
.pack-lungo { background: #2A1810; }
.pack-buondi { background: #4A2A12; }
.pack-capp { background: #5C3A28; }
.pack-intenso { background: #1F1612; }
.pack-latte { background: #5A3D2E; }
.pack-grande { background: #3F2A20; }
.pack-compat { background: #53443C; }

.deal-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.4rem 0 0.15rem;
  font-variant-numeric: tabular-nums;
}
.deal-discount { margin: 0; font-weight: 700; color: var(--cherry); font-size: 0.9375rem; }
.deal-prices { margin: 0; font-size: 0.9375rem; text-align: right; }
.deal-prices s { color: var(--roast); margin-right: 0.3rem; font-weight: 500; }
.deal-prices strong { font-weight: 700; }

.deal-unit {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
}
.deal-shop { margin: 0; font-weight: 650; font-size: 0.9375rem; }
.deal-per { margin: 0; font-size: 0.9375rem; text-align: right; }
.deal-per strong {
  color: var(--cherry);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.btn-deal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  background: var(--sun);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  padding: 0.35rem 0.6rem;
}
.btn-deal:hover { background: var(--sun-hover); color: var(--ink); }
.deal-foot {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--roast);
}
.deal-aff { display: none; }

/* Product summary */
.product-lead {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.4rem;
}
.product-lead .pack { width: 3.4rem; height: 4.1rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.15rem 0.35rem;
  min-height: auto;
  border: 1px solid var(--ink);
  margin-left: 0.25rem;
}
.badge-official { background: var(--ink); color: var(--paper); }
.badge-compat { background: var(--paper); color: var(--ink); }

.chart-panel {
  margin: 0.25rem 0.65rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.45rem;
  padding: 0.65rem 0.7rem 0.5rem;
}
.chart-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.range-toggle { display: flex; gap: 0.35rem; margin-bottom: 0.45rem; }
.range-toggle button {
  min-height: 2.75rem;
  padding: 0 0.7rem;
  font: inherit;
  font-weight: 650;
  border: 2px solid var(--rule);
  border-radius: 0.25rem;
  background: var(--paper);
  color: var(--ink);
}
.range-toggle [aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chart-caption { margin: 0 0 0.4rem; font-size: 0.875rem; }
.chart-svg { width: 100%; height: auto; }

.soon-note {
  margin: 0 0.85rem 0.85rem;
  font-size: 0.875rem;
  color: var(--roast);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #F6EDE4;
  padding: 1.15rem 0.9rem 1.4rem;
  font-size: 0.875rem;
}
.site-footer a { color: #F6EDE4; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #FFFEFC; }
.site-footer h2 {
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans);
}
.site-footer .footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.site-footer p, .site-footer ul { margin: 0 0 0.55rem; }
.site-footer ul { padding-left: 1.05rem; }
.footer-grid > div { margin-bottom: 0.85rem; }
.footer-grid > div:last-child { margin-bottom: 0; }

@media (min-width: 60rem) {
  .example-bar { font-size: 0.875rem; }
  .alert-bar { padding: 0.5rem 1.5rem; }
  .alert-btn { max-width: 54rem; margin: 0 auto; font-size: 1rem; }
  .site-header {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    min-height: 3.5rem;
  }
  .menu-btn { display: none; }
  .logo { justify-self: start; font-size: 1.35rem; margin-right: auto; }
  .logo-mark { width: 1.4rem; height: 1.4rem; }
  .site-nav { display: flex; align-items: center; gap: 0.2rem; order: 3; }
  .site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover { color: var(--cherry); text-decoration: underline; }
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--cherry);
    color: var(--cherry);
  }
  .hero { padding: 1.6rem 1.5rem 1.7rem; }
  .hero-inner { max-width: 40rem; margin: 0 auto; }
  .hero h1 { font-size: 2.15rem; }
  .intro-inner, .page-head, .deals, .chart-panel, .soon-note { max-width: 54rem; margin-left: auto; margin-right: auto; }
  .intro { padding: 0.8rem 1.5rem; font-size: 0.9375rem; }
  .page-head { padding: 1rem 1.5rem 0.6rem; }
  .page-head h1 { font-size: 1.85rem; }
  .deals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.85rem;
    padding: 0.8rem 1.5rem 1.75rem;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.4fr;
    gap: 1.5rem;
    max-width: 54rem;
    margin: 0 auto;
  }
  .site-footer { padding: 1.6rem 1.5rem 1.8rem; }
  .footer-grid > div { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
