:root {
  --red: #c8141b;
  --red-dark: #8f0d12;
  --cream: #fff6e3;
  --cream-2: #fdebc8;
  --gold: #c9a043;
  --gold-light: #ecd28e;
  --black: #1b1b1b;
  --ink: #2a2220;
  --green: #1f7a3d;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(80, 20, 10, .12);
  --serif: "Rockwell", "Roboto Slab", "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.7), transparent 60%),
    var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--serif); color: var(--red-dark); line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
a { color: var(--red); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top));
  background: var(--red);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.topbar__brand { text-decoration: none; }
.topbar__name {
  font-family: var(--serif); font-weight: 900; font-size: 1.5rem;
  color: var(--cream); letter-spacing: .5px;
  text-shadow: 0 2px 0 var(--red-dark), 0 0 1px var(--gold);
}
.topbar__nav { display: flex; align-items: center; gap: .5rem; }
.topbar__link {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .55rem .7rem; border-radius: 10px;
}
.topbar__link:hover, .topbar__link:focus-visible { background: rgba(255,255,255,.15); }
.cartlink {
  position: relative; color: var(--cream);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
}
.cartlink:hover { background: rgba(255,255,255,.15); }
.cartlink__count {
  position: absolute; top: 2px; right: 0;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold-light); color: var(--black);
  font-size: .8rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--red);
}
.cartlink__count[hidden] { display: none; }

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.view { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card {
  background: #fffdf8;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 4px #fffdf8, inset 0 0 0 5px var(--gold-light);
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 52px; padding: .8rem 1.4rem;
  font: 700 1.1rem/1.2 var(--sans);
  color: #fff; background: linear-gradient(#e0262d, var(--red));
  border: 2px solid var(--gold); border-radius: 999px;
  box-shadow: 0 4px 0 var(--red-dark), 0 8px 16px rgba(143,13,18,.25);
  text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.btn--big { min-height: 60px; font-size: 1.25rem; padding: 1rem 2rem; }
.btn--block { display: flex; width: 100%; }
.btn--dark { background: var(--black); box-shadow: 0 4px 0 #000; }
.btn:disabled {
  cursor: not-allowed; filter: grayscale(.85); opacity: .55;
  transform: none; box-shadow: 0 4px 0 #777;
}
.linkbtn {
  background: none; border: 0; padding: .3rem 0; margin-top: .1rem;
  color: var(--red); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer;
}

/* ---------- Home ---------- */
.hero { text-align: center; padding: .5rem 0 1rem; }
.hero__logo {
  width: 100%; max-width: 620px; margin: 0 auto 1rem;
  mix-blend-mode: multiply; /* wit logo-achtergrond smelt weg in het crème */
  animation: pop .7s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__lead {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--black);
  max-width: 24ch; margin: 0 auto 1.5rem;
}
.hero__small { margin-top: 1.2rem; font-size: .95rem; }
.fineprint { text-align: center; font-size: .8rem; opacity: .7; }

/* ---------- Product ---------- */
.product { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.product__media { position: relative; }
.product__media img {
  border-radius: var(--radius); border: 3px solid var(--gold); box-shadow: var(--shadow);
  aspect-ratio: 1; object-fit: cover; width: 100%;
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold-light); color: var(--black); font-weight: 800;
  padding: .35rem .8rem; border-radius: 999px; border: 2px solid var(--black);
  transform: rotate(-6deg); font-size: .95rem;
}
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .2rem; }
.product__info h1 { font-size: 2.4rem; margin-bottom: 0; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-bottom: .6rem; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 900; color: var(--black); margin-bottom: 1rem; }
.stock { color: var(--green); font-size: .95rem; margin: .8rem 0 0; font-weight: 600; }

.box-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.box-list li {
  display: flex; gap: .7rem; align-items: center;
  padding: .55rem .75rem; background: var(--cream); border-radius: 10px;
}
.box-list span { font-size: 1.3rem; width: 1.6rem; text-align: center; flex: none; }

.deeds { display: grid; gap: .8rem; margin-bottom: 1rem; }
.deed {
  background: #fff; border: 2px solid var(--black); border-radius: 8px; overflow: hidden; text-align: center;
}
.deed header {
  font-family: var(--serif); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; padding: .6rem; border-bottom: 2px solid var(--black);
}
.deed p { padding: .7rem .9rem; margin: 0; font-size: 1rem; }
.deed--patisserie header { background: #e46b9a; }
.deed--kunst header { background: #6a3fa0; }
.deed--economie header { background: var(--green); }
.message {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; text-align: center;
  background: var(--red); color: var(--cream); padding: 1rem; border-radius: 12px; margin: 0;
  border: 2px solid var(--gold);
}

.video-slot { margin: .5rem 0 1rem; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--black); border-radius: 12px; overflow: hidden; border: 3px solid var(--gold);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: grid; place-items: center; text-align: center; color: var(--cream);
  padding: 1rem; font-size: 1rem; height: 100%;
}

.stars { color: var(--gold); letter-spacing: 2px; }
.reviews { display: grid; gap: .8rem; }
.review {
  margin: 0; padding: 1rem; background: var(--cream); border-left: 5px solid var(--red); border-radius: 10px;
}
.review p { font-style: italic; margin-bottom: .5rem; }
.review footer { font-weight: 700; font-size: .95rem; }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 -1rem -2rem; padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom));
  background: rgba(255,246,227,.96); border-top: 3px solid var(--gold);
  backdrop-filter: blur(6px);
}
.sticky-cta .price { font-size: 1.5rem; margin: 0; }

/* ---------- Cart ---------- */
.line {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 0; border-bottom: 2px dashed var(--gold-light); margin-bottom: 1rem;
}
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--gold); }
.line__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; align-items: flex-start; }
.line__text span { font-size: .9rem; opacity: .75; }
.line__price { font-weight: 800; font-size: 1.1rem; }

label { display: block; font-weight: 700; margin-bottom: .35rem; }
input[type="text"] {
  width: 100%; min-height: 54px; padding: .7rem .9rem;
  font: 600 1.15rem var(--sans); color: var(--black);
  background: #fff; border: 2px solid var(--gold); border-radius: 12px;
}
input[type="text"]:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.coupon__row { display: flex; gap: .5rem; }
.coupon__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon__row .btn { flex: none; padding: .8rem 1rem; }
.coupon__msg { min-height: 1.5em; margin: .5rem 0 1rem; font-weight: 600; font-size: 1rem; }
.coupon__msg.is-error { color: var(--red); }
.coupon__msg.is-ok { color: var(--green); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.totals { margin: 0 0 1.2rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.totals dt { margin: 0; }
.totals dd { margin: 0; font-weight: 700; white-space: nowrap; }
.totals__discount { color: var(--green); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.totals__discount[hidden] { display: none; }
.totals__total {
  border-top: 3px double var(--gold); margin-top: .4rem; padding-top: .7rem !important;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 900; color: var(--black);
}
.hint { font-size: .9rem; text-align: center; margin: .8rem 0 0; opacity: .8; }
.empty { text-align: center; }

.summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.summary strong { font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Bevestiging ---------- */
.confirm { text-align: center; }
.ordernr { font-size: 1rem; }
.ordernr strong { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--cream); padding: .15rem .4rem; border-radius: 6px; }
.tracker { list-style: none; padding: 0; margin: 1rem 0 1.5rem; text-align: left; position: relative; }
.tracker li {
  position: relative; padding: .55rem 0 .55rem 3rem; min-height: 2.6rem;
  color: #a69a8a; font-weight: 600; transition: color .4s;
}
.tracker li::before {
  content: ""; position: absolute; left: .45rem; top: .45rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 3px solid #d8ccb8; background: #fff; transition: all .4s;
}
.tracker li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.2rem; top: 2.1rem; bottom: -.45rem; width: 3px; background: #e6dccb;
  transition: background .4s;
}
.tracker li.is-active { color: var(--black); }
.tracker li.is-active::before { border-color: var(--gold); background: var(--gold-light); animation: pulse 1s infinite; }
.tracker li.is-done { color: var(--black); }
.tracker li.is-done::before {
  content: "✓"; color: #fff; background: var(--green); border-color: var(--green);
  display: grid; place-items: center; font-weight: 900; font-size: .9rem; animation: none;
}
.tracker li.is-done::after { background: var(--green); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201,160,67,.25); } }

.reveal {
  background: var(--red); color: var(--cream);
  border: 3px solid var(--gold); border-radius: var(--radius);
  padding: 1.4rem 1rem; box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px var(--gold-light);
  animation: pop .7s cubic-bezier(.2,1.4,.4,1);
}
.reveal__label { font-size: 1.1rem; margin-bottom: .4rem; }
.reveal__where { font-family: var(--serif); font-size: 1.7rem; font-weight: 900; line-height: 1.25; color: #fff; }
.reveal__outro { font-style: italic; margin: 0; color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { text-align: center; font-size: .8rem; padding: 1.5rem 1rem 2rem; opacity: .7; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i {
  position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); opacity: .9; }
}

/* ---------- Groter scherm ---------- */
@media (min-width: 700px) {
  body { font-size: 19px; }
  main { padding-top: 2rem; }
  .card { padding: 2rem; }
  .product { grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
  .deeds { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
