/* BUK Support – paginaopmaak voor kopers, etalage, bestelpagina en inloggen.
   Laadvolgorde: tokens.css → components.css → site.css (→ beheer.css / platform.css) → /theme.css.
   Kleuren, maten en componenten komen uit het designsysteem; hier staat alleen de lay-out per scherm. */

[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Algemeen ---------- */
.page { max-width: var(--content); margin: 0 auto; padding: var(--space-5) var(--space-4) 128px; display: grid; gap: var(--space-5); align-content: start; }
.page-narrow { max-width: calc(var(--reading) + 2 * var(--space-4)); }
.state { text-align: center; color: var(--ink-muted); padding: var(--space-7) 0; }
.hint { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.hint.warn { color: var(--warning); }
.center { text-align: center; }
.section-title { font-size: 20px; line-height: 26px; font-weight: 700; margin: 0 0 var(--space-3); }
.link { display: inline; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent-dark); }
.link.danger { color: var(--danger); }
.back { justify-self: start; margin-left: calc(-1 * var(--space-3)); }
.btn-wide { width: 100%; }
.small-text { font-size: 13px; line-height: 18px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-small { font-size: 14px; line-height: 20px; padding: var(--space-2) var(--space-3); }
.space-between { justify-content: space-between; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Velden: <label class="field"><span>Label</span><input></label> werkt naast de <label>-vorm uit het systeem. */
.field { margin: 0; }
.field > span:first-child, .field > legend { font-weight: 600; font-size: 15px; line-height: 20px; }
.field > span:first-child small, .field > legend small, .field-label small { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.form-stack { display: grid; gap: var(--space-4); }

/* ---------- Kop en voet van een winkel ---------- */
.shop-head { position: relative; }
.shop-head-link { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.shop-head-link:hover { color: inherit; }
.shop-head-inner { max-width: var(--content); width: 100%; margin: 0 auto; display: flex; align-items: center; gap: var(--space-3); }
.shop-head-cart { display: none; }
/* Mark in de kop: groter dan standaard; op desktop .mark-lg (72px) uit het designsysteem. */
.shop-head .mark { width: 56px; height: 56px; font-size: 26px; }
@media (min-width: 900px) {
  .shop-head { padding: var(--space-4) var(--space-5); }
  .shop-head-name { font-size: 28px; line-height: 34px; }
  .shop-head .mark { width: 72px; height: 72px; font-size: 32px; border-radius: var(--radius-md); }
  .shop-head-cart { display: inline-flex; }
}
.site-footer { padding: var(--space-6) var(--space-4) 140px; text-align: center; color: var(--ink-muted); font-size: 14px; line-height: 20px; display: grid; gap: var(--space-2); justify-items: center; }
/* Verwijzing naar het platform onderaan elke winkelpagina */
.made-on { display: grid; justify-items: center; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-4) var(--space-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: var(--ink-muted); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.made-on:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); color: var(--ink-muted); }
.made-on img { height: 36px; width: auto; }
.made-on-label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.made-on-more { font-size: 14px; font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Winkel: verhaal en artikelen ---------- */
.story { display: grid; gap: var(--space-4); }
.story .lead { white-space: pre-line; }
.category { display: grid; gap: var(--space-3); }
.product-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .product-grid { gap: var(--space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* De kaart is een grid met één kolom: die kolom niet laten meegroeien met de inhoud. */
.product-card, .shop-card { grid-template-columns: minmax(0, 1fr); }
.product-card-body, .shop-card-body { min-width: 0; }
button.product-card-media { width: 100%; border: 0; padding: 0; cursor: pointer; display: block; }
.product-card-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.product-card-foot .price b { font-size: 20px; font-weight: 800; }
@media (max-width: 719px) {
  .product-card-body { padding: var(--space-3); gap: 4px; }
  .product-card-name { font-size: 15px; line-height: 20px; }
  .product-card-text { font-size: 13px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card-foot { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .product-card-foot .price b { font-size: 17px; }
}

/* ---------- Artikel samenstellen ---------- */
.configure { display: grid; gap: var(--space-4); }
.configure-layout { display: grid; gap: var(--space-5); }
@media (min-width: 820px) {
  .configure-layout { grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
  .configure-media { position: sticky; top: var(--space-4); }
}
.configure-media { display: grid; gap: var(--space-3); }
.configure-media > img, .live-preview { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--sunken); display: block; }
.preview-note { text-align: center; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.configure-form { display: grid; gap: var(--space-3); align-content: start; }
.configure-actions { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.mini-preview { position: fixed; top: var(--space-3); right: var(--space-3); width: 104px; height: 104px; border-radius: var(--radius-md); border: 2px solid var(--card); box-shadow: var(--shadow-raised); z-index: 15; background: var(--sunken); }
@media (min-width: 820px) { .mini-preview { display: none; } }

.gallery { display: grid; gap: var(--space-2); }
.gallery-title { font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-2); }
.gallery-thumb { border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; background: var(--sunken); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 28, 56, .92); display: grid; place-items: center; padding: var(--space-7) var(--space-3); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .16); color: #fff; width: var(--tap); height: var(--tap); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-nav.prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: var(--space-3); top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox-count { position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%); color: var(--on-navy-muted); font-size: 14px; }

/* Optiegroepen (Choice uit het systeem) */
.configurator { display: grid; gap: var(--space-2); }
.opt-group { border: 0; margin: 0; padding: var(--space-3) 0; min-width: 0; display: grid; gap: var(--space-2); border-bottom: 1px solid var(--line); }
.opt-group legend { padding: 0; margin-bottom: var(--space-2); font-weight: 700; font-size: 16px; line-height: 24px; }
.opt-chosen { font-weight: 500; color: var(--ink-muted); }
.opt-group.is-error legend { color: var(--danger); }
.choice-thumb { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; margin-left: calc(-1 * var(--space-2)); }
.choice-tile { display: grid; gap: 4px; justify-items: center; width: 88px; text-align: center; font-size: 13px; line-height: 16px; font-weight: 600; cursor: pointer; }
.choice-tile .choice-extra { display: block; font-size: 12px; }
.text-preview { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.text-preview span { color: var(--ink); font-weight: 700; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-2); font-weight: 600; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; color: var(--ink-muted); }
.price-row .price { font-size: 24px; line-height: 28px; font-weight: 800; color: var(--ink); }

/* ---------- Afrekenen ---------- */
.checkout { display: grid; gap: var(--space-4); max-width: var(--reading); width: 100%; margin: 0 auto; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-3); align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); }
.cart-line.invalid { border-color: var(--danger); }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--sunken); }
.cart-info { display: grid; gap: 4px; min-width: 0; }
.cart-head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.cart-options { list-style: none; margin: 0; padding: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: 4px; }
.cart-actions .stepper button { width: 36px; height: 36px; }
.checkout-form { display: grid; gap: var(--space-4); }
.delivery-options { display: grid; gap: var(--space-2); }
/* Een keuzerondje binnen een .field is geen tekstveld: niet de veldhoogte en -opvulling meegeven. */
.radio-card input { min-height: 0; padding: 0; flex: none; }
@media (min-width: 520px) { .delivery-options { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.gift .field-prefix { width: 132px; }
.gift .field-prefix input { min-height: var(--tap); padding-top: 8px; padding-bottom: 8px; }
.gift .field-prefix.is-error input { border-color: var(--danger); }
.totals { margin: 0; display: grid; gap: var(--space-1); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.totals > div { display: flex; justify-content: space-between; gap: var(--space-3); }
.totals dt, .totals dd { margin: 0; }
.totals .extra { color: var(--gift); }
.totals .discount, .order-lines .discount { color: var(--success); }
/* Voordeelprijs: labeltje op de productkaart en tip in het mandje (vaste succeskleur, niet de winkelkleur) */
.deal { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: 13px; line-height: 18px; font-weight: 700; }
.deal-tip { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 600; }
.totals .grand { font-size: 20px; line-height: 28px; font-weight: 800; padding-top: var(--space-2); }

/* ---------- Mandjebalk en melding ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-left: max(var(--space-4), calc((100% - var(--content)) / 2)); padding-right: max(var(--space-4), calc((100% - var(--content)) / 2)); }
@media (min-width: 900px) { .cart-bar { display: none; } }
.toast-floating { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 2 * var(--space-4)); width: max-content; white-space: normal; }
@media (min-width: 900px) { .toast-floating { left: var(--space-5); bottom: var(--space-5); transform: none; } }

/* ---------- Bestelpagina ---------- */
.order-summary { display: grid; gap: var(--space-4); }
.order-number { color: var(--ink-muted); }
.order-number .code { color: var(--ink); font-weight: 700; }
.pay-box .btn { justify-self: start; }
.pay-box details summary { cursor: pointer; font-weight: 600; }
.pay-box .share-link-url { background: var(--card); }
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.order-lines .opts { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.order-lines .extra { color: var(--gift); }
.order-lines .grand { font-weight: 800; border-bottom: 0; }

/* ---------- Etalage (buksupport.shop) ---------- */
.hero { background: var(--navy); color: var(--on-navy); }
.hero-inner { max-width: var(--content); margin: 0 auto; padding: var(--space-3) var(--space-5) var(--space-6); display: grid; gap: var(--space-3); }
.hero-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.hero-top { min-height: 72px; }
.hero-top img { height: 44px; width: auto; }
@media (min-width: 720px) { .hero-top img { height: 56px; } }
.hero .eyebrow { color: var(--mint); margin-top: var(--space-5); }
.hero h1 { color: var(--on-navy); font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -.02em; max-width: var(--reading); }
.hero .lead { color: var(--on-navy-muted); max-width: var(--reading); white-space: pre-line; }
.hero-counts { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 14px; color: var(--on-navy-muted); margin-top: var(--space-2); }
.hero-counts b { color: var(--on-navy); }
@media (min-width: 720px) {
  .hero-inner { padding-bottom: var(--space-8); }
  .hero h1 { font-size: 40px; line-height: 44px; }
}
.shop-card-media .mark { width: 88px; height: 88px; }
/* Productfoto's zijn vierkant (net als op de productkaarten): in de etalage niet bijsnijden tot 4:3. */
.shop-card-media { aspect-ratio: 1 / 1; }
.footer-navy { background: var(--navy); color: var(--on-navy-muted); text-align: left; justify-items: start; padding: var(--space-6) var(--space-5) var(--space-7); }
.footer-navy .footer-inner { max-width: var(--content); width: 100%; margin: 0 auto; display: grid; gap: var(--space-3); }
.footer-navy img { height: 40px; width: auto; }
.footer-navy a { color: var(--on-navy); }

/* ---------- Inloggen en welkom (winkelbeheer en platform) ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--space-4); }
.login .panel { width: 100%; max-width: 400px; display: grid; gap: var(--space-4); }
.login-head { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.login-head .mark-img { width: 72px; height: 72px; border-radius: var(--radius-md); }
.login-head h1 { font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -.015em; }
.login form { display: grid; gap: var(--space-4); }
.login-foot { display: grid; gap: var(--space-2); text-align: center; color: var(--ink-muted); font-size: 14px; line-height: 20px; }

@media print {
  .cart-bar, .toast, .site-footer, .back, .btn { display: none !important; }
  body { background: #fff; }
  .panel, .product-card { box-shadow: none; }
}
