/* Nerfwerk — website
   Kleuren uit het goedgekeurde homepagevoorbeeld. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #262724;          /* antraciet */
  --ink-soft: #4a4b47;
  --muted: #6b6a64;
  --paper: #F4F0E8;        /* warm gebroken wit */
  --paper-2: #EDE7DC;
  --card: #FBF9F5;
  --copper: #A86E46;       /* houtbruin/koper */
  --copper-dark: #8C5935;  /* voor tekst op licht: contrast ≥ 4.5:1 */
  --line: #DDD5C8;
  --ok: #2f6b3a;
  --err: #a3321f;
  --radius: 6px;
  --wrap: 1200px;
  --font-head: "Inter Tight", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.022em; line-height: 1.02; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Demo */
.demo-bar { background: #ffe9a8; color: #3a2f00; text-align: center; font-size: .9rem; padding: 6px 16px; }
.demo-bar strong { background: #3a2f00; color: #ffe9a8; padding: 1px 6px; border-radius: 3px; margin-right: 6px; letter-spacing: .05em; }
.demo-note { display: inline-block; background: #fff3cd; color: #4d3b00; font-size: .9rem; padding: 4px 10px; border-radius: 4px; }

/* Header */
.site-header { background: var(--paper); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.logo-name { font-family: var(--font-head); font-weight: 900; font-size: 2.15rem; letter-spacing: 0; line-height: .95; }
.logo-tagline { color: var(--copper-dark); font-weight: 600; font-size: .98rem; margin-top: 3px; letter-spacing: .01em; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--copper); }
.cart-link { color: var(--ink); display: inline-flex; padding: 8px; margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .header-inner { min-height: 68px; gap: 8px; }
  .logo-name { font-size: 1.55rem; }
  .logo-tagline { font-size: .85rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  .cart-link { order: 2; margin-left: 0; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
}

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: 14px; font: 600 1.1rem/1 var(--font-body); padding: 17px 28px; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 52px; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--copper); padding-bottom: 4px; }
.link-arrow:hover { color: var(--copper-dark); }

/* Hero: doorlopende foto die links zacht overloopt in de achtergrond */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 600px; }
.hero-text { padding: 64px 0 72px; max-width: 520px; }
.eyebrow { font: 600 .9rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 18px; }
.eyebrow::after { content: ""; display: block; width: 44px; height: 2px; background: var(--copper); margin-top: 16px; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); margin-bottom: 24px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-intro { font-size: 1.1rem; line-height: 1.55; max-width: 42ch; color: var(--ink); margin-bottom: 34px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 70%; z-index: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgba(244,240,232,.8) 10%, rgba(244,240,232,0) 34%), linear-gradient(0deg, rgba(168,110,70,.06), rgba(168,110,70,.06)); pointer-events: none; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-media { order: 2; }
  .hero-inner { display: block; min-height: 0; }
  .hero-text { padding: 32px 0 28px; max-width: none; }
  .hero-media { position: relative; width: auto; inset: auto; }
  .hero-media::after { background: linear-gradient(180deg, var(--paper) 0%, rgba(244,240,232,0) 22%); }
  .hero-img { aspect-ratio: 4 / 3; height: auto; }
}

/* USP-balk */
.usp-bar { background: var(--ink); color: #fff; }
.usp-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 26px; padding-bottom: 26px; }
.usp-list li { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 1.05rem; padding: 8px 16px; }
.usp-list li + li { border-left: 1px solid rgba(255,255,255,.22); }
.usp-list svg { color: #d29a71; flex: none; }
@media (max-width: 760px) {
  .usp-list { grid-template-columns: 1fr; padding-top: 12px; padding-bottom: 12px; }
  .usp-list li { justify-content: flex-start; }
  .usp-list li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
}

/* Secties */
.section { padding: 72px 0; }
.section-tight { padding-top: 0; }
.page-head { padding-top: 56px; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 36px; }
.section-title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--copper); margin: 18px auto 0; }
.section-title-left { text-align: left; font-size: 1.8rem; }
.section-title-left::after { margin-left: 0; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-form { align-items: start; }
.split-media img { border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Categorieën */
.category-grid, .product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card, .product-card { display: flex; flex-direction: column; background: var(--card); text-decoration: none; color: var(--ink); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover, .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38,39,36,.12); color: var(--ink); }
.category-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-name { display: flex; justify-content: space-between; align-items: center; font: 700 1.1rem/1.2 var(--font-head); padding: 22px 20px; }
.product-name { font: 700 1.1rem/1.2 var(--font-head); padding: 18px 18px 4px; }
.product-price { padding: 0 18px 18px; color: var(--copper-dark); font-weight: 600; }
@media (max-width: 1000px) { .category-grid { grid-template-columns: repeat(2, 1fr); } .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .category-grid { gap: 10px; } .category-name { font-size: .98rem; padding: 14px 12px; } .category-name svg { display: none; } .product-grid { grid-template-columns: 1fr; } }

/* Hout */
.wood { display: grid; grid-template-columns: 53fr 47fr; background: var(--paper); }
.wood-media { position: relative; min-height: 480px; overflow: hidden; }
.wood-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.wood-text { padding: 72px clamp(20px, 5vw, 80px); align-self: center; max-width: 620px; }
.wood-text h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.wood-text h2::after { content: ""; display: block; width: 44px; height: 2px; background: var(--copper); margin-top: 18px; }
.wood-lead { font-size: 1.2rem; font-weight: 500; }
.wood-text p:not(.wood-lead) { color: var(--ink-soft); }
@media (max-width: 860px) { .wood { grid-template-columns: 1fr; } .wood-media { min-height: 0; aspect-ratio: 16 / 10; } .wood-text { padding: 40px 20px; } }

.custom-cta { background: var(--paper-2); }
.custom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.custom-cta-inner p { margin: 0; font-size: 1.15rem; max-width: 60ch; }

/* Tekst */
.prose h2 { font-size: 1.5rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.note-block { margin-top: 32px; padding: 18px 20px; background: var(--card); border-left: 3px solid var(--copper); }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.steps-list { padding-left: 1.3em; font-size: 1.1rem; }
.steps-list li { margin-bottom: 6px; }
.small-print { font-size: .95rem; color: var(--muted); }
.price-big { font: 800 2rem/1 var(--font-head); }
.price-big small { font: 400 .9rem var(--font-body); color: var(--muted); }

/* Formulieren */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form .field { margin: 0 0 20px; border: 0; padding: 0; }
.form label, .form legend { display: block; font-weight: 600; margin-bottom: 6px; }
.form .radio, .form .checkbox { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.form .radio input, .form .checkbox input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--copper); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="password"], .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9b0a2; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
.form [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field-error { color: var(--err); font-size: .95rem; margin: 6px 0 0; font-weight: 500; }
.field-error::before { content: "⚠ "; }
.hint { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.optional { font-weight: 400; color: var(--muted); }

/* Meldingen */
.flash-wrap { padding-top: 20px; }
.flash { padding: 14px 18px; border-radius: var(--radius); margin: 0; font-weight: 500; }
.flash-success { background: #e3f0e4; color: var(--ok); }
.flash-error { background: #f8e2dd; color: var(--err); }

/* Footer */
.site-footer { background: var(--ink); color: #e8e3da; padding: 56px 0 40px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.logo-name-light { color: #fff; margin: 0; font-size: 1.6rem; }
.footer-tag { color: #d29a71; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #e8e3da; }
.site-footer a:hover { color: #fff; }
.footer-company p { margin: 0 0 6px; font-size: .95rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Plankontwerper ---------- */
.designer { padding: 36px 0 40px; }
.designer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.designer-head .page-title { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.designer-lead { margin: 0; max-width: 46ch; font-size: 1.05rem; }
.designer-grid { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 28px; align-items: start; }
.designer-main { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 20px; align-items: start; align-self: stretch; }
.designer-sticky { position: sticky; top: 12px; }
.designer-side { position: sticky; top: 12px; display: grid; gap: 14px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

.preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.tool { display: inline-flex; align-items: center; gap: 6px; font: 500 .9rem var(--font-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; min-height: 40px; cursor: pointer; }
.tool:hover:not(:disabled) { border-color: var(--copper); }
.tool:disabled { opacity: .45; cursor: not-allowed; }
.tool-check input { accent-color: var(--copper); width: 16px; height: 16px; }
.tool-refresh { background: var(--copper); color: #fff; border-color: var(--copper); }
.preview-status { margin-left: auto; font-size: .85rem; color: var(--ok); font-weight: 600; }
.preview-status.is-stale { color: var(--muted); }
.preview { position: relative; background: #efe8dc; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; transition: opacity .15s; }
.preview.is-stale { opacity: .65; }
.preview svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.preview-note { font-size: .85rem; color: var(--muted); margin: 8px 2px 0; }

.designer-steps { display: grid; gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .8rem var(--font-body); flex: none; }
.opt-group { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.opt-group legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.opt-list { display: grid; gap: 6px; }
.opt-cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; min-height: 44px; }
.opt:hover { border-color: #c9b9a3; }
.opt input { accent-color: var(--copper); width: 18px; height: 18px; flex: none; margin: 0; }
.opt:has(input:checked) { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); background: #fdf8f2; }
.opt:has(input:focus-visible) { outline: 3px solid var(--copper); outline-offset: 2px; }
.opt.is-disabled { opacity: .55; cursor: not-allowed; }
.opt-card { flex-direction: column; text-align: center; padding: 26px 8px 12px; gap: 6px; }
.opt-card input { position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; }
.opt-icon { width: 40px; height: 40px; fill: #e1bc8a; stroke: #8a5a33; stroke-width: 1.5; flex: none; }
.opt-text { display: flex; flex-direction: column; line-height: 1.25; }
.opt-label { font-weight: 500; }
.opt-sub { font-size: .82rem; color: var(--muted); }
.opt-check { margin-bottom: 10px; }
.wood-fixed { margin: 0 0 10px; }
.field-inline { display: grid; gap: 4px; margin-bottom: 10px; }
.field-inline label { font-weight: 600; font-size: .9rem; }
.field-inline select, .field-inline input[type="text"] { font: inherit; padding: 9px 10px; border: 1px solid #b9b0a2; border-radius: var(--radius); background: #fff; min-height: 44px; width: 100%; }
.bowl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 10px; }
.bowl-card { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.bowl-card:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.bowl-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 8px; }
.bowl-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .75rem var(--font-body); }
.step .opt-group .opt-list:not(.opt-cards) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.step .hint { font-size: .85rem; color: var(--muted); }

.issues .issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); font-size: .92rem; line-height: 1.4; }
.issue-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 .75rem var(--font-body); flex: none; color: #fff; }
.issue-error { background: #f8e2dd; color: #7e2414; }
.issue-error .issue-icon { background: var(--err); }
.issue-warning { background: #fff0c7; color: #5c4300; }
.issue-warning .issue-icon { background: #a77b00; }
.issue-info { background: #e8eef0; color: #2e4650; }
.issue-info .issue-icon { background: #4f6d78; }
.issue-ok { background: #e3f0e4; color: var(--ok); padding: 10px 12px; border-radius: var(--radius); margin: 0; font-weight: 600; font-size: .92rem; }

.price-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.price-box h2 { font-size: 1.2rem; margin-bottom: 10px; }
.price-lines { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-lines td { padding: 5px 0; border-bottom: 1px solid #eee5d8; vertical-align: top; }
.price-lines .num { text-align: right; white-space: nowrap; padding-left: 10px; }
.price-total { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.6rem var(--font-head); margin: 12px 0 4px; }
.price-total span { font: 600 1rem var(--font-body); }
.price-missing { color: var(--err); font-weight: 600; }
.price-box .hint { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.price-actions { margin-top: 14px; }
.price-actions .btn { width: 100%; justify-content: center; }
.btn.is-disabled { background: #cbbfae; color: #fff; pointer-events: none; }
.btn-small { padding: 10px 16px; min-height: 42px; font-size: .95rem; }

.mobile-price-bar { display: none; }

@media (max-width: 1180px) {
  .designer-main { grid-template-columns: 1fr; }
  .designer-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  .designer { padding-top: 20px; padding-bottom: 90px; }
  .designer-grid { grid-template-columns: 1fr; padding: 0 12px; gap: 16px; }
  .designer-main { display: contents; }
  .designer-sticky { order: -1; position: sticky; top: 0; z-index: 5; background: var(--paper); padding-top: 6px; }
  .preview svg { max-height: 34vh; }
  .preview-note { display: none; }
  .tool span { display: none; }
  .tool-check span, .tool-refresh { display: inline; }
  .designer-side { order: 2; }
  .designer-steps { order: 1; }
  .mobile-price-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; }
  .mobile-price-bar strong { font: 800 1.25rem var(--font-head); }
  .mpb-label { font-size: .85rem; opacity: .8; margin-right: 6px; }
}
.design-attach { margin: 20px 0; }
.design-attach h2 { font-size: 1.3rem; }
.preview-small svg { max-height: 260px; }
.message-preview svg { width: 100%; height: auto; }
.view-switch { display: inline-flex; margin-right: 6px; }
.view-switch .tool { border-radius: 0; }
.view-switch .tool:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.view-switch .tool:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.view-switch .tool[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview-3d { padding: 0; overflow: hidden; cursor: grab; touch-action: none; }
.preview-3d:active { cursor: grabbing; }
.preview-3d canvas { display: block; }
.view-loading { padding: 40px; text-align: center; }
.custom-size input { font: inherit; padding: 9px 10px; border: 1px solid #b9b0a2; border-radius: var(--radius); min-height: 44px; width: 100%; }
@media (max-width: 860px) { .view-switch .tool { display: inline-flex; } .view-switch .tool span { display: inline; } }

/* Direct leverbaar */
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 0; }
.pbadge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--paper-2); color: var(--ink); }
.pbadge-ok { background: #e3f0e4; color: var(--ok); }
.pbadge-demo { background: #ffe9a8; color: #3a2f00; }
.product-dims { padding: 2px 18px 0; color: var(--muted); font-size: .9rem; }
.product-card .product-name { padding-top: 8px; }
.stock-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-specs { color: var(--muted); }
.buy-box { margin-top: 20px; }
.buy-box .checkbox { font-weight: 500; }
.engrave-fields { margin-top: 14px; }
.engrave-preview { margin: 6px 0 4px; padding: 18px 12px; text-align: center; font-size: 1.6rem; color: #4a2e15; background: linear-gradient(90deg, #e3bd88, #d4a46a); border-radius: var(--radius); }
.engrave-preview.is-empty { opacity: .55; }
.btn-block { width: 100%; justify-content: center; }

/* Teksten plaatsen in de ontwerper */
.text-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
.text-card.is-active { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(168, 110, 70, .18); }
.text-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.text-card-head .bowl-title { margin: 0 auto 0 0; }
.tool-sm { min-height: 34px; padding: 5px 10px; font-size: .85rem; }
.tool.is-on { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn-add-text { margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--copper); text-decoration: underline; cursor: pointer; }
.text-placed { margin-top: 8px; }
.preview .nw-text { cursor: grab; touch-action: none; }
.preview .nw-text:active { cursor: grabbing; }
.preview .nw-text-box { transition: fill-opacity .15s; }
.preview .nw-text:hover .nw-text-box { fill-opacity: .25; }
.preview .nw-text.is-active .nw-text-box { fill-opacity: .3; stroke: var(--copper); stroke-width: 1; stroke-dasharray: 3 2; }
.preview.is-placing { cursor: crosshair; }
.preview.is-placing::after { content: "Klik op de plek waar de tekst moet komen"; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .85rem; padding: 6px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }


/* Beheer past een ontwerp van een aanvraag aan */
.edit-bar { background: #fff4d6; border-bottom: 1px solid #e8cf86; }
.edit-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.edit-bar-inner p { margin: 0; max-width: 70ch; }
.edit-bar form { display: flex; align-items: center; gap: 14px; }
.btn-link { color: var(--ink); text-decoration: underline; }
