/* shop.css — verzorgde default-huisstijl voor de edge-rendered winkel.
   Boetiek-uitstraling (mode): warm ink/cream palet, Cormorant Garamond (display)
   + Jost (sans), 3/4 productkaarten, rustige spacing. Neutraal genoeg als default
   voor elke modezaak; een tenant kan het later per merk overschrijven. Mobile-
   first, zelf-gehoste fonts (geen externe afhankelijkheid), geen inline styles
   (style-src 'self'). */

/* ── Fonts (self-hosted, latin subset) ── */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600;
  font-display: swap; src: url('/shop/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500;
  font-display: swap; src: url('/shop/fonts/cormorant-garamond-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('/shop/fonts/jost-latin.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --cream: #f4f1ec;
  --cream-dark: #ebe6dd;
  --fg: #14110f;            /* = ink (behoud var-naam voor bestaande regels) */
  --ink: #14110f;
  --ink-soft: #4a4540;
  --muted: #8a827a;
  --line: rgba(20, 17, 15, 0.12);
  --soft: #f4f1ec;          /* alias van cream (bestaande regels gebruiken --soft) */
  --accent: #14110f;
  --accent-fg: #ffffff;
  --ok: #1a7f37;
  --err: #b23b2e;           /* sale/fout: warm terracotta i.p.v. fel rood */
  --sale: #b23b2e;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;           /* zachte afronding (buttons, inputs, kaarten, productgalerij); geen pill — pill blijft 999px waar bewust gebruikt */
  --maxw: 1240px;
}

* { box-sizing: border-box; }
/* NB: GEEN `html, body { height: 100% }`. Een vaste hoogte op html/body maakt de body
   de scroll-root en breekt `position: sticky` op de header (die scrolt dan mee weg,
   vooral op mobiel). `min-height: 100vh` op de flex-body houdt de footer onderaan
   (samen met `.shop-main { flex: 1 }`) zónder sticky te breken. */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; }

/* ── Topbar (optionele marketing-melding, per tenant) ── */
.shop-topbar { background: var(--ink); color: #fff; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; }

/* ── Header ── */
.shop-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 10; }
/* Mobiel: header (logo, zoek, navbar) schuift weg bij naar beneden scrollen en komt terug bij
   omhoog scrollen — meer schermruimte voor producten. cart.js (bindAutoHideHeader) zet de
   class; zonder JS blijft de header gewoon sticky. */
@media (max-width: 760px) {
  .shop-header { transition: transform .25s ease; will-change: transform; }
  .shop-header.is-scrolled-away { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) { .shop-header { transition: none; } }
.shop-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.shop-search .search-icon { color: var(--muted); flex-shrink: 0; }
.shop-search input { flex: 1; border: none; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.shop-search input:focus { outline: none; }
.shop-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
/* Mobiel: de zoekbalk zakt naar een eigen rij onder brand + icoonrij. De header-rij
   moet dan kunnen wrappen (anders probeert flex-basis:100% op dezelfde rij te passen →
   overflow). box-sizing + min-width:0 houden de volle-breedte-balk binnen het scherm,
   ondanks de interne padding en de rij-gap. */
@media (max-width: 760px) {
  .shop-header-inner { flex-wrap: wrap; row-gap: 14px; }
  .shop-search { order: 3; flex: 1 0 100%; max-width: none; min-width: 0; box-sizing: border-box; }
}
.brand { text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: .01em; color: var(--ink); }
.brand-logo { max-height: 34px; width: auto; display: block; }
/* Collectie-balk: eigen rij onder de zoekbalk, volle breedte (Requirement 23). */
/* Collectiebar: zachte crème-band zodat de navigatierij als eigen laag naar voren komt
   en de witte logo-/zoekrij erboven eruit springt (zwart topbar → wit → crème → wit). */
.shop-collectiebar { background: var(--cream); border-top: 1px solid var(--line); }
.shop-collectiebar-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 24px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
/* Links: dun lijntje onder bij hover/actief (geen layout-shift — altijd 2px border,
   transparant tenzij actief). Zo zie je waar je bent zónder schreeuwerig vetgedrukt. */
.shop-collectiebar a { text-decoration: none; color: var(--ink-soft); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 4px; margin: 0 8px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.shop-collectiebar a:hover { color: var(--ink); border-bottom-color: var(--line); }
.shop-collectiebar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
/* Afdelingen (Kleding/Schoenen/Accessoires) = primaire ingang: donkerder inkt, maar NIET
   vetgedrukt (dat was te schreeuwerig). Het kleurverschil met de overige links volstaat. */
.shop-collectiebar a.nav-afdeling { color: var(--ink); }
/* SALE: prominente pill (wit op merk-terracotta) i.p.v. een dun tekstlinkje, zodat de
   aanbieding-ingang opvalt. Rechts uitgelijnd (margin-left:auto). Dezelfde --sale-kleur als
   de productkaart-badges/prijzen → consistente "sale"-taal. */
.shop-collectiebar a.nav-sale {
  margin-left: auto;
  color: #fff;
  background: var(--sale, #b03a2e);
  border-radius: 999px;
  padding: 5px 14px;
  border-bottom: none; /* overschrijf de generieke onderrand-hover van .shop-collectiebar a */
}
.shop-collectiebar a.nav-sale:hover { color: #fff; background: #9a3327; border-bottom: none; }
.shop-collectiebar a.nav-sale[aria-current="page"] { color: #fff; background: #9a3327; border-bottom: none; }
/* Op smal scherm: horizontaal scrollen i.p.v. wrap, zodat de balk één rij blijft
   (nav-toggle-vriendelijk, geen hover-afhankelijkheid — het zijn gewone links). */
@media (max-width: 760px) {
  .shop-collectiebar-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shop-collectiebar-inner::-webkit-scrollbar { display: none; }
  .shop-collectiebar a.nav-sale { margin-left: 0; }
}
/* Navbar-actie-iconen (profiel + winkelwagen), rechts uitgelijnd als nette rij. */
.nav-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
/* Icoon-knop: vierkant tikdoel met zachte hover-achtergrond, cirkelvormig. */
.nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color .15s ease; }
.account-toggle:hover .nav-icon,
.cart-link:hover .nav-icon { background: var(--surface, rgba(20,17,15,.06)); }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.cart-count { position: absolute; top: 3px; right: 3px; background: var(--ink); color: var(--accent-fg); font-size: 9px; font-weight: 600; line-height: 1; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
/* Leeg = geen badge. De expliciete display hierboven overrulet de UA-[hidden]-regel,
   dus expliciet verbergen (zelfde patroon als de account-dropdown). */
.cart-count[hidden] { display: none; }
/* Login-status-stip op het profielicoon: rood = niet ingelogd, groen = ingelogd. */
.status-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.status-dot[data-status="out"] { background: var(--sale, #b03a2e); }
.status-dot[data-status="in"] { background: var(--ok, #1a7f37); }
.account-menu { position: relative; }
.account-toggle { display: inline-flex; align-items: center; color: var(--ink); background: none; border: none; cursor: pointer; padding: 0; font: inherit; }
/* Begroeting naast het icoon (Requirement 14.6): "Hi {voornaam}" + "Mijn account". */
.account-greet { display: flex; flex-direction: column; text-align: left; line-height: 1.25; gap: 1px; margin-left: 6px; }
.account-greet[hidden] { display: none; }
.account-greet-line { font-size: 14px; font-weight: 600; color: var(--ink); }
.account-greet-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: .02em; }
@media (max-width: 760px) { .account-greet { display: none; } }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,17,15,.12); padding: 6px; z-index: 20; display: flex; flex-direction: column; }
/* De expliciete display:flex hierboven overrulet de UA-regel voor [hidden]
   (display:none). Zonder deze regel blijft de (lege) dropdown altijd zichtbaar
   als een witte strook onder het profielicoon en sluit closeMenu() hem niet. */
.account-dropdown[hidden] { display: none; }
.account-dd-item { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; padding: 10px 12px; }
.account-dd-item:hover { background: var(--cream); }

/* ── Rijk inlogpaneel in de header-dropdown (Requirement 14.5) ── */
.account-dropdown.account-panel { width: 320px; max-width: 92vw; padding: 20px; gap: 0; }
/* Mobiel: het icoon staat vlak bij de rechterrand, dus een paneel dat t.o.v. dat icoon
   wordt gepositioneerd (right:0 op het kleine .account-menu-anker) steekt links buiten
   beeld. Maak het paneel daarom los van het icoon-anker en hang het aan de viewport
   (position:fixed) met harde marges links/rechts. Zo blijft het altijd volledig in beeld,
   ongeacht de exacte iconpositie. De top volgt de sticky header (64px ≈ header-hoogte);
   een iets te lage top is onschuldig (het paneel opent gewoon eronder). */
@media (max-width: 760px) {
  .account-dropdown { position: fixed; top: 64px; left: 16px; right: 16px; }
  .account-dropdown.account-panel { width: auto; max-width: none; left: 16px; right: 16px; }
}
.account-panel-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 0 0 16px; }
.account-panel-step { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.account-panel-step[hidden] { display: none; }
.account-panel .field-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); }
.account-panel .field-input:focus { outline: none; border-color: var(--ink); }
.account-panel-submit { width: 100%; }
.account-panel .login-msg { font-size: 13px; margin: 4px 0 0; min-height: 0; }
.account-panel .login-msg.is-error { color: var(--sale, #b03a2e); }
.account-panel .login-msg.is-ok { color: var(--ink-soft); }
/* "of"-scheiding met lijnen. */
.account-panel-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.account-panel-or::before, .account-panel-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-panel-register { width: 100%; }
.account-panel-hint { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.4; }
.account-panel-greet { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 12px; }

/* ── Mini-cart hover-preview (Requirement 25) ── */
/* Ankert rechts onder de icoon-rij; alleen tonen (geen muteren). Op touch bestaat
   deze preview niet (cart.js bindt hover alleen bij hover:hover). */
.nav-actions { position: relative; }
.mini-cart-preview { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 90vw; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20,17,15,.14); padding: 16px; z-index: 20; }
.mini-cart-preview[hidden] { display: none; }
.mini-cart-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.mini-cart-lines { list-style: none; margin: 0 0 12px; padding: 0; max-height: 320px; overflow-y: auto; }
.mini-cart-line { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-cart-media { flex: 0 0 56px; width: 56px; height: 72px; background: var(--cream); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mini-cart-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-cart-name { font-size: 14px; color: var(--ink); }
.mini-cart-variant { font-size: 12px; color: var(--ink-soft); }
.mini-cart-priceline { font-size: 13px; color: var(--ink); display: flex; gap: 6px; align-items: baseline; margin-top: 2px; }
.mini-cart-qty { color: var(--ink-soft); }
.mini-cart-was { color: var(--muted); }
.mini-cart-now { font-weight: 600; }
.mini-cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 14px; font-size: 14px; }
.mini-cart-totals dt { color: var(--ink-soft); margin: 0; }
.mini-cart-totals dd { margin: 0; text-align: right; }
.mini-cart-totals dd.is-total { font-weight: 600; }
.mini-cart-go { display: block; text-align: center; width: 100%; }

/* ── Favorieten / wishlist (Requirement 26) ── */
/* Header-hartje: zelfde icoon-rij als profiel/winkelwagen; teller-badge als cart. */
.fav-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.fav-link:hover .nav-icon { background: var(--surface, rgba(20,17,15,.06)); }
.fav-count { position: absolute; top: 3px; right: 3px; background: var(--ink); color: var(--accent-fg); font-size: 9px; font-weight: 600; line-height: 1; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg); }
.fav-count[hidden] { display: none; }
/* Hartje-toggle op productkaart (rechtsboven over de media) en productpagina. */
.fav-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 4px rgba(20,17,15,.16); transition: color .15s ease, transform .1s ease; }
.fav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-toggle:hover { transform: scale(1.06); }
.fav-toggle.is-active { color: var(--sale, #b03a2e); }
.fav-toggle.is-active svg { fill: currentColor; stroke: currentColor; }
.product-card { position: relative; }
/* Op de productpagina staat het hartje naast de koopknop (niet absoluut). */
.product-actions { display: flex; align-items: flex-start; gap: 12px; }
.product-actions .buy { flex: 1 1 auto; min-width: 0; } /* min-width:0 → mag krimpen; anders duwde 'ie het hartje buiten een smal scherm */
.product-actions .fav-toggle { position: static; flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid var(--line); box-shadow: none; }
/* Favorietenpagina. */
.favorites-page .fav-grid { margin-top: 8px; }
.fav-guest-hint { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; }
.fav-guest-hint p { margin: 0 0 12px; color: var(--ink-soft); }

/* ── Account-pagina ── */
.account-root { max-width: 100%; }
/* De uitgelogde staat (registreren/inloggen/OTP) blijft een smalle kolom; het
   ingelogde dashboard mag de volle breedte gebruiken. */
.account-root > .account-form, .account-root > .account-subtitle,
.account-root > .account-switch, .account-root > .account-msg,
.account-root > .account-loggedin { max-width: 560px; }
.account-subtitle { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0 0 14px; }
.account-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.account-loggedin { color: var(--ink-soft); margin-bottom: 12px; }
.account-input { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; }
.account-input:focus { outline: none; border-color: var(--ink); }
.account-switch { align-self: flex-start; }
.account-logout { align-self: flex-start; margin-top: 4px; }
.account-msg:empty { display: none; }
.account-msg.is-error { color: var(--err); }
.account-msg.is-ok { color: var(--ok); }
.welcome-discount-checkout { margin: 12px 0; padding: 12px 14px; background: var(--cream); border-radius: var(--radius); color: var(--ink-soft); }
.logout-notice { margin: 0 0 20px; padding: 12px 14px; background: var(--cream); border-left: 3px solid var(--ok); color: var(--ink); }

/* ── Account-dashboard (Requirement 33): zijnav + inhoudsgebied ── */
.account-dashboard { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 820px) { .account-dashboard { grid-template-columns: 220px 1fr; align-items: start; } }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: var(--radius); padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s; }
.account-nav-item:hover { background: var(--cream); color: var(--ink); }
.account-nav-item.is-active { background: var(--ink); color: #fff; }
.account-nav-logout { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; color: var(--muted); }
.account-nav-logout:hover { background: none; color: var(--err); }

.account-view-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 0 0 20px; }
.account-view .account-form { max-width: 560px; }

/* Kerncijfer-kaarten (klantnummer, lid sinds, bestellingen, besteed) */
.account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.account-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.account-card-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.account-card-value { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); }

/* Panelen (laatste bestelling, gegevens-samenvatting, loyaliteit) */
.account-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; background: #fff; }
.account-panel-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 600; }
.account-panel-body p { margin: 0 0 4px; }
.account-muted { color: var(--muted); }
.account-manage { margin-top: 14px; }
.account-loyalty { background: var(--cream); }

/* Bestelhistorie-rijen (Overzicht laatste + Mijn bestellingen) */
.order-history { display: flex; flex-direction: column; gap: 12px; }
.order-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.order-row-head { display: flex; flex-direction: column; gap: 3px; }
.order-nr { font-weight: 500; color: var(--ink); }
.order-date { font-size: 13px; color: var(--muted); }
.order-row-meta { display: flex; align-items: center; gap: 14px; justify-self: end; }
.order-total { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.order-invoice { grid-column: 1 / -1; justify-self: start; font-size: 13px; margin-top: 2px; }

/* Status-badges (gekleurd per orderstatus) */
.order-badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.order-badge--processing { background: #eaf2fb; color: #1f5fa8; }
.order-badge--completed { background: #eaf6ee; color: var(--ok); }
.order-badge--refunded { background: var(--cream-dark); color: var(--ink-soft); }
.order-badge--cancelled { background: #f7e8e6; color: var(--err); }

/* ── Layout ── */
.shop-main { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 64px; width: 100%; flex: 1; }
.shop-main h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.1; margin: 0 0 24px; letter-spacing: .01em; }
/* Chips-rij (Requirement 38.4): subcategorie-links boven het grid, als pillen. Op smal
   scherm horizontaal scrollen zodat het één rij blijft. Gewone links (geen JS nodig). */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cat-chip { text-decoration: none; color: var(--ink); font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); white-space: nowrap; transition: border-color .15s ease, background-color .15s ease; }
.cat-chip:hover { border-color: var(--ink); background: #fff; }
@media (max-width: 760px) {
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-chips::-webkit-scrollbar { display: none; }
}
.breadcrumb { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.empty-state { color: var(--ink-soft); font-weight: 300; padding: 32px 0; }

/* ── Merk-pagina (/designers/<slug>, Req 49): editorial merk-HERO + aparte catalogus ──
   Zalando-patroon: eerst een brede, op het merk gerichte strook (groot, lucht, verhaal +
   sfeerfoto's), daarná pas de catalogus met facetfilter. */
.brand-hero { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 8px; width: 100%; }
.brand-hero-text { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.brand-hero .breadcrumb { margin-bottom: 20px; }
/* Grote merknaam — groter dan de generieke .shop-main h1, als titel van het verhaal. */
.brand-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: .01em; margin: 0 0 20px; }
/* Het merk-verhaal: groter, luchtiger font — leesbaar, niet de dunne catalogus-tekst. */
.brand-intro { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.75; color: var(--ink-soft); font-weight: 300; margin: 0; }

/* Sfeerfoto's als prominente band (geen catalogus-thumbs). Twee kolommen; de lead-foto
   (eerste bij >1 beeld) spant beide kolommen voor een editorial ritme. */
/* Gelijke portret-tegels (geen uitgelichte lead): modefoto's zijn staand, één breed
   liggend kader zou hoofd/voeten wegsnijden. 4 kolommen op desktop, 2 op mobiel. */
.brand-shots { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Zelfde structuur als de productkaart-media (.media / .media img): de WRAPPER draagt de
   afronding + overflow:hidden, de <img> vult 'm met object-fit:cover. (border-radius direct
   op een <img> met object-fit rondt niet betrouwbaar af — wrapper-aanpak, net als overal.)
   object-position:center top → een crop gaat van ONDEREN, gezichten blijven in beeld. */
.brand-shot { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.brand-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
@media (max-width: 700px) { .brand-shots { grid-template-columns: repeat(2, 1fr); } }

/* De catalogus eronder krijgt lucht + een eigen kop (scheiding verhaal → assortiment). */
.brand-catalog { padding-top: 48px; }
.brand-catalog-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 24px; }

/* ── Media tegel + placeholder ── */
.media { position: relative; aspect-ratio: 3 / 4; background: var(--cream); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.ph-media { color: #cdc6bc; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; inset: 0; }
.media img + .ph-media { z-index: -1; } /* placeholder achter de foto; zichtbaar zodra img via onerror verdwijnt */

/* ── Productgrid ── */
.catalog { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.product-card a { text-decoration: none; color: inherit; display: block; }
.product-card .product-media { position: relative; display: block; }
.product-card .product-title { font-size: 15px; font-weight: 400; color: var(--ink); margin: 12px 0 3px; line-height: 1.4; }
.product-card .price { color: var(--ink); font-size: 14px; }
.product-card a:hover .media img { transform: scale(1.03); }

.product-card .product-brand { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.product-card .product-brand + .product-title { margin-top: 0; }
/* Mobiel: twee kolommen (zoals Omoda/Zalando) i.p.v. één schermvullende kaart — met de
   minmax(230px)-regel hierboven bleef er op een telefoon maar één kolom over en moest je per
   product scrollen. Compactere tekst; titel max. 2 regels zodat de rijen gelijk blijven. */
@media (max-width: 560px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .product-card .product-brand { font-size: 10px; margin: 8px 0 2px; }
  .product-card .product-title { font-size: 13px; margin: 8px 0 2px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card .price { font-size: 13px; }
  .product-card .fav-toggle { top: 6px; right: 6px; width: 30px; height: 30px; }
  .product-card .fav-toggle svg { width: 17px; height: 17px; }
}

/* Badge op de mediategel (bv. SALE); driven by de actieve aanbieding. */
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.badge.sale { background: var(--sale); }
/* Actie-badge op de kaart (Req 47.4): verdringt de SALE-badge; draagt de actienaam. Zelfde
   overlay-positie als .badge, in de actiekleur. max-width + ellipsis: een lange actienaam mag
   de kaart niet overgroeien. */
.badge.badge-actie-card { background: var(--sale); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Catalogus: filterkolom + toolbar (Requirement 22) ── */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 820px) { .shop-layout { grid-template-columns: 230px 1fr; align-items: start; } }
.filters { font-size: 14px; }
/* Desktop: de filterkolom blijft in beeld terwijl je rechts door de producten scrollt
   (sticky, net onder de sticky header), met een EIGEN scroll als de filters langer zijn
   dan het scherm — zodat de kolom als geheel scrollt zonder dat de artikelen meescrollen
   (Santa's feedback). Alleen ≥820px; op smal scherm blijft de collapsible toggle gelden.
   top ≈ headerhoogte (64px) + ademruimte; max-height vult de rest van de viewport. */
@media (min-width: 820px) {
  .filters {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px; /* ruimte voor de scrollbalk, geen tekst eronder */
  }
}
/* ── Mobiele filter-toggle (Req 22) ──
   Op desktop (≥820px) staat de filterkolom gewoon open en is de knop verborgen.
   Op smal scherm toont een "Filters"-knop de kolom; standaard dicht. De dicht-stand
   geldt ALLEEN als cart.js de collapsible-class heeft gezet (.js-filters-collapsible),
   zodat zonder JS de filters zichtbaar blijven en filteren blijft werken. */
.filter-toggle { display: none; width: 100%; box-sizing: border-box; padding: 12px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.filter-toggle:hover { border-color: var(--ink); }
@media (max-width: 819px) {
  .shop-layout.js-filters-collapsible .filter-toggle { display: block; }
  .shop-layout.js-filters-collapsible .filters { display: none; }
  .shop-layout.js-filters-collapsible.filters-open .filters { display: block; }
}
@media (min-width: 820px) { .filter-toggle { display: none; } }
.filters .filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filters .filter-group:first-child { border-top: none; padding-top: 0; }
.filters h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-weight: 500; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; color: var(--ink-soft); }
.filter-opt input { width: auto; }
.filter-opt .opt-count { margin-left: auto; color: var(--muted); font-size: 12px; }
/* Subcategorie onder haar hoofd-categorie (hiërarchie, Requirement 23). */
.filter-opt-child { padding-left: 16px; }
.filter-opt-child .opt-count { font-size: 11px; }
/* Kleur-facet als bullets: gekleurde rondjes i.p.v. tekst. De checkbox is visueel
   verborgen; het rondje is het klikvlak. Geselecteerd → een ring eromheen. */
.color-bullets { display: flex; flex-wrap: wrap; gap: 10px; }
.color-bullet { position: relative; display: inline-flex; cursor: pointer; line-height: 0; }
.color-bullet input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(20,17,15,.12); }
.color-bullet.is-selected .color-swatch { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.color-bullet input:focus-visible + .color-swatch { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
/* De 15 bolletjes (eigen filter-indeling; slugs = services/colors.ts BASE_COLORS). */
.color-swatch.c-zwart { background: #1a1a1a; }
.color-swatch.c-wit { background: #f5f5f0; box-shadow: inset 0 0 0 1px rgba(20,17,15,.25); }
.color-swatch.c-grijs { background: #9a9a9a; }
.color-swatch.c-beige { background: #d8c7a8; }
.color-swatch.c-bruin { background: #7a4a2b; }
.color-swatch.c-blauw { background: #3f5c78; }
.color-swatch.c-groen { background: #6f8f5a; }
.color-swatch.c-geel { background: #e3c14e; }
.color-swatch.c-oranje { background: #d97a34; }
.color-swatch.c-rood { background: #b03a2e; }
.color-swatch.c-roze { background: #dba0b0; }
.color-swatch.c-paars { background: #7d5a9c; }
.color-swatch.c-goud { background: #c9a94e; }
.color-swatch.c-zilver { background: linear-gradient(135deg, #e6e8ea, #a9aeb3); }
.color-swatch.c-multicolor { background: conic-gradient(#b03a2e, #e3c14e, #6f8f5a, #3f5c78, #7d5a9c, #b03a2e); }
/* Filter-kop: "Filters"-label + "wissen"-link bovenaan de kolom, altijd meteen in beeld
   (de kolom scrollt eronder). Zo is wissen bereikbaar zonder naar de bodem te scrollen. */
.filter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.filter-head-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.filter-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.filter-more { margin-top: 6px; background: none; border: none; padding: 2px 0; font: inherit; font-size: 13px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.filter-more:hover { color: var(--ink); }
.shop-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px 0 8px; }
.pager-btn { font-size: 14px; color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pager-btn:hover { background: var(--bg-soft, #f6f6f4); }
.pager-btn.is-disabled { color: var(--muted); border-color: transparent; pointer-events: none; }
.pager-status { font-size: 13px; color: var(--ink-soft); }

/* Infinite-scroll-sentinel (Req 22): onzichtbare peil-rij onder het grid; cart.js
   observeert 'm en laadt de volgende tegels. Tijdens het laden toont 'm een subtiele
   spinner als terugkoppeling. Zonder JS blijft 'm leeg/inert (de pager navigeert dan). */
.scroll-sentinel { min-height: 1px; }
.scroll-sentinel.is-loading { display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.scroll-sentinel.is-loading::after { content: ""; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: sentinel-spin 0.7s linear infinite; }
@keyframes sentinel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scroll-sentinel.is-loading::after { animation: none; } }

.hidden { display: none !important; }
.filter-clear { font-size: 13px; color: var(--muted); text-decoration: underline; text-align: center; }
.filter-clear:hover { color: var(--ink); }
.shop-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.shop-toolbar .sort-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.shop-toolbar .sort-select { padding: 8px 10px; font-family: var(--font-sans); font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.btn-sm { min-height: 0; padding: 8px 14px; font-size: 11px; }
.shop-results .empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* Aanbiedingsprijs (van/voor). "Van" doorgestreept gedempt; "voor" in de
   sale-kleur zodat de korting opvalt. */
.price-sale { display: inline-flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price-was s { color: var(--muted); font-weight: 300; }
.price-now { color: var(--sale); font-weight: 400; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Productpagina ── */
/* minmax(0, …): een grid-kolom krimpt anders niet onder de min-content van zijn inhoud — de
   hoofdfoto duwde de kolom op een smalle telefoon breder dan het scherm (horizontaal pannen). */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.product-layout > * { min-width: 0; }
@media (min-width: 760px) { .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 56px; } }
.product-page .gallery .media { aspect-ratio: 3 / 4; }

/* Galerij Zalando-stijl: thumbnail-strip + grote hoofdfoto.
   Thumbs als kolom LINKS naast de hoofdfoto — ook op mobiel: een rij ONDER de foto viel op
   een kleine telefoon (iPhone SE) onder de vouw, je moest scrollen om een andere foto te
   kiezen. Mobiel een smallere kolom (52px), desktop 72px. */
.product-page .gallery { display: block; }
.product-page .gallery.has-thumbs { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: stretch; }
/* height:0 + min-height:100% → de strip telt niet mee voor de rijhoogte (die volgt de
   hoofdfoto) en scrolt verticaal als er meer thumbs zijn dan naast de foto passen. */
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { flex: 0 0 auto; width: 100%; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; overflow: hidden; }
.gallery-thumb .media { aspect-ratio: 3 / 4; }
.gallery-thumb.is-active { border-color: var(--ink); }
/* Hoofdfoto = lightbox-trigger + hover-zoom-container. */
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery-main .media { width: 100%; }

@media (min-width: 760px) {
  .product-page .gallery.has-thumbs { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
}
/* Hover-zoom/vergrootglas (Requirement 28.4, desktop): overlay met de hi-res foto op
   ~220% zodat background-position (JS, volgt de muis) een uitvergroot deel toont.
   Alleen aangemaakt door cart.js bij hover op een precieze aanwijzer. */
.zoom-lens { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 220%; pointer-events: none; }

/* Lightbox: foto groot op een donkere backdrop, met prev/next/sluit. */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(20, 17, 15, 0.92); overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 17, 15, 0.92); }
.lightbox-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 92vw; max-height: 88dvh; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 1; background: rgba(0, 0, 0, 0.35); color: #fff; border: 0; cursor: pointer; border-radius: 50%; line-height: 1; }
.lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.4rem; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(0, 0, 0, 0.6); }
.lightbox-counter { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; color: #fff; font-size: 0.85rem; letter-spacing: .05em; }

.product-info h1 { margin-top: 0; }
.product-info .desc { color: var(--ink-soft); font-weight: 300; line-height: 1.9; }
/* Actielabel (Req 47.4): de NAAM van de lopende actie, klikbaar naar /actie/<slug>. Anders
   dan de generieke "Sale"-badge op de grid (die hangt aan prijs < regulier); de actiekleur
   (--sale) deelt het aanbieding-accent, maar het label draagt de actienaam i.p.v. "Sale".
   Inline (niet absoluut gepositioneerd zoals .badge op de kaart). */
.product-actie { margin: 0 0 10px; }
/* Eigen klasse (NIET de grid-.badge, die is position:absolute en zou de chip uit beeld
   duwen): inline chip in de normale flow, in de actiekleur. */
.badge-actie { position: static; display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; background: var(--sale); color: #fff; border-radius: 999px; text-decoration: none; }
.badge-actie:hover { opacity: .9; }
.product-price { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 4px 0 20px; }
.product-price .price-now { font-size: 26px; }
.product-price .price-was s { font-size: 18px; }

/* Categorie-links: klikbare categorieën van het product (multi-categorie). */
.product-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.product-categories .cat-link { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; transition: border-color .2s, color .2s; }
.product-categories .cat-link:hover { border-color: var(--ink); color: var(--ink); }

/* Tags: presentatie-labels onder de productinfo. */
.product-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.product-tags .tag { display: inline-block; font-size: 11px; letter-spacing: .06em; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.product-tags a.tag:hover { color: var(--ink); background: var(--line); }

/* Gerelateerde producten: zelfde grid als de catalogus, met een kop erboven. */
.related-products { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 36px; }
.related-products h2 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0 0 24px; }

/* ── Forms & knoppen ── */
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.field input, .field select { padding: 12px; font-size: 15px; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 14px; cursor: pointer; }
.field-check input { width: auto; }
/* Afhaalpunt-keuze bij afrekenen (web-shop Req 51.3/51.4): radio + naam/adres/openingstijden. */
.checkout-pickup { margin-top: 4px; }
.checkout-pickup .field-label { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.pickup-option { align-items: flex-start; padding: 12px; border: 1px solid var(--line, #e5e0d8); border-radius: 6px; }
.pickup-option input { margin-top: 3px; }
.pickup-text { display: flex; flex-direction: column; gap: 2px; }
.pickup-line { color: var(--ink); }
.pickup-info, .order-pickup-info { white-space: pre-line; color: var(--muted); font-size: 13px; margin-top: 4px; }
.customer-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.customer-login input { padding: 9px 11px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.customer-login .login-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; }
.customer-login .login-msg.is-error { color: var(--err); }
.customer-login .login-msg.is-ok { color: var(--ok); }
.customer-login .login-state { color: var(--ink-soft); }
.btn-link { background: none; border: none; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 0 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, opacity .2s; min-height: 50px; }
.btn-primary { background: var(--ink); color: var(--accent-fg); }
.btn-primary:hover { background: #000; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.buy { display: flex; flex-direction: column; gap: 6px; max-width: 380px; margin-top: 22px; }
.buy .btn { margin-top: 8px; }
.buy-status, .checkout-status { min-height: 20px; font-size: 14px; margin: 8px 0 0; }
.buy-status.is-error, .checkout-status.is-error { color: var(--err); }
.buy-status.is-ok, .checkout-status.is-ok { color: var(--ok); }
.buy-status.is-warn, .checkout-status.is-warn { color: var(--ink-soft); }

/* ── Winkelwagen-pagina (Zalando-stijl regel: thumbnail + info + aantal + prijs) ── */
.cart-loading { color: var(--ink-soft); }
.cart-items { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-media { display: block; width: 72px; aspect-ratio: 3 / 4; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.cart-item .ci-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item .ci-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item .ci-title { font-size: 15px; color: var(--ink); text-decoration: none; }
.cart-item a.ci-title:hover { text-decoration: underline; }
.cart-item .ci-variant { font-size: 13px; color: var(--muted); }
.cart-item .ci-lowstock { font-size: 12px; color: var(--err); font-weight: 500; }
.cart-item .ci-qty-select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; background: #fff; }
.cart-item .ci-line { min-width: 90px; text-align: right; }
.cart-item .ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: .04em; text-decoration: underline; }
.cart-item .ci-remove:hover { color: var(--err); }
.cart-subtotal { font-family: var(--font-display); font-size: 22px; font-weight: 500; text-align: right; margin: 12px 0 20px; }
.cart-page .btn-checkout, .cart-page .btn-secondary { margin-top: 4px; }
/* Vaste balk onderaan de winkelwagen: alleen op smalle schermen (JS toont hem alleen
   als de gewone knop niet in beeld is). Op grote schermen staat de gewone knop al goed. */
.cart-sticky { display: none; }
@media (max-width: 759px) {
  .cart-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,17,15,.08); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cart-sticky.is-off { display: none; }
  body.has-cart-sticky { padding-bottom: 150px; }
}
.cart-sticky-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 10px; font-size: 14px; }
.cart-sticky-totals[hidden] { display: none; }
.cart-sticky-totals dt { color: var(--ink-soft); margin: 0; }
.cart-sticky-totals dd { margin: 0; text-align: right; }
.cart-sticky-totals dd.is-total { font-weight: 600; }
.cart-sticky-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cart-sticky-amount-wrap { display: flex; flex-direction: column; min-width: 0; }
.cart-sticky-label { font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.cart-sticky-amount { font-family: var(--font-display); font-size: 20px; font-weight: 500; white-space: nowrap; }
.cart-sticky-go { display: flex; width: 100%; min-height: 50px; margin: 0; }
.cart-sticky-toggle { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.cart-sticky-toggle svg { transition: transform .2s; }
.cart-sticky-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .cart-sticky-toggle svg { transition: none; } }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 64px 1fr auto; row-gap: 8px; }
  .cart-item .ci-media { width: 64px; }
  .cart-item .ci-line { grid-column: 2 / 3; text-align: left; }
  .cart-item .ci-remove { grid-column: 3 / 4; justify-self: end; }
}

/* ── Afrekenpagina ── */
/* De <form> is de grid-container: links de velden, rechts het overzicht (aside).
   Op mobiel: één kolom, met het overzicht BOVEN de velden (order: -1) zodat de klant
   totaal/korting meteen ziet i.p.v. helemaal onderaan. */
.checkout-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.checkout-form-fields { min-width: 0; }
@media (min-width: 820px) {
  .checkout-form { grid-template-columns: 1.3fr .9fr; align-items: start; }
  .checkout-form-fields { order: 0; }
  .checkout-summary { order: 0; }
}
.checkout-form .btn-pay { width: 100%; margin-top: 8px; }
.checkout-reservation-notice { font-size: 13px; line-height: 1.4; color: var(--ink-soft); margin: 10px 0 0; }
.checkout-summary { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; max-width: 100%; box-sizing: border-box; }
.checkout-summary h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 14px; }
.cf-turnstile, .checkout-turnstile { margin: 4px 0 14px; }

/* Desktop: het overzicht blijft in beeld tijdens het scrollen langs de velden. */
@media (min-width: 820px) {
  .checkout-summary { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; }
}

/* Mobiel: overzicht BOVEN de velden zodat totaal/korting meteen zichtbaar zijn en
   niet onderaan wegvallen. (Een inklap-toggle kan later als verfijning.) */
@media (max-width: 819px) {
  .checkout-summary { order: -1; }
}

/* Regel-lijst in het overzicht */
.summary-items { list-style: none; padding: 0; margin: 0 0 14px; }
.summary-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.summary-item .si-qty { color: var(--muted); }
.summary-item .si-title { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.summary-item .si-line { text-align: right; white-space: nowrap; }

/* Kortingscode-veld + toepassen */
.summary-discount { display: flex; gap: 8px; margin: 14px 0 6px; }
.summary-discount-input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.summary-discount-input:focus { outline: none; border-color: var(--ink); }
.summary-discount-apply { min-height: 0; padding: 10px 16px; white-space: nowrap; }
.summary-discount-msg { font-size: 13px; margin: 2px 0 10px; }
.summary-discount-msg.is-ok { color: var(--ok); }
.summary-discount-msg.is-error { color: var(--err); }

/* Totalen-blok in het overzicht */
.summary-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin: 14px 0 4px; font-size: 15px; }
.summary-totals dt { color: var(--ink-soft); margin: 0; }
.summary-totals dd { margin: 0; text-align: right; }
.summary-totals .is-total { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.checkout-terms { border: none; padding: 14px 0 0; margin: 8px 0 0; }

/* ── Bevestigingspagina ── */
.thankyou-page .lead { color: var(--ink-soft); font-weight: 300; font-size: 17px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; max-width: 560px; }
.order-paid { border-left: 3px solid var(--ok); background: #f2f9f4; padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; }
.order-paid-title { color: var(--ok); font-weight: 600; margin: 0; }
.order-paid-next { color: var(--ink-soft); font-size: 14px; margin: 6px 0 0; }
.order-number { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.order-status { color: var(--ink-soft); font-size: 13px; letter-spacing: .04em; margin: 4px 0 0; }
.order-items { list-style: none; padding: 0; margin: 16px 0; }
.order-items li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 24px; margin: 16px 0; }
.order-totals dt { color: var(--ink-soft); }
.order-totals dd { margin: 0; text-align: right; }
.order-totals dd.is-total { font-weight: 500; color: var(--ink); }
.order-address { margin-top: 16px; }
.order-address h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; color: var(--muted); font-weight: 500; }
.order-address p { margin: 2px 0; font-weight: 300; }
.order-emailed { color: var(--ink-soft); font-size: 14px; margin-top: 16px; }

/* ── Footer ── */
.shop-footer { border-top: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); font-size: 14px; font-weight: 300; margin-top: 48px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 500; }
.footer-col p { margin: 4px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 6px 0; }
.footer-col a:hover { color: var(--ink); }
/* Copyright links, "Realisatie • tS-X" rechts — zelfde patroon als de website-footer
   (space-between, wrapt op smal scherm). */
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ── Mini-cart (bevestiging na toevoegen) ── */
.mini-cart { position: fixed; top: 82px; right: 20px; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 12px 36px rgba(20,17,15,.14); z-index: 20; }
.mini-cart:empty { display: none; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.cart-lines li { padding: 3px 0; }
.mini-cart .cart-subtotal { text-align: left; font-size: 16px; margin: 8px 0 12px; }
.mini-cart .btn-checkout { width: 100%; }
.mini-added-title { font-weight: 500; color: var(--ok); margin: 0 0 10px; }
.mini-added-actions { display: flex; flex-direction: column; gap: 8px; }
.mini-added-actions .btn { width: 100%; min-height: 42px; padding: 11px 16px; }

/* Juridische content-pagina's (/voorwaarden, /privacy) + AV-scrollvenster (Req 17.4/17.5) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 8px; }
.legal-intro { color: var(--ink-soft); margin: 0 0 20px; }
.legal-body .legal-article { margin: 0 0 24px; }
.legal-body h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 20px 0 8px; }
.legal-body p { margin: 0 0 10px; line-height: 1.6; }
.legal-body ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }

/* "algemene voorwaarden" als link-knop in het akkoord-label (CSP-safe, geen inline stijl) */
.link-button { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Scrollbaar AV-venster op de afrekenpagina */
.legal-modal { width: min(680px, 92vw); max-height: 82vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-modal::backdrop { background: rgba(20, 17, 15, 0.45); }
.legal-modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.legal-modal-head h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.legal-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 4px; }
.legal-modal-body { padding: 16px 20px 24px; overflow-y: auto; max-height: calc(82vh - 60px); }

/* Productomschrijving: inklapbaar <details> ONDER de koopsectie, zodat een lange tekst
   de koopknop niet uit beeld duwt. Rustige kop in dezelfde label-typografie als de
   categorie-/tag-chips; subtiele scheidingslijn erboven. Native marker vervangen door
   een eigen +/− zodat open/dicht duidelijk is zonder JS. */
.product-desc { margin-top: 24px; border-top: 1px solid var(--line); }
.product-desc > summary {
  list-style: none; cursor: pointer; padding: 16px 0 4px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.product-desc > summary::-webkit-details-marker { display: none; }
.product-desc > summary::after { content: '+'; font-size: 1rem; color: var(--ink-soft); font-weight: 300; }
.product-desc[open] > summary::after { content: '\2212'; } /* − */
.product-desc > summary:hover { color: var(--ink-soft); }
.product-desc-body { padding-bottom: 8px; }
.product-desc-body .desc:first-child { margin-top: 8px; }

/* Maattabel: knop op de productpagina + popup met conversie-grid (Requirement 27). */
.sizechart-open { margin-top: 12px; }
.sizechart-modal { width: min(680px, 92vw); max-height: 82vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.sizechart-modal::backdrop { background: rgba(20, 17, 15, 0.45); }
.sizechart-modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.sizechart-modal-head h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.sizechart-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 4px; }
.sizechart-modal-body { padding: 16px 20px 24px; overflow-y: auto; max-height: calc(82vh - 60px); }
.sizechart-intro { margin: 0 0 12px; color: var(--ink-soft); }
.sizechart-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sizechart-table th, .sizechart-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: center; }
.sizechart-table thead th { background: var(--surface, #f7f4f1); font-weight: 600; }
.sizechart-table tbody th { font-weight: 600; background: var(--surface, #f7f4f1); }

/* Actie-banner (Req 46): verschijnt op de etalage zodra er een getimede sale loopt.
   Server-side gerenderd, een gewone link naar ?sale=1 (geen JS). */
.actie-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 0 0 20px; padding: 14px 18px; background: var(--sale, #b03a2e); color: #fff; text-decoration: none; border-radius: 6px; }
.actie-banner .actie-titel { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.actie-banner .actie-subtitel { font-size: 14px; opacity: .92; }
.actie-banner .actie-cta { margin-left: auto; font-size: 13px; text-decoration: underline; }
.actie-banner:hover .actie-cta { text-decoration: none; }
@media (max-width: 640px) { .actie-banner .actie-cta { margin-left: 0; } }

/* ─── 404 "Deze pagina is uitverkocht" (renderNotFound) — zelfde concept als de site-404 ─── */
.nf { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 56px 64px; margin: 8px 0 56px; }
.nf-tag { width: 190px; height: auto; transform: rotate(-8deg); overflow: visible; }
.nf-tag-string { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.nf-tag-body { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.nf-tag-hole { fill: var(--cream); stroke: rgba(20, 17, 15, .3); }
.nf-tag-rule { stroke: rgba(20, 17, 15, .2); }
.nf-tag text { text-anchor: middle; font-family: var(--font-sans); }
.nf-tag-label { fill: var(--muted); font-size: 12px; letter-spacing: 3px; }
.nf-tag-size { fill: var(--ink); font-family: var(--font-display) !important; font-size: 78px; }
.nf-tag-sold { fill: var(--sale); font-size: 13px; letter-spacing: 2.5px; font-weight: 500; }
.nf-tag-brand { fill: var(--muted); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.nf-copy h1 { margin-bottom: 14px; }
.nf-copy > p { color: var(--ink-soft); font-weight: 300; font-size: 17px; line-height: 1.6; max-width: 34em; margin: 0 0 24px; }
.nf-search { display: flex; max-width: 440px; margin: 0 0 18px; }
.nf-search input { flex: 1; min-width: 0; padding: 0 16px; min-height: 50px; border: 1px solid rgba(20, 17, 15, .25); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; background: #fff; }
.nf-search .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.nf-links { color: var(--ink-soft); font-size: 14px; margin: 0; }
.nf-links a { color: var(--ink); }
.nf-new h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; text-align: center; margin: 0 0 24px; }
@media (max-width: 760px) {
  .nf { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding: 40px 22px; }
  .nf-tag { width: 140px; }
  .nf-search, .nf-copy > p { margin-left: auto; margin-right: auto; }
  .nf-actions { justify-content: center; }
}
