/* ==========================================================================
   Crea-Store — "de knutseltafel"
   Crème papier, kraft, washi-tape, gestikte randen en hanglabels.
   ========================================================================== */

:root {
  --cream: #FBF4E6;
  --paper: #FFFBF2;
  --kraft: #E8D3B0;
  --kraft-2: #DDC197;
  --kraft-dark: #C9A97A;
  --wood: #A8724A;
  --ink: #3B2A33;
  --ink-soft: #6E5A64;
  --ink-faint: #9A8890;
  --terra: #D9694A;
  --terra-dark: #A94A30;
  --mustard: #E7B04B;
  --mustard-dark: #B9822A;
  --sage: #8AA67E;
  --sage-dark: #5F7F55;
  --rose: #F2B5A7;
  --rose-dark: #C9796A;
  --denim: #6C8EAD;
  --denim-dark: #4A6A88;
  --plum: #7A4E6B;
  --plum-dark: #57344C;

  --accent: var(--terra);
  --accent-dark: var(--terra-dark);
  --accent-soft: #F7D9CD;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(59, 42, 51, .06), 0 12px 26px -14px rgba(59, 42, 51, .45);
  --shadow-lift: 0 2px 0 rgba(59, 42, 51, .06), 0 22px 36px -16px rgba(59, 42, 51, .5);
  --wrap: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.16 0 0 0 0 0.2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5c5-4 10-4 15 0s10 4 15 0 7-3 10-1' fill='none' stroke='%23D9694A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Themakleuren voor crea-pagina's en makerskaartjes */
.theme-terracotta { --accent: var(--terra); --accent-dark: var(--terra-dark); --accent-soft: #F7D9CD; }
.theme-mosterd    { --accent: var(--mustard); --accent-dark: var(--mustard-dark); --accent-soft: #F8E7C2; }
.theme-salie      { --accent: var(--sage); --accent-dark: var(--sage-dark); --accent-soft: #DCE7D5; }
.theme-roze       { --accent: var(--rose); --accent-dark: var(--rose-dark); --accent-soft: #FBE3DC; }
.theme-denim      { --accent: var(--denim); --accent-dark: var(--denim-dark); --accent-soft: #D9E3EE; }
.theme-pruim      { --accent: var(--plum); --accent-dark: var(--plum-dark); --accent-soft: #E9D9E3; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--grain);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
main { flex: 1; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px dashed var(--terra); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--font-hand); font-weight: 600; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.center { text-align: center; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr.stitch { border: 0; border-top: 2px dashed var(--kraft-dark); margin: 1.5rem 0; }

/* Golvend lijntje onder koppen */
.wavy { position: relative; display: inline-block; padding-bottom: .35em; }
.wavy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--wave) repeat-x left center / 40px 10px;
}
.theme-salie .wavy::after, .wavy.sage::after { filter: hue-rotate(70deg) saturate(.6); }

/* ---------- Knoppen ---------- */
.btn {
  --b: var(--terra); --bd: var(--terra-dark); --bt: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .65em 1.3em;
  border: 0; border-radius: 14px;
  background: var(--b); color: var(--bt);
  font: 800 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--bd);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd); }
.btn-sage { --b: var(--sage); --bd: var(--sage-dark); }
.btn-mustard { --b: var(--mustard); --bd: var(--mustard-dark); --bt: var(--ink); }
.btn-ink { --b: var(--ink); --bd: #1f141a; }
.btn-paper { --b: var(--paper); --bd: var(--kraft-dark); --bt: var(--ink); border: 2px solid var(--kraft-dark); }
.btn-danger { --b: #fff; --bd: #e6b9ae; --bt: var(--terra-dark); border: 2px solid #e6b9ae; }
.btn-accent { --b: var(--accent); --bd: var(--accent-dark); }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .9rem; border-radius: 11px; box-shadow: 0 3px 0 var(--bd); }
.btn-lg { min-height: 58px; padding: .8em 1.7em; font-size: 1.12rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--terra-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Kop ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background:
    linear-gradient(var(--kraft), var(--kraft)) left 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--kraft-dark) 0 10px, transparent 10px 18px) left 4px / 100% 2px no-repeat;
}
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; padding-bottom: 6px; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font: 800 1.55rem/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo img { width: 40px; height: 40px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-24deg) scale(1.06); }
.logo .thread { color: var(--terra); font-family: var(--font-hand); font-size: 1.9rem; margin: 0 -.02em; position: relative; top: .04em; }
.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav a, .nav .linkbtn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .8rem; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.nav a:hover, .nav .linkbtn:hover { background: var(--paper); }
.nav a.active { background: var(--paper); box-shadow: inset 0 0 0 2px var(--kraft); }
.nav .btn { color: #fff; margin-left: .3rem; }
.nav .btn:hover { background: var(--b); }
.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 800;
}
.cart-link { position: relative; }
.cart-link .count { position: absolute; top: -2px; right: -4px; border: 2px solid var(--cream); }
.cart-link .count:empty { display: none; }
.cart-link.bump .count { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-toggle { display: none; }
.header-tools { display: flex; align-items: center; gap: .25rem; }

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 2px solid var(--kraft); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer;
  }
  .header-tools { margin-left: auto; }
  .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 4px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .8rem; border-radius: var(--r);
    background: var(--paper); border: 2px dashed var(--kraft-dark); box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.open { display: flex; animation: drop-in .25s ease; }
  .nav a, .nav .linkbtn { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav .btn { margin: .4rem 0 0; }
  .nav .nav-cart { display: none; }
  .logo { font-size: 1.35rem; }
  .logo img { width: 34px; height: 34px; }
}
@media (min-width: 881px) { .header-tools .cart-link { display: none; } }

/* ---------- Meldingen ---------- */
.flashes { display: grid; gap: .6rem; margin: 1.1rem auto 0; }
.flash {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .85rem 1.1rem; border-radius: 4px 14px 6px 12px;
  background: #FFF1C9; color: var(--ink); font-weight: 700;
  box-shadow: 0 10px 18px -14px rgba(59, 42, 51, .6);
  transform: rotate(-.4deg);
  animation: drop-in .35s cubic-bezier(.3, 1.5, .5, 1);
}
.flash.ok { background: #E1EED9; }
.flash.error { background: #FBDCD3; }
.flash.info { background: #DFE8F2; }
.flash .ic { width: 22px; height: 22px; }
.flash a { font-weight: 800; }
.flash code { background: rgba(255, 255, 255, .7); padding: .1em .4em; border-radius: 6px; font-size: .85em; word-break: break-all; }
.errors { background: #FBDCD3; border-radius: var(--r-sm); padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.errors strong { display: flex; gap: .4rem; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(1.5rem, 4vw, 3.5rem) 0 2.5rem; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); line-height: 1.02; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--terra); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.hero .note {
  display: inline-block; font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.1;
  color: var(--sage-dark); transform: rotate(-3deg); margin: .2rem 0 1.4rem;
}
.hero .note::before { content: ""; display: inline-block; width: 40px; height: 22px; margin-right: .3rem; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 22'%3E%3Cpath d='M2 4c10 14 22 16 34 10m0 0-7-1m7 1-3 6' fill='none' stroke='%235F7F55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(59, 42, 51, .12)); animation: sway 7s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
.hero-stats { display: flex; gap: 1.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-stats div { font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink-soft); line-height: 1; }
.hero-stats b { display: block; font: 800 1.9rem/1 var(--font-display); color: var(--ink); margin-bottom: .2rem; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* Vlaggetjeslijn als scheiding */
.bunting {
  height: 34px; margin: 0 0 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='34' viewBox='0 0 200 34'%3E%3Cpath d='M0 3Q100 16 200 3' fill='none' stroke='%233B2A33' stroke-width='1.6'/%3E%3Cg stroke='%233B2A33' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M14 5.5h20l-10 20z' fill='%23E7B04B'/%3E%3Cpath d='M54 8.6h20l-10 20z' fill='%23F2B5A7'/%3E%3Cpath d='M94 9.5h20l-10 20z' fill='%238AA67E'/%3E%3Cpath d='M134 8.6h20l-10 20z' fill='%236C8EAD'/%3E%3Cpath d='M172 5.6h20l-10 20z' fill='%23D9694A'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 200px 34px;
}

/* ---------- Secties ---------- */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .hand { font-size: 1.35rem; color: var(--ink-soft); }
.kraft-band {
  position: relative; background-color: var(--kraft); background-image: var(--grain);
  margin: 2rem 0; padding: 3rem 0;
}
.kraft-band::before, .kraft-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V6l6 3 8-5 7 4 9-6 6 5 8-3 7 5 9-6 8 4 6-3 9 5 7-4 8 3 7-5 5 4 10-3v15z' fill='%23E8D3B0'/%3E%3C/svg%3E") repeat-x left bottom / 120px 14px;
}
.kraft-band::before { top: -13px; }
.kraft-band::after { bottom: -13px; transform: scaleY(-1); }

/* ---------- Categorie-chips ---------- */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  border: 2px dashed var(--kraft-dark);
  transition: transform .15s ease, background .15s, border-color .15s;
}
.chip:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--terra); }
.chip.active { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.chip .n { font-size: .78rem; color: var(--ink-faint); font-weight: 800; }
.chip.active .n { color: var(--kraft); }
.chip .ic { color: var(--terra); }
.chip.active .ic { color: var(--mustard); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 1rem; }
.cat-tile {
  position: relative; display: grid; justify-items: center; gap: .5rem; text-align: center;
  padding: 1.3rem .8rem 1.1rem; border-radius: var(--r);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 800;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s;
}
.cat-tile::before { content: ""; position: absolute; inset: 6px; border: 2px dashed var(--kraft); border-radius: 13px; pointer-events: none; }
.cat-tile:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: var(--shadow-lift); }
.cat-tile .bubble { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); }
.cat-tile .bubble .ic { width: 32px; height: 32px; }
.cat-tile small { font-weight: 700; color: var(--ink-faint); }
.cat-tile:nth-child(6n+2) { --accent-soft: #F8E7C2; --accent-dark: var(--mustard-dark); }
.cat-tile:nth-child(6n+3) { --accent-soft: #DCE7D5; --accent-dark: var(--sage-dark); }
.cat-tile:nth-child(6n+4) { --accent-soft: #D9E3EE; --accent-dark: var(--denim-dark); }
.cat-tile:nth-child(6n+5) { --accent-soft: #FBE3DC; --accent-dark: var(--rose-dark); }
.cat-tile:nth-child(6n+6) { --accent-soft: #E9D9E3; --accent-dark: var(--plum); }

/* ---------- Productkaarten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: clamp(1rem, 2.5vw, 2rem) clamp(.9rem, 2vw, 1.6rem); padding-top: 10px; }
.pcard {
  --tilt: -1deg; --tape: rgba(231, 176, 75, .78);
  position: relative; display: flex; flex-direction: column;
  padding: 10px 10px 14px; border-radius: 5px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
  animation: card-in .55s cubic-bezier(.3, 1.3, .5, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.pcard:nth-child(4n+2) { --tilt: .9deg; --tape: rgba(242, 181, 167, .82); }
.pcard:nth-child(4n+3) { --tilt: -.4deg; --tape: rgba(138, 166, 126, .75); }
.pcard:nth-child(4n+4) { --tilt: 1.3deg; --tape: rgba(108, 142, 173, .7); }
.pcard:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lift); }
@keyframes card-in { from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--tilt) * 4)); } }
.tape {
  position: absolute; z-index: 2; top: -11px; left: 50%; width: 86px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(-45deg, var(--tape) 0 7px, color-mix(in srgb, var(--tape) 70%, #fff) 7px 14px);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%);
  box-shadow: 0 1px 2px rgba(59, 42, 51, .12);
}
.pcard:nth-child(odd) .tape { transform: translateX(-50%) rotate(2.5deg); }
.pcard .ph { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--kraft); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .ph.empty { display: grid; place-items: center; color: var(--kraft-dark); }
.pcard .ph.empty .ic { width: 48px; height: 48px; }
.pcard h3 { font-size: 1.08rem; margin: .7rem .2rem .05rem; overflow-wrap: anywhere; }
.pcard .by { font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.1; color: var(--ink-soft); margin: 0 .2rem; }
.pcard .bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .55rem; }

/* Hanglabel met prijs */
.tag {
  position: relative; display: inline-flex; align-items: center;
  padding: .3rem .75rem .3rem 1.25rem; margin-left: .4rem;
  background: var(--kraft); color: var(--ink);
  font: 800 1rem/1.2 var(--font-display); font-variation-settings: "SOFT" 100;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  border-radius: 0 6px 6px 0;
  white-space: nowrap;
}
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--kraft-dark); }
.tag-wrap { position: relative; display: inline-flex; align-items: center; }
.tag-wrap::before { /* touwtje */
  content: ""; width: 20px; height: 14px; margin-right: -8px; position: relative; z-index: 1;
  border: 2px solid var(--terra); border-color: transparent transparent var(--terra) var(--terra);
  border-radius: 0 0 0 14px; transform: translateY(-6px) rotate(-8deg);
}
.tag.big { font-size: 1.7rem; padding: .45rem 1.1rem .45rem 1.7rem; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); }
.tag.big::before { left: 12px; width: 10px; height: 10px; margin-top: -5px; }
.stock-low { font-size: .82rem; font-weight: 800; color: var(--sage-dark); white-space: nowrap; }

/* Stempel "uitverkocht" */
.stamp {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  padding: .3rem .9rem; border: 3px solid var(--terra-dark); border-radius: 8px;
  color: var(--terra-dark); background: rgba(255, 251, 242, .82);
  font: 900 1.05rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.pcard.soldout .ph img { filter: grayscale(.5) opacity(.75); }

/* ---------- Lege staten ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; max-width: 480px; margin: 0 auto; }
.empty img { width: min(260px, 70%); margin: 0 auto 1rem; }
.empty h3 { font-size: 1.4rem; }
.empty .hand { font-size: 1.5rem; color: var(--ink-soft); display: block; margin-bottom: 1rem; }

/* ---------- Makers ---------- */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.4rem; }
.maker-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1.2rem 1.3rem; border-radius: var(--r); overflow: hidden;
  background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s;
}
.maker-card:hover { transform: translateY(-5px) rotate(.6deg); box-shadow: var(--shadow-lift); }
.maker-card .band { align-self: stretch; height: 74px; margin: 0 -1.2rem; background-color: var(--accent);
  background-image: radial-gradient(rgba(255, 255, 255, .35) 2.4px, transparent 2.6px); background-size: 16px 16px; }
.maker-card .avatar { margin-top: -42px; }
.maker-card h3 { margin: .6rem 0 .1rem; font-size: 1.3rem; }
.maker-card .loc { font-size: .88rem; color: var(--ink-faint); font-weight: 700; display: inline-flex; gap: .25rem; align-items: center; }
.maker-card p { color: var(--ink-soft); font-size: .95rem; margin: .5rem 0 .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.maker-card .meta { margin-top: auto; font-family: var(--font-hand); font-size: 1.25rem; color: var(--accent-dark); }

.avatar {
  --size: 84px;
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font: 800 calc(var(--size) * .42)/1 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 16px -10px rgba(59, 42, 51, .6);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { --size: 40px; border-width: 2px; box-shadow: 0 0 0 2px var(--accent); }
.avatar.xs { --size: 30px; border-width: 2px; box-shadow: 0 0 0 1.5px var(--accent); }
.avatar.xl { --size: 132px; border-width: 6px; }

/* ---------- Crea-pagina ---------- */
.crea-banner {
  position: relative; height: clamp(150px, 22vw, 230px);
  background-color: var(--accent);
  background-image:
    radial-gradient(rgba(255, 255, 255, .28) 3px, transparent 3.4px),
    radial-gradient(rgba(255, 255, 255, .18) 3px, transparent 3.4px);
  background-size: 26px 26px; background-position: 0 0, 13px 13px;
}
.crea-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 12px, transparent 12px 22px);
}
.crea-head { display: flex; gap: 1.5rem; align-items: flex-end; margin-top: -66px; position: relative; flex-wrap: wrap; }
.crea-head h1 { margin: 0 0 .1em; }
.crea-head .info { padding-bottom: .4rem; flex: 1; min-width: 220px; }
.crea-head .facts { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.crea-head .facts span { display: inline-flex; gap: .3rem; align-items: center; }
.crea-cols { display: grid; grid-template-columns: 320px 1fr; gap: 2.2rem; margin-top: 2rem; align-items: start; }
.crea-side { display: grid; gap: 1.2rem; position: sticky; top: 92px; }
@media (max-width: 900px) { .crea-cols { grid-template-columns: 1fr; } .crea-side { position: static; } }
.preview-bar { background: var(--ink); color: var(--paper); text-align: center; padding: .6rem 1rem; font-weight: 700; }
.preview-bar a { color: var(--mustard); }

/* Briefje op gelinieerd papier */
.note-card {
  position: relative; padding: 15px 1.3rem 15px 46px; border-radius: 4px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 29px, rgba(108, 142, 173, .28) 29px 30px);
  background-position: 0 15px;
  box-shadow: var(--shadow);
  line-height: 30px;
}
.note-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: rgba(217, 105, 74, .35); }
.note-card h3 { line-height: 30px; margin: 0; font-size: 1.2rem; }
.note-card p { margin: 0; white-space: pre-line; }
.envelope {
  padding: 1.2rem 1.3rem; border-radius: var(--r-sm);
  background-color: var(--kraft); background-image: var(--grain);
  border: 2px dashed var(--kraft-dark);
}
.envelope h3 { display: flex; gap: .45rem; align-items: center; font-size: 1.1rem; }
.envelope p { margin: 0 0 .6em; white-space: pre-line; }
.envelope ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.envelope li { display: flex; gap: .5rem; align-items: flex-start; font-weight: 700; }
.envelope li .ic { margin-top: .2em; color: var(--terra-dark); }

/* ---------- Productpagina ---------- */
.breadcrumb { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .92rem; font-weight: 700; color: var(--ink-faint); margin: 1.4rem 0 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--terra-dark); }
.breadcrumb .ic { width: 14px; height: 14px; }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery { position: relative; }
.gallery .main {
  position: relative; padding: 14px; background: var(--paper); border-radius: 6px;
  box-shadow: var(--shadow-lift); transform: rotate(-.8deg);
}
.gallery .main::before, .gallery .main::after {
  content: ""; position: absolute; z-index: 2; width: 92px; height: 26px;
  background: repeating-linear-gradient(-45deg, rgba(231, 176, 75, .8) 0 7px, rgba(240, 205, 140, .8) 7px 14px);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%);
}
.gallery .main::before { top: 2px; left: -24px; transform: rotate(-40deg); }
.gallery .main::after { bottom: 4px; right: -22px; transform: rotate(-38deg); background: repeating-linear-gradient(-45deg, rgba(242, 181, 167, .85) 0 7px, rgba(250, 214, 205, .85) 7px 14px); }
.gallery .main img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--kraft); }
.thumbs { display: flex; gap: .7rem; margin-top: 1.3rem; flex-wrap: wrap; }
.thumbs button { padding: 4px; border: 2px dashed transparent; border-radius: 10px; background: var(--paper); cursor: pointer; box-shadow: var(--shadow); }
.thumbs button[aria-current="true"] { border-color: var(--terra); }
.thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; }
.p-info h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: .3em; overflow-wrap: anywhere; }
.made-by { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; margin-bottom: 1.2rem; }
.made-by .hand { font-size: 1.3rem; color: var(--ink-soft); font-weight: 600; }
.made-by:hover b { color: var(--terra-dark); }
.buy-box { display: grid; gap: 1rem; padding: 1.3rem; margin: 1.2rem 0; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.buy-row { display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--kraft); border-radius: 14px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--cream); }
.qty input { width: 46px; text-align: center; border: 0; font: 800 1.05rem var(--font-body); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.desc { white-space: pre-line; font-size: 1.05rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: .85rem; text-decoration: none; margin-bottom: .8rem; }

/* ---------- Formulieren ---------- */
.form-card { padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.auth-wrap { width: min(520px, 100% - 32px); margin: 2.5rem auto 3.5rem; }
.auth-wrap .form-card { position: relative; }
.auth-wrap .form-card::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg);
  background: repeating-linear-gradient(-45deg, rgba(138, 166, 126, .8) 0 7px, rgba(190, 210, 180, .8) 7px 14px);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%);
}
.auth-wrap h1 { font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem); text-align: center; }
.auth-wrap .intro { text-align: center; color: var(--ink-soft); margin-bottom: 1.5rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field > label, .label { font-weight: 800; font-size: .98rem; }
.field .hint { font-size: .86rem; color: var(--ink-faint); font-weight: 600; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem;
  border: 2px solid var(--kraft); border-radius: 14px;
  background: #fff; color: var(--ink);
  font: 600 1rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; line-height: 28px; padding-top: .55rem;
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(108, 142, 173, .18) 27px 28px); background-attachment: local; background-position: 0 9px; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233B2A33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(217, 105, 74, .16); }
input::placeholder, textarea::placeholder { color: #B8A9AE; font-weight: 600; }
.money-input { position: relative; }
.money-input span { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-soft); }
.money-input input { padding-left: 2.1rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 700; cursor: pointer; line-height: 1.4; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--kraft-dark); border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ""; width: 14px; height: 8px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s cubic-bezier(.3, 1.8, .5, 1); }
.check input:checked { background: var(--sage); border-color: var(--sage-dark); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.form-foot { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 1.3rem; }

/* Keuzekaartjes (bezorging, thema) */
.options { display: grid; gap: .6rem; }
.opt { position: relative; display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 2px solid var(--kraft); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 700; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--kraft-dark); display: grid; place-items: center; }
.opt input:checked ~ .dot { border-color: var(--terra); }
.opt input:checked ~ .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.opt:has(input:checked) { border-color: var(--terra); background: #FFF6F1; }
.opt:has(input:focus-visible) { outline: 3px dashed var(--terra); outline-offset: 2px; }
.opt .price { margin-left: auto; font-weight: 800; color: var(--ink-soft); }
.opt .ic { color: var(--terra-dark); }
.swatches { display: flex; gap: .7rem; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--kraft); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.08); }
.swatch input:checked + span::after { content: ""; width: 16px; height: 9px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -2px); }
.swatch input:focus-visible + span { outline: 3px dashed var(--terra); outline-offset: 3px; }
.swatch small { display: block; text-align: center; font-size: .78rem; font-weight: 800; margin-top: .25rem; color: var(--ink-soft); }

/* Foto-uploader */
.uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem; }
.up-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--kraft); box-shadow: var(--shadow); cursor: grab; }
.up-tile.dragging { opacity: .4; }
.up-tile.over { outline: 3px dashed var(--terra); outline-offset: 2px; }
.up-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.up-tile .cover-badge { position: absolute; left: 6px; top: 6px; padding: .1rem .5rem; border-radius: 99px; background: var(--mustard); color: var(--ink); font-size: .72rem; font-weight: 900; }
.up-tile .tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 5px; background: linear-gradient(transparent, rgba(59, 42, 51, .55)); }
.up-tile .tools button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: rgba(255, 251, 242, .92); color: var(--ink); cursor: pointer; }
.up-tile .tools button:hover { background: #fff; }
.up-tile .tools .rm { color: var(--terra-dark); }
.up-tile .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 251, 242, .7); font-weight: 800; font-size: .85rem; }
.up-add {
  aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: .3rem; text-align: center;
  border: 2.5px dashed var(--kraft-dark); border-radius: 12px; background: var(--paper);
  color: var(--ink-soft); font-weight: 800; font-size: .9rem; cursor: pointer; padding: .5rem;
  transition: border-color .15s, background .15s;
}
.up-add:hover, .up-add.drop { border-color: var(--terra); background: #FFF6F1; color: var(--terra-dark); }
.up-add .ic { width: 30px; height: 30px; }
.up-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-edit { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

/* ---------- Winkel (filters) ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 92px; display: grid; gap: 1.2rem; padding: 1.3rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.filters h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.filters .cats { display: grid; gap: .15rem; }
.filters .cats a { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.filters .cats a:hover { background: var(--cream); }
.filters .cats a.active { background: var(--ink); color: var(--paper); }
.filters .cats a .n { margin-left: auto; font-size: .8rem; color: var(--ink-faint); }
.filters .cats a.active .n { color: var(--kraft); }
.filters .cats .ic { color: var(--terra); }
.filters .price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: center; }
@media (max-width: 900px) {
  .filters { position: static; }
  .filters details:not([open]) > :not(summary) { display: none; }
}
.filters summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; gap: .4rem; }
.filters summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .filters summary { display: none; } }
@media (max-width: 900px) { .filters details[open] summary { margin-bottom: 1rem; } .filters summary .ic.toggle { margin-left: auto; transition: transform .2s; } .filters details[open] summary .ic.toggle { transform: rotate(90deg); } }
.search-bar { display: flex; gap: .6rem; margin-bottom: 1.3rem; }
.search-bar .input-ic { position: relative; flex: 1; }
.search-bar .input-ic .ic { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.search-bar .input-ic input { padding-left: 2.6rem; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin: 0; }
.results-head select { width: auto; min-height: 44px; }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 800; box-shadow: var(--shadow); }
.pager span.cur { background: var(--ink); color: var(--paper); }

/* ---------- Mandje ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; margin-top: 1.5rem; margin-bottom: 3.5rem; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.bag { position: relative; padding: 1.3rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.bag-head { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 2px dashed var(--kraft); }
.bag-head h2 { font-size: 1.25rem; margin: 0; }
.bag-head a { text-decoration: none; color: var(--ink); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; align-items: center; padding: .7rem 0; }
.line + .line { border-top: 1px dashed var(--kraft); }
.line img, .line .noimg { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--kraft); }
.line h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.line h3 a { color: var(--ink); text-decoration: none; }
.line .unit { font-size: .88rem; color: var(--ink-faint); font-weight: 700; }
.line .right { display: grid; justify-items: end; gap: .35rem; }
.line .right b { font-size: 1.05rem; }
.line form { display: inline-flex; }
.line select { min-height: 40px; width: auto; padding: .3rem 2.1rem .3rem .7rem; background-position: right .5rem center; border-radius: 10px; }
@media (max-width: 520px) {
  .line { grid-template-columns: 60px 1fr; }
  .line img, .line .noimg { width: 60px; height: 60px; }
  .line .right { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; }
  .line .right b { justify-self: end; grid-column: 3; grid-row: 1; }
}
.bag .delivery { margin-top: .9rem; }
.bag .sub { display: flex; justify-content: space-between; margin-top: 1rem; font-weight: 800; }

/* Kassabon */
.receipt {
  position: sticky; top: 92px;
  padding: 1.6rem 1.4rem 2.2rem; background: #fff;
  box-shadow: var(--shadow-lift);
  --zz: 10px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) var(--zz) repeat-x,
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz) + 1px) no-repeat;
}
@media (max-width: 960px) { .receipt { position: static; } }
.receipt h2 { font-size: 1.5rem; text-align: center; }
.receipt .sum { display: grid; gap: .35rem; padding: .9rem 0; margin: .5rem 0 1.2rem; border-top: 2px dashed var(--kraft-dark); border-bottom: 2px dashed var(--kraft-dark); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92rem; }
.receipt .sum div { display: flex; justify-content: space-between; gap: 1rem; }
.receipt .sum .total { font-size: 1.15rem; font-weight: 800; margin-top: .3rem; }
.receipt .pay-note { font-size: .86rem; color: var(--ink-soft); background: var(--cream); padding: .7rem .8rem; border-radius: 10px; margin-top: 1rem; }

/* ---------- Bestelstatus ---------- */
.order-hero { text-align: center; padding: 2rem 0 1rem; }
.order-hero .code { display: inline-block; font: 800 1.1rem ui-monospace, Consolas, monospace; letter-spacing: .1em; padding: .4rem 1rem; border: 3px solid var(--terra-dark); color: var(--terra-dark); border-radius: 8px; transform: rotate(-3deg); margin-bottom: 1rem; background: var(--paper); }
.save-link { display: flex; gap: .5rem; align-items: center; max-width: 640px; margin: 1rem auto 0; padding: .7rem .9rem; background: var(--paper); border: 2px dashed var(--mustard); border-radius: 14px; }
.save-link code { flex: 1; font-size: .82rem; overflow-wrap: anywhere; text-align: left; }
.progress { display: flex; justify-content: space-between; position: relative; margin: 1.3rem 0 1.4rem; }
.progress::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 0; border-top: 3px dashed var(--kraft-dark); }
.progress li { position: relative; z-index: 1; list-style: none; display: grid; justify-items: center; gap: .3rem; font-size: .78rem; font-weight: 800; color: var(--ink-faint); text-align: center; flex: 1; }
.progress li .pt { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 3px solid var(--kraft-dark); display: grid; place-items: center; }
.progress li.done { color: var(--sage-dark); }
.progress li.done .pt { background: var(--sage); border-color: var(--sage-dark); color: #fff; }
.progress li.now .pt { background: var(--mustard); border-color: var(--mustard-dark); animation: pulse 1.8s infinite; }
.progress li.now { color: var(--ink); }
.progress li .pt .ic { width: 15px; height: 15px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231, 176, 75, .5); } 50% { box-shadow: 0 0 0 8px rgba(231, 176, 75, 0); } }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 900; background: var(--cream); color: var(--ink-soft); white-space: nowrap; }
.pill.s-nieuw { background: #FFE9B8; color: #7A5410; }
.pill.s-bevestigd { background: #D9E3EE; color: var(--denim-dark); }
.pill.s-betaald { background: #DCE7D5; color: var(--sage-dark); }
.pill.s-verzonden, .pill.s-opgehaald { background: #E9D9E3; color: var(--plum-dark); }
.pill.s-afgerond { background: var(--sage); color: #fff; }
.pill.s-geannuleerd { background: #F3E1DC; color: var(--terra-dark); text-decoration: line-through; }
.pill.st-pending { background: #FFE9B8; color: #7A5410; }
.pill.st-approved { background: #DCE7D5; color: var(--sage-dark); }
.pill.st-rejected, .pill.st-blocked { background: #F3E1DC; color: var(--terra-dark); }
.pill.st-active { background: #DCE7D5; color: var(--sage-dark); }
.pill.st-hidden { background: var(--cream); color: var(--ink-soft); }
.pill.mail-bewaard { background: #FFE9B8; color: #7A5410; }
.pill.mail-verstuurd { background: #DCE7D5; color: var(--sage-dark); }
.pill.mail-mislukt { background: #F3E1DC; color: var(--terra-dark); }

/* ---------- Werkplaats (dashboard) ---------- */
.workshop-head { padding: 2rem 0 0; }
.workshop-head .hello { font-family: var(--font-hand); font-size: 1.7rem; color: var(--terra-dark); line-height: 1; display: block; transform: rotate(-2deg); margin-bottom: .55rem; }
.workshop-head h1 { margin-bottom: .2em; }
.tabs { display: flex; gap: .3rem; margin-top: 1.4rem; overflow-x: auto; padding: 6px 4px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .75rem 1.15rem .7rem; border-radius: 14px 14px 0 0;
  background: var(--kraft); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .96rem;
  transform: translateY(3px);
}
.tabs a:hover { background: var(--kraft-2); }
.tabs a.active { background: var(--paper); transform: none; box-shadow: 0 -4px 10px -6px rgba(59, 42, 51, .25); }
.tabs a .count { font-size: .7rem; min-width: 20px; height: 20px; }
.panel { background: var(--paper); border-radius: 0 var(--r) var(--r) var(--r); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); margin-bottom: 3rem; }
.status-banner { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--r-sm); background: #FFF1C9; margin-bottom: 1.5rem; border: 2px dashed var(--mustard); }
.status-banner .ic { width: 34px; height: 34px; color: var(--mustard-dark); }
.status-banner p { margin: .15rem 0 0; }
.postits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.postit { padding: 1rem 1.1rem 1.2rem; background: #FFE9A6; box-shadow: 0 12px 16px -12px rgba(59, 42, 51, .5); transform: rotate(-1.5deg); border-radius: 2px 2px 14px 2px; }
.postit:nth-child(2) { background: #FBD3C7; transform: rotate(1.2deg); }
.postit:nth-child(3) { background: #D6E6CC; transform: rotate(-.6deg); }
.postit:nth-child(4) { background: #D2E0EE; transform: rotate(1.6deg); }
.postit b { display: block; font: 800 2rem/1.1 var(--font-display); }
.postit span { font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.1; }
.todo { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .4rem; }
.todo li a { display: flex; align-items: center; gap: .7rem; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.todo .box { flex: none; width: 24px; height: 24px; border: 2.5px solid var(--ink-soft); border-radius: 5px; display: grid; place-items: center; transform: rotate(-3deg); }
.todo li.done a { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--terra); }
.todo li.done .box { border-color: var(--sage-dark); color: var(--sage-dark); }
.list { display: grid; gap: .7rem; }
.item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center;
  padding: .7rem; border-radius: 14px; background: #fff; border: 2px solid var(--cream);
}
.item img, .item .noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--kraft); display: grid; place-items: center; color: var(--kraft-dark); }
.item h3 { font-size: 1.02rem; margin: 0 0 .15rem; overflow-wrap: anywhere; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item .meta { display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--ink-soft); font-weight: 700; }
.item .actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.item .actions form { display: inline; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; border: 2px solid var(--kraft); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--terra); color: var(--terra-dark); }
.icon-btn.danger:hover { background: #FBDCD3; }
@media (max-width: 600px) {
  .item { grid-template-columns: 56px 1fr; }
  .item img, .item .noimg { width: 56px; height: 56px; }
  .item .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); padding: .5rem .6rem; border-bottom: 2px dashed var(--kraft); }
.tbl td { padding: .7rem .6rem; border-bottom: 1px dashed var(--kraft); vertical-align: middle; }
.tbl tr:hover td { background: rgba(232, 211, 176, .18); }
.tbl a { font-weight: 800; }
.app-card { padding: 1.2rem; border-radius: var(--r-sm); background: #fff; border: 2px dashed var(--kraft-dark); display: grid; gap: .7rem; }
.app-card blockquote { margin: 0; padding: .7rem .9rem; background: var(--cream); border-radius: 10px; white-space: pre-line; font-size: .97rem; }
.app-card .reject { display: flex; gap: .5rem; flex-wrap: wrap; }
.app-card .reject input { flex: 1; min-width: 180px; min-height: 44px; }
.mail-body { white-space: pre-wrap; background: #fff; border: 2px dashed var(--kraft); border-radius: 12px; padding: 1rem 1.2rem; font: 500 .95rem/1.55 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.copy-row { display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: var(--cream); margin-bottom: .5rem; }
.copy-row code { flex: 1; overflow-wrap: anywhere; font-size: .85rem; }
.order-detail { display: grid; grid-template-columns: 1fr 340px; gap: 1.6rem; align-items: start; }
@media (max-width: 860px) { .order-detail { grid-template-columns: 1fr; } }

/* ---------- Info-pagina ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 2.5rem; }
.step { position: relative; padding: 2.4rem 1.3rem 1.3rem; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 1.2rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 1.4rem var(--font-display); background: var(--mustard); color: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--mustard-dark); }
.step:nth-child(2)::before { background: var(--rose); box-shadow: 0 0 0 2px var(--rose-dark); }
.step:nth-child(3)::before { background: var(--sage); box-shadow: 0 0 0 2px var(--sage-dark); }
.step:nth-child(4)::before { background: var(--denim); color: #fff; box-shadow: 0 0 0 2px var(--denim-dark); }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); }
.faq details { padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.faq details p { margin: .7rem 0 0; color: var(--ink-soft); }

/* ---------- Oproep makers ---------- */
.cta {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 26px;
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(251, 244, 230, .3); border-radius: 18px; pointer-events: none; }
.cta h2 { color: var(--paper); margin: 0 0 .3rem; }
.cta p { margin: 0; color: #D9C9CF; }
.cta .big-ic { width: 84px; height: 84px; color: var(--mustard); animation: spin-slow 16s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta .big-ic { margin: 0 auto; } }

/* ---------- Voet ---------- */
.site-footer {
  position: relative; margin-top: 3rem; padding: 3rem 0 2rem;
  background-color: var(--kraft); background-image: var(--grain); color: var(--ink);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V6l6 3 8-5 7 4 9-6 6 5 8-3 7 5 9-6 8 4 6-3 9 5 7-4 8 3 7-5 5 4 10-3v15z' fill='%23E8D3B0'/%3E%3C/svg%3E") repeat-x left bottom / 120px 14px;
}
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--terra-dark); }
.site-footer .made { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; color: var(--ink-soft); margin-top: .6rem; }
.site-footer .bottom { margin-top: 2rem; padding-top: 1rem; border-top: 2px dashed var(--kraft-dark); font-size: .86rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
  display: flex; gap: .8rem; align-items: center;
  max-width: calc(100% - 32px); padding: .85rem 1rem .85rem 1.2rem; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: var(--shadow-lift);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .35s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.toast a { color: var(--mustard); font-weight: 800; white-space: nowrap; }
.toast.error { background: var(--terra-dark); }

/* ---------- Foutpagina ---------- */
.error-page { text-align: center; padding: 3rem 0 4rem; }
.error-page .big { font: 900 clamp(5rem, 14vw, 9rem)/1 var(--font-display); color: var(--kraft-dark); font-variation-settings: "SOFT" 100, "WONK" 1; transform: rotate(-4deg); display: inline-block; }

/* ---------- Animatie ---------- */
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }
.reveal { animation: rise .6s cubic-bezier(.3, 1.2, .5, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hulpklassen (geen inline stijlen i.v.m. CSP) ---------- */
.mt { margin-top: 1.2rem; }
.justify-center { justify-content: center; }
.hand-lg { font-size: 1.4rem; }
.cat-name { max-width: 240px; }
.cat-icon { max-width: 150px; }
.cat-pos { max-width: 90px; }
.pcard.d1 { animation-delay: 45ms; } .pcard.d2 { animation-delay: 90ms; } .pcard.d3 { animation-delay: 135ms; }
.pcard.d4 { animation-delay: 180ms; } .pcard.d5 { animation-delay: 225ms; } .pcard.d6 { animation-delay: 270ms; }
.pcard.d7 { animation-delay: 315ms; } .pcard.d8 { animation-delay: 360ms; } .pcard.d9 { animation-delay: 405ms; }
.pcard.d10 { animation-delay: 450ms; } .pcard.d11 { animation-delay: 495ms; }
.reveal.r1 { animation-delay: 90ms; } .reveal.r2 { animation-delay: 180ms; } .reveal.r3 { animation-delay: 270ms; } .reveal.r4 { animation-delay: 360ms; }
[hidden] { display: none !important; }
.nav-form { display: contents; }
.nav .linkbtn { text-decoration: none; }
@media (min-width: 881px) { .nav-logout-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Admin is ook maker ---------- */
.my-crea {
  display: grid; gap: 1rem; padding: 1.3rem 1.4rem; margin-bottom: 1.8rem; border-radius: var(--r);
  background: var(--accent-soft); border: 2px dashed var(--accent);
}
.my-crea-head { display: flex; gap: 1rem; align-items: center; }
.my-crea-head .avatar { --size: 72px; }
.my-crea h2 { margin: 0 0 .25rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.my-crea .hand { font-size: 1.35rem; color: var(--accent-dark); line-height: 1; display: block; transform: rotate(-2deg); margin-bottom: .3rem; }
.my-crea .meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.my-crea .meta span { display: inline-flex; gap: .3rem; align-items: center; }
.my-crea .todo { margin: 0; }
/* Tab die naar het andere gedeelte gaat (werkplaats <-> admin) */
.tabs a.tab-switch { background: var(--ink); color: var(--paper); margin-left: auto; }
.tabs a.tab-switch:hover { background: #4d3843; }
.tabs a.tab-switch .ic { color: var(--mustard); }
/* Werkplaats-knop in de kop: alleen op de telefoon (op de computer staat "Mijn crea" in het menu) */
.work-link { position: relative; color: var(--sage-dark); }
.work-link .count { position: absolute; top: -6px; right: -6px; border: 2px solid var(--cream); }
@media (min-width: 881px) { .header-tools .work-link { display: none; } }

/* ---------- Verzenden met PostNL ---------- */
.opt .opt-text { display: grid; gap: .1rem; line-height: 1.3; }
.opt .opt-text small { font-weight: 600; font-size: .8rem; color: var(--ink-faint); }
.opt .price { flex: none; }
.ship-note { display: flex; gap: .4rem; align-items: center; margin: .6rem 0 0; }
.size-options .opt { padding: .7rem 1rem; }
details.rates { margin: .2rem 0 1.1rem; padding: .8rem 1rem; border-radius: 14px; background: #fff; border: 2px dashed var(--kraft); }
details.rates summary { cursor: pointer; font-weight: 800; display: flex; gap: .4rem; align-items: center; }
details.rates .tbl { margin-top: .6rem; }
input[type=date] { width: auto; min-height: 44px; padding: .5rem .8rem; border: 2px solid var(--kraft); border-radius: 12px; background: #fff; color: var(--ink); font: 600 1rem var(--font-body); }
.rate-method { max-width: 260px; min-height: 44px; }
.rate-price { width: 130px; }
.rate-price input { min-height: 44px; }
@media (max-width: 520px) { .options .opt > .ic { display: none; } .opt .opt-text small { font-size: .76rem; } }
