/* ==========================================================================
   Cartiva Beejwala — "Sowing almanac"

   The anchor is the crop almanac: a page where every entry is indexed by the
   month it belongs to. Field crops live or die by timing, so the structural
   device here is not decoration — the twelve-cell season bar on every card is
   the single most important fact about the lot, drawn rather than described.
   ========================================================================== */

:root {
  --font-display: 'Newsreader', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-util:    'IBM Plex Mono', ui-monospace, monospace;

  --display-weight: 600;
  --display-tracking: -0.018em;
  --brand-weight: 600;
  --eyebrow-tracking: .16em;
  --btn-tracking: .02em;

  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 5px;
  --radius-lg: 6px; --radius-btn: 4px; --radius-pill: 3px;
  --card-min: 258px; --card-gap: 1.25rem;
  --btn-shadow: 0 5px 16px rgb(46 74 98 / .26);

  /* Season keys, used by the bar and by the legend. */
  --kharif: #4E8C63;
  --rabi:   #C98A2E;
  --zaid:   #A8503C;
}

h1, h2, h3 { font-optical-sizing: auto; }

/* Faint ledger ruling — an almanac page is a ruled page. */
body {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 31px, color-mix(in srgb, var(--rule) 42%, transparent) 31px 32px);
}

/* ---------- announce & header ---------- */

.announce { font-family: var(--font-util); font-size: .69rem; letter-spacing: .04em; }
.hdr { border-bottom: 1px solid var(--rule-strong); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.brand__name { font-size: 1.34rem; }
.brand__sub { font-family: var(--font-util); color: var(--accent); letter-spacing: .2em; font-weight: 600; }
.nav a { font-size: .87rem; }
.searchbox input { font-family: var(--font-util); font-size: .8rem; border-radius: 4px; }
.util { font-size: .83rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.6rem, 1.5rem + 4.5vw, 5.2rem); border-bottom: 1px solid var(--rule-strong); }
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero__in { grid-template-columns: 1.02fr .98fr; } }

.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.2rem); line-height: 1.06; margin-bottom: .6rem; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero__lede { font-size: clamp(1rem, .95rem + .42vw, 1.15rem); max-width: 47ch; color: var(--muted); line-height: 1.68; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.hero__proof { list-style: none; margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule-strong); display: grid; gap: .55rem; }
.hero__proof li { font-size: .84rem; color: var(--muted); display: grid; grid-template-columns: 15px 1fr; gap: .65rem; align-items: start; }
.hero__proof li::before { content: ""; width: 8px; height: 8px; margin-top: .48rem; background: var(--accent); border-radius: 1px; }

.hero__figure { position: relative; margin: 0; }
.hero__figure img { width: 100%; aspect-ratio: 5 / 4.2; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule-strong); }
.hero__stat {
  position: absolute; left: -14px; bottom: 20px;
  background: var(--surface); color: var(--ink-strong);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent);
  padding: .7rem 1rem; border-radius: 4px; display: grid; gap: .1rem;
  box-shadow: 0 12px 30px rgb(29 42 51 / .16);
}
.hero__stat b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.hero__stat span { font-family: var(--font-util); font-size: .63rem; letter-spacing: .07em; color: var(--muted); }

/* ---------- facts ---------- */

.facts { background: var(--surface); border-bottom: 1px solid var(--rule-strong); }
.facts__in { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.fact { padding: 1.35rem 1.2rem; display: grid; gap: .26rem; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-family: var(--font-util); font-size: .92rem; font-weight: 600; color: var(--primary); }
.fact span { font-size: .79rem; color: var(--muted); line-height: 1.5; }

/* ---------- sections ---------- */

.eyebrow { font-family: var(--font-util); }
.section-head { border-bottom: 1px solid var(--rule-strong); padding-bottom: .9rem; }
.section-head__link { font-family: var(--font-util); font-size: .76rem; text-decoration: none; color: var(--primary); font-weight: 500; }
.section-head__link:hover { color: var(--accent); }

/* ---------- categories ---------- */

.cats { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.cat {
  text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 14px 30px rgb(29 42 51 / .14); }
.cat__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cat__body { padding: .95rem 1.05rem 1.1rem; display: grid; gap: .3rem; }
.cat__body strong { font-family: var(--font-display); font-size: 1.1rem; }
.cat__body em { font-style: normal; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.cat__n { font-family: var(--font-util); font-size: .66rem; letter-spacing: .06em; color: var(--accent); margin-top: .28rem; }

/* ==========================================================================
   SIGNATURE — the twelve-month sowing bar
   Twelve cells, April to March, following the Indian crop year. The filled
   cells are the sowing window for that lot; the colour says which season.
   ========================================================================== */

.pcard {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 16px 34px rgb(29 42 51 / .15); }

.pcard__media { border-bottom: 1px solid var(--rule); }
.pcard__body { padding: .85rem .95rem 1rem; gap: .32rem; }
.pcard__crop { font-family: var(--font-util); font-size: .63rem; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
.pcard__variety { font-family: var(--font-display); font-size: 1.06rem; margin: 0; line-height: 1.24; font-weight: 600; }
.pcard__variety a { color: inherit; text-decoration: none; }
.pcard__variety a:hover { color: var(--primary); }
.pcard__desc {
  font-size: .81rem; color: var(--muted); margin: .22rem 0 .7rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.seasonbar { margin: 0 0 .75rem; }
.seasonbar__head {
  display: flex; justify-content: space-between; gap: .5rem;
  font-family: var(--font-util); font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .28rem;
}
.seasonbar__label { color: var(--ink-strong); font-weight: 600; }
.seasonbar__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px;
  border: 1px solid var(--rule-strong); border-radius: 2px; overflow: hidden;
}
.seasonbar__cell {
  height: 15px; background: var(--tint);
  display: grid; place-items: center;
  font-family: var(--font-util); font-size: .46rem; letter-spacing: 0;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}
.seasonbar__cell--on { color: #fff; font-weight: 600; }
.seasonbar__cell--kharif { background: var(--kharif); }
.seasonbar__cell--rabi   { background: var(--rabi); }
.seasonbar__cell--zaid   { background: var(--zaid); }

.pcard__foot { padding-top: .1rem; }
.pcard__price { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; }
.pcard__price small { display: block; font-family: var(--font-util); font-size: .6rem; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.pcard__out { font-family: var(--font-util); font-size: .68rem; color: var(--danger); }

/* Legend, shown once under the homepage grid. */
.seasonlegend {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem;
  font-family: var(--font-util); font-size: .68rem; color: var(--muted);
}
.seasonlegend span { display: inline-flex; align-items: center; gap: .4rem; }
.seasonlegend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }

/* ---------- page head ---------- */

.pagehead { padding: clamp(1.7rem, 1rem + 2.4vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--rule-strong); margin-bottom: 2rem; }
.pagehead h1 { margin-bottom: .35rem; }
.pagehead__lede { color: var(--muted); max-width: 62ch; margin: 0; }
.crumbs { font-family: var(--font-util); font-size: .7rem; color: var(--muted); margin-bottom: .95rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { opacity: .4; margin: 0 .35rem; }
.crumbs b { color: var(--ink-strong); font-weight: 600; }

/* ---------- shop ---------- */

.shopside__block { margin-bottom: 1.6rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule); }
.shopside__block h3 { font-family: var(--font-util); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facets { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.facets a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .55rem; text-decoration: none; color: var(--ink); font-size: .86rem; border-radius: 3px; border-left: 2px solid transparent; }
.facets a:hover { background: var(--tint); }
.facets a.on { background: var(--tint); border-left-color: var(--accent); font-weight: 600; }
.facets span { font-family: var(--font-util); font-size: .68rem; color: var(--muted); }
.shopside__note { margin-top: 1rem; font-size: .79rem; }

.shopbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--rule-strong); font-family: var(--font-util); font-size: .78rem; }
.shopbar__search { display: flex; gap: .45rem; }
.shopbar__search input { width: 200px; font-size: .83rem; padding: .46rem .8rem; }

/* ---------- product page ---------- */

.pdp { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; align-items: start; } }
.gallery__main img { border: 1px solid var(--rule-strong); border-radius: 6px; }
.pdp__imgnote { font-family: var(--font-util); font-size: .68rem; color: var(--muted); margin-top: .65rem; }
.pdp__variety { font-family: var(--font-util); font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.pdp__variety b { color: var(--accent); }
.pdp__desc { font-size: 1.01rem; line-height: 1.7; }

.pdp__pricebox { border: 1px solid var(--rule-strong); border-left: 4px solid var(--primary); border-radius: 5px; padding: 1.15rem 1.25rem; margin: 1.5rem 0; background: var(--surface); }
.pdp__price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.pdp__price b { font-family: var(--font-display); font-size: 2.15rem; line-height: 1; font-weight: 600; }
.pdp__price s { color: var(--muted); font-size: 1rem; }
.pdp__price em { font-style: normal; font-family: var(--font-util); font-size: .68rem; background: var(--accent); color: var(--accent-ink); padding: .2rem .5rem; border-radius: 3px; font-weight: 600; }
.pdp__packline { font-family: var(--font-util); font-size: .76rem; color: var(--muted); margin: .65rem 0 .45rem; }
.pdp__taxline { font-size: .81rem; color: var(--muted); margin: 0; line-height: 1.58; }
.pdp__buy { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.taxnotice { border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); border-radius: 4px; background: var(--tint); padding: .95rem 1.05rem; margin: 1.5rem 0; font-family: var(--font-util); font-size: .72rem; }
.taxnotice__row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.taxnotice__row span { color: var(--muted); }
.taxnotice__row b { text-align: right; color: var(--ink-strong); }
.taxnotice__note { margin: .65rem 0 0; padding-top: .65rem; border-top: 1px solid var(--rule-strong); color: var(--muted); font-size: .67rem; line-height: 1.6; }

.pdp__assure { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.pdp__assure li { font-size: .86rem; display: grid; grid-template-columns: 80px 1fr; gap: .9rem; }
.pdp__assure b { font-family: var(--font-util); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }

.pdp__detail { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.pdp__panel { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 1.25rem 1.35rem; }
.pdp__panel h2 { font-size: 1.1rem; margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.speclist dt { font-family: var(--font-util); font-size: .75rem; }

/* ---------- trust / cta ---------- */

.trustband { background: var(--surface); border-block: 1px solid var(--rule-strong); }
.trust { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust article { padding: 1.25rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; }
.trust h3 { font-size: 1rem; margin-bottom: .5rem; }
.trust p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.62; }

.cta { background: var(--ink-strong); color: #D8E0E6; }
.cta__in { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin: 0 0 .4rem; }
.cta p { margin: 0; opacity: .78; max-width: 52ch; }

/* ---------- misc ---------- */

.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .81rem; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--danger); }
.lineitem__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-decoration: none; color: inherit; }
.lineitem__ctrl { display: flex; gap: 1.1rem; align-items: center; margin-top: .75rem; }
.cart__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 1.25rem; }
.summary { border-radius: 6px; border-top: 3px solid var(--primary); }
.summary__h { font-size: 1.02rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); margin-bottom: .75rem; }
.summary__items { display: grid; gap: .75rem; padding-bottom: .95rem; margin-bottom: .55rem; border-bottom: 1px solid var(--rule); }
.summary__item { display: grid; grid-template-columns: 44px 1fr auto; gap: .65rem; align-items: center; }
.summary__item img { border-radius: 3px; }
.summary__item b { display: block; font-size: .83rem; font-weight: 600; }
.summary__row span, .summary__row .num { font-family: var(--font-util); font-size: .82rem; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: .85rem 0; }

.authgrid { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .authgrid { grid-template-columns: 1fr 1fr; } }
.supportgrid { display: grid; gap: 1.4rem; }
@media (min-width: 980px) { .supportgrid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; }
.panel--warn { border-left: 4px solid var(--warn); }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .46rem; font-size: .88rem; }
.msg { border-left: 2px solid var(--rule-strong); padding: .5rem 0 .5rem .85rem; margin-top: .75rem; }
.msg--support { border-left-color: var(--primary); }
.policyswitch { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: .1rem; }
.policyswitch a { font-size: .85rem; text-decoration: none; color: var(--muted); padding: .3rem 0; }
.policyswitch a:hover, .policyswitch a.on { color: var(--primary); font-weight: 600; }
