/* ============ Gotti Farms – design tokens ============ */
:root {
  --green-900: #143d22;
  --green-800: #1b4d2b;
  --green-700: #1f5c32;
  --green-600: #2b7440;
  --leaf: #6aa84f;
  --sage-100: #eef4ec;
  --sage-200: #dfe9db;
  --ink: #1d2a20;
  --muted: #5d6b60;
  --line: #e3e8e1;
  --paper: #ffffff;
  --warm: #faf7f0;
  --danger: #b3261e;
  --amber: #a46a00;

  --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 61, 34, .06), 0 4px 14px rgba(20, 61, 34, .06);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { background: rgba(255,255,255,.75); border-color: var(--green-700); color: var(--green-800); }
.btn-outline:hover { background: #fff; }
.btn-light { background: #fff; color: var(--green-800); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ============ Header ============ */
.topbar { background: var(--green-800); color: #e8f1e5; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-info { display: flex; gap: 24px; align-items: center; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.topbar svg { width: 15px; height: 15px; flex: none; }
.topbar-social { display: flex; gap: 14px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green-800); flex: none; }
.logo svg { width: 44px; height: 44px; }
.logo-text { font-family: var(--font-head); line-height: 1; }
.logo-text b { display: block; font-size: 1.65rem; font-weight: 700; letter-spacing: .04em; }
.logo-text small { display: block; font-size: .72rem; letter-spacing: .55em; margin-top: 3px; font-weight: 500; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 6px 0; position: relative; }
.main-nav a[aria-current="page"] { color: var(--green-700); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -4px; height: 3px; border-radius: 2px; background: var(--green-700); }
.main-nav a:hover { color: var(--green-700); }

.header-search { margin-left: auto; display: flex; border: 1px solid #cdd6cb; border-radius: var(--radius-pill); overflow: hidden; width: 240px; }
.header-search input { border: 0; outline: 0; padding: .55em 1em; flex: 1; min-width: 0; font-size: .9rem; background: transparent; }
.header-search button { border: 0; background: var(--green-700); color: #fff; padding: 0 14px; cursor: pointer; display: grid; place-items: center; }
.header-search button svg { width: 18px; height: 18px; }
.header-icons { display: flex; gap: 14px; align-items: center; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--sage-100); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--green-700); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; background: #f6f3e6 url('/images/hero.jpg') right center / auto 100% no-repeat;
  min-height: 460px; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #f6f3e6 0%, #f6f3e6 40%, rgba(246,243,230,.75) 47%, rgba(246,243,230,0) 60%);
}
.hero .wrap { position: relative; padding-block: 56px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 13ch; color: var(--green-900); letter-spacing: -.01em; }
.hero p.lead { font-size: 1.15rem; max-width: 34ch; margin: 0 0 28px; color: #2d3a30; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; line-height: 1.3; padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(29,42,32,.18); }
.hero-points li:last-child { border-right: 0; }
.badge-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; flex: none; }
.badge-icon svg { width: 20px; height: 20px; }

/* ============ Sections ============ */
.section { padding-block: 56px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 600; position: relative; display: inline-block; padding-bottom: 10px; }
.section-head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--green-700); transform: translateX(-50%); }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-row h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; margin: 0; }
.section-row p { margin: 4px 0 0; color: var(--muted); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; white-space: nowrap; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--warm); border: 1px solid #efe9dc; border-radius: var(--radius); padding: 12px 10px 14px; transition: border-color .15s, transform .15s;
}
.category-tile:hover { border-color: var(--leaf); transform: translateY(-2px); }
.category-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; mix-blend-mode: multiply; }
.category-tile span { font-weight: 600; font-size: .95rem; margin-top: 6px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.product-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #f3f3f0; aspect-ratio: 1 / 0.82; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.heart {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15); color: var(--ink);
}
.heart svg { width: 17px; height: 17px; }
.heart[aria-pressed="true"] { color: #c2410c; }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.stock-flag { position: absolute; left: 8px; bottom: 8px; background: rgba(29,42,32,.85); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: var(--radius-pill); }
.product-info { padding: 10px 4px 4px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0 0 2px; }
.price { font-weight: 700; font-size: .95rem; }
.price small { font-weight: 600; color: var(--ink); font-size: .95rem; }
.product-actions { margin-top: auto; padding-top: 12px; }
.add-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--green-700); color: #fff; border-radius: 6px; padding: 9px 10px; font-weight: 600; font-size: .85rem;
}
.add-btn:hover { background: var(--green-900); }
.add-btn:disabled { background: #9aa59c; cursor: not-allowed; }
.add-btn svg { width: 16px; height: 16px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--green-700); border-radius: 6px; overflow: hidden; }
.stepper button { border: 0; background: var(--sage-100); color: var(--green-800); width: 38px; height: 36px; font-size: 1.15rem; cursor: pointer; font-weight: 700; }
.stepper button:hover { background: var(--sage-200); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { font-weight: 700; font-size: .9rem; }

/* Trust strip */
.trust { background: var(--sage-100); padding-block: 22px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.trust li { display: flex; align-items: center; gap: 12px; padding-inline: 16px; font-weight: 500; font-size: .9rem; line-height: 1.3; border-right: 1px solid #cfdccb; }
.trust li:last-child { border-right: 0; }
.trust svg { width: 34px; height: 34px; color: var(--green-700); flex: none; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 40px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; border-radius: 58% 42% 46% 54% / 55% 48% 52% 45%; }
.about-photo .leaf { position: absolute; color: #8cbf6c; width: 70px; }
.about-photo .leaf.a { left: -18px; top: 18%; transform: rotate(-30deg); }
.about-photo .leaf.b { right: -8px; top: -6px; transform: rotate(40deg); width: 48px; color: var(--leaf); }
.about h2 { font-size: 1.9rem; font-weight: 600; }
.about p { color: #3d4a40; max-width: 52ch; }
.stats { background: var(--sage-100); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.stat { display: flex; gap: 12px; align-items: center; }
.stat svg { width: 34px; height: 34px; color: var(--green-700); flex: none; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.process li { text-align: center; position: relative; counter-increment: step; }
.process li:not(:last-child)::after {
  content: ''; position: absolute; top: 52px; right: -22%; width: 26px; height: 2px; background: #7d8a80;
  -webkit-mask: none;
}
.process li:not(:last-child)::before {
  content: ''; position: absolute; top: 48px; right: calc(-22% - 1px); width: 8px; height: 8px; border-top: 2px solid #7d8a80; border-right: 2px solid #7d8a80; transform: rotate(45deg);
}
.process img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.process span { font-weight: 600; font-size: .95rem; }
.process span::before { content: counter(step) '. '; }

/* CTA banner */
.cta { background: linear-gradient(90deg, rgba(16,48,26,.9), rgba(16,48,26,.55)), url('/images/banner.jpg') center / cover; color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; margin: 0 0 6px; }
.cta p { margin: 0; color: #dfeadb; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--green-900); color: #c9d8c6; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d8c6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 16px; font-size: .82rem; }
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 50;
}
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ============ Shop page ============ */
.page-head { background: var(--sage-100); padding-block: 30px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cdd6cb; background: #fff; border-radius: var(--radius-pill); padding: 7px 15px; cursor: pointer; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.field-inline { display: flex; gap: 10px; align-items: center; }
.select, .input {
  border: 1px solid #c8d1c6; border-radius: var(--radius-sm); padding: .65em .85em; background: #fff; width: 100%; font-size: .95rem;
}
.select:focus, .input:focus { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty h2, .empty h3 { color: var(--ink); }

/* ============ Cart & checkout ============ */
.checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: #f3f3f0; }
.cart-line h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0; }
.cart-line .muted { font-size: .88rem; }
.cart-line .line-right { display: grid; justify-items: end; gap: 8px; }
.cart-line .stepper { width: 120px; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: .85rem; padding: 0; text-decoration: underline; }
.muted { color: var(--muted); }
.warn { color: var(--danger); font-size: .85rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); }
.summary { position: sticky; top: 96px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; column-gap: 0; margin: 0 0 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 1.2rem; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }
.free-note { background: var(--sage-100); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; margin-bottom: 16px; }
.pay-options { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--green-700); background: var(--sage-100); }
.pay-option input { margin-top: 4px; accent-color: var(--green-700); }
.pay-option b { display: block; font-size: .95rem; }
.pay-option small { color: var(--muted); }
.pay-option.disabled { opacity: .55; cursor: not-allowed; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; margin-bottom: 14px; }
.alert-error { background: #fdecea; color: #7a1a14; border: 1px solid #f5c2bd; }
.alert-info { background: #fff6e0; color: #6b4a00; border: 1px solid #f1dca4; }
.alert-ok { background: var(--sage-100); color: var(--green-900); border: 1px solid #c6dbc0; }

/* Order page */
.order-hero { text-align: center; padding: 10px 0 26px; }
.order-hero .check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; }
.order-hero .check svg { width: 34px; height: 34px; }
.order-wrap { max-width: 760px; margin-inline: auto; }
.status-track { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; grid-template-columns: repeat(5, 1fr); }
.status-track li { text-align: center; font-size: .82rem; color: var(--muted); position: relative; padding-top: 26px; }
.status-track li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--line); z-index: 1; }
.status-track li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-track li:first-child::after { display: none; }
.status-track li.done { color: var(--green-800); font-weight: 600; }
.status-track li.done::before, .status-track li.done::after { background: var(--green-700); }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; background: var(--sage-100); color: var(--green-800); white-space: nowrap; }
.pill.warn-pill { background: #fff3d6; color: var(--amber); }
.pill.bad { background: #fdecea; color: var(--danger); }
.pill.neutral { background: #eef0f2; color: #3f4a54; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--green-900); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm); font-size: .92rem; z-index: 100; transition: opacity .2s, transform .2s; pointer-events: none;
  display: flex; gap: 12px; align-items: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #b9e3a5; font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .header-search { width: 180px; }
  .main-nav { gap: 18px; }
  .trust ul { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .trust li:nth-child(3) { border-right: 0; }
  .about { grid-template-columns: 1fr 1.3fr; }
  .stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 8px 20px 14px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .site-header .wrap { gap: 12px; }
  .header-search { display: none; }
  .header-icons { margin-left: auto; }
  .topbar-info .hide-sm { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .process li::before, .process li::after { display: none; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .hero { background-size: cover; background-position: 70% center; }
  .hero::before { background: linear-gradient(90deg, rgba(250,247,236,.95) 0%, rgba(250,247,236,.85) 60%, rgba(250,247,236,.4) 100%); }
}
@media (max-width: 640px) {
  .topbar-social, .topbar-info + .topbar-info { display: none; }
  .hero { background-size: 100% auto; background-position: center bottom; align-items: flex-start; }
  .hero .wrap { padding-block: 32px 58vw; }
  .hero::before { background: linear-gradient(180deg, #f6f3e6 0%, #f6f3e6 calc(100% - 60vw), rgba(246,243,230,0) calc(100% - 42vw)); }
  .topbar .wrap { justify-content: center; }
  .hero-points { gap: 12px; flex-direction: column; }
  .hero-points li { border: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li { border: 0; padding-inline: 6px; }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr; }
  .cart-line img { width: 60px; height: 60px; }
  .cart-line .line-right { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .section { padding-block: 40px; }
  .section-row { flex-direction: column; align-items: flex-start; }
  .logo-text b { font-size: 1.35rem; }
}

/* Icon slots filled by JS */
:where([data-icon]) { display: inline-flex; }
.link-arrow svg { width: 16px; height: 16px; }
.about-photo .leaf svg { width: 100%; height: auto; }
.input[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }

/* ============ Farmer blog ============ */
:lang(te) { font-family: 'Noto Sans Telugu', var(--font-body); }
h1:lang(te), h2:lang(te), h3:lang(te) { line-height: 1.45; }
.small { font-size: .82rem; }
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--green-700); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.lang-toggle button { border: 0; background: none; padding: 7px 16px; cursor: pointer; font-weight: 600; color: var(--green-800); }
.lang-toggle button[aria-pressed="true"] { background: var(--green-700); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s;
}
.post-card:hover { border-color: var(--leaf); }
.post-card:hover h3 { color: var(--green-700); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage-100); }
.post-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin: 0; }
.post-card h3:lang(te) { font-family: 'Noto Sans Telugu', var(--font-head); }
.post-card p { margin: 0; color: #3d4a40; font-size: .93rem; flex: 1; }
.topic { align-self: flex-start; display: inline-block; font-size: .78rem; font-weight: 600; color: var(--green-800); background: var(--sage-100); border-radius: var(--radius-pill); padding: 3px 10px; }

.article-wrap { max-width: 760px; }
.article-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.back-link { color: var(--green-700); }
.article-wrap article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin: 12px 0 6px; color: var(--green-900); }
.article-meta { margin: 0 0 18px; font-size: .9rem; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.article-lead { font-size: 1.15rem; color: #2d3a30; margin: 0 0 8px; }
.article-body { font-size: 1.05rem; line-height: 1.7; }
.article-body:lang(te), article:lang(te) .article-body { line-height: 1.9; }
.article-body h2 { font-size: 1.4rem; font-weight: 600; margin: 1.6em 0 .5em; color: var(--green-900); }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.3em 0 .4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .55em; }
.article-body li::marker { color: var(--green-700); font-weight: 700; }
.article-note { font-size: .85rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.help-box { background: var(--sage-100); border-radius: 16px; padding: 22px 24px; margin-top: 28px; }
.help-box h2 { font-size: 1.25rem; margin-bottom: 4px; }
.help-box p { margin: 0 0 14px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ============ My Orders ============ */
.orders-title { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: 2px; }
.order-list { display: grid; gap: 16px; margin: 18px 0 28px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.order-card-head h2 { font-size: 1.1rem; margin: 0 0 2px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-products { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.order-products li { display: flex; gap: 10px; align-items: center; background: var(--sage-100); border-radius: var(--radius-sm); padding: 8px; }
.order-products img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; background: #fff; }
.order-products li > span { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; line-height: 1.35; }
.order-products li b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-products li.more { justify-content: center; font-weight: 600; background: none; border: 1.5px dashed var(--line); }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.order-card-foot b { font-size: 1.1rem; }
.btn-sm { padding: .5em 1em; font-size: .88rem; }
.btn-outline.btn-sm { background: #fff; }
.lookup-panel .form-grid { margin-top: 6px; }

/* ============ Farm story video ============ */
.video-frame {
  max-width: 960px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: #0f2416; box-shadow: 0 10px 30px rgba(20, 61, 34, .18);
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f2416; }
.video-frame video.is-vertical { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
@media (max-width: 640px) {
  .video-frame { max-width: 420px; border-radius: 14px; }
}
