:root{--bg:#ECEBE6;--paper:#fff;--ink:#22211E;--muted:#6F6D66;--line:#DDDBD4;--stage:#E3E2DC;--focus:#1E4FD8;--ok:#1F7A4D;--warn:#C8262C}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Rubik,"Segoe UI",system-ui,sans-serif;font-size:16px;line-height:1.45}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px 80px}
.narrow{max-width:720px}

/* kop */
.top{display:flex;align-items:center;justify-content:space-between;padding:18px 0 26px}
.brand{font-weight:600;font-size:26px;letter-spacing:-.02em;text-decoration:none;display:flex;align-items:center;gap:10px}
.brand b{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ink);color:#fff;font-size:17px}
nav{display:flex;gap:20px}
nav a{text-decoration:none;color:var(--muted)}
nav a[aria-current]{color:var(--ink);font-weight:500}
nav a .badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--ink);color:#fff;font-size:12px;margin-left:4px}

h1{font-size:clamp(28px,4vw,40px);font-weight:600;margin:0 0 6px;letter-spacing:-.01em}
.lead{margin:0 0 28px;color:var(--muted);max-width:52ch}
.layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.15fr);gap:36px;align-items:start}

/* preview */
.stage{position:sticky;top:16px;background:var(--stage);border-radius:22px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:8px}
.stage canvas{width:100%;height:auto;aspect-ratio:5/6;display:block;touch-action:pan-y;cursor:grab;border-radius:14px}
.stage canvas:active{cursor:grabbing}
.stage-bar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.stage-bar .total{font-weight:600;font-size:22px}
.stage-bar .total small{display:block;font-weight:400;font-size:13px;color:var(--muted)}
.btn-light{background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-weight:500}
.btn-light:hover{background:#F6F5F1}
.drag-hint{font-size:13px;color:var(--muted);text-align:center;margin:0}

/* stappen */
.steps{display:flex;flex-direction:column;gap:22px}
section.step{background:var(--paper);border-radius:18px;padding:22px 24px 24px}
section.step h2{margin:0;font-size:19px;font-weight:600;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
section.step h2 .hint{font-size:14px;font-weight:400;color:var(--muted)}
section.step .body{margin-top:16px}
.count{display:flex;gap:10px;flex-wrap:wrap}
.count button{width:56px;height:56px;border-radius:14px;border:2px solid var(--line);background:var(--paper);font-size:20px;font-weight:500}
.count button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}
.row{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--line)}
.row:first-child{border-top:0;padding-top:0}
.row label{font-weight:500}
.row label small{display:block;font-weight:400;color:var(--muted);font-size:13px}
.row.active label{color:var(--focus)}
.shapes{display:flex;gap:8px;flex-wrap:wrap}
.shapes button{width:52px;height:52px;border-radius:12px;border:2px solid var(--line);background:var(--paper);padding:5px;display:grid;place-items:center;color:#4a4944}
.shapes button svg{width:100%;height:100%}
.shapes button:hover{border-color:#B9B7AE}
.shapes button[aria-pressed=true]{border-color:var(--ink);background:#F2F1EC;color:var(--ink)}
.tops{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tops button{display:flex;align-items:center;gap:12px;text-align:left;padding:10px 14px;border-radius:14px;border:2px solid var(--line);background:var(--paper);color:#4a4944}
.tops button svg{width:44px;height:44px;flex:none}
.tops button span{font-weight:500;color:var(--ink)}
.tops button small{display:block;font-weight:400;color:var(--muted);font-size:13px}
.tops button[aria-pressed=true]{border-color:var(--ink);background:#F2F1EC}
.swatches{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.swatches button{width:32px;height:32px;border-radius:50%;border:2px solid rgba(0,0,0,.08);padding:0;transition:transform .12s}
.swatches button:hover{transform:scale(1.12)}
.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--ink)}
.swatches .name{margin-left:6px;color:var(--muted);font-size:14px;min-width:9ch}
.summary{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.summary ul{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:6px}
.summary li{display:flex;align-items:center;gap:10px;font-size:15px}
.summary li i,.dot{width:14px;height:14px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.1);flex:none}
.summary li span.price{margin-left:auto;color:var(--muted)}
.cta{width:100%;background:var(--ink);color:#fff;border:0;border-radius:14px;padding:16px;font-size:17px;font-weight:600}
.cta:hover{background:#000}
.cta[disabled]{opacity:.5;cursor:default}
.note{margin:10px 0 0;font-size:13px;color:var(--muted)}

/* winkelmand, afrekenen, account, admin */
.card{background:var(--paper);border-radius:18px;padding:22px 24px}
.card+.card{margin-top:18px}
.card h2{margin:0 0 14px;font-size:19px}
.item{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.item:first-child{border-top:0;padding-top:0}
.item .desc{font-size:15px}
.item .desc .dots{display:flex;gap:4px;margin-top:6px}
.item .ctrl{display:flex;align-items:center;gap:8px}
.item .ctrl button{width:32px;height:32px;border-radius:10px;border:1px solid var(--line);background:var(--paper)}
.item .ctrl .rm{color:var(--muted);border:0;background:none;text-decoration:underline;width:auto;padding:0 4px}
.totals{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:6px}
.totals div{display:flex;justify-content:space-between}
.totals .grand{font-weight:600;font-size:18px}
.totals .sub{color:var(--muted);font-size:14px}
form .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
form .field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
form .field.full{grid-column:1/-1}
form label{font-size:14px;font-weight:500}
form input,form select,form textarea{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.msg{padding:12px 14px;border-radius:12px;background:#F2F1EC;margin-top:12px}
.msg.err{background:#FBE9E9;color:var(--warn)}
.msg.ok{background:#E6F3EB;color:var(--ok)}
.status{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13px;background:#F2F1EC}
.status.paid,.status.printing{background:#E6F3EB;color:var(--ok)}
.status.shipped{background:#E6ECFB;color:var(--focus)}
.status.pending{background:#FFF4D6;color:#8a6100}
.status.failed,.status.cancelled{background:#FBE9E9;color:var(--warn)}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:10px 8px;border-top:1px solid var(--line);vertical-align:top}
th{border-top:0;color:var(--muted);font-weight:500}
.empty{color:var(--muted);padding:20px 0}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:999px;display:flex;gap:14px;align-items:center;box-shadow:0 8px 30px rgba(0,0,0,.2);z-index:9}
.toast a{color:#fff}

@media (max-width:820px){
  .layout{grid-template-columns:1fr;gap:20px}
  .stage{position:sticky;top:0;z-index:2;border-radius:0 0 22px 22px;margin:0 -20px;padding:8px 14px}
  .stage canvas{aspect-ratio:auto;height:40vh}
  .row{grid-template-columns:1fr;gap:8px}
  .tops{grid-template-columns:1fr}
  form .grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.swatches button{transition:none}}
