/* Linthia – warme, eenvoudige stijl. Mobiel eerst. */
:root {
  --paper: #fbf7f1;
  --card: #ffffff;
  --ink: #2b2320;
  --muted: #74675f;
  --line: #eadfd3;
  --accent: #b3263a;
  --accent-dark: #8f1d2e;
  --accent-soft: #f7e6e8;
  --green: #2f5d50;
  --gold: #c9a14a;
  --danger: #b42318;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 35, 32, .06), 0 6px 20px rgba(43, 35, 32, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px 120px; }

/* ---------- Header / footer ---------- */
.site-header { text-align: center; padding: 28px 16px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.brand-mark { width: 44px; height: 44px; }
.brand-name { font-family: var(--serif); font-size: 2.4rem; letter-spacing: .02em; }
.tagline { margin: 2px 0 0; color: var(--muted); font-family: var(--serif); font-style: italic; }
.site-footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 32px 16px 120px; }
.site-footer p { margin: 4px 0; }

/* ---------- Algemeen ---------- */
.state { text-align: center; color: var(--muted); padding: 40px 0; }
.intro { max-width: 640px; margin: 8px auto 28px; text-align: center; font-size: 1.05rem; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.notice p { margin: 4px 0 0; }
.notice.closed { border-color: var(--gold); background: #fffaf0; text-align: center; }
.notice.error { border-color: color-mix(in srgb, var(--danger) 40%, white); background: #fff5f4; color: var(--danger); }
.notice ul { margin: 0; padding-left: 18px; }
.hint { color: var(--muted); font-size: .88rem; margin: -4px 0 16px; }
.hint.center { text-align: center; margin-top: 12px; }
.field-error { color: var(--danger); font-size: .9rem; margin: 8px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.big { min-height: 52px; font-size: 1.05rem; padding: 12px 24px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--muted); }
.link-back { background: none; border: 0; color: var(--muted); padding: 8px 0; cursor: pointer; margin-bottom: 8px; }

/* ---------- Artikelen ---------- */
.category { margin-bottom: 32px; }
.category h2 { text-align: center; }
.product-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.product-image { border: 0; padding: 0; background: #f3ece3; cursor: pointer; aspect-ratio: 1 / 1; width: 100%; display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { font-size: 4rem; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-desc { color: var(--muted); margin: 0 0 14px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 700; font-size: 1.05rem; }

/* ---------- Samenstellen ---------- */
.configure-layout { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .configure-layout { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .configure-media { position: sticky; top: 16px; }
}
.configure-media img { width: 100%; border-radius: var(--radius); background: #f3ece3; aspect-ratio: 1 / 1; object-fit: cover; }
.configure-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.actions { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }

.configurator { display: flex; flex-direction: column; gap: 4px; }
.opt-group { border: 0; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.opt-group legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.opt-group .optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.opt-group .help { color: var(--muted); font-size: .9rem; margin: -4px 0 10px; }
.opt-group.invalid legend { color: var(--danger); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--card);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice-price { color: var(--muted); font-size: .85rem; }
.choices.swatches .choice { flex-direction: column; border-radius: var(--radius-sm); padding: 10px 12px; min-width: 76px; gap: 6px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12); }
.choices.tiles .choice { flex-direction: column; border-radius: var(--radius-sm); padding: 8px; width: calc(50% - 5px); max-width: 160px; }
.choice-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }

.text-field input, .field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font: inherit; color: var(--ink);
}
.text-field input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.text-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.text-meta .counter { margin-left: auto; }
.text-preview { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.text-preview span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }

.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.qty-label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input { width: 48px; border: 0; text-align: center; font: inherit; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.small button { width: 36px; height: 36px; font-size: 1.1rem; }
.stepper.small span { min-width: 28px; text-align: center; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; color: var(--muted); }
.price-row strong { font-size: 1.4rem; color: var(--ink); }

/* ---------- Bestelling ---------- */
.checkout { max-width: 680px; margin: 0 auto; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; align-items: start; }
.cart-line.invalid { outline: 2px solid var(--danger); }
.cart-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: #f3ece3; }
.cart-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart-options { list-style: none; padding: 0; margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.cart-links { display: inline-flex; gap: 16px; }
.cart-price { font-weight: 700; white-space: nowrap; }

.checkout-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.delivery { display: grid; gap: 10px; }
.radio-card { display: block; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 12px 44px; position: relative; cursor: pointer; }
.radio-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; accent-color: var(--accent); }
.radio-title { display: block; font-weight: 600; }
.radio-title em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
.radio-desc { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.totals { border-top: 1px solid var(--line); margin: 18px 0; padding-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 700; font-size: 1.2rem; }

/* ---------- Mandje-balk en melding ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(43, 35, 32, .08); z-index: 10; }
.cart-bar-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .95rem; z-index: 20; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

/* ---------- Bevestigingspagina ---------- */
.order-page { max-width: 640px; margin: 0 auto; }
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.order-card h1 { text-align: center; }
.order-number { text-align: center; color: var(--muted); margin: -4px 0 18px; }
.order-number strong { color: var(--ink); font-size: 1.15rem; letter-spacing: .03em; }
.pay-box { text-align: center; background: var(--accent-soft); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.pay-box p { margin: 0 0 12px; }
.pay-box .small { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.paid-badge { display: inline-block; background: #e7f3ec; color: var(--green); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.order-lines { list-style: none; padding: 0; margin: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-lines .opts { color: var(--muted); font-size: .9rem; }

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