/* =========================================================
   Kitchiivo — Design system
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #15110e;
  --ink-2: #2a221c;
  --cream: #f7f2ea;
  --cream-2: #efe6d8;
  --paper: #fffdf9;
  --gold: #b08d57;
  --gold-2: #8f6f3f;
  --muted: #6f655c;
  --line: #e4d9c8;
  --ok: #2f6b3f;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(21, 17, 14, .25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: 1rem; display: inline-block; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--cream); font-size: .78rem; letter-spacing: .06em; text-align: center; padding: .55rem 1rem; }
.topbar span + span::before { content: "·"; margin: 0 .8rem; color: var(--gold); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.logo small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-top: -4px; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .88rem; letter-spacing: .04em; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .88rem; }
.cart-count { background: var(--gold); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 2rem; border-radius: 999px; font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: all .25s ease; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(ellipse at 70% 40%, #fff 0%, var(--cream) 55%, var(--cream-2) 100%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; min-height: 640px; padding: 4rem 0; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 30rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-price { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.hero-price strong { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); font-weight: 600; margin-right: .4rem; }
.hero-img { position: relative; }
.hero-img img { border-radius: 24px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; bottom: 24px; left: -24px; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow); font-size: .85rem; }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink .muted { color: #b9ad9f; }

.reassurance { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.reassurance .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.reassure { display: flex; gap: .9rem; align-items: center; font-size: .88rem; }
.reassure svg { flex: none; width: 34px; height: 34px; stroke: var(--gold-2); }
.reassure strong { display: block; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { padding: .55rem 0 .55rem 2rem; position: relative; border-bottom: 1px solid var(--line); }
.bg-ink .check-list li { border-color: #3a3029; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.drinks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.drink { text-align: center; padding: 1.5rem .5rem; border: 1px solid #3a3029; border-radius: var(--radius); }
.drink span { font-family: var(--serif); font-size: 1.25rem; display: block; }
.drink small { color: #b9ad9f; font-size: .75rem; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 1.5rem 0 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-2); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; padding: 2rem 0 5rem; align-items: start; }
.gallery-main { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: .8rem; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #fff; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-selected="true"] { border: 2px solid var(--gold); }
.buybox { position: sticky; top: 100px; }
.buybox h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.price-line { display: flex; align-items: baseline; gap: .8rem; margin: 1rem 0 .3rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; }
.price-note { font-size: .82rem; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: .5rem; color: var(--ok); font-size: .88rem; font-weight: 500; margin: 1rem 0; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.variant { margin: 1.5rem 0; }
.variant-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: .6rem; }
.swatches { display: flex; gap: .7rem; }
.swatch { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem 1.1rem .55rem .6rem; display: inline-flex; gap: .55rem; align-items: center; cursor: pointer; font-size: .85rem; font-family: var(--sans); }
.swatch i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.qty-row { display: flex; gap: .8rem; margin: 1.5rem 0 1rem; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 44px; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 44px; text-align: center; border: 0; font: inherit; background: transparent; }
.buy-info { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.buy-info div { display: flex; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.buy-info svg { width: 22px; height: 22px; flex: none; stroke: var(--gold-2); }
.payments { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.payments span { border: 1px solid var(--line); border-radius: 6px; padding: .25rem .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); background: #fff; }

.tabs { border-top: 1px solid var(--line); }
details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 1.4rem 0; font-family: var(--serif); font-size: 1.45rem; display: flex; justify-content: space-between; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold-2); transition: transform .3s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 0 1.6rem; color: var(--ink-2); }

table.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.specs th, table.specs td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 42%; font-weight: 500; color: var(--muted); }

/* ---------- Reviews placeholder ---------- */
.notice { background: var(--cream); border-left: 3px solid var(--gold); padding: 1rem 1.3rem; border-radius: 6px; font-size: .9rem; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; padding: 3rem 0 6rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; }
.summary { background: var(--cream); border-radius: var(--radius); padding: 2rem; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; }
.summary-total { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: 1rem; font-weight: 600; font-size: 1.1rem; }
.empty { text-align: center; padding: 4rem 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 500; display: block; margin-bottom: .35rem; }
input, select, textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; }
.checkbox input { width: auto; margin-top: .25rem; }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--cream); padding: 4.5rem 0 3.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.legal { max-width: 820px; margin: 0 auto; padding: 4rem 0 6rem; }
.legal h2 { font-size: 1.9rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { font-size: .82rem; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .7rem; text-align: left; }
.legal th { background: var(--cream); font-weight: 600; }
.legal blockquote { margin: 1.2rem 0; padding: 1.2rem 1.4rem; background: var(--cream); border-left: 3px solid var(--gold); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; padding: 4rem 0 6rem; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 2rem; }
.contact-card p { margin-bottom: 1.2rem; }
.contact-card strong { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc4b6; padding: 5rem 0 2rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); font-weight: 600; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .logo { color: var(--cream); }
.footer-bottom { border-top: 1px solid #3a3029; margin-top: 3.5rem; padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; z-index: 100; font-size: .85rem; display: none; }
.cookie.show { display: block; }
.cookie-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie .btn { padding: .65rem 1.2rem; font-size: .8rem; }

.toast { position: fixed; top: 96px; right: 1.5rem; background: var(--ink); color: var(--cream); padding: 1rem 1.4rem; border-radius: 10px; box-shadow: var(--shadow); z-index: 120; transform: translateY(-20px); opacity: 0; pointer-events: none; transition: all .35s; font-size: .9rem; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast a { color: var(--gold); margin-left: .6rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .split, .product, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { min-height: auto; }
  .features { grid-template-columns: 1fr; }
  .reassurance .container { grid-template-columns: repeat(2, 1fr); }
  .drinks { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buybox, .summary { position: static; }
  .hero-badge { left: 12px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 1.5rem 4%; gap: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  section { padding: 4rem 0; }
}
@media (max-width: 560px) {
  .reassurance .container, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .drinks { grid-template-columns: repeat(2, 1fr); }
  .topbar span:nth-child(n+2) { display: none; }
  .cart-item { grid-template-columns: 80px 1fr; }
}
