/* Atelier Vesper: maten en kleuren afgemeten op de bronvideo */
:root {
  --bg: #f9f9f7;
  --bg-lit: #dad8cf;
  --tile: #d6cec2;
  --ink: #3a1d14;
  --ink-soft: #6d5249;
  --rule: #8a6f68;
  --switch: #4a1b0e;
  --knob-lit: #efe6df;
  --new: #3b8fae;
  --fade: 0.6s;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --gutter: clamp(16px, 10vw, 240px);
  --max: 1400px;
  --side: clamp(150px, 15.5vw, 250px);
  --gap: 10px;
}
html.is-lit { --bg: var(--bg-lit); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.35 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.005em;
  transition: background-color var(--fade) var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover, .linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.btn {
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 12px 22px; cursor: pointer; font-weight: 500; transition: opacity .2s, background-color var(--fade) var(--ease), color var(--fade);
}
.btn:hover { opacity: .88; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { padding-top: 22px; }
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto auto; align-items: baseline; gap: 28px;
}
.logo { font-weight: 600; font-size: 17px; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.nav-main { display: flex; gap: 38px; font-size: 17px; letter-spacing: -0.02em; justify-self: center; transform: translateX(-6%); }
.nav-main a.is-active { }
.nav-util, .nav-account { display: flex; gap: 22px; font-size: 13px; }
.nav-account { margin-left: 70px; }
.menu-btn { display: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }

/* ---------- toolbar ---------- */
main { min-height: 70vh; }
.toolbar-top {
  display: flex; justify-content: flex-end; align-items: center; gap: 16px;
  padding-top: clamp(80px, 11vw, 168px); padding-bottom: 8px;
}
.toolbar-top .back { margin-right: auto; font-size: 13px; }
.light-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.switch {
  position: relative; width: 36px; height: 19px; border-radius: 999px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--switch); background: transparent;
  transition: background-color .35s var(--ease);
}
.switch-knob {
  position: absolute; top: 50%; left: 3px; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: var(--switch);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.switch[aria-checked="true"] { background: var(--switch); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(16px); background: var(--knob-lit); }
.switch:active .switch-knob { width: 13px; }

/* ---------- collectie ---------- */
.collection { display: grid; grid-template-columns: var(--side) 1fr; column-gap: var(--gap); }
.sidebar { border-top: 1.5px solid var(--rule); padding-top: 12px; font-size: 13px; line-height: 1.12; }
.side-list { margin-bottom: 26px; }
.side-list li { margin: 0; }
.side-list a, .side-head { display: inline-block; padding: 1px 0; }
.side-sub { padding-left: 12px; }
.side-sub a { position: relative; }
.side-sub a.is-active::before {
  content: ''; position: absolute; left: -11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink);
}
.side-sub a.is-disabled { color: var(--ink-soft); }

.listing { border-top: 1.5px solid var(--rule); min-width: 0; }
.listing-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 0 14px;
}
.listing-title { font-weight: 400; font-size: 25px; letter-spacing: -0.03em; line-height: 1; }
.listing-title sup { font-size: 10px; letter-spacing: 0; margin-left: 2px; vertical-align: 13px; }
.filter-btn { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 4px 6px; }
.filter-btn[data-active]::after { content: attr(data-active); font-size: 9px; vertical-align: 6px; margin-left: 2px; }
.view-size { justify-self: end; display: flex; gap: 13px; font-size: 13px; align-items: baseline; }
.view-size span { margin-right: 2px; }
.view-size button { background: none; border: 0; padding: 0; cursor: pointer; }
.view-size button.is-active { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* grid */
.grid { display: grid; gap: 52px var(--gap); grid-template-columns: repeat(4, 1fr); }
.grid.size-s { grid-template-columns: repeat(6, 1fr); row-gap: 40px; }
.grid.size-l { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
.card { min-width: 0; }
.card a { display: block; }
.card a:hover { text-decoration: none; }
.card a:hover .card-name { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.photo { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .img-on { opacity: 0; transition: opacity var(--fade) var(--ease); }
html.is-lit .photo .img-on { opacity: 1; }
/* hover = alleen dit stuk even aan- of uitzetten, zoals met een vinger op de schakelaar */
@media (hover: hover) {
  .card:hover .photo .img-on { opacity: 1; transition-duration: .45s; }
  html.is-lit .card:hover .photo .img-on { opacity: 1; }
}

.card-meta { padding-top: 7px; font-size: 12.5px; line-height: 1.25; }
.grid.size-s .card-meta { font-size: 11.5px; }
.grid.size-l .card-meta { font-size: 14px; }
.card-name sup, .tag-new { color: var(--new); font-size: 8px; vertical-align: 5px; margin-left: 3px; letter-spacing: .01em; }
.card-price { display: block; }
.empty { padding: 40px 0; }

/* ---------- product ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); border-top: 1.5px solid var(--rule); padding-top: 20px; }
.pdp-media { display: grid; grid-template-columns: 64px 1fr; gap: var(--gap); align-items: start; }
.pdp-thumbs { display: grid; gap: 8px; }
.pdp-thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.pdp-thumbs button.is-active { border-color: var(--ink); }
.pdp-thumbs .photo { aspect-ratio: 4 / 5; }
.pdp-thumbs .thumb-label { display: block; font-size: 10px; text-align: center; padding: 3px 0 1px; }
.pdp-stage { cursor: zoom-in; }
.pdp-stage img { transition: opacity var(--fade) var(--ease), transform .35s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp-stage.is-zoom img { transform: scale(2.1); }
.pdp-stage.is-zoom { cursor: zoom-out; }
.pdp-stage .stage-hint {
  position: absolute; left: 12px; bottom: 12px; font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: rgba(249, 249, 247, .78); color: var(--ink); pointer-events: none; transition: opacity .3s;
}
.pdp-stage.is-zoom .stage-hint { opacity: 0; }

.pdp-info { position: sticky; top: 20px; align-self: start; }
.pdp-info h1 { font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -0.035em; line-height: 1.05; }
.pdp-price { margin-top: 10px; font-size: 15px; }
.pdp-blurb { margin-top: 22px; max-width: 46ch; line-height: 1.45; }
.opt { margin-top: 22px; }
.opt-label { font-size: 12px; margin-bottom: 8px; display: flex; gap: 6px; }
.opt-label b { font-weight: 500; }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center;
}
.chip .sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.buy-row { display: flex; gap: 10px; margin-top: 26px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; }
.qty button { background: none; border: 0; width: 36px; height: 100%; cursor: pointer; font-size: 16px; }
.qty span { min-width: 20px; text-align: center; }
.buy-row .btn { flex: 1; }
.pdp-note { margin-top: 12px; font-size: 12px; }
.acc { margin-top: 28px; border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; justify-content: space-between; font-size: 13px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; }
.acc details[open] summary::after { content: '–'; }
.acc .acc-body { padding: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.spec { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; }
.spec dt { color: var(--ink); }
.spec dd { margin: 0; }

.related { margin-top: 96px; }
.related-title { font-weight: 400; font-size: 20px; letter-spacing: -0.03em; border-top: 1.5px solid var(--rule); padding: 8px 0 14px; }

.page-body { border-top: 1.5px solid var(--rule); padding-top: 18px; max-width: 640px; line-height: 1.55; }
.page-body h1 { font-weight: 400; font-size: 25px; letter-spacing: -0.03em; margin-bottom: 16px; }
.page-body p + p { margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 140px; border-top: 1.5px solid var(--rule); padding: 28px 0 22px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid h3 { font-weight: 500; font-size: 13px; margin-bottom: 10px; }
.footer-grid li { margin-bottom: 3px; }
.footer-grid .logo { margin-bottom: 10px; display: block; }
.footer-grid .muted { max-width: 34ch; line-height: 1.45; }
.nl-row { display: flex; border-bottom: 1px solid var(--ink); }
.nl-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; font: inherit; color: inherit; outline: none; }
.nl-row button { background: none; border: 0; cursor: pointer; padding: 0 0 0 10px; }
.newsletter .small { margin-top: 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: 12px; flex-wrap: wrap; }

/* ---------- panelen ---------- */
.scrim { position: fixed; inset: 0; background: rgba(40, 22, 16, .22); z-index: 40; opacity: 0; transition: opacity .3s; }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50;
  display: flex; flex-direction: column; transition: transform .38s var(--ease), background-color var(--fade) var(--ease);
}
.drawer-right { right: 0; transform: translateX(100%); border-left: 1px solid var(--rule); }
.drawer-left { left: 0; transform: translateX(-100%); border-right: 1px solid var(--rule); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 24px 14px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-weight: 400; font-size: 20px; letter-spacing: -0.03em; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 16px 24px 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fgroup { padding: 14px 0; border-bottom: 1px solid rgba(138, 111, 104, .35); }
.fgroup h3 { font-weight: 500; font-size: 13px; margin-bottom: 10px; }
.fgroup label { display: flex; align-items: center; gap: 9px; padding: 3px 0; cursor: pointer; font-size: 13px; }
.fgroup input[type=checkbox] { appearance: none; width: 13px; height: 13px; border: 1px solid var(--ink); border-radius: 50%; margin: 0; display: grid; place-content: center; }
.fgroup input[type=checkbox]:checked::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.fgroup .cnt { margin-left: auto; color: var(--ink-soft); font-size: 11px; }
.fgroup select { font: inherit; color: inherit; background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; }

.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(138, 111, 104, .35); font-size: 13px; }
.cart-line .photo { aspect-ratio: 4 / 5; }
.cart-line .opts { color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.cart-line .qty { margin-top: 8px; height: 28px; }
.cart-line .rm { font-size: 12px; align-self: start; }
.cart-foot { flex-direction: column; align-items: stretch; }
.cart-sum { display: flex; justify-content: space-between; font-size: 14px; }
.cart-foot .btn { width: 100%; }
.cart-empty { padding: 30px 0; }

.menu-body { display: flex; flex-direction: column; gap: 8px; font-size: 18px; letter-spacing: -0.02em; align-items: flex-start; }
.menu-body hr { width: 100%; border: 0; border-top: 1px solid var(--rule); margin: 8px 0; }
.menu-cats { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

.overlay { position: fixed; inset: 0 0 auto 0; background: var(--bg); z-index: 60; padding: 26px 0 30px; border-bottom: 1px solid var(--rule); transform: translateY(-100%); transition: transform .38s var(--ease); max-height: 90vh; overflow: auto; }
.overlay.is-open { transform: none; }
.search-row { display: flex; gap: 20px; align-items: center; border-bottom: 1.5px solid var(--rule); }
.search-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 26px; letter-spacing: -0.03em; padding: 10px 0; color: inherit; outline: none; }
.search-results { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px var(--gap); padding-top: 18px; }
.search-results .card-meta { font-size: 11.5px; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg); width: min(420px, 100%); border: 1px solid var(--rule); }
.modal-card p { padding: 18px 24px 24px; line-height: 1.5; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 70;
  background: var(--ink); color: #f6efe9; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-account { margin-left: 0; }
  .header-row { gap: 20px; }
  .grid.size-s { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-row { grid-template-columns: 1fr auto; }
  .nav-main, .nav-util, .nav-account { display: none; }
  .menu-btn { display: block; }
  .toolbar-top { padding-top: 56px; }
  .collection { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .grid, .grid.size-m { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .grid.size-s { grid-template-columns: repeat(3, 1fr); }
  .grid.size-l { grid-template-columns: 1fr; }
  .listing-title { font-size: 21px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 64px); order: 2; }
  .pdp-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-results { grid-template-columns: repeat(3, 1fr); }
  .cart-line { grid-template-columns: 60px 1fr auto; }
}
@media (max-width: 480px) {
  .listing-bar { grid-template-columns: 1fr auto; row-gap: 10px; }
  .filter-btn { justify-self: end; }
  .view-size { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --fade: 0.01s; }
  * { transition-duration: .01s !important; }
}
