/* SabziFresh storefront — mobile-first, no external fonts (zero font CLS). */
:root {
  --green-900: #0f3d1f;
  --green-800: #155c2c;
  --green-700: #1f7a3a;
  --green-600: #24914a;
  --green-500: #2fa84f;
  --green-100: #e3f4e6;
  --green-50: #f2faf3;
  --leaf: #8bc34a;
  --tomato: #e8492f;
  --carrot: #f08a24;
  --turmeric: #f4b400;
  --ink: #17261b;
  --ink-2: #44554a;
  --muted: #66766b;
  --line: #dbe7dd;
  --bg: #fbfdf9;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 61, 31, .06), 0 6px 20px rgba(16, 61, 31, .07);
  --shadow-lg: 0 10px 34px rgba(16, 61, 31, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--green-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code { background: var(--green-100); color: var(--green-900); padding: .1em .4em; border-radius: 6px; font-weight: 700; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--green-600); margin-bottom: .4em; }
.eyebrow a { color: inherit; text-decoration: none; }
.hi { font-weight: 500; color: var(--muted); font-size: .9em; }
.plain { list-style: none; margin: 0; padding: 0; }
.ok { color: var(--green-700); }
.saving { color: var(--green-700); font-weight: 700; }
.hp { position: absolute; left: -5000px; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .6em 1.2em; border: 2px solid var(--green-700); border-radius: 999px; background: var(--green-700); color: #fff; font: 700 1rem/1.1 var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 38px; padding: .4em .9em; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .7em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-900); border-color: transparent; }
.btn-danger { background: var(--tomato); border-color: var(--tomato); }
.btn.is-loading { opacity: .7; pointer-events: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--green-700); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--tomato); border-color: var(--tomato); }
label { display: block; font-weight: 600; font-size: .92rem; margin: .8em 0 .3em; }
label.check { display: flex; gap: .55em; align-items: flex-start; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 44px; padding: .55em .8em; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
input[type=checkbox], input[type=radio] { width: 1.15em; height: 1.15em; min-height: 0; margin-top: .2em; accent-color: var(--green-700); flex: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47, 168, 79, .2); }
[aria-invalid=true] { border-color: var(--tomato); }
.err { color: #b3261e; font-size: .88rem; margin: .3em 0 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 1.1rem var(--font-head); color: var(--green-900); padding: 0; margin-bottom: .3em; }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 .8em; background: var(--green-50); border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 700; }
.prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form .btn { margin-top: 1em; }

/* ---------- header */
.envbar { background: #7a1f1f; color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; }
.envbar a { color: #fff; }
.promo-bar { background: var(--green-900); text-align: center; font-size: .9rem; }
.promo-bar a { display: block; color: #fff; padding: 8px 16px; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1.25rem var(--font-head); color: var(--green-800); }
.brand img { flex: none; }
.brand-y { color: #e8770e; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { white-space: nowrap; }
.brand-tag { font: 700 .55rem var(--font); letter-spacing: .28em; color: #4b5d51; margin-top: 2px; }
.brand-footer .brand-tag { color: #cfe3d4; }
.search { display: flex; grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; position: relative; }
.search input { border-radius: 999px; padding-left: 1em; padding-right: 3em; background: var(--green-50); border-color: transparent; }
.search input:focus { background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 50%; background: var(--green-700); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--green-800); text-decoration: none; font-size: .72rem; font-weight: 600; }
.icon-link span { margin-top: 1px; }
.cart-count { position: absolute; top: 2px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tomato); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { width: 48px; height: 48px; border: 0; background: none; color: var(--green-800); cursor: pointer; display: grid; place-items: center; }
.main-nav { border-top: 1px solid var(--line); display: none; }
.main-nav.open { display: block; }
.main-nav .wrap { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 10px; }
.main-nav a { padding: 10px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current=page] { color: var(--green-700); }
.nav-sep { display: none; }
.nav-cat { font-weight: 500 !important; color: var(--ink-2) !important; }
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(280px, 560px) auto; justify-content: space-between; }
  .search { grid-column: auto; grid-row: auto; margin: 0; }
  .menu-btn { display: none; }
  .main-nav { display: block; }
  .main-nav .wrap { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding-top: 0; padding-bottom: 0; align-items: center; }
  .main-nav a { border: 0; padding: 10px 0; font-size: .94rem; border-bottom: 3px solid transparent; }
  .main-nav a:hover, .main-nav a[aria-current=page] { border-bottom-color: var(--green-500); }
  .nav-sep { display: block; width: 1px; height: 18px; background: var(--line); }
}

/* ---------- flash / toast */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--green-100); border-left: 4px solid var(--green-600); }
.flash-error { background: #fdecea; border-color: var(--tomato); }
.flash-info { background: #fff6dc; border-color: var(--turmeric); }
.toast { position: fixed; left: 50%; bottom: 140px; transform: translate(-50%, 20px); z-index: 60; max-width: calc(100% - 32px); background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .2s; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8c1d18; }

/* ---------- breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, #dff3d9 0%, transparent 60%), linear-gradient(160deg, #f4fbef 0%, #e6f5e3 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 16px; padding-top: 28px; padding-bottom: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; margin-bottom: .35em; }
.hero h1 span { color: var(--green-600); background: linear-gradient(90deg, var(--green-600), var(--leaf)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-search { display: flex; gap: 8px; margin: 18px 0 14px; max-width: 560px; }
.hero-search input { border-radius: 999px; min-height: 52px; padding-left: 1.2em; box-shadow: var(--shadow); border-color: transparent; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.hero-points li { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.hero-points li::before { content: "✓ "; color: var(--green-600); font-weight: 800; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: linear-gradient(135deg, var(--leaf), var(--green-500)); opacity: .28; filter: blur(2px); }
.hero-photo { position: relative; margin: 0 auto; width: min(100%, 560px); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow-lg), 0 24px 60px rgba(16, 61, 31, .18); }
.hero-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95); color: var(--green-900); font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.hero-badge strong { color: var(--green-600); }
.hero-badge-top { top: 18px; left: -14px; }
.hero-badge-bottom { bottom: 20px; right: -14px; font-weight: 600; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@media (max-width: 699px) { .hero-art { order: -1; width: 100%; } .hero-badge { font-size: .78rem; padding: 6px 11px; } .hero-badge-top { left: 6px; } .hero-badge-bottom { right: 6px; } }
@media (min-width: 700px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 48px; padding-bottom: 48px; } }

/* ---------- category strip */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding-top: 18px; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cat-pill { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 12px 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 600; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-500); color: var(--green-800); }
@media (min-width: 1000px) { .cat-strip { justify-content: center; flex-wrap: wrap; overflow: visible; } }

/* ---------- sections */
.section { margin: 36px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; text-decoration: none; }
.page-head { padding: 20px 0 8px; }

/* ---------- product cards */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.results .grid { }
@media (min-width: 1000px) { .results .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .results .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.veg-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.veg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; background: linear-gradient(180deg, var(--green-50), #fff); aspect-ratio: 1 / 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .4s ease; }
.veg-card:hover .card-media img { transform: scale(1.06) rotate(-2deg); }
.card-media picture img { padding: 0; object-fit: cover; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--tomato); color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.ribbon-lg { font-size: .9rem; padding: 6px 12px; }
.chip { position: absolute; bottom: 8px; left: 8px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.chip-fresh { background: var(--green-100); color: var(--green-800); }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-size: 1rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green-700); }
.card-title .hi { display: block; font-size: .8rem; }
.unit-note { font-size: .78rem; color: var(--muted); margin: 0; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 2px 0; }
.price { font: 800 1.2rem var(--font-head); color: var(--green-900); }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.mrp { color: var(--muted); font-size: .85rem; }
.badge-off { background: #fdecea; color: #b3261e; font-weight: 700; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.trend { font-size: .75rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.trend-up { color: #b3261e; background: #fdecea; }
.trend-down { color: var(--green-800); background: var(--green-100); }
.stock { font-size: .78rem; color: var(--green-700); margin: 0 0 6px; font-weight: 600; }
.stock-out { color: #b3261e; font-weight: 700; }
.is-out .card-media img { filter: grayscale(.7); opacity: .7; }
.add-form { display: flex; gap: 6px; margin-top: auto; }
.add-form select { min-height: 38px; padding: .3em .5em; font-size: .88rem; flex: 1; min-width: 0; }
.add-form-lg { display: grid; grid-template-columns: 1fr; gap: 8px; }
.add-form-lg label { margin: 0; }
.add-form-lg select { min-height: 48px; font-size: 1rem; }
@media (min-width: 480px) { .add-form-lg { grid-template-columns: 1fr auto; align-items: end; } .add-form-lg label { grid-column: 1 / -1; } }

/* ---------- reveal animation */
/* Only elements that start below the fold are hidden (by JS), so LCP and above-the-fold content are never delayed. */
.reveal.pre { opacity: 0; transform: translateY(14px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

/* ---------- home bands */
.delivery-band { display: grid; gap: 12px; margin-top: 24px; padding: 20px; background: #fff; border: 1px dashed var(--green-500); border-radius: var(--radius); }
.delivery-band h2 { margin-bottom: .2em; }
@media (min-width: 800px) { .delivery-band { grid-template-columns: 1fr 1fr; align-items: center; } }
.dcheck label { margin-top: 0; }
.dcheck-row { display: flex; gap: 8px; }
.dcheck-row input { flex: 1; min-width: 0; }
.dcheck select { margin-top: 8px; }
.dcheck .linklike { margin-top: 8px; font-size: .9rem; }
.dcheck-result { margin: 8px 0 0; font-weight: 600; min-height: 1.2em; }
.dcheck-result.served { color: var(--green-700); }
.dcheck-result.outside, .dcheck-result.unknown { color: #a5520b; }
.offer-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .offer-row { grid-template-columns: repeat(3, 1fr); } }
.offer-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--carrot), var(--tomato)); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.offer-card:hover { color: #fff; transform: translateY(-2px); }
.offer-coupon { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.offer-card code { background: rgba(255, 255, 255, .2); color: #fff; }
.seasonal-band { background: linear-gradient(180deg, #fff8e6, transparent); border-radius: var(--radius); padding: 18px 16px; }
.basket-row, .basket-list { display: grid; gap: 14px; }
@media (min-width: 800px) { .basket-row { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.home-baskets { padding-top: 24px; }
.basket-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.basket-card img { width: 110px; flex: none; }
.basket-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.basket-card-lg img { width: 160px; }
@media (max-width: 520px) { .basket-card-lg { flex-direction: column; align-items: flex-start; } }
.bulk-band { display: grid; gap: 16px; padding: 28px 20px; border-radius: 22px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(139, 195, 74, .35), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-700)); }
.bulk-band h2, .bulk-band .eyebrow { color: #fff; }
.bulk-band .eyebrow { opacity: .8; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: center; }
@media (min-width: 900px) { .bulk-band { grid-template-columns: 1.4fr 1fr; padding: 40px; } .bulk-actions { justify-content: flex-end; } }
.why-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid > div { background: var(--green-50); border-radius: var(--radius); padding: 18px; }
.post-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { padding: 0; overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- shop */
.shop-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 250px 1fr; align-items: start; } .filters { position: sticky; top: 130px; } }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.filter-box summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.filter-box .btn { margin-top: 12px; }
.filter-box fieldset { margin-top: 10px; }
.filter-box legend { font-size: .92rem; font-family: var(--font); }
.cat-list { margin-top: 14px; display: none; }
@media (min-width: 900px) { .cat-list { display: block; } }
.cat-list a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-2); }
.cat-list a[aria-current=page] { color: var(--green-700); font-weight: 700; }
.small-h { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--font); }
.intro { max-width: 75ch; }
.empty { text-align: center; padding: 32px 16px; display: grid; justify-items: center; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.pager span[aria-current] { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- product page */
.product { padding-top: 8px; }
.product-grid { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 860px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.product-media { position: relative; background: radial-gradient(circle at 50% 40%, #fff, var(--green-50)); border-radius: 24px; border: 1px solid var(--line); display: grid; place-items: center; padding: 24px; aspect-ratio: 1 / 1; max-height: 560px; }
.product-media img { width: 85%; height: 85%; object-fit: contain; animation: pop .6s ease both; }
.product-media picture img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.product-media .ribbon { top: 16px; left: 16px; }
.product-info h1 { margin-bottom: .2em; }
.rating-link { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.stars { color: var(--turmeric); letter-spacing: 1px; }
.buy-box { margin: 14px 0; }
.buy-box .price { font-size: 1.9rem; }
.facts { margin: 12px 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.facts li span { color: var(--muted); }
.facts li strong { text-align: right; }
.buy-extra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: .92rem; }
.dcheck-card { margin-top: 12px; }
.product-details { display: grid; gap: 24px; margin-top: 30px; }
@media (min-width: 900px) { .product-details { grid-template-columns: 1.6fr 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.3em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { border-left: 4px solid var(--green-500); margin: 1em 0; padding: .4em 1em; background: var(--green-50); border-radius: 0 8px 8px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.inline-links a { font-weight: 600; }
.review-list .review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.reply { background: var(--green-50); padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.review-form { max-width: 560px; margin-top: 16px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input legend { width: 100%; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; color: var(--line); cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--turmeric); }
.star-input input:focus-visible + label { outline: 3px solid var(--turmeric); }
.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ */
.faq { margin: 36px auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 16px 6px; color: var(--ink-2); }

/* ---------- prices page */
.price-table-wrap { margin: 24px 0; }
.price-table th[scope=row] a { font-weight: 700; color: var(--ink); }

/* ---------- cart & checkout */
.cart-layout, .checkout-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr 360px; align-items: start; } .summary { position: sticky; top: 130px; } }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img info rm" "img qty total"; gap: 6px 12px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.cart-thumb { grid-area: img; background: var(--green-50); border-radius: 12px; padding: 4px; }
.cart-info { grid-area: info; display: flex; flex-direction: column; font-size: .9rem; }
.cart-name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1rem; }
.cart-qty { grid-area: qty; }
.cart-qty select { min-height: 38px; padding: .3em .5em; width: auto; }
.qty-step { container-type: inline-size; display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty-step button { flex: none; width: 38px; min-height: 38px; border: 0; background: var(--green-50); color: var(--green-800); font: 700 1.25rem/1 var(--font); cursor: pointer; transition: background .15s; }
.qty-step button:hover:not(:disabled) { background: var(--green-100); }
.qty-step button:active:not(:disabled) { background: #cfe9d4; }
.qty-step button:focus-visible { outline-offset: -3px; border-radius: 999px; }
.qty-step button:disabled { color: #b5bfb8; cursor: not-allowed; }
.qty-field { display: flex; align-items: center; justify-content: center; gap: 3px; flex: 1; min-width: 0; overflow: hidden; margin: 0; padding: 0 4px; font-weight: 700; }
.qty-field input { flex: none; min-width: 2ch; max-width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: right; font: inherit; font-weight: 700; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.qty-field input::-webkit-outer-spin-button, .qty-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-field:focus-within { background: var(--green-50); }
.qty-unit { flex: none; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
@container (max-width: 130px) { .qty-unit { display: none; } }
/* product cards and product page: stepper on top, full-width Add button below */
.add-form-card { flex-direction: column; gap: 8px; }
.add-form-card .qty-step { display: flex; }
.add-form-card .btn { width: 100%; justify-content: center; }
.add-form-lg .qty-step { display: flex; width: 240px; max-width: 100%; }
.cart-qty { min-width: 0; }
.cart-qty .qty-step { display: flex; width: 100%; max-width: 168px; }
.add-form-lg .qty-step button { width: 48px; min-height: 48px; }
.add-form-lg .qty-field input { font-size: 1.1rem; }
.cart-total { grid-area: total; text-align: right; }
.cart-line form[data-cart-remove] { grid-area: rm; justify-self: end; }
.issue { color: #b3261e; font-weight: 600; font-size: .88rem; }
.is-out { }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; font-weight: 600; }
.totals .grand { font-size: 1.15rem; font-weight: 800; color: var(--green-900); border-top: 1px solid var(--line); padding-top: 8px; }
.hint { background: #fff6dc; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.coupon { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.checkout-main { display: grid; gap: 14px; }
.checkout-main fieldset.card { padding: 16px 18px 20px; }
.slot-dates, .slots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.slot-date, .slot { margin: 0; font-weight: 600; }
.slot-date input, .slot input, .choice input { position: absolute; opacity: 0; }
.slot-date span, .slot span, .choice span { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.slot-date input:checked + span, .slot input:checked + span, .choice input:checked + span { border-color: var(--green-600); background: var(--green-50); color: var(--green-900); box-shadow: inset 0 0 0 1px var(--green-600); }
.slot-date input:focus-visible + span, .slot input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid var(--turmeric); }
.pay-opt { display: flex; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt small { color: var(--muted); }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.pay-grid { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 700px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.qr img { margin: 8px auto; }
.success { text-align: center; padding-top: 24px; }
.success .card, .success .flash { text-align: left; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--green-600); color: #fff; font-size: 2.2rem; animation: pop .5s ease; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 18px 0; counter-reset: s; }
.progress li { position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 34px; }
.progress li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); line-height: 24px; font-weight: 700; }
.progress li.done { color: var(--green-800); font-weight: 600; }
.progress li.done::before { content: "✓"; background: var(--green-600); border-color: var(--green-600); color: #fff; }
.progress li.current::before { box-shadow: 0 0 0 4px var(--green-100); }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--green-100); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); }
.order-view .card { margin: 14px 0; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.order-actions details { flex: 1; min-width: 240px; }
.status { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-800); white-space: nowrap; }
.status-cancelled { background: #fdecea; color: #b3261e; }
.status-placed { background: #fff6dc; color: #7a5300; }

/* ---------- account */
.account-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1.6fr 1fr; } }
.points strong { font-size: 2rem; color: var(--green-700); }
.ledger li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.ledger .pos { color: var(--green-700); }
.ledger .neg { color: #b3261e; }
form.inline { display: inline; }
.auth { padding-top: 20px; }

/* ---------- pages, bulk */
.page-cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .page-cols { grid-template-columns: 1fr 340px; align-items: start; } .sticky-cta { position: sticky; top: 130px; } }
.bulk-hero { display: grid; gap: 16px; align-items: center; margin: 16px 0 24px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, #f4fbef, #e3f4e6); }
.bulk-hero img { max-width: 300px; margin: 0 auto; }
@media (min-width: 800px) { .bulk-hero { grid-template-columns: 1.5fr 1fr; padding: 36px; } }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 6px; }
.contact-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 16px 0; }
.contact-cards .card { display: flex; flex-direction: column; gap: 2px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.facts-inline li { background: var(--green-50); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.coupon-big { font-size: 1.2rem; }
.wizard-steps { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; counter-reset: w; }
.wizard-steps li { flex: 1; min-width: 80px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); padding: 8px 4px; border-bottom: 3px solid var(--line); }
.wizard-steps li.active { color: var(--green-800); border-color: var(--green-600); }
.wizard-steps li.done { color: var(--green-700); border-color: var(--green-500); }
.wstep { margin-bottom: 14px; }
.choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.choice { margin: 0; font-weight: 600; }
.choice span { width: 100%; }
.label { font-weight: 600; font-size: .92rem; margin: .8em 0 .3em; }
.qty-group { margin-top: 14px; }
.qty-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .qty-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .qty-grid { grid-template-columns: repeat(3, 1fr); } }
.qty-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; background: var(--green-50); border-radius: 10px; font-weight: 600; }
.qty-item small { display: block; font-weight: 400; }
.qty-in { display: flex; align-items: center; gap: 4px; flex: none; }
.qty-in input { width: 84px; min-height: 40px; }
.qty-in abbr { text-decoration: none; font-size: .8rem; color: var(--muted); min-width: 36px; }
.estimator { background: #fff6dc; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 30px; }
.wizard-actions [data-submit] { margin-left: auto; }
.review-sum dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.review-sum dt { color: var(--muted); }
.review-sum dd { margin: 0; font-weight: 600; }
.post-head { text-align: left; padding-top: 16px; }
.post-hero img { width: 100%; border-radius: 20px; margin: 10px 0 20px; }
.post-layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 260px 1fr; } .toc { position: sticky; top: 130px; align-self: start; } }
.toc ol { padding-left: 1.1em; margin: 0; font-size: .9rem; }
.toc .toc-l3 { margin-left: 1em; list-style: circle; }
.author { margin: 24px auto; }
.error-page { padding: 32px 16px; text-align: center; }
.error-page .hero-search { margin: 20px auto; }

/* ---------- footer */
.site-footer { margin-top: 56px; background: var(--green-900); color: #d5e8d8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid .muted { color: #a9c7ae; }
.footer-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); }
.footer-grid li { padding: 4px 0; }
.brand-footer { color: #fff; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; padding-bottom: 90px; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-base .linklike { color: #fff; }
@media (min-width: 900px) { .footer-base { padding-bottom: 24px; } }

/* ---------- floating bits */
.wa-float { position: fixed; right: 16px; bottom: 148px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (min-width: 900px) { .wa-float { bottom: 24px; } }
.mobile-cart-bar { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 44; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--green-700); color: #fff; text-decoration: none; font-weight: 700; box-shadow: var(--shadow-lg); animation: slideup .35s ease; }
.mobile-cart-bar:hover { color: #fff; background: var(--green-800); }
@keyframes slideup { from { transform: translateY(120%); } }
@media (min-width: 900px) { .mobile-cart-bar { display: none; } }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .9rem; }
.consent p { margin-bottom: .5em; }
.consent-opts { display: flex; gap: 16px; margin: 6px 0 10px; }
.consent-opts label { display: flex; gap: 6px; margin: 0; font-weight: 600; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media print { .site-header, .site-footer, .wa-float, .mobile-cart-bar, .consent { display: none !important; } }

/* ---------- mobile bottom navigation */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(16, 61, 31, .08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; }
.bottom-nav a[aria-current=page] { color: var(--green-700); }
.bottom-nav a[aria-current=page]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green-600); }
.bottom-nav .cart-count { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: 64px; }
@media (min-width: 900px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }

/* ---------- search suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a:focus { background: var(--green-50); outline: none; }
.suggest img { border-radius: 8px; background: var(--green-50); flex: none; }
.suggest span { flex: 1; font-weight: 600; }
.suggest small { color: var(--green-700); font-weight: 700; white-space: nowrap; }
.hero-search { position: relative; }

/* ---------- free-delivery progress */
.ship-bar { margin: 12px 0; padding: 10px 12px; background: #fff6dc; border-radius: var(--radius-sm); font-size: .9rem; }
.ship-bar-track { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; margin-bottom: 6px; }
.ship-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--turmeric), var(--green-500)); transition: width .5s ease; }
.ship-ok { margin: 12px 0; padding: 10px 12px; background: var(--green-100); border-radius: var(--radius-sm); color: var(--green-900); font-weight: 700; font-size: .9rem; }

/* ---------- polish & motion */
.fly-dot { position: fixed; z-index: 90; width: 18px; height: 18px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px rgba(47, 168, 79, .25); pointer-events: none; transition: transform .7s cubic-bezier(.5, -.2, .8, .4), opacity .7s; }
.veg-card { transition: transform .2s, box-shadow .2s; }
.veg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ribbon { box-shadow: 0 2px 6px rgba(232, 73, 47, .4); }
.btn:active { transform: scale(.97); }

/* ---------- price update ticker */
.price-ticker { background: var(--green-900); color: #fff; overflow: hidden; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.price-ticker-track { display: flex; width: 200%; line-height: 1.4; animation: ticker 32s linear infinite; }
.price-ticker span { flex: none; padding: 9px 2.5em 9px 0; min-width: 50%; }
.price-ticker:hover .price-ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .price-ticker { white-space: normal; text-align: center; } .price-ticker-track { animation: none !important; min-width: 0; width: auto; display: block; } .price-ticker span + span { display: none; } .price-ticker span { padding: 9px 16px; min-width: 0; } }
@media print { .price-ticker { display: none; } }

.rate-note { margin: 14px 0; padding: 12px 14px; background: #fff6dc; border-left: 4px solid var(--turmeric); border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.otp-resend { margin-top: 14px; }

/* ---------- delivery partner card & live map (order page) */
.rider-card .rider-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: .5em; }
.delivery-code { margin: 10px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff6dc; border: 1px dashed var(--turmeric); text-align: center; }
.delivery-code span { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b4a00; }
.delivery-code strong { display: block; font-size: 2.2rem; letter-spacing: .3em; color: var(--green-900); }
.delivery-code small { color: var(--ink-2); }
.rider-map { height: 280px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 10px; z-index: 1; }

/* ---------- grand opening invitation */
.opening { padding-top: 32px; padding-bottom: 32px; }
.opening-grid { display: grid; gap: 28px; align-items: center; padding: 28px 16px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: radial-gradient(600px 300px at 90% 0%, rgba(139, 195, 74, .25), transparent 60%), linear-gradient(160deg, var(--green-50), #fff); }
.script { font-family: var(--font-head); font-weight: 700; color: var(--green-700); margin: 0 0 .4em; font-size: 1.1rem; }
.script-lg { font-size: 1.3rem; margin: .8em 0; }
.opening-main { text-align: center; }
.open-banner { position: relative; margin: 8px 0 18px; padding: 18px 14px; border-radius: var(--radius); color: #fff; background: radial-gradient(500px 200px at 90% 0%, rgba(139, 195, 74, .35), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-700)); border-bottom: 4px solid var(--turmeric); box-shadow: var(--shadow-lg); }
.open-banner h2 { margin: 0; text-transform: uppercase; letter-spacing: .03em; font-weight: 800; font-size: clamp(1.5rem, 5.5vw, 2.2rem); color: #fff; }
.opening-text { font-size: 1.05rem; color: var(--ink); max-width: 34em; margin: 0 auto .8em; }
.opening-sub { color: var(--muted); max-width: 30em; margin: 0 auto; }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 12px 0 20px; }
.countdown div { background: var(--green-900); border-radius: 14px; min-width: 70px; padding: 10px 6px; color: rgba(255, 255, 255, .75); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; box-shadow: var(--shadow); }
.countdown b { display: block; font-size: 1.9rem; line-height: 1.2; color: var(--turmeric); font-variant-numeric: tabular-nums; }
.opening-open { font-size: 1.3rem; font-weight: 800; color: var(--green-700); margin: 12px 0 20px; }
.opening-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.invite-card { border: 2px solid var(--green-600); border-radius: 20px; padding: 6px; background: #fff; box-shadow: var(--shadow-lg); }
.invite-inner { border: 1px dashed var(--green-500); border-radius: 15px; padding: 22px 18px; text-align: center; }
.script-xl { font-size: 1.7rem; line-height: 1.25; color: var(--green-800); }
.invite-to { color: var(--ink-2); }
.invite-list { margin: 16px 0; text-align: left; }
.invite-list div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.invite-list dt { font-weight: 700; color: var(--muted); }
.invite-list dd { margin: 0; font-weight: 700; color: var(--green-900); }
.invite-foot { color: var(--green-800); margin: 0; font-size: 1.1rem; }
@media (min-width: 900px) {
  .opening-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 36px 40px; }
  .invite-inner { padding: 28px; }
}

/* opening — extra polish */
.opening-grid { position: relative; overflow: hidden; }
.opening-grid > * { position: relative; z-index: 1; }
.confetti { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; opacity: .7;
  background:
    radial-gradient(circle 4px at 8% 18%, var(--turmeric) 98%, transparent), radial-gradient(circle 3px at 22% 80%, var(--leaf) 98%, transparent),
    radial-gradient(circle 4px at 46% 10%, var(--tomato) 98%, transparent), radial-gradient(circle 3px at 60% 90%, var(--turmeric) 98%, transparent),
    radial-gradient(circle 4px at 74% 22%, var(--leaf) 98%, transparent), radial-gradient(circle 3px at 92% 70%, var(--carrot) 98%, transparent),
    radial-gradient(circle 3px at 35% 45%, var(--turmeric) 98%, transparent), radial-gradient(circle 4px at 96% 12%, var(--tomato) 98%, transparent);
  animation: confetti-float 6s ease-in-out infinite alternate; }
@keyframes confetti-float { to { transform: translateY(10px); } }
.open-banner { overflow: hidden; border-top: 3px solid var(--turmeric); }
.open-banner::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); animation: banner-shine 4.5s ease-in-out infinite; }
@keyframes banner-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.open-badge { display: inline-block; margin-bottom: 6px; padding: 2px 14px; border-radius: 999px; background: var(--turmeric); color: var(--green-900); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.open-banner h2 { text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.opening-main .script:first-child { display: inline-block; padding: 3px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.countdown div { position: relative; background: linear-gradient(180deg, var(--green-800), var(--green-900)); border: 1px solid rgba(255, 255, 255, .12); min-width: 76px; }
.countdown div::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .25); }
.countdown div:last-child b { animation: tick-pulse 1s ease-in-out infinite; }
@keyframes tick-pulse { 50% { transform: scale(1.12); } }
.opening-actions .btn:first-child { box-shadow: 0 8px 20px rgba(31, 122, 58, .35); }
.invite-card { position: relative; background: linear-gradient(180deg, #fff, var(--green-50)); transition: transform .25s; }
.invite-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.invite-seal { position: absolute !important; top: -18px; right: -10px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--turmeric); font-size: 1.4rem; box-shadow: var(--shadow-lg); border: 3px solid #fff; animation: seal-wobble 3s ease-in-out infinite; }
@keyframes seal-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.orn { color: var(--turmeric); margin: 0; font-size: 1rem; }
.invite-list dt { display: flex; align-items: center; gap: 8px; }
.ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.invite-list div { grid-template-columns: 7em 1fr; align-items: center; }
.invite-foot { padding-top: 4px; }
.test-note { display: inline-block; max-width: 34em; margin: 18px auto 0; padding: 8px 16px; border-radius: var(--radius-sm); background: #fff8e1; border: 1px solid var(--turmeric); color: #6b4e00; font-size: .92rem; }
.test-note[hidden] { display: none; }

/* ---------- small-screen fixes (home) */
/* Long section titles wrap above their "see all" link instead of being squeezed beside it. */
.section-head { flex-wrap: wrap; row-gap: 4px; }
.section-head h2 { flex: 1 1 14em; min-width: 0; }
.hero-search input { min-width: 0; }
@media (max-width: 480px) {
  /* Four countdown boxes share the row instead of overflowing (and being clipped) on narrow phones. */
  .countdown { gap: 6px; }
  .countdown div { flex: 1 1 0; min-width: 0; max-width: 76px; padding: 8px 2px; font-size: .62rem; letter-spacing: 0; }
  .countdown b { font-size: 1.5rem; }
  .opening-grid { padding: 22px 12px; }
  .invite-inner { padding: 18px 12px; }
  .invite-list div { grid-template-columns: 6.2em 1fr; }
  .invite-seal { right: 4px; }
  .seasonal-band { padding: 16px 12px; }
  .hero-search .btn-lg { padding-left: 1.1em; padding-right: 1.1em; }
  .grid { gap: 10px; }
  .card-body { padding: 10px; }
  .add-form .btn-sm { padding-left: .8em; padding-right: .8em; }
}

/* ---------- small-screen fixes (header / ticker / overflow) */
/* body overflow-x alone doesn't stop sideways panning on mobile browsers. */
html, body { overflow-x: clip; }
/* Ticker track must be as wide as its text, or the -50% loop jumps on long messages. */
.price-ticker-track { width: max-content; min-width: 200%; }
.price-ticker span { min-width: 0; flex: 1 0 50%; }
@media (max-width: 899px) {
  /* Log in / Account already lives in the bottom nav; dropping it here keeps the header row inside 320–360px screens. */
  .header-actions .icon-link:not(.cart-link) { display: none; }
  /* Even breathing room above the logo row and below the search, incl. notched phones. */
  .header-row { min-height: 0; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 12px; column-gap: 10px; row-gap: 10px; }
  .search { margin-bottom: 0; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Cart and menu as matching round icon buttons, so the label doesn't push the cart off the menu's line. */
  .header-actions { gap: 8px; }
  .header-actions .cart-link, .menu-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 50%; background: var(--green-50); }
  .header-actions .cart-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-actions .cart-count { top: -4px; right: -4px; border: 2px solid #fff; line-height: 16px; }
}
@media (max-width: 380px) {
  .header-row { gap: 8px; }
  .brand { font-size: 1.1rem; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .open-badge { letter-spacing: .06em; padding: 2px 10px; }
  .script-xl { font-size: 1.45rem; }
}
/* Hover lift only on real pointers; on touch it sticks after a tap. */
@media (hover: none) { .invite-card:hover, .veg-card:hover, .cat-pill:hover { transform: none; } }

/* ---------- small-screen fixes (account) */
/* Grid items default to min-width:auto, so the orders table pushed the column wider than the screen. */
.account-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .account-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.account-grid h2 { margin-top: 0; }
.ledger li span { min-width: 0; overflow-wrap: anywhere; }
.ref-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.ref-share input { flex: 1 1 100%; min-width: 0; font-size: .88rem; }
@media (max-width: 639px) {
  .account-head h1 { margin-bottom: 0; }
  /* Orders as stacked cards instead of a sideways-scrolling table. */
  .orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; }
  .orders-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .orders-table td { padding: 0; border: 0; }
  .orders-table td[data-label="Order"] { grid-column: 1 / -1; }
  .orders-table td[data-label="Delivery"]::before, .orders-table td[data-label="Total"]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .orders-table td[data-label="Total"] { font-weight: 700; text-align: right; }
  .orders-act { align-self: center; justify-self: end; }
  .ref-share .btn { flex: 1 1 auto; }
}

/* Menu button shows a cross while the menu is open. */
.menu-btn .menu-close, .menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: block; }

/* ---------- responsive fixes (all devices) */
/* --header-h / --header-row-h are set by app.js from the real header, which grows when the desktop nav wraps. */
html { scroll-padding-top: calc(var(--header-h, 120px) + 12px); }
@media (min-width: 900px) { .filters, .summary, .sticky-cta { top: calc(var(--header-h, 118px) + 12px); } }
@media (min-width: 1000px) { .toc { top: calc(var(--header-h, 118px) + 12px); } }
@media (max-width: 899px) {
  /* The open menu lives inside the sticky header, so it must scroll itself or the last links can't be reached. */
  .main-nav.open { max-height: calc(100vh - var(--header-row-h, 120px)); max-height: calc(100dvh - var(--header-row-h, 120px)); overflow-y: auto; overscroll-behavior: contain; }
}
/* Editor content (blog posts, pages) can hold wide tables, embeds and long links. */
.prose { overflow-wrap: break-word; }
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose video, .prose iframe, .prose embed { max-width: 100%; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose pre { max-width: 100%; overflow-x: auto; }
.review-sum dd, .facts li strong { min-width: 0; overflow-wrap: anywhere; }
/* Touch screens get 44px tap targets on the smaller controls. */
@media (pointer: coarse) {
  .btn-sm, .add-form select, .cart-qty select, .qty-in input { min-height: 44px; }
  .qty-step button { width: 44px; min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .footer-grid li { padding: 0; }
  .footer-grid li a { display: inline-block; padding: 10px 0; }
}
@media (max-width: 479px) {
  /* Two-up product cards are too narrow for select + button side by side; stack them. 16px stops iOS zooming on tap. */
  .add-form { flex-direction: column; }
  .add-form select { flex: none; font-size: 16px; }
  .ref-share input { font-size: 16px; }
}
