/* ============================================================
   FRUTA FRESCA — Design System
   "Purveyors of fine fruits." Clean editorial, fresh-first.
   ============================================================ */

:root {
  /* Color */
  --canvas:    #FBF9F4;   /* off-white base */
  --paper:     #FFFFFF;
  --ink:       #1C2A21;   /* deep forest-charcoal, headings */
  --green:     #235138;   /* brand primary */
  --green-700: #1B4029;
  --leaf:      #4CA45C;   /* CTA / in-stock */
  --leaf-700:  #3D8C4C;
  --citrus:    #F4A52E;   /* season / highlight */
  --berry:     #C0436B;   /* sale / festive, sparing */
  --muted:     #6B6F68;   /* muted text */
  --border:    #E7E2D6;   /* borders */
  --line:      #EFEBE0;   /* faint divider */
  --surface:   #F4F1E8;   /* subtle raised tint */
  --green-tint:#EAF1EB;   /* pale green wash */
  --citrus-tint:#FCF1DC;
  --berry-tint:#F8E7ED;

  /* Type */
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale (8px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Radius */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(28,42,33,.05), 0 1px 3px rgba(28,42,33,.06);
  --sh:    0 4px 16px rgba(28,42,33,.08);
  --sh-lg: 0 18px 48px rgba(28,42,33,.14);

  --maxw: 1200px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--citrus); color: var(--ink); }

/* Visible focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
.display { font-family: var(--display); font-weight: 600; line-height: 1.04;
  letter-spacing: -.015em; color: var(--ink); font-optical-sizing: auto; }
.h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 7vw, 60px);
  line-height: 1.02; letter-spacing: -.02em; margin: 0; font-optical-sizing: auto; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 3vw, 26px);
  line-height: 1.14; letter-spacing: -.01em; margin: 0; }
.serif { font-family: var(--display); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); margin: 0 0 var(--s3); }
.eyebrow--citrus { color: #B9791A; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(40px, 7vw, 84px); }
.section--tight { padding-block: clamp(28px, 4vw, 44px); }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: var(--s5); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--leaf); color: #fff; box-shadow: 0 2px 0 var(--leaf-700); }
.btn--primary:hover { background: var(--leaf-700); }
.btn--ink { background: var(--green); color: #fff; }
.btn--ink:hover { background: var(--green-700); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--border); }
.btn--sm { padding: 9px 15px; font-size: 13.5px; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .03em; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--season  { background: var(--citrus-tint); color: #9A6310; }
.badge--limited { background: var(--berry-tint); color: var(--berry); }
.badge--preorder{ background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.25px var(--green); }
.badge--organic { background: var(--green-tint); color: var(--green); }
.badge--instock { background: var(--green-tint); color: var(--leaf-700); }
.badge--origin  { background: rgba(255,255,255,.86); color: var(--ink); box-shadow: var(--sh-sm);
  backdrop-filter: blur(4px); }

/* ---------- Chips (filters) ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--border);
  background: var(--paper); color: var(--ink); transition: .14s; }
.chip:hover { border-color: var(--ink); }
.chip--active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm); }
.surface-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Product card ---------- */
.product-card { display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.045); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pc-origin-badge { position: absolute; bottom: 10px; left: 10px; }
.pc-fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; box-shadow: var(--sh-sm); }
.pc-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-origin { font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.pc-title { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15;
  letter-spacing: -.01em; margin: 0; }
.pc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 8px; }
.pc-price { font-weight: 600; font-size: 16px; }
.pc-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
.pc-add { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  border: none; display: grid; place-items: center; transition: .15s; flex: none; }
.pc-add:hover { background: var(--green-700); transform: scale(1.06); }
.pc-add.added { background: var(--leaf); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input, .select, .textarea { width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border .14s; }
.input::placeholder, .textarea::placeholder { color: #A6A99F; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); outline: none; }
.input--pill { border-radius: var(--r-pill); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--citrus); }
.stars svg { width: 15px; height: 15px; }

/* ---------- Pincode widget ---------- */
.pincode { display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
  border: 1.5px solid var(--border); border-radius: var(--r-pill); padding: 5px 6px 5px 14px; }
.pincode input { border: none; background: transparent; width: 92px; font-size: 13.5px;
  font-family: var(--body); color: var(--ink); }
.pincode input:focus { outline: none; }

/* ---------- Divider ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); font-size: 14px; font-weight: 500;
  animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- WhatsApp FAB ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 86px; z-index: 90; width: 54px; height: 54px;
  border-radius: 50%; background: #25D366; border: 3px solid #fff; box-shadow: var(--sh-lg);
  display: grid; place-items: center; transition: transform .18s; }
.wa-fab:hover { transform: scale(1.06); }
@media (min-width: 980px) { .wa-fab { bottom: 22px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.fill { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--r); overflow: hidden; }
.rounded-lg { border-radius: var(--r-lg); overflow: hidden; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: revert; } .hide-desktop { display: none; } }
.divider-dot::before { content: "·"; margin: 0 8px; color: var(--border); }

/* ---------- Animations & nav ---------- */
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Product grids ---------- */
.pgrid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pgrid--3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pgrid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .pgrid--3 { grid-template-columns: repeat(3,1fr); } }

/* ---------- Horizontal carousel ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: -20px; padding-inline: 20px;
  scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 560px) { .carousel { grid-auto-columns: 42%; } }
@media (min-width: 900px) { .carousel { grid-auto-columns: 25%; margin-inline: 0; padding-inline: 0; } }

/* ---------- Footer / trust responsive ---------- */
@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.3fr 1.4fr 1.1fr !important; gap: 48px !important; }
  .trust-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 560px) { .trust-grid { gap: 28px !important; } }

/* ---------- Two-column splits ---------- */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split--sticky { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 920px) { .split--sticky { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }

/* ---------- App shell ---------- */
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.screen-body { flex: 1; }
.icon-btn:hover { background: var(--surface); }

/* ---------- Pill tabs ---------- */
.pilltabs { display: inline-flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; }
.pilltabs button { border: none; background: transparent; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--muted); }
.pilltabs button.on { background: var(--paper); color: var(--ink); box-shadow: var(--sh-sm); }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: center; gap: 0; }
.step-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--border); background: var(--paper); color: var(--muted); flex: none; }
.step-dot.done { background: var(--green); border-color: var(--green); color: #fff; }
.step-dot.active { border-color: var(--green); color: var(--green); }
.step-line { height: 2px; flex: 1; background: var(--border); }
.step-line.done { background: var(--green); }

/* ---------- Card style tweak ---------- */
[data-card="flat"] .product-card, [data-card="flat"] .surface-card, [data-card="flat"] .card { box-shadow: none; }
[data-card="raised"] .product-card { box-shadow: var(--sh); }
[data-card="raised"] .surface-card, [data-card="raised"] .card { box-shadow: var(--sh); }

/* ---------- PDP v2 blocks ---------- */
.spec-grid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .spec-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (min-width: 920px) { .spec-grid { grid-template-columns: repeat(3,1fr) !important; } }
.pdp-details { grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp-details { grid-template-columns: 1.5fr 1fr !important; gap: 44px !important; align-items: start; } }
.grower-copy { padding: 32px 0 40px; }
.sensory-grid { grid-template-columns: repeat(2,1fr); }
@media (min-width: 540px) { .sensory-grid { grid-template-columns: repeat(4,1fr) !important; } }
@media (min-width: 900px) {
  .grower-split { grid-template-columns: 1.05fr 1fr !important; }
  .grower-copy { padding: 52px 0 52px 48px !important; }
}

/* ---------- Hero / category extras ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.cat-grid > *:nth-child(5) { grid-column: span 2; }
.cat-card { transition: transform .25s ease; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card img { transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5,1fr) !important; }
  .cat-grid > *:nth-child(5) { grid-column: auto; }
  .cat-card { aspect-ratio: auto; }
}
@media (min-width: 760px) { .sub-cards { gap: 14px !important; } }

/* ---------- Reels rail ---------- */
.reel-rail { overflow: hidden; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.reel-track { display: flex; width: max-content; animation: reel-marquee 64s linear infinite; will-change: transform; }
.reel-rail:hover .reel-track, .reel-rail:focus-within .reel-track { animation-play-state: paused; }
.reel-track > .reel-card { flex: 0 0 min(64vw, 240px); margin-right: 14px; scroll-snap-align: none; }
@media (min-width: 900px) { .reel-rail { margin-inline: 0; padding-inline: 0; } }
@keyframes reel-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel-rail { overflow-x: auto; scrollbar-width: none; }
  .reel-rail::-webkit-scrollbar { display: none; } }

.reel-card { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); cursor: pointer; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.reel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.reel-shade--top { top: 0; height: 84px; background: linear-gradient(180deg, rgba(28,42,33,.6), transparent); }
.reel-shade--bot { bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(28,42,33,.86) 12%, rgba(28,42,33,.35) 55%, transparent); }
.reel-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center;
  justify-content: space-between; z-index: 2; }
.reel-handle { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.reel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 0 rgba(192,67,107,.6);
  animation: reelPulse 2s infinite; }
@keyframes reelPulse { 0% { box-shadow: 0 0 0 0 rgba(192,67,107,.55); } 70% { box-shadow: 0 0 0 7px rgba(192,67,107,0); } 100% { box-shadow: 0 0 0 0 rgba(192,67,107,0); } }
.reel-mute { width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(28,42,33,.42);
  backdrop-filter: blur(4px); display: grid; place-items: center; }
.reel-tag { position: absolute; top: 46px; left: 12px; z-index: 2; background: rgba(255,255,255,.9);
  color: var(--ink); backdrop-filter: blur(4px); font-size: 11px; }
.reel-bot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.reel-caption { color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.35; margin: 0 0 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-shop { display: flex; align-items: center; gap: 9px; background: rgba(251,249,244,.96);
  border-radius: var(--r); padding: 7px 7px 7px 8px; box-shadow: var(--sh); }
.reel-shop img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.reel-shop-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.reel-shop-name { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-shop-price { font-size: 11.5px; color: var(--ink); }
.reel-shop-add { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--green); color: #fff;
  display: grid; place-items: center; flex: none; transition: .15s; }
.reel-shop-add:hover { background: var(--green-700); transform: scale(1.06); }
.reel-shop-add.added { background: var(--leaf); }

/* ---------- Shop ---------- */
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 248px 1fr !important; gap: 36px !important; }
}
@media (min-width: 920px) {
  .cart-layout { grid-template-columns: 1fr 360px !important; gap: 36px !important; }
  .checkout-layout { grid-template-columns: 1fr 360px !important; gap: 36px !important; align-items: start; }
}
@media (min-width: 920px) {
  .hamper-layout { grid-template-columns: 1fr 320px !important; gap: 36px !important; align-items: start; }
}
@media (min-width: 760px) {
  .proc-grid { grid-template-columns: repeat(4,1fr) !important; gap: 24px !important; }
  .acct-stats { grid-template-columns: repeat(4,1fr) !important; }
}
