:root {
  --cream: #f7f2ea;
  --ivory: #fbf8f3;
  --sand: #e9dfd0;
  --espresso: #2b211c;
  --cocoa: #5a4638;
  --muted: #8a7867;
  --gold: #b08d57;
  --gold-soft: #d8c39c;
  --serif: "Roboto Slab", Rockwell, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; color: var(--cocoa); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }

.snap { scroll-snap-align: start; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 141, 87, .18);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; }
.brand-sub { font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.header-nav > a { position: relative; }
.header-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.header-nav > a:hover::after { transform: scaleX(1); }
.cart-toggle { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--sand); border-radius: 50%; transition: border-color .3s; }
.cart-toggle:hover { border-color: var(--gold); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--espresso); color: var(--ivory);
  font-size: .64rem; letter-spacing: 0; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.cart-count.bump { transform: scale(1.35); }

/* ---------- Intro ---------- */
.intro {
  min-height: 88vh; min-height: 88svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 56px) 24px 110px;
  background:
    linear-gradient(180deg, rgba(30, 22, 17, .35) 0%, rgba(30, 22, 17, .55) 55%, rgba(30, 22, 17, .7) 100%),
    url("../assets/img/hero-feestdagen.webp") center 40% / cover no-repeat,
    var(--espresso);
  color: var(--ivory);
  position: relative;
}
.intro-text { max-width: 820px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.intro .eyebrow { margin-bottom: 28px; color: var(--gold-soft); }
.intro h1 em { color: var(--gold-soft); }
.intro .lead { max-width: 520px; margin: 32px auto 0; color: rgba(251, 248, 243, .9); font-size: 1.05rem; }
.intro-cta { margin-top: 40px; border: 1px solid rgba(251, 248, 243, .7); color: var(--ivory); text-shadow: none; }
.intro-cta:hover { background: var(--ivory); color: var(--espresso); }
.intro::after {
  content: ""; position: absolute; left: 50%; bottom: 36px; width: 1px; height: 56px;
  background: linear-gradient(var(--gold-soft), transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Collectie ---------- */
.collection { padding: 96px clamp(16px, 5vw, 72px) 140px; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); max-width: 1280px; margin: 0 auto; }
.card { display: block; text-align: center; }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-num { display: block; margin-top: 22px; font-family: var(--serif); color: var(--gold); }
.card h3 { font-size: 1.6rem; margin-top: 6px; }
.card-price { display: block; margin-top: 8px; font-size: .85rem; letter-spacing: .14em; color: var(--muted); }
.card-link { display: inline-block; margin-top: 14px; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px; transition: border-color .3s; }
.card:hover .card-link { border-color: var(--espresso); }

/* ---------- Productpagina ---------- */
.product {
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: grid; grid-template-columns: 1.1fr 1fr;
  scroll-snap-align: start;
  border-top: 1px solid rgba(176, 141, 87, .15);
}
.product:nth-of-type(even) { background: var(--cream); }
.product:nth-of-type(even) .product-media { order: 2; }
.product-media { position: relative; overflow: hidden; background: var(--sand); min-height: 60vh; }
.product h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.product.in-view .product-media img { transform: scale(1); }
.product-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 90px) clamp(32px, 6vw, 100px); max-width: 680px; }
.product-index { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--gold-soft); font-weight: 300; }
.product-info .eyebrow { margin-top: 18px; }
.product-info h2 { margin-top: 14px; }
.product-tagline { font-family: var(--serif); font-weight: 300; font-size: 1.15rem; color: var(--cocoa); margin-top: 14px; }
.divider { width: 56px; height: 1px; background: var(--gold); margin: 24px 0; }
.product-desc { color: var(--cocoa); font-size: 1rem; }
.product-details { list-style: none; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.product-details li::before { content: "·"; color: var(--gold); margin-right: 8px; }
.buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 32px; }
.product-price { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sand); height: 52px; }
.qty button { width: 42px; height: 100%; font-size: 1.1rem; color: var(--cocoa); transition: background .2s; }
.qty button:hover { background: var(--sand); }
.qty span { min-width: 30px; text-align: center; font-size: .95rem; }
.back-link { margin-top: 28px; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); align-self: flex-start; transition: color .3s; }
.back-link:hover { color: var(--espresso); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 34px;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
  transition: background .35s var(--ease), color .35s var(--ease), transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--espresso); color: var(--ivory); }
.btn-dark:hover { background: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Dot-navigatie ---------- */
.dot-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.dot-nav.visible { opacity: 1; pointer-events: auto; }
.dot-nav a { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); transition: background .3s, transform .3s; position: relative; }
.dot-nav a.active { background: var(--gold); transform: scale(1.3); }
.dot-nav a span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .68rem; letter-spacing: .12em; background: var(--ivory); padding: 4px 10px; border: 1px solid var(--sand); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dot-nav a:hover span { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 80px 24px; background: var(--espresso); color: var(--cream); scroll-snap-align: end; }
.site-footer .brand-mark { font-size: 2rem; }
.footer-small { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.site-footer .footer-small { color: var(--gold-soft); }

/* ---------- Winkelwagen ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(43, 33, 28, .35); opacity: 0; transition: opacity .4s; }
.drawer-backdrop.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%); background: var(--ivory);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .5s var(--ease); box-shadow: -20px 0 60px rgba(43, 33, 28, .12); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--sand); }
.drawer-head h3 { font-size: 1.8rem; }
.drawer-close { font-size: 2rem; line-height: 1; color: var(--muted); }
.drawer-items { list-style: none; flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--sand); }
.drawer-item img { width: 72px; height: 88px; object-fit: cover; }
.drawer-item h4 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.drawer-item .qty { height: 34px; margin-top: 8px; }
.drawer-item .qty button { width: 30px; }
.drawer-item-price { text-align: right; font-size: .9rem; }
.drawer-remove { display: block; margin-top: 6px; margin-left: auto; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer-remove:hover { color: var(--espresso); }
.drawer-empty { padding: 40px 28px; color: var(--muted); font-family: var(--serif); font-weight: 300; font-size: 1.1rem; }
.drawer-foot { padding: 24px 28px 30px; border-top: 1px solid var(--sand); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.drawer-total strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; }
.checkout-note { text-align: center; }
.discount { margin-bottom: 20px; }
.discount label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.discount-row { display: flex; height: 46px; border: 1px solid var(--sand); transition: border-color .3s; }
.discount-row:focus-within { border-color: var(--gold); }
.discount-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font: inherit; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--espresso); outline: none; }
.discount-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted); }
.discount-apply { padding: 0 18px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; border-left: 1px solid var(--sand); transition: background .3s; }
.discount-apply:hover { background: var(--sand); }
.discount-msg { min-height: 1.2em; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.discount-msg.ok { color: #4f6b3a; }
.discount-msg.error { color: #9a3b2e; }
.drawer-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: .88rem; color: var(--cocoa); }
.drawer-line { display: flex; justify-content: space-between; gap: 12px; }
.drawer-line span:last-child { font-variant-numeric: tabular-nums; }
.discount-line em { font-style: normal; letter-spacing: .08em; color: var(--gold); }
.discount-remove { margin-left: 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.discount-remove:hover { color: var(--espresso); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 120;
  transform: translate(-50%, -12px); max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none;
  background: var(--espresso); color: var(--ivory);
  padding: 14px 26px; font-size: .8rem; letter-spacing: .08em;
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaties ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view, .in-view .reveal { opacity: 1; transform: none; }
.product .reveal:nth-child(2) { transition-delay: .08s; }
.product .reveal:nth-child(3) { transition-delay: .14s; }
.product .reveal:nth-child(4) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-media { order: 0; }
  .product-media { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; }
  .product-info { padding: 44px 24px 72px; }
  .product-index { font-size: 3.6rem; }
  .dot-nav { right: 10px; }
  .dot-nav a span { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  html { scroll-snap-type: none; }
  .brand-mark { font-size: 1.4rem; }
  .header-nav { gap: 16px; }
  .header-nav > a { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card h3 { font-size: 1.2rem; }
  .card-link { display: none; }
  .collection { padding: 64px 16px 100px; }
  .section-head { margin-bottom: 44px; }
  .buy-row .btn { flex: 1; }
  .dot-nav { display: none; }
}
