/* 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: 2px;            /* strak/boetiek: nauwelijks afronding */
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
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; }
.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; }
@media (max-width: 760px) { .shop-search { order: 3; flex-basis: 100%; max-width: none; } }
.shop-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.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). */
.shop-collectiebar { 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; }
.shop-collectiebar a { text-decoration: none; color: var(--ink-soft); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; }
.shop-collectiebar a:hover { color: var(--ink); }
.shop-collectiebar a.nav-sale { color: var(--sale, #b03a2e); margin-left: auto; }
/* 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; }
.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; }
.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: 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); }

/* ── 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; }
.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; }

/* ── 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; }

/* 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); }

/* ── 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; }
.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 14 basiskleuren (gesloten set; 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-overig { background: #c9c4bc; }
.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); }
.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 ── */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px) { .product-layout { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 56px; } }
.product-page .gallery .media { aspect-ratio: 3 / 4; }

/* Galerij Zalando-stijl: thumbnail-strip + grote hoofdfoto.
   Mobiel (default): thumbs als horizontale rij ONDER de hoofdfoto.
   Desktop (≥760px): thumbs als kolom LINKS naast de hoofdfoto. */
.product-page .gallery { display: flex; flex-direction: column-reverse; gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; }
.gallery-thumb { flex: 0 0 64px; width: 64px; 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; }
.gallery-main .media { width: 100%; }

@media (min-width: 760px) {
  .product-page .gallery.has-thumbs { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
  .gallery-thumbs { flex-direction: column; overflow-x: visible; }
}
/* 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; }
.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; }
.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); }

/* ── Winkelwagen-pagina ── */
.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: 1fr auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-sku { font-weight: 400; }
.cart-item .ci-qty input { width: 64px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.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; }

/* ── Afrekenpagina ── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 820px) { .checkout-layout { grid-template-columns: 1.3fr .9fr; align-items: start; } }
.checkout-form .btn { width: 100%; margin-top: 8px; }
.checkout-summary { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checkout-summary h2 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 14px; }
.cf-turnstile { margin: 4px 0 14px; }

/* ── 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-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); }
.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); }
.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%; }

/* 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); }

/* 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); }
