/* ============================================================
   Fresh Bakehouse — premium storefront design system
   Fonts: Fraunces (display) + Poppins (UI/body)
   ============================================================ */
:root {
  --bg: #fcf7f0;
  --bg-2: #f6ebda;
  --card: #ffffff;
  --ink: #2c2014;
  --brown: #7a5230;
  --brown-deep: #3c2817;
  --accent: #3f6e44;     /* herbal green (primary brand accent) */
  --accent-d: #2c5230;   /* deep green (text / hover) */
  --honey: #edb45e;
  --green: #3a6b3d;        /* herbal Ayurvedic green */
  --green-deep: #244a27;   /* deep green (their brand: #295218) */
  --muted: #6d5d50;
  --line: #ece0cf;
  --cream-deep: #efe0cb;
  --wa: #25d366;
  --danger: #c0392b;
  --ok: #2e7d32;
  --shadow-sm: 0 2px 10px rgba(74, 47, 24, .07);
  --shadow: 0 14px 40px rgba(74, 47, 24, .12);
  --shadow-lg: 0 30px 70px rgba(74, 47, 24, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body.no-scroll { overflow: hidden; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(122, 82, 48, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; color: var(--brown-deep); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green-deep);
}

/* scroll reveal — only hide when JS is active, so content is never stuck blank */
[data-reveal] { transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .96rem;
  padding: 13px 24px; border-radius: 999px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(63, 110, 68, .4); }
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 14px 30px rgba(63, 110, 68, .42); }
.btn-primary:disabled { background: #d9c9b6; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--brown); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: var(--brown-deep); box-shadow: var(--shadow); }
.btn-light:hover { filter: brightness(.97); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn-wa:hover { filter: brightness(1.04); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-deep); color: #e9f1e6; text-align: center;
  font-size: .82rem; letter-spacing: .03em; padding: 8px 14px;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(252, 247, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.4rem; color: var(--brown-deep); }
.brand .logo { font-size: 1.5rem; }
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { font-weight: 500; color: var(--brown-deep); opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--accent-d); }
.cart-btn {
  margin-left: auto; position: relative; background: var(--green-deep); color: #fff;
  border: none; border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.cart-btn:hover { background: var(--green); }
.cart-count {
  background: var(--honey); color: #3a2a12; border-radius: 999px; min-width: 26px; height: 26px;
  padding: 0 7px; font-size: .75rem; letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(115% 120% at 82% 4%, #e3eedb 0%, rgba(252, 247, 240, 0) 55%),
    linear-gradient(180deg, #fbfaf4, var(--bg));
  border-bottom: 1px solid var(--cream-deep);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 70px 22px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 18px; }
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.01em; }
.hero-title .hl { color: var(--accent-d); font-style: italic; }
.hero-sub { font-size: 1.14rem; color: var(--muted); margin: 18px 0 28px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--brown); font-size: .9rem; font-weight: 500; }

.hero-inner { position: relative; z-index: 1; }
/* decorative wheat motif framing the hero */
.wheat { position: absolute; bottom: 4px; width: 60px; height: auto; color: var(--green); opacity: .16; pointer-events: none; z-index: 0; }
.wheat.left { left: 2.5%; transform: rotate(-9deg); }
.wheat.right { right: 2.5%; transform: rotate(9deg) scaleX(-1); }

.hero-visual { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
/* classic gold-ringed medallion */
.hero-visual .blob {
  position: absolute; width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff, #eef3e7 58%, #dde8d4);
  box-shadow: 0 34px 70px rgba(36, 60, 32, .22), inset 0 0 0 9px rgba(255, 255, 255, .7), inset 0 0 0 10px rgba(63, 110, 68, .32);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 50% { transform: translateY(-12px); } }
.hero-plate { position: relative; font-size: 8.6rem; filter: drop-shadow(0 18px 24px rgba(60, 40, 23, .3)); }
.float-pill {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 6px; color: var(--brown-deep);
  animation: bob 4s ease-in-out infinite;
}
.pill-a { top: 12%; left: 2%; animation-delay: .2s; }
.pill-b { top: 30%; right: 0; animation-delay: .8s; }
.pill-c { bottom: 12%; left: 8%; animation-delay: 1.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Features strip ---------- */
.features {
  max-width: var(--maxw); margin: -40px auto 0; padding: 0 22px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feature { background: linear-gradient(150deg, rgba(63,110,68,.05), #fff 55%); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: left; }
.feature .f-ic { font-size: 2.1rem; display: block; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--muted); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--green); opacity: .6; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.section-head p { color: var(--brown); margin-top: 16px; }

/* ---------- Shop by Category ---------- */
.categories { max-width: var(--maxw); margin: 0 auto; padding: 78px 22px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cat-card {
  background: linear-gradient(160deg, #fff, #eef4e8); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; cursor: pointer; font: inherit; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 6px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow), inset 0 0 0 2px rgba(63, 110, 68, .3); border-color: var(--accent); }
.cat-emoji { font-size: 2.6rem; }
.cat-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; color: var(--brown-deep); }
.cat-count { font-size: .78rem; color: var(--muted); }

/* ---------- Shop ---------- */
.shop { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px 80px; }
.toolbar { display: flex; justify-content: center; margin-bottom: 18px; }
.search { position: relative; width: min(420px, 100%); }
.search input {
  width: 100%; padding: 13px 18px 13px 44px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .96rem; font-family: inherit; background: #fff;
}
.search::before { content: "🔍"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .55; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 110, 68, .15); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--brown); border-radius: 999px; padding: 8px 18px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500; transition: all .15s; }
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--brown-deep); color: #fff; border-color: var(--brown-deep); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; cursor: pointer; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; z-index: 2; }
.card:hover::after { transform: scaleX(1); }
.card .thumb { position: relative; margin: 12px 12px 0; aspect-ratio: 4/3; border-radius: 12px; border: 1px solid var(--cream-deep); background: linear-gradient(150deg, #eef3e7, #dfe9d6); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card.sold-out .thumb::after { content: "Sold out"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(44, 32, 20, .55); color: #fff; font-weight: 600; letter-spacing: .5px; font-family: "Fraunces", serif; }
.card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 7px; font-weight: 600; }
.card h3 { font-size: 1.18rem; }
.card .desc { font-size: .87rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-family: "Fraunces", serif; font-weight: 700; color: var(--brown-deep); font-size: 1.25rem; }
.card .add { background: var(--green-deep); color: #fff; border: none; border-radius: 999px; padding: 10px 16px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s; }
.card .add:hover { background: var(--accent); }
.card .add:disabled { background: var(--muted); cursor: not-allowed; }

/* skeleton + states */
.skeleton { pointer-events: none; }
.skeleton .thumb, .skeleton .sk-line { background: linear-gradient(90deg, #f0e6d6 25%, #f8f0e4 50%, #f0e6d6 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 8px; }
.sk-line.short { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 64px 20px; font-size: 1.05rem; }
.state .big { font-size: 2.6rem; display: block; margin-bottom: 12px; }

/* ---------- Why Us (comparison) ---------- */
.whyus { max-width: var(--maxw); margin: 0 auto; padding: 80px 22px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); position: relative; }
.compare-col h3 { font-size: 1.3rem; margin-bottom: 18px; }
.compare-col ul { list-style: none; display: grid; gap: 15px; }
.compare-col li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.compare-col li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; color: #fff; }
.compare-col li.no::before { content: "✕"; background: #c0563b; }
.compare-col li.yes::before { content: "✓"; background: var(--green); }
.compare-col.other { background: #f8f5ee; }
.compare-col.other h3 { color: var(--muted); }
.compare-col.other li { color: var(--muted); }
.compare-col.ours { background: linear-gradient(160deg, #fff, #eef4e8); border: 1.5px solid var(--green); box-shadow: var(--shadow); }
.compare-col.ours h3 { color: var(--green-deep); }
.ours-badge { position: absolute; top: -12px; right: 18px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 13px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Philosophy ---------- */
.philosophy {
  background-color: var(--bg-2);
  background-image: radial-gradient(rgba(63, 110, 68, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep);
}
.phil-inner { max-width: 760px; margin: 0 auto; padding: 80px 22px; text-align: center; }
.phil-inner .eyebrow { margin-bottom: 14px; }
.phil-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.phil-inner h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--green), transparent); }
.phil-inner p { color: var(--brown); font-size: 1.08rem; }
.phil-sub { color: var(--muted) !important; font-size: .95rem !important; margin-top: 16px; }

/* ---------- About ---------- */
.about {
  background-color: var(--bg-2);
  background-image: radial-gradient(rgba(122, 82, 48, .055) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep);
}
.about-inner { max-width: var(--maxw); margin: 0 auto; padding: 86px 22px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-card { background: linear-gradient(155deg, #fff, #eef4e8); border: 1px solid var(--line); border-radius: 26px; padding: 40px; box-shadow: var(--shadow); text-align: center; width: 100%; max-width: 380px; }
.about-emoji { font-size: 5.5rem; display: block; margin-bottom: 22px; filter: drop-shadow(0 12px 18px rgba(60,40,23,.22)); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--brown-deep); margin-bottom: 4px; }
.about-stats span { font-size: .76rem; color: var(--muted); }
.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 16px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.checklist { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--brown-deep); font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 78px 22px; color: #fff; position: relative;
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(135deg, var(--green), var(--green-deep));
  background-size: 22px 22px, auto;
}
.cta-band > * { position: relative; }
.cta-band h2::after { content: ""; display: block; width: 64px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--honey), transparent); }
.stats-row { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-bottom: 42px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.stat-big { text-align: center; }
.stat-big strong { display: block; font-family: "Fraunces", serif; font-size: 2.5rem; color: #fff; line-height: 1; }
.stat-big span { display: block; color: #d7e6d2; font-size: .9rem; margin-top: 7px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { color: #f3ddc4; margin: 10px 0 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--green-deep); color: #dce9d8;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand .brand .ft-name { color: #fff; }
.ft-tag { color: #b7c8b1; font-size: .92rem; margin-bottom: 14px; max-width: 280px; }
.ig { color: var(--honey); font-weight: 500; }
.foot-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.foot-col p, .foot-col a { display: block; color: #b7c8b1; font-size: .92rem; margin-bottom: 9px; }
.foot-col a:hover { color: var(--honey); }
.foot-col a#ftPhone, .foot-col a#ftEmail { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 20px; color: #9bb095; font-size: .85rem; }
.footer-bottom .ft-name { color: #dce9d8; }

/* ============================================================
   Components reused by JS (modal, cart drawer, toasts)
   ============================================================ */

/* Product modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(44, 32, 20, .55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius); max-width: 780px; width: 100%; max-height: 90vh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); transform: scale(.96); transition: transform .2s; position: relative; }
.modal-overlay.open .modal { transform: scale(1); }
.modal .pic { background: linear-gradient(150deg, #eef3e7, #dfe9d6); display: flex; align-items: center; justify-content: center; font-size: 5.5rem; min-height: 300px; }
.modal .pic img { width: 100%; height: 100%; object-fit: cover; }
.modal .info { padding: 30px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto; }
.modal .info h2 { font-size: 1.7rem; }
.modal .info .price { font-size: 1.5rem; }
.modal .info p { color: var(--muted); }
.modal .qty-pick { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.m-details { margin-top: 18px; display: grid; gap: 12px; }
.m-detail { border-top: 1px solid var(--line); padding-top: 12px; }
.m-detail h4 { font-family: "Poppins", sans-serif; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green-deep); margin-bottom: 5px; }
.m-detail p { color: var(--muted); font-size: .9rem; }
.m-detail p.pre { white-space: pre-line; }
.m-detail.allergen h4 { color: #b5562f; }
.m-detail.allergen p { color: #8a4a2a; font-weight: 500; }
.modal .close { position: absolute; top: 14px; right: 16px; background: rgba(0,0,0,.55); color: #fff; border: 2px solid rgba(255,255,255,.85); width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 1; }
.modal .close:hover { background: rgba(0,0,0,.78); }
/* size options (variants) */
.size-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.size-label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.size-chip { border: 1px solid var(--line); background: #fff; color: var(--brown-deep); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.size-chip:hover { border-color: var(--accent); }
.size-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ci-size { display: inline-block; background: var(--cream-deep); color: var(--brown-deep); font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-left: 4px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 42px; border: none; background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--brown); }
.stepper button:hover { background: #fbeede; }
.stepper span { min-width: 36px; text-align: center; font-weight: 700; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(44, 32, 20, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(440px, 100%); background: var(--bg); box-shadow: -12px 0 40px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .28s ease; z-index: 45; display: flex; flex-direction: column; }
.cart-items { min-height: 0; }
.drawer.open { transform: translateX(0); }
.drawer > header { padding: 18px 22px; background: var(--green-deep); color: #fff; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.drawer > header h2 { color: #fff; font-size: 1.3rem; }
.drawer .dh-left { display: flex; align-items: center; gap: 8px; }
.back-btn { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.drawer .close { background: none; border: none; color: #fff; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.cart-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.checkout-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.checkout-body input, .checkout-body textarea { width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 11px; font-size: .95rem; font-family: inherit; }
.checkout-body textarea { resize: vertical; min-height: 54px; }
.checkout-body input:focus, .checkout-body textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,110,68,.12); }
.checkout-recap { background: var(--cream-deep); color: var(--brown-deep); border-radius: 10px; padding: 11px 14px; font-size: .92rem; font-weight: 600; margin-bottom: 14px; text-align: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-row .ci-thumb { width: 54px; height: 54px; border-radius: 12px; background: #fbeede; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden; flex-shrink: 0; }
.cart-row .ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .nm { font-weight: 600; color: var(--brown-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row .info .pr { color: var(--muted); font-size: .85rem; }
.mini-stepper { display: flex; align-items: center; gap: 7px; }
.mini-stepper button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--brown); }
.mini-stepper button:hover { background: #fbeede; border-color: var(--accent); }
.cart-row .remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; }
.cart-foot { flex-shrink: 0; padding: 16px 22px 22px; border-top: 1px solid var(--line); background: #fff; }
.cart-total { display: flex; justify-content: space-between; font-family: "Fraunces", serif; font-size: 1.3rem; font-weight: 700; color: var(--brown-deep); margin-bottom: 14px; }
.cart-foot input, .cart-foot textarea { width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 11px; font-size: .95rem; font-family: inherit; }
.cart-foot textarea { resize: vertical; min-height: 54px; }
.cart-foot input:focus, .cart-foot textarea:focus, .search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,110,68,.12); }
.cart-actions { display: flex; flex-direction: column; gap: 9px; }
.note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.guarantee { font-size: .78rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 12px; line-height: 1.6; }

/* Toasts */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; width: max-content; max-width: 92vw; }
.toast { background: var(--brown-deep); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .eyebrow, .hero-cta, .hero-trust { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 320px; margin-top: 10px; }
  .wheat { opacity: .09; width: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .cart-btn .nav-text { display: none; }
  .modal { grid-template-columns: 1fr; }
  .modal .pic { min-height: 200px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding: 48px 20px 60px; }
  .shop { padding: 56px 20px; }
  .bar { padding: 10px 14px; gap: 12px; }
  .brand { font-size: 1.15rem; }
  .hero-visual { height: 280px; }
  .blob { width: 240px; height: 240px; }
  .hero-plate { font-size: 6.5rem; }
  .float-pill { padding: 8px 12px; font-size: .74rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-card { padding: 30px 24px; }
  .compare { grid-template-columns: 1fr; }
  .wheat { display: none; }
  .card .add { padding: 11px 16px; }
  .filter-btn { padding: 9px 14px; }

  /* Cart drawer — mobile: each step has its own scroll area + pinned footer. */
  .drawer { width: 100%; }
  .drawer > header { padding: 15px 18px; }
  .drawer > header h2 { font-size: 1.15rem; }
  .cart-items { padding: 8px 16px; }
  .checkout-body { padding: 14px 16px; }
  .cart-row { gap: 10px; padding: 11px 0; }
  .cart-row .ci-thumb { width: 46px; height: 46px; }
  .cart-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cart-total { font-size: 1.12rem; margin-bottom: 10px; }
  .checkout-body input, .checkout-body textarea { padding: 12px; font-size: 16px; }
  .checkout-body textarea { min-height: 42px; }
  .guarantee { font-size: .74rem; }
  .cart-foot .note { margin-top: 6px; font-size: .76rem; }

  /* Stats row stacks tighter */
  .stats-row { gap: 24px 40px; margin-bottom: 32px; padding-bottom: 28px; }
  .stat-big strong { font-size: 1.9rem; }
}
