:root {
  --bg: #f7f2ec;
  --surface: #fffaf5;
  --ink: #221c18;
  --muted: #7a6d63;
  --line: #e4d9cc;
  --accent: #9c4a2f;
  --accent-ink: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; }

/* ---------- Header ---------- */
.announce {
  background: var(--ink);
  color: #efe6dc;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 242, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.logo em { font-style: italic; color: var(--accent); }
.nav { display: flex; gap: 28px; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover { color: var(--accent); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
}
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--ink); color: var(--bg);
  font-size: 11.5px; letter-spacing: 0;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 48px); }
h3 { font-size: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 72px 0 88px;
}
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 440px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  position: relative; aspect-ratio: 1 / 1.05;
  background: radial-gradient(circle at 50% 40%, #f3dcc8 0%, #ead2bd 40%, #e2c6ae 100%);
  border-radius: 50% 50% 4px 4px;
  display: grid; place-items: end center; overflow: hidden;
}
.hero-art .bottles { display: flex; align-items: flex-end; gap: 4%; width: 80%; margin-bottom: 10%; }
.hero-art .bottles > div { flex: 1; }
.hero-art .bottle { width: 100%; filter: drop-shadow(0 18px 24px rgba(60, 30, 15, .18)); }
.hero-art .bottles > div:nth-child(2) { transform: scale(1.18); transform-origin: bottom; z-index: 1; }

/* ---------- Value strip ---------- */
.values {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.values div { padding: 28px 24px; text-align: center; }
.values div + div { border-left: 1px solid var(--line); }
.values strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.values span { color: var(--muted); font-size: 13.5px; }

/* ---------- Product grid ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; background: var(--surface); transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.card { display: block; }
.card-art {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
}
.card-art .bottle { width: 46%; transition: transform .4s ease; }
.card:hover .card-art .bottle { transform: translateY(-6px) rotate(-2deg); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--bg);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px;
}
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
.card-meta h3 { font-size: 22px; }
.card-meta .price { font-size: 14px; white-space: nowrap; }
.card .family { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card .tag { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- Product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 28px 0 0; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 28px 0 80px; }
.pdp-art {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1 / 1.1; display: grid; place-items: center; position: sticky; top: 100px;
}
.pdp-art .bottle { width: 40%; }
.pdp h1 { font-size: clamp(42px, 5vw, 60px); margin: 8px 0 10px; }
.pdp .tagline { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.pdp .price-lg { font-size: 22px; margin: 22px 0; }
.pdp .desc { color: #4a3f37; margin-bottom: 28px; max-width: 520px; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.sizes { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.size {
  flex: 1; min-width: 92px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: center; transition: border-color .15s;
}
.size strong { display: block; font-weight: 600; }
.size span { font-size: 13px; color: var(--muted); }
.size.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qty-row { display: flex; gap: 12px; margin-bottom: 14px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty button { width: 40px; height: 100%; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; }
.qty-row .btn { flex: 1; }
.ship-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

.pyramid { margin-top: 36px; border-top: 1px solid var(--line); }
.pyramid div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pyramid dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.pyramid dd { font-family: var(--serif); font-size: 20px; }

/* ---------- Cart drawer ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(34, 28, 24, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--bg); z-index: 50;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease, box-shadow .3s;
  visibility: hidden;
}
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; visibility: visible; box-shadow: -12px 0 40px rgba(0,0,0,.08); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.icon-btn { font-size: 18px; width: 36px; height: 36px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item .thumb { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; }
.line-item .thumb .bottle { width: 50%; }
.line-item h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.line-item .sub { font-size: 13px; color: var(--muted); }
.line-item .mini-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.line-item .mini-qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.line-item .remove { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 4px; }
.totals div { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.totals .grand { font-size: 17px; font-weight: 600; margin: 10px 0 16px; }
.progress { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.progress .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty .btn { margin-top: 20px; }

/* ---------- Checkout (demo) ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; padding: 48px 0 88px; }
.demo-banner {
  background: #fff4d6; border: 1px solid #ecd48c; color: #6b5413;
  padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.form-grid .span { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; align-self: start; position: sticky; top: 100px; }
.summary h3 { margin-bottom: 12px; }
.checkout h2 { font-size: 28px; margin-bottom: 14px; }

/* ---------- Confirmation / content pages ---------- */
.center { text-align: center; max-width: 620px; margin: 0 auto; padding: 96px 16px; }
.center p { color: var(--muted); margin: 16px 0 28px; }
.prose { max-width: 680px; margin: 0 auto; padding: 72px 16px 96px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 24px; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose p { color: #4a3f37; margin-bottom: 14px; }

/* ---------- Story band ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-art { aspect-ratio: 4/3; background: linear-gradient(135deg, #3a2a22, #7a4a33); border-radius: var(--radius); display: grid; place-items: center; }
.story-art .bottle { width: 22%; }
.story p { color: #4a3f37; margin: 18px 0 26px; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding: 56px max(16px, calc((100vw - var(--max)) / 2)) 28px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.site-footer p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.site-footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.site-footer a { display: block; font-size: 14px; margin-bottom: 6px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { grid-column: 1 / -1; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero, .pdp, .checkout, .story { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 56px; }
  .pdp-art, .summary { position: static; }
  .values { grid-template-columns: 1fr; }
  .values div + div { border-left: 0; border-top: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > div:first-child { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card-meta { flex-direction: column; gap: 2px; }
  .card-meta h3 { font-size: 19px; }
  .card .tag { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
