/* =========================================================
   STROHHALM – Design-System
   ========================================================= */
:root {
  --straw: #D4A23C;
  --straw-dark: #A97A1E;
  --straw-light: #EBC97A;
  --wheat: #F3E7CF;
  --cream: #FBF7EF;
  --paper: #FFFDF8;
  --forest: #3E5B39;
  --forest-dark: #2C4429;
  --forest-light: #E3EBDD;
  --ink: #33261A;
  --muted: #6E5D4B;
  --line: #E6D8BD;
  --danger: #A63D2A;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(80, 55, 20, .10);
  --shadow-sm: 0 3px 10px rgba(80, 55, 20, .08);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
.split > *, .grid > *, .cart-layout > *, .form-grid > *, .pd-grid > * { min-width: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--wheat); }
.section-green { background: var(--forest); color: #F4F1E8; }
.section-green h2, .section-green h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--straw-dark);
  margin-bottom: .8em;
}
.section-green .eyebrow { color: var(--straw-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--sans);
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-straw { background: var(--straw); color: var(--ink); }
.btn-straw:hover { background: var(--straw-light); color: var(--ink); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.topbar {
  background: var(--forest-dark);
  color: #EDE6D3;
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .08em; color: var(--ink); text-decoration: none;
}
.logo svg { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--wheat); }
.main-nav a.active { background: var(--wheat); color: var(--forest-dark); }
.cart-link {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest); color: #fff;
}
.cart-link:hover { background: var(--forest-dark); color: #fff; }
.cart-link svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--straw); color: var(--ink);
  font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; padding: 11px; border-radius: 50%;
}
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; order: 3; }
  .cart-link { margin-left: auto; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--straw-dark); }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; font-size: .9rem; color: var(--muted); }
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 20px; height: 20px; color: var(--forest); }
.hero-art {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--straw-light) 0%, var(--wheat) 62%, transparent 63%);
}
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 340px; margin: 0 auto; order: -1; }
}

.page-hero { padding: 64px 0 48px; background: var(--wheat); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.feature .icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--forest-light); color: var(--forest);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature .icon svg { width: 28px; height: 28px; }
.feature p { color: var(--muted); margin: 0; }
.section-green .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.section-green .card p { color: #DCD6C4; }

/* Product cards */
.product-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .art { position: relative; background: var(--wheat); aspect-ratio: 1; display: block; }
.product-card .art svg { width: 100%; height: 100%; }
.product-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--forest); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
}
.product-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: .2em; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card .count { color: var(--muted); font-size: .92rem; margin-bottom: .8em; }
.product-card .short { color: var(--muted); font-size: .95rem; flex: 1; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; margin: 10px 0 16px; }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.per-straw { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-row .btn { flex: 1 1 140px; padding: 13px 14px; white-space: nowrap; font-size: .95rem; }

.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden;
}
.qty button {
  width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.2rem; color: var(--ink);
}
.qty button:hover { background: var(--wheat); }
.qty input {
  width: 38px; text-align: center; border: 0; font: 600 1rem var(--sans); color: var(--ink);
  background: transparent; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Split / Story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.story-art {
  border-radius: var(--radius); background: var(--wheat); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.story-art svg { width: 100%; height: 100%; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5B39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Testimonials */
.quote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin-bottom: 1em; }
.quote-author { font-size: .9rem; color: var(--muted); }
.stars { color: var(--straw); letter-spacing: 2px; margin-bottom: 10px; }

/* CTA band */
.cta-band {
  background: var(--straw); border-radius: calc(var(--radius) * 1.4);
  padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { max-width: 560px; margin: 0 auto 1.5em; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--straw); color: var(--ink); font: 700 1.1rem var(--serif);
  display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--wheat); font-family: var(--serif); font-size: 1.02rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.compare .hl { background: var(--forest-light); }
.yes { color: var(--forest); font-weight: 600; }
.no { color: var(--danger); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--straw-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-art { background: var(--wheat); border-radius: var(--radius); aspect-ratio: 1; position: sticky; top: 100px; overflow: hidden; }
.pd-art svg { width: 100%; height: 100%; }
.pd-info .price { font-size: 2.2rem; }
.pd-buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.pd-buy .btn { flex: 1; min-width: 200px; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.pd-facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.pd-facts strong { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; gap: 28px; } .pd-art { position: static; max-width: 460px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(62, 91, 57, .15);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fff;
}
.radio-card:has(input:checked) { border-color: var(--forest); background: var(--forest-light); }
.radio-card input { margin-top: 4px; accent-color: var(--forest); }
.radio-card strong { display: block; }
.radio-card span { font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; accent-color: var(--forest); width: 18px; height: 18px; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form-msg.ok { display: block; background: var(--forest-light); color: var(--forest-dark); }
.form-msg.err { display: block; background: #F7E2DC; color: var(--danger); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item:first-child { padding-top: 0; }
.cart-item .thumb { width: 84px; height: 84px; border-radius: var(--radius-sm); background: var(--wheat); overflow: hidden; }
.cart-item .thumb svg { width: 100%; height: 100%; }
.cart-item h3 { font-size: 1.08rem; margin: 0 0 2px; }
.cart-item .meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.cart-item .line-total { font-weight: 700; text-align: right; white-space: nowrap; }
.cart-item .remove {
  background: none; border: 0; color: var(--muted); font-size: .82rem; cursor: pointer;
  text-decoration: underline; padding: 4px 0; margin-top: 6px;
}
.cart-item .remove:hover { color: var(--danger); }
.item-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.summary { position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; }
.ship-hint { background: var(--wheat); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; margin: 12px 0 4px; }
.ship-bar { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--forest); border-radius: 99px; transition: width .3s; }
.empty-cart { text-align: center; padding: 48px 20px; }
.empty-cart svg { width: 120px; margin: 0 auto 16px; opacity: .8; }
.notice {
  background: #FFF4D6; border: 1px solid var(--straw-light); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D7CCB8; padding: 64px 0 28px; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #D7CCB8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pay-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pay-chips span { border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 3px 10px; font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 100;
  transition: transform .3s ease; font-size: .95rem; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--straw-light); font-weight: 600; white-space: nowrap; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.placeholder { background: #FFF4D6; padding: 0 4px; border-radius: 4px; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
