:root {
  --matcha: #6b8e23;
  --matcha-deep: #3f5f1a;
  --matcha-light: #a8c66c;
  --cream: #f6f3ea;
  --paper: #fffdf7;
  --ink: #23291d;
  --muted: #6c7263;
  --line: #e3dfd2;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5vw; background: rgba(246, 243, 234, 0.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--matcha-deep); }
.logo span { font-size: 1.3rem; letter-spacing: 0.05em; }
.nav nav { display: flex; gap: 2rem; }
.nav nav a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--matcha-deep); }
.cart-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border: 1px solid var(--ink); border-radius: 999px; font-weight: 500;
}
.cart-count {
  background: var(--matcha-deep); color: #fff; border-radius: 999px;
  min-width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: 0.75rem;
}
.cart-count.bump { animation: bump 0.4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* Buttons */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 500; transition: transform 0.15s, background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--matcha-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem;
  padding: 5rem 5vw 6rem; min-height: min(80vh, 760px);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--matcha); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.badges { display: flex; gap: 1.5rem; list-style: none; margin-top: 2.5rem; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.badges li::before { content: "✦ "; color: var(--matcha); }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8eed8, #d4dfba);
}
.bowl {
  position: relative; width: 62%; aspect-ratio: 1.6; margin-top: 20%;
  background: linear-gradient(160deg, #3a3029, #1f1915);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.4);
}
.foam {
  position: absolute; top: -12%; left: 2%; right: 2%; height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #c9de86, var(--matcha-light) 45%, var(--matcha) 100%);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.15);
  animation: swirl 6s ease-in-out infinite;
}
@keyframes swirl { 50% { filter: brightness(1.08); transform: scaleX(0.99); } }
.whisk {
  position: absolute; top: 14%; right: 14%; width: 14%; height: 38%;
  background: repeating-linear-gradient(90deg, #d9c39a 0 2px, transparent 2px 5px);
  border-radius: 40% 40% 10% 10%; transform: rotate(18deg);
}
.whisk::after {
  content: ""; position: absolute; bottom: -45%; left: 30%; width: 40%; height: 50%;
  background: #c7ab79; border-radius: 4px;
}

/* Sections */
.section { padding: 6rem 5vw; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; background: var(--paper); transition: all 0.2s; }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.75rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(35, 41, 29, 0.35); }
.card-img { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.card-img .tag {
  position: absolute; top: 0.8rem; left: 0.8rem; background: var(--paper);
  font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.05em;
}
.tin {
  width: 42%; height: 58%; border-radius: 10px 10px 6px 6px; position: relative;
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.35);
  display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 1.6rem;
}
.tin::before { content: ""; position: absolute; top: -8%; left: -4%; right: -4%; height: 14%; border-radius: 6px; background: inherit; filter: brightness(0.8); }
.pouch { width: 46%; height: 60%; border-radius: 6px 6px 14px 14px; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 1.5rem; }
.ware { font-size: 4.5rem; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { font-size: 1.4rem; }
.card-body .desc { font-size: 0.9rem; color: var(--muted); flex: 1; }
.notes { font-size: 0.78rem; color: var(--matcha); font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.price { font-weight: 600; font-size: 1.1rem; }
.add-btn { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--matcha-deep); color: #fff; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; }
.add-btn:hover { background: var(--ink); }
.stars { color: #c8a24a; font-size: 0.8rem; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; background: var(--paper); }
.story p { color: var(--muted); margin-bottom: 1rem; max-width: 34rem; }
.story-img {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    repeating-linear-gradient(170deg, transparent 0 28px, rgba(255,255,255,0.08) 28px 30px),
    radial-gradient(ellipse at 50% 110%, #2f4a14 20%, transparent 60%),
    radial-gradient(ellipse at 20% 90%, #4e7420 15%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #5f8a2a 15%, transparent 50%),
    linear-gradient(180deg, #e9e2c9 0%, #c9d79e 45%, #7fa143 70%, #3f5f1a 100%);
}
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--matcha-deep); }
.stats span { font-size: 0.8rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; }
.steps span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--matcha-light); color: var(--matcha-deep); font-weight: 600; margin-bottom: 1rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.92rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; background: var(--matcha-deep); color: #f0f3e6; }
.testimonials blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.testimonials cite { display: block; margin-top: 1rem; font-family: var(--sans); font-size: 0.85rem; font-style: normal; opacity: 0.75; }

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--matcha); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0.75rem; }

/* Newsletter */
.newsletter { text-align: center; padding: 5rem 5vw; background: #e6ead8; }
.newsletter p { color: var(--muted); margin-bottom: 1.5rem; }
.newsletter form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.newsletter input { padding: 0.85rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); min-width: 280px; font: inherit; }
.form-msg { margin-top: 1rem; color: var(--matcha-deep) !important; font-weight: 500; min-height: 1.5em; }

.footer { padding: 2rem 5vw; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(20, 24, 16, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 40; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--paper); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.6rem; }
.icon-btn { font-size: 1.8rem; line-height: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%; }
.icon-btn:hover { background: var(--cream); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.line-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.thumb { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.line-item h4 { font-size: 0.95rem; font-weight: 500; }
.line-item small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 0.4rem; }
.qty button { width: 1.8rem; height: 1.8rem; }
.qty span { min-width: 1.5rem; text-align: center; font-size: 0.9rem; }
.remove { font-size: 0.78rem; color: var(--muted); text-decoration: underline; display: block; margin-top: 0.3rem; margin-left: auto; }
.drawer-foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.ship-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ship-fill { height: 100%; width: 0; background: var(--matcha); transition: width 0.4s; }
.ship-msg { font-size: 0.82rem; color: var(--muted); margin: 0.5rem 0 1rem; }
.totals { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.05rem; }

/* Success page / order card */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(20, 24, 16, 0.55); padding: 1rem; }
.modal.show { display: grid; }
.modal-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 2rem; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; }
.modal-card h3 { font-size: 1.8rem; margin-bottom: 1.25rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; }
.modal label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.9rem; }
.modal input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
.modal input:focus, .newsletter input:focus { outline: 2px solid var(--matcha-light); border-color: transparent; }
.modal .row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; }
.note { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.order-done { text-align: center; padding: 1rem 0; }
.check { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--matcha-light); color: var(--matcha-deep); display: grid; place-items: center; font-size: 2rem; }
.order-done p { color: var(--muted); }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 150%);
  background: var(--ink); color: #fff; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-size: 0.9rem; z-index: 70; transition: transform 0.3s, visibility 0.3s; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero, .story { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; min-height: auto; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .newsletter input { min-width: 0; width: 100%; }
}

.note.center { text-align: center; margin: 0.75rem 0 0; }
.success-page { min-height: 75vh; display: grid; place-items: center; padding: 3rem 1rem; }
