:root {
  --black: #10100f;
  --ink: #24211d;
  --burgundy: #6e1727;
  --burgundy-deep: #3d0c16;
  --gold: #b99955;
  --gold-light: #d7c08a;
  --cream: #eee2d1;
  --paper: #fffdf8;
  --muted: #766f64;
  --line: rgba(36, 33, 29, 0.14);
  --shadow: 0 24px 70px rgba(20, 14, 9, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.demo-notice {
  padding: 8px 16px;
  text-align: center;
  color: #fff;
  background: var(--burgundy);
  font-size: 12px;
  letter-spacing: .05em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(16, 16, 15, .96);
  border-bottom: 1px solid rgba(185, 153, 85, .25);
  backdrop-filter: blur(14px);
}
.brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.brand img { width: 51px; height: 51px; object-fit: cover; border: 1px solid rgba(185,153,85,.38); }
.brand span { display: grid; gap: 2px; }
.brand small { color: var(--gold-light); text-transform: uppercase; font-size: 9px; letter-spacing: .22em; }
.brand strong { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: .05em; }
.icon-button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: 12px; letter-spacing: .05em;
}
.icon-button b, .floating-cart b {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  color: var(--black); background: var(--gold-light); border-radius: 999px;
}

.hero { position: relative; min-height: min(720px, 78vh); display: grid; align-items: end; overflow: hidden; background: var(--black); }
.hero-image { position: absolute; inset: 0; background: url("assets/wijnkast-hero.png") center 64% / cover no-repeat; filter: saturate(.9) contrast(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,6,.92) 0%, rgba(10,8,6,.55) 45%, rgba(10,8,6,.14) 72%), linear-gradient(0deg, rgba(10,8,6,.75), transparent 55%); }
.hero-content { position: relative; z-index: 1; width: min(610px, 100%); padding: clamp(44px, 8vw, 100px) clamp(22px, 8vw, 120px); color: #fff; }
.eyebrow { margin: 0 0 14px; color: var(--gold-light); font-size: 11px; font-weight: 650; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow.dark { color: var(--burgundy); }
.hero h1, .intro h2, .collection h2, .promise h2, .drawer-header h2, dialog h2 {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98;
}
.hero h1 { max-width: 550px; font-size: clamp(52px, 9vw, 96px); letter-spacing: -.035em; }
.hero p:not(.eyebrow) { margin: 24px 0 30px; font-family: var(--serif); font-size: clamp(18px, 2.1vw, 25px); line-height: 1.45; }
.primary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 22px;
  color: #fff; background: var(--burgundy); border: 1px solid var(--burgundy); border-radius: 2px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(61,12,22,.2); transition: .2s ease;
}
.primary-button:hover { background: var(--burgundy-deep); transform: translateY(-1px); }
.primary-button.wide { width: 100%; }

.slogan-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 25px 24px 27px;
  color: #fff;
  background: linear-gradient(105deg, #21080d 0%, var(--burgundy-deep) 28%, var(--burgundy) 52%, #2a090f 100%);
  border-top: 1px solid rgba(215, 192, 138, .35);
  border-bottom: 1px solid rgba(215, 192, 138, .28);
  text-align: center;
}
.slogan-band span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.slogan-band p {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 31px);
  font-style: italic;
  letter-spacing: .01em;
}

.intro {
  max-width: none;
  margin: 0;
  padding: 68px 24px 58px;
  text-align: center;
  background: linear-gradient(180deg, #e2d2bc 0%, var(--cream) 150px);
}
.intro h2, .collection h2 { font-size: clamp(36px, 5vw, 58px); }
.intro > p:last-child { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.7; }

.collection { max-width: 1260px; margin: 0 auto; padding: 30px 24px 100px; background: var(--cream); }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.sort-control { display: grid; gap: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
select, input, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,153,85,.13); }
.sort-control select { min-width: 190px; padding: 11px 38px 11px 12px; }
.filters { display: flex; gap: 8px; margin-bottom: 28px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: 9px 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.filter-button.active { color: #fff; background: var(--black); border-color: var(--black); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid rgba(36,33,29,.1); box-shadow: 0 12px 32px rgba(20,14,9,.06); overflow: hidden; }
.product-image { position: relative; aspect-ratio: 4 / 4.8; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff 0 20%, #eee5d8 62%, #ded1bf 100%); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.bottle-fallback { position: relative; width: 76px; height: 240px; border-radius: 20px 20px 28px 28px; background: linear-gradient(90deg, #261a12, #6f4b22 48%, #20140d); box-shadow: 18px 16px 32px rgba(28,17,8,.2); }
.bottle-fallback::before { content: ""; position: absolute; left: 25px; top: -68px; width: 27px; height: 78px; border-radius: 8px 8px 3px 3px; background: #45331f; }
.bottle-fallback::after { content: "Taste of Life"; position: absolute; left: 7px; right: 7px; top: 100px; padding: 25px 4px; color: var(--burgundy); background: #efe8dc; text-align: center; font-family: var(--serif); font-size: 10px; }
.stock-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 8px 10px; color: #fff; background: var(--burgundy); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.stock-badge.more { color: var(--ink); background: var(--gold-light); }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-meta { margin-bottom: 9px; color: var(--burgundy); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-title { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.08; }
.product-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 22px; }
.price { font-family: var(--serif); font-size: 23px; white-space: nowrap; }
.add-button { min-width: 108px; padding: 11px 14px; color: var(--burgundy); background: transparent; border: 1px solid var(--burgundy); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.add-button:hover { color: #fff; background: var(--burgundy); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-state span { font-family: var(--serif); font-size: 28px; }
.empty-state p { color: var(--muted); }

.promise { padding: 92px max(24px, calc((100vw - 1180px)/2)); color: #fff; background: var(--black); }
.promise > h2 { max-width: 780px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 58px; }
.promise-grid article { padding-top: 23px; border-top: 1px solid rgba(215,192,138,.34); }
.promise-grid b { color: var(--gold-light); font-family: var(--serif); font-weight: 400; }
.promise-grid h3 { margin: 25px 0 10px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.promise-grid p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.55; font-size: 14px; }

.floating-cart { position: fixed; z-index: 25; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(94vw, 470px); padding: 13px 16px; color: #fff; background: var(--black); border: 1px solid rgba(215,192,138,.3); box-shadow: var(--shadow); }
.floating-cart span { flex: 1; text-align: left; font-size: 12px; letter-spacing: .05em; }
.floating-cart strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.drawer-backdrop { position: fixed; z-index: 49; inset: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(470px, 100vw); display: flex; flex-direction: column; padding: 26px; background: var(--paper); box-shadow: var(--shadow); transform: translateX(102%); transition: transform .28s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header, .dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2, dialog h2 { font-size: 36px; }
.close-button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); font-size: 25px; }
.cart-lines { display: grid; gap: 18px; margin: 22px 0; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-thumb { height: 78px; display: grid; place-items: center; color: var(--gold); background: #e8dfd2; font-family: var(--serif); font-size: 24px; }
.cart-line h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.cart-line p { margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 28px; height: 28px; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.remove-button { color: var(--muted); background: transparent; border: 0; font-size: 18px; }
.cart-empty { margin: auto; text-align: center; color: var(--muted); }
.text-button { color: var(--burgundy); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.cart-summary { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.cart-summary > div, .checkout-total { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--serif); font-size: 23px; }
.cart-summary small { display: block; margin-bottom: 18px; color: var(--muted); line-height: 1.4; }

dialog { width: min(680px, calc(100vw - 24px)); padding: 0; color: var(--ink); background: var(--paper); border: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(3px); }
.checkout-dialog form { padding: clamp(22px, 5vw, 42px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea { padding: 13px; text-transform: none; letter-spacing: 0; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { grid-template-columns: auto 1fr !important; align-items: start; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }
.checkbox input { width: 18px; height: 18px; }
.checkout-total { padding: 17px 0; border-top: 1px solid var(--line); }
.form-status { min-height: 18px; margin: 12px 0 0; color: var(--burgundy); text-align: center; font-size: 13px; }
.success-dialog { padding: 42px; text-align: center; }
.success-dialog h2 { font-size: 38px; }
.success-dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; color: #fff; background: var(--burgundy); border-radius: 50%; font-size: 30px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; padding: 12px 18px; color: #fff; background: var(--black); box-shadow: var(--shadow); transform: translate(-50%, 140%); opacity: 0; transition: .25s ease; font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

footer { display: grid; justify-items: center; gap: 10px; padding: 62px 24px; color: rgba(255,255,255,.72); background: #080808; text-align: center; }
footer img { width: 92px; height: 92px; object-fit: cover; border: 1px solid rgba(185,153,85,.3); }
footer p { margin: 10px 0 0; color: var(--gold-light); font-family: var(--serif); font-size: 19px; }
footer small { font-size: 11px; letter-spacing: .08em; }

@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .site-header { min-height: 68px; padding: 8px 14px; }
  .brand img { width: 45px; height: 45px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8px; }
  .icon-button span { display: none; }
  .hero { min-height: 72vh; }
  .hero-image { background-position: 53% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,8,6,.92) 0%, rgba(10,8,6,.32) 70%), linear-gradient(90deg, rgba(10,8,6,.35), transparent); }
  .hero-content { padding: 48px 22px; }
  .slogan-band { display: grid; gap: 6px; padding: 18px 20px 20px; }
  .slogan-band p { font-size: 24px; }
  .intro { padding: 48px 20px 42px; }
  .collection { padding: 24px 14px 82px; }
  .collection-heading { display: grid; }
  .sort-control select { width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-info { padding: 15px 13px; }
  .product-title { font-size: 19px; }
  .product-subtitle { display: none; }
  .product-bottom { display: grid; gap: 10px; padding-top: 15px; }
  .price { font-size: 20px; }
  .add-button { width: 100%; min-width: 0; }
  .stock-badge { top: 8px; left: 8px; padding: 6px 8px; font-size: 8px; }
  .bottle-fallback { transform: scale(.72); }
  .promise { padding: 72px 22px; }
  .cart-drawer { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .success-dialog { padding: 30px 22px; }
}
