/* De Bonenboer storefront — mobile-first. Every value pulls from tokens.css.
   Design intent: warm, tactile, playful organic shapes. No dashed lines,
   no boxy "AI" grids — soft asymmetric corners, wavy dividers, hand-feel. */

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

/* iOS/Android tekenen bij elke tap een grijs vlak over links en knoppen. Dat
   botst met onze eigen hover/active-stijlen, dus zetten we het sitebreed uit.
   :focus-visible hieronder blijft wél staan — toetsenbordgebruikers houden een
   zichtbare focusring, dit raakt alleen de touch-highlight. */
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 calc(var(--space) * 2); letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

/* hand-drawn wavy underline accent under section headings */
.wavy { position: relative; display: inline-block; }
.wavy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 Q 15 1 30 5 T 60 5 T 90 5 T 119 5' fill='none' stroke='%23C89A6A' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--terracotta); color: #fff;
  padding: 15px 28px; border: 0; border-radius: var(--radius-pill);
  font: 600 var(--step-0)/1 var(--font-body); cursor: pointer; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--terracotta-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--plum); border: 2px solid var(--plum); box-shadow: none; padding: 13px 26px; }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--plum { background: var(--plum); }
.btn--plum:hover { background: var(--plum-soft); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: var(--step-1); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }

/* --- Announcement / USP bar (plum) --- */
.announce { background: var(--plum); color: #fff; font-size: var(--step--1); }
.announce__track {
  display: flex; gap: calc(var(--space) * 4); justify-content: center; align-items: center;
  padding: 10px 0; flex-wrap: wrap;
}
.announce__item { display: inline-flex; align-items: center; gap: 8px; opacity: .95; }
.announce__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-soft); }
.announce__item--clone { display: none; }
/* Mobiel/tablet: één voordeel tegelijk, auto-swipende carousel i.p.v. 4 gestapelde regels.
   De keyframes gaan uit van 4 USP's in config/settings.php (+1 clone voor een naadloze loop).
   Pas het aantal stops aan als er USP's bij/af gaan. */
@media (max-width: 899px) {
  .announce { overflow: hidden; }
  .announce__track { flex-wrap: nowrap; gap: 0; justify-content: flex-start; padding: 9px 0; will-change: transform; animation: announce-roll 16s cubic-bezier(.76, 0, .24, 1) infinite; }
  .announce__item { flex: 0 0 100%; justify-content: center; white-space: nowrap; }
  .announce__item--clone { display: inline-flex; }
  .hero::before { left: -70px; width: 250px; height: 250px; top: -10px; }
}
@keyframes announce-roll {
  0%, 18%   { transform: translateX(0); }
  22%, 40%  { transform: translateX(-100%); }
  44%, 62%  { transform: translateX(-200%); }
  66%, 84%  { transform: translateX(-300%); }
  88%, 100% { transform: translateX(-400%); }
}

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: saturate(1.1) blur(8px); border-bottom: var(--line-h); }
.site-header__bar { display: flex; align-items: center; gap: calc(var(--space) * 2); padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--espresso); line-height: 1; text-decoration: none; }
.brand__mark { display: inline-block; flex: 0 0 auto; width: 2.5em; height: 1.97em; background: currentColor;
  -webkit-mask: url("/assets/img/logo-mark.svg") center / contain no-repeat;
          mask: url("/assets/img/logo-mark.svg") center / contain no-repeat; }
.brand__word { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: .005em; color: currentColor; white-space: nowrap; }
@media (max-width: 420px) { .brand__word { font-size: var(--step-1); } .brand__mark { width: 2.15em; height: 1.69em; } }
.nav { display: none; gap: calc(var(--space) * 3); margin-left: calc(var(--space) * 2); }
.nav a { position: relative; padding: 6px 2px; font-size: var(--step-0); color: var(--ink); font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--terracotta); transition: right .28s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: calc(var(--space) * 1.75); }
.header-actions a, .header-actions button { display: inline-flex; align-items: center; color: var(--plum); opacity: .9; background: none; border: 0; cursor: pointer; padding: 4px; position: relative; }
.header-actions a:hover, .header-actions button:hover { opacity: 1; color: var(--terracotta); }
.icon { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hamburger { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 4px; margin: 0; color: var(--plum); cursor: pointer; -webkit-appearance: none; appearance: none; }
.hamburger:hover { color: var(--terracotta); }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* --- Mobile nav drawer --- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(44,44,44,.42); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 91; width: min(86vw, 360px); background: var(--cream); box-shadow: var(--shadow-lift); padding: calc(var(--space) * 3); display: flex; flex-direction: column; gap: 6px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(var(--space) * 2); }
.drawer a { padding: 14px 12px; border-radius: var(--radius); font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); }
.drawer a:hover { background: var(--terracotta-wash); }

/* --- Mini-cart drawer (right; opens after add-to-cart) --- */
.minicart { position: fixed; inset: 0 0 0 auto; z-index: 91; width: min(92vw, 400px); background: var(--cream);
  box-shadow: var(--shadow-lift); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex; flex-direction: column; }
.minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px dashed var(--terracotta-soft); }
.minicart__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); }
.minicart__content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.minicart__lines { flex: 1; overflow-y: auto; padding: 4px 20px; }
.minicart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: var(--line-h); }
.minicart-line:last-child { border-bottom: 0; }
.minicart-line__media { display: block; width: 56px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--cream-deep); }
.minicart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.minicart-line__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.minicart-line__title { font-family: var(--font-display); color: var(--plum); line-height: 1.2; }
.minicart-line__title:hover { color: var(--terracotta); }
.minicart-line__meta, .minicart-line__qty { font-size: var(--step--1); }
.minicart-line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.minicart-line__total { font-weight: 700; color: var(--plum); white-space: nowrap; }
.js-minicart-remove button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: inline-flex; }
.js-minicart-remove button:hover { color: var(--terracotta); }
.js-minicart-remove .icon { width: 16px; height: 16px; }
.minicart__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: var(--line-h); display: grid; gap: 12px; }
.minicart__row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--ink); }
.minicart__tocart { text-align: center; color: var(--terracotta); font-weight: 600; font-size: var(--step--1); }
.minicart__tocart:hover { color: var(--terracotta-strong); }
.minicart__empty { padding: 24px 20px; display: grid; gap: 10px; }
.minicart__empty-lede { margin: 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); }
[x-cloak] { display: none !important; }

/* --- Hero --- */
.hero { display: grid; gap: calc(var(--space) * 4); padding-block: calc(var(--space) * 6) calc(var(--space) * 5); position: relative; }
.hero::before { /* playful blob behind copy */
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; left: -120px; top: -40px;
  background: var(--terracotta-wash); border-radius: var(--blob-1); filter: blur(6px); opacity: .8;
}
.hero__eyebrow { font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--terracotta); font-weight: 500; margin-bottom: calc(var(--space) * 1.5); }
.hero__title { font-size: clamp(2rem, 5vw + 1.2rem, var(--step-4)); max-width: 15ch; }
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: calc(var(--space) * 3); }
.hero__cta { display: flex; gap: calc(var(--space) * 1.5); flex-wrap: wrap; }
.hero__media {
  aspect-ratio: 4 / 4.4; border-radius: var(--blob-2); overflow: hidden;
  background: linear-gradient(150deg, var(--cream-deep), var(--terracotta-soft));
  box-shadow: var(--shadow); position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__visual .hero__media { align-self: stretch; }
.hero__badge { background: var(--surface); color: var(--plum); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--step--1); font-weight: 600; box-shadow: var(--shadow-sm); }

/* --- Section + wavy divider --- */
.section { padding: calc(var(--space) * 6) 0; position: relative; }
.section--cream { background: var(--cream-deep); }
.section--plum { background: var(--plum); color: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: calc(var(--space) * 4.5); }
.section__head h2 { font-size: var(--step-3); margin: 0; }
.section__link { font-size: var(--step-0); color: var(--terracotta); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section__link:hover { color: var(--terracotta-strong); }
/* soft wavy top divider for coloured sections */
.wave-top { display: block; width: 100%; height: 28px; margin-bottom: -1px; color: var(--cream-deep); }
.wave-top--plum { color: var(--plum); }

/* --- Category tiles (organic, asymmetric) --- */
.tiles { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 2); }
.tile {
  display: flex; flex-direction: column; justify-content: end; min-height: 240px;
  padding: calc(var(--space) * 3); border-radius: var(--leaf); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--cream-deep)); border: var(--line-h);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; background: var(--terracotta-wash); border-radius: var(--blob-1); opacity: .7; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover::after { transform: scale(1.15) rotate(8deg); }
.tile h3 { font-size: var(--step-2); margin-bottom: 4px; color: var(--plum); position: relative; }
.tile p { margin: 0; color: var(--muted); font-size: var(--step-0); position: relative; }
.tile__go { margin-top: calc(var(--space) * 1.5); font-size: var(--step--1); letter-spacing: .03em; color: var(--terracotta); font-weight: 600; position: relative; }

/* --- Product rail (mobile: swipe; desktop: grid) --- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: calc(var(--space) * 2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: calc(var(--space) * 2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space) * 2); }

/* --- Product card --- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: var(--line-h); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-deep); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.card__img--hover { opacity: 0; }
.card:hover .card__img--main { transform: scale(1.04); }
.card:hover .card__img--hover { opacity: 1; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.badge--plum { background: var(--plum); }
.badge--sale { background: var(--gold); }
.badge--out { background: var(--muted); }
.card__wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 0; display: grid; place-items: center; color: var(--plum); cursor: pointer; box-shadow: var(--shadow-sm); }
.card__wish:hover { color: var(--terracotta); }
.card__wish.is-on { color: var(--terracotta); }
.card__body { padding: calc(var(--space) * 2) calc(var(--space) * 2) calc(var(--space) * 2.5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: var(--step--1); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); margin: 0; line-height: 1.15; }
.card__title a:hover { color: var(--terracotta); }
.card__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 9px; }
.card__from { font-size: var(--step--1); color: var(--muted); }
.price { font-weight: 700; color: var(--terracotta); font-size: var(--step-1); }
.price--was { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: var(--step-0); }
.card__meta { font-size: var(--step--1); color: var(--sage); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.card__meta--out { color: var(--muted); }
.card__meta .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --- PLP layout --- */
.plp { display: grid; gap: calc(var(--space) * 3); padding: calc(var(--space) * 4) 0 calc(var(--space) * 7); }
.plp__head h1 { font-size: var(--step-3); color: var(--plum); margin-bottom: 8px; }
.plp__intro { color: var(--muted); max-width: 62ch; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: calc(var(--space) * 1.5); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { color: var(--line); }

.plp__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: calc(var(--space) * 2) 0; flex-wrap: wrap; }
.plp__count { font-size: var(--step--1); color: var(--muted); }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: var(--line-h); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; color: var(--plum); cursor: pointer; }
.select { appearance: none; background: var(--surface); border: var(--line-h); border-radius: var(--radius-pill); padding: 10px 40px 10px 16px; font: 500 var(--step-0) var(--font-body); color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333200F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }

.facets { display: none; background: var(--surface); border: var(--line-h); border-radius: var(--radius-lg); padding: calc(var(--space) * 2.5); }
.facets.is-open { display: block; }
.facet { border-bottom: var(--line-h); padding: calc(var(--space) * 1.5) 0; }
.facet:last-child { border-bottom: 0; }
.facet > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--plum); padding: 6px 0; }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after { content: "+"; color: var(--terracotta); font-size: var(--step-1); }
.facet[open] > summary::after { content: "–"; }
.facet__body { padding-top: calc(var(--space) * 1.25); display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--step-0); color: var(--ink); }
.check input { accent-color: var(--terracotta); width: 17px; height: 17px; }
.check .n { color: var(--muted); font-size: var(--step--1); margin-left: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch:has(input:checked) { border-color: var(--terracotta); }
.facet__actions { margin-top: calc(var(--space) * 2); display: flex; gap: 10px; }

.plp__results { display: grid; gap: calc(var(--space) * 3); }
.grid-plp { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space) * 2); }
.empty { text-align: center; padding: calc(var(--space) * 8) 0; color: var(--muted); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: calc(var(--space) * 3); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-pill); border: var(--line-h); background: var(--surface); font-weight: 600; color: var(--plum); padding: 0 12px; }
.pagination a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.pagination .is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* --- PDP --- */
.pdp { display: grid; gap: calc(var(--space) * 4); padding: calc(var(--space) * 3) 0 calc(var(--space) * 6); }
.gallery { display: grid; gap: calc(var(--space) * 1.5); }
.gallery__stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); background: var(--cream-deep); scrollbar-width: none; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-sm); }
.gallery__stage::-webkit-scrollbar { display: none; }
/* 4/5 is op een telefoon ~490px hoog: dan staat alles onder de foto (titel,
   prijs, maling, in-winkelwagen) buiten beeld. De vh-cap houdt de foto groot
   maar laat altijd een stuk van de productinfo meekijken. Vanaf 900px vervalt
   de cap — daar staat de galerij naast de tekst in plaats van erboven. */
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; max-height: 52vh; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; }
.gallery__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: transform .2s var(--ease), background .2s var(--ease); }
.gallery__dots button.is-active { background: var(--terracotta); transform: scale(1.35); }
.gallery__thumbs { display: none; gap: 10px; }
.gallery__thumbs button { width: 68px; height: 84px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; background: var(--cream-deep); cursor: pointer; padding: 0; }
.gallery__thumbs button.is-active { border-color: var(--terracotta); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.summary { display: flex; flex-direction: column; gap: calc(var(--space) * 2); }
.summary__brand { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.summary h1 { font-size: var(--step-3); color: var(--plum); margin: 4px 0; }
.summary__price { display: flex; align-items: baseline; gap: 12px; }
.summary__price .price { font-size: var(--step-2); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt__label { font-weight: 600; color: var(--plum); font-size: var(--step-0); }
.opt__label span { color: var(--muted); font-weight: 500; }
.opt__row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius-pill); padding: 9px 18px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .15s var(--ease), color .15s var(--ease); }
.pill:hover { border-color: var(--terracotta-soft); }
.pill.is-active { border-color: var(--terracotta); color: var(--terracotta); background: var(--terracotta-wash); }
.pill.is-out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.opt__swatch { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center; }
.opt__swatch .dot { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.opt__swatch.is-active { border-color: var(--terracotta); box-shadow: 0 0 0 2px var(--terracotta-wash); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-0); font-weight: 600; }
.stock--in { color: var(--sage); }
.stock--low { color: var(--terracotta); }
.stock--out { color: var(--muted); }
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.qty { display: inline-flex; align-items: center; border: var(--line-h); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: var(--surface); font-size: var(--step-1); color: var(--plum); cursor: pointer; }
.qty button:hover { background: var(--terracotta-wash); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font: 600 var(--step-0) var(--font-body); }
.buybar { display: flex; gap: 12px; align-items: stretch; }
.usp-strip { display: grid; gap: 10px; padding: calc(var(--space) * 2); background: var(--plum-wash); border-radius: var(--radius); }
.usp-strip div { display: flex; align-items: center; gap: 10px; font-size: var(--step-0); color: var(--plum); }
.usp-strip .icon { width: 20px; height: 20px; color: var(--terracotta); flex: none; }

.accordion { border-top: var(--line-h); }
.accordion summary { list-style: none; cursor: pointer; padding: calc(var(--space) * 2) 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--terracotta); }
.accordion[open] summary::after { content: "–"; }
.accordion__body { padding-bottom: calc(var(--space) * 2); color: var(--ink); }
.spectable { width: 100%; border-collapse: collapse; }
.spectable th, .spectable td { text-align: left; padding: 10px 0; border-bottom: var(--line-h); font-size: var(--step-0); vertical-align: top; }
.spectable th { color: var(--muted); font-weight: 500; width: 42%; }

/* sticky mobile add-to-cart */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-top: var(--line-h); padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; box-shadow: 0 -10px 30px -20px rgba(51,32,16,.5); }
.sticky-buy .price { font-size: var(--step-1); }
.sticky-buy .btn { flex: 1; }

/* --- Brand / USP block --- */
.brandblock { display: grid; gap: calc(var(--space) * 3); }
.brandblock__lede { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.32; max-width: 30ch; }
.usp-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 2.5); margin-top: calc(var(--space) * 2); }
.usp { padding-top: calc(var(--space) * 2); position: relative; }
.usp::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 3px; background: var(--terracotta); margin-bottom: calc(var(--space) * 1.5); }
.section--plum .usp::before { background: var(--terracotta-soft); }
.usp h4 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.usp p { margin: 0; color: var(--muted); font-size: var(--step-0); }
.section--plum .usp p { color: rgba(255,255,255,.75); }

/* --- Search --- */
.searchbar { display: flex; gap: 10px; margin: calc(var(--space) * 3) 0; }
.searchbar input { flex: 1; border: var(--line-h); border-radius: var(--radius-pill); padding: 15px 22px; font: 500 var(--step-1) var(--font-body); background: var(--surface); color: var(--ink); }
.searchbar input:focus { outline: 3px solid var(--terracotta-soft); border-color: transparent; }

/* --- Placeholder / errors --- */
.placeholder { padding: calc(var(--space) * 8) 0; text-align: center; }
.placeholder .tag, .tag { display: inline-block; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); background: var(--plum-wash); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: calc(var(--space) * 2); font-weight: 600; }
.placeholder p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.error-page { text-align: center; padding: calc(var(--space) * 12) 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--terracotta); line-height: 1; }

/* --- Footer (plum) --- */
.site-footer { background: var(--plum); color: #fff; margin-top: 0; padding: calc(var(--space) * 7) 0 calc(var(--space) * 4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 4); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-soft); margin: 0 0 calc(var(--space) * 2); }
.footer-col a { display: block; padding: 5px 0; opacity: .85; font-size: var(--step-0); }
.footer-col a:hover { opacity: 1; color: var(--terracotta-soft); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 34ch; }
.footer-bottom { margin-top: calc(var(--space) * 4); padding-top: calc(var(--space) * 3); border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: rgba(255,255,255,.7); }

/* --- Skeleton shimmer --- */
.skeleton, .ph-shimmer { position: relative; overflow: hidden; background: var(--cream-deep); }
.skeleton::after, .ph-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { border-radius: var(--radius-lg); overflow: hidden; border: var(--line-h); background: var(--surface); }
.skel-card .skel-media { aspect-ratio: 4/5; }
.skel-card .skel-line { height: 12px; border-radius: 6px; margin: 12px 16px; }
.skel-card .skel-line.s { width: 40%; }
/* image fade-in: img starts transparent, .is-loaded reveals it */
.card__media img.card__img--main { opacity: 0; }
.card__media img.card__img--main.is-loaded { opacity: 1; }
.is-fetching { opacity: .5; transition: opacity .2s var(--ease); pointer-events: none; }

/* --- Toast --- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--plum); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 12px; max-width: 340px; }
.toast .icon { color: var(--terracotta-soft); }

/* --- Swup page transitions --- */
#swup { transition: opacity .32s var(--ease), transform .32s var(--ease); }
html.is-animating #swup { opacity: 0; transform: translateY(8px); }
html.is-rendering #swup { opacity: 0; }

/* --- Cart (Cart cell) --- */
.cart-title { font-size: var(--step-3); margin-bottom: calc(var(--space) * 3); }
.qty--sm button { width: 34px; height: 38px; font-size: var(--step-0); }
.qty--sm input { width: 40px; }

.cart-empty { text-align: center; padding: calc(var(--space) * 5) 0; }
.cart-empty__lede { font-family: var(--font-display); font-size: var(--step-2); color: var(--plum); margin-bottom: 6px; }
.cart-empty .btn { margin-top: calc(var(--space) * 3); }

/* Verlanglijst */
.wishlist__note { margin-top: calc(var(--space) * 3); font-size: var(--step--1); text-align: center; }

.cart-grid { display: grid; gap: calc(var(--space) * 4); align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: calc(var(--space) * 2); }

.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 2); background: var(--surface); border: var(--line-h);
  border-radius: var(--radius-lg); }
.cart-line__media { display: block; width: 88px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; background: var(--cream-deep); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-line__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); line-height: 1.15; }
.cart-line__title:hover { color: var(--terracotta); }
.cart-line__meta { font-size: var(--step--1); }
.cart-line__unit { font-size: var(--step--1); }
.cart-line__controls { display: flex; align-items: center; gap: calc(var(--space) * 2); margin-top: auto; padding-top: 8px; }
.cart-line__qty { display: flex; align-items: center; gap: 10px; }
.cart-line__update { background: none; border: 0; color: var(--terracotta); font: 600 var(--step--1) var(--font-body); cursor: pointer; text-decoration: underline; padding: 4px; }
.cart-line__remove button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 var(--step--1) var(--font-body); padding: 4px; }
.cart-line__remove button:hover { color: var(--terracotta); }
.cart-line__remove .icon { width: 17px; height: 17px; }
.cart-line__total { font-weight: 700; color: var(--plum); font-size: var(--step-1); text-align: right; white-space: nowrap; align-self: center; }

.cart-summary { background: var(--surface); border: var(--line-h); border-radius: var(--radius-lg);
  padding: calc(var(--space) * 3); display: flex; flex-direction: column; gap: calc(var(--space) * 1.5); }
.cart-summary__head { font-size: var(--step-2); margin: 0 0 6px; }
.cart-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-0); }
.cart-summary .btn { margin-top: 10px; }
.cart-summary__note { font-size: var(--step--1); }
.cart-summary__continue { color: var(--terracotta); font-weight: 600; font-size: var(--step-0); margin-top: 4px; }
.cart-summary__continue:hover { color: var(--terracotta-strong); }

.cart-free { background: var(--plum-wash); border-radius: var(--radius); padding: 12px 14px; }
.cart-free.is-qualified { background: var(--terracotta-wash); }
.cart-free__msg { margin: 0 0 8px; font-size: var(--step--1); color: var(--plum); }
.cart-free__bar { height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--plum) 14%, transparent); overflow: hidden; }
.cart-free__bar span { display: block; height: 100%; border-radius: 999px; background: var(--terracotta); transition: width .4s var(--ease); }

/* JS-progressive: hide the manual "Bijwerken" button when JS auto-submits qty */
.js .cart-line__update { display: none; }

/* --- Checkout (Checkout cell) --- */
.container--narrow { max-width: 760px; }
.checkout-alert { background: var(--terracotta-wash); color: var(--terracotta-strong); border-radius: var(--radius); padding: 12px 16px; margin-bottom: calc(var(--space) * 3); font-weight: 600; }
.checkout-grid { display: grid; gap: calc(var(--space) * 4); align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: calc(var(--space) * 3); }
.checkout-block { border: var(--line-h); border-radius: var(--radius-lg); padding: calc(var(--space) * 3); margin: 0; background: var(--surface); }
.checkout-block legend { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); padding: 0 8px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--plum); }
.field input, .field select, .checkout-block select {
  width: 100%; padding: 12px 14px; border: var(--line-h); border-radius: var(--radius);
  background: var(--bg); font: 500 var(--step-0) var(--font-body); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-wash); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field--grow { flex: 1 1 55%; }
.field--sm { flex: 1 1 90px; }
.field-error { color: #b3261e; font-size: var(--step--1); margin: 2px 0 0; }

.ship-options { display: flex; flex-direction: column; gap: 10px; }
.ship-option { display: flex; align-items: center; gap: 12px; border: var(--line-h); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.ship-option:has(input:checked) { border-color: var(--terracotta); background: var(--terracotta-wash); }
.ship-option input { accent-color: var(--terracotta); width: 18px; height: 18px; }
.ship-option__body { display: flex; flex-direction: column; flex: 1; }
.ship-option__name { font-weight: 600; color: var(--plum); }
.ship-option__meta { font-size: var(--step--1); }
.ship-option__price { font-weight: 700; color: var(--plum); white-space: nowrap; }

.checkout-summary { background: var(--surface); border: var(--line-h); border-radius: var(--radius-lg); padding: calc(var(--space) * 3); display: flex; flex-direction: column; gap: 10px; }
.co-lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: var(--line-h); }
.co-line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: var(--step--1); align-items: baseline; }
.co-line__qty { color: var(--muted); font-weight: 600; }
.co-line__title { min-width: 0; }
.co-line__price { white-space: nowrap; font-weight: 600; }
.co-total { border-top: var(--line-h); padding-top: 10px; margin-top: 2px; font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); font-weight: 600; }
.co-total span:last-child { color: var(--terracotta); }
.checkout-summary .btn { margin-top: 8px; }

/* --- Order confirmation --- */
.thanks { text-align: center; padding: calc(var(--space) * 4) 0 calc(var(--space) * 3); }
.thanks__badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto calc(var(--space) * 2); }
.thanks__badge .icon { width: 30px; height: 30px; color: #fff; }
.thanks.is-good .thanks__badge { background: #2e7d52; }
.thanks.is-pending .thanks__badge { background: var(--plum); }
.thanks.is-bad .thanks__badge { background: #b3261e; }
.thanks h1 { font-size: var(--step-3); }
.thanks__msg { color: var(--muted); max-width: 46ch; margin: 0 auto calc(var(--space) * 2); }
.thanks__num { font-size: var(--step-0); }
.thanks .btn { margin-top: calc(var(--space) * 2); }
.thanks-detail { display: grid; gap: calc(var(--space) * 3); margin-top: calc(var(--space) * 3); }
.thanks-card { border: var(--line-h); border-radius: var(--radius-lg); padding: calc(var(--space) * 3); background: var(--surface); }
.thanks-card h2 { font-size: var(--step-1); margin-bottom: calc(var(--space) * 2); }
.thanks-address { font-style: normal; line-height: 1.7; }

/* --- Responsive --- */
@media (min-width: 600px) {
  .grid-products, .grid-plp { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: 42%; }
}
@media (min-width: 680px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: calc(var(--space) * 6); padding-block: calc(var(--space) * 9); }
  .hero__title { font-size: clamp(3rem, 5vw, 4.2rem); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile--wide { grid-column: span 2; }
  .rail { display: grid; grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .grid-products, .grid-plp { grid-template-columns: repeat(4, 1fr); }
  .plp { grid-template-columns: 260px 1fr; align-items: start; gap: calc(var(--space) * 4); }
  .plp__head { grid-column: 1 / -1; }
  .filter-toggle { display: none; }
  .facets { display: block; position: sticky; top: 90px; }
  .cart-grid { grid-template-columns: 1fr 340px; }
  .cart-summary { position: sticky; top: 90px; }
  .checkout-grid { grid-template-columns: 1fr 360px; }
  .checkout-summary { position: sticky; top: 90px; }
  .thanks-detail { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1.05fr .95fr; gap: calc(var(--space) * 6); align-items: start; }
  .gallery { position: sticky; top: 90px; grid-template-columns: 80px 1fr; }
  .gallery__slide { max-height: none; }
  .gallery__stage { grid-column: 2; }
  .gallery__dots { grid-column: 2; }
  .gallery__thumbs { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / 3; }
  .sticky-buy { display: none; }
}
@media (min-width: 1100px) {
  .grid-plp { grid-template-columns: repeat(3, 1fr); }
}

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

/* ---------- Account (Customer cell) ---------- */
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card .cart-title { text-align: center; }
.auth-form { margin-top: calc(var(--space) * 2); }
.auth-form .btn { margin-top: 6px; }
.auth-alt { text-align: center; margin-top: calc(var(--space) * 2); font-size: var(--step--1); }
.auth-alt a { color: var(--terracotta-strong); font-weight: 600; }
.auth-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: var(--step--1); color: var(--ink); cursor: pointer; }
.auth-consent input { margin-top: 3px; accent-color: var(--terracotta); }
.auth-forgot { margin: 2px 0 0; font-size: var(--step--1); text-align: right; }
.auth-forgot a { color: var(--muted); }
.auth-forgot a:hover { color: var(--terracotta-strong); }

.acct-flash { background: var(--plum-wash); color: var(--plum); border-radius: var(--radius); padding: 12px 16px; margin-bottom: calc(var(--space) * 3); font-weight: 600; }

.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct-head .cart-title { margin-bottom: 0; }
.acct-placed { margin: 6px 0 0; font-size: var(--step--1); }
.acct-logout { background: none; border: var(--line-h); border-radius: var(--radius-pill); padding: 8px 16px; font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--plum); cursor: pointer; }
.acct-logout:hover { border-color: var(--terracotta); color: var(--terracotta-strong); }
.acct-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--step--1); }
.acct-dl dt { font-weight: 600; color: var(--plum); }
.acct-note { margin-top: 14px; font-size: var(--step--1); }

.acct-orders { display: flex; flex-direction: column; gap: 10px; }
.acct-order { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border: var(--line-h); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease); }
.acct-order:hover { border-color: var(--terracotta); }
.acct-order__num { font-weight: 700; color: var(--plum); }
.acct-order__date { font-size: var(--step--1); }
.acct-order__total { margin-left: auto; font-weight: 700; }

.acct-badge { display: inline-block; padding: 3px 11px; border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600; line-height: 1.5; }
.acct-badge.is-open { background: var(--terracotta-wash); color: var(--terracotta-strong); }
.acct-badge.is-good { background: var(--plum-wash); color: var(--plum); }
.acct-badge.is-off { background: var(--cream-deep); color: var(--muted); }

.acct-track { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: calc(var(--space) * 3); padding: 16px 20px; background: var(--plum-wash); border-radius: var(--radius-lg); }
.acct-track p { margin: 0; }

/* ---------------- Cookie-consent banner (Analytics cell) ---------------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 95; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.consent[hidden] { display: none; }
.consent__card { pointer-events: auto; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: calc(var(--space) * 3); border: var(--line-h); }
.consent__title { font-size: var(--step-1); margin: 0 0 8px; }
.consent__text { margin: 0 0 14px; font-size: var(--step--1); color: var(--muted); }
.consent__text a { text-decoration: underline; color: var(--plum); }
.consent__prefs { margin: 0 0 14px; }
.consent__prefs summary { cursor: pointer; font-size: var(--step--1); font-weight: 600; color: var(--plum); }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 0; font-size: var(--step--1); color: var(--ink); }
.consent__opt input { margin-top: 3px; flex: none; accent-color: var(--terracotta); }
.consent__save { margin-top: 12px; padding: 9px 18px; font-size: var(--step--1); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions .btn { flex: 1 1 auto; padding: 13px 18px; }

/* Footer "Cookie-instellingen": a button that reads like the footer links. */
.footer-linkbtn { display: block; padding: 5px 0; opacity: .85; font-size: var(--step-0); background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; text-align: left; }
.footer-linkbtn:hover { opacity: 1; color: var(--terracotta-soft); }

/* ---------------- Statische pagina's (/pagina/*, Content cell) ---------------- */
.legal { max-width: 780px; padding-block: calc(var(--space) * 6) calc(var(--space) * 8); }
.legal__head { margin-bottom: calc(var(--space) * 4); }
.legal__head h1 { color: var(--plum); margin-bottom: 6px; }
.legal h2 { color: var(--plum); font-size: var(--step-1); margin: calc(var(--space) * 4) 0 calc(var(--space) * 1.5); }
.legal p, .legal li { max-width: 72ch; line-height: 1.7; }
.legal p { margin-bottom: var(--space); }
.legal ul { padding-left: 1.2rem; margin: var(--space) 0 calc(var(--space) * 2); }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--terracotta); text-decoration: underline; }
.legal__tablewrap { overflow-x: auto; margin: calc(var(--space) * 2) 0; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--step--1); }
.legal th, .legal td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(51, 32, 16, .14); vertical-align: top; }
.legal th { color: var(--plum); font-weight: 600; }

/* ==========================================================================
   Smaaktest (Quiz cell) — koffiekeuzewijzer
   ========================================================================== */
.quiz { max-width: 62rem; padding-top: var(--space-l); padding-bottom: var(--space-2xl); }

.quiz__bar { height: 4px; background: var(--kraft); border-radius: 2px; overflow: hidden; margin-bottom: var(--space-l); }
.quiz__bar-fill { height: 100%; background: var(--terracotta); transition: width .35s ease; }

.quiz__intro { text-align: center; padding: var(--space-xl) 0; }
.quiz__intro .hero__lede { margin-inline: auto; max-width: 34rem; }
.quiz__intro .btn { margin-top: var(--space-l); }

.quiz__count { font-size: var(--step--1); color: var(--terracotta); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.quiz__title { font-family: var(--font-display); font-size: var(--step-3); margin: 0 0 8px; }
.quiz__help { color: var(--muted); max-width: 42rem; margin: 0 0 4px; }
.quiz__multi { font-size: var(--step--1); color: var(--muted); font-style: italic; margin: 0; }

.quiz__grid { display: grid; gap: var(--space-s); margin: var(--space-l) 0;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }

.quizcard { display: flex; flex-direction: column; gap: 8px; padding: 0 0 10px;
  background: var(--surface); border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s, transform .15s;
  box-shadow: var(--shadow-sm); }
.quizcard:hover { transform: translateY(-2px); }
.quizcard.is-active { border-color: var(--terracotta); }
.quizcard__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.quizcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quizcard__label { font-weight: 600; font-size: var(--step--1); padding: 0 8px; }

.quiz__nav { display: flex; gap: var(--space-s); justify-content: space-between; align-items: center;
  margin-top: var(--space-l); }
.quiz__nav .btn[disabled] { opacity: .4; cursor: not-allowed; }

.quiz__form { max-width: 34rem; margin-top: var(--space-l); }
.quiz__field { display: block; margin-bottom: var(--space-s); }
.quiz__field span { display: block; font-weight: 600; margin-bottom: 4px; }
.quiz__field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.quiz__check { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-s) 0;
  font-size: var(--step--1); }
.quiz__check input { margin-top: 3px; flex: none; }
.quiz__legal { font-size: var(--step--1); color: var(--muted); }

/* --- Resultaat --- */
.quizresult { padding-top: var(--space-l); padding-bottom: var(--space-2xl); }
.quizresult__head { text-align: center; max-width: 42rem; margin: 0 auto var(--space-xl); }
.quizresult__hint { font-size: var(--step--1); color: var(--muted); }
.quizresult__note { background: var(--terracotta-soft); color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: var(--step--1); }
.quizresult__grid { display: grid; gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: start; }

.quizpick { position: relative; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); }
.quizpick--top { outline: 2px solid var(--terracotta); }
.quizpick__crown { position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--terracotta); color: var(--surface); font-size: var(--step--2);
  font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; }
.quizpick__img { display: block; aspect-ratio: 4/5; background: var(--cream); }
.quizpick__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quizpick__body { padding: var(--space-s); display: flex; flex-direction: column; gap: 8px; }
.quizpick__match { font-size: var(--step--1); font-weight: 700; color: var(--terracotta); }
.quizpick__body h2 { font-size: var(--step-1); margin: 0; }
.quizpick__body h2 a { color: inherit; text-decoration: none; }
.quizpick__notes { color: var(--muted); font-size: var(--step--1); margin: 0; }
.quizpick__why { margin: 0; padding-left: 18px; font-size: var(--step--1); color: var(--muted); }
.quizpick__variant { margin: 0; font-size: var(--step--1); }
.quizpick__more { font-size: var(--step--1); }
.quizresult__again { text-align: center; margin-top: var(--space-xl); }
.quizresult__empty { text-align: center; color: var(--muted); }
.quizresult__decaf { text-align: center; margin-top: var(--space-l); color: var(--muted);
  font-size: var(--step--1); }
