/* ==========================================================================
   AGRIYANA - Page layouts
   ========================================================================== */

/* ==================================================================== hero
   REMOVED. This held the old full-bleed hero: a photograph with the copy laid
   over it and the controls absolutely positioned across the bottom of the
   frame. That hero no longer exists — it is now the paired carousel in
   req/css/hero.css.

   Leaving it here was not harmless. `.hero-ctl { position: absolute }` from
   this block still applied to the NEW controls, because hero.css never set
   `position` and had nothing to override. The result: the controls left the
   copy column, stretched to the full 1270px page width and rendered below the
   stat strip, which is why the dots sat at one page edge and the arrows at the
   other with 1024px of nothing between them.

   Dead CSS for a component that has been replaced is not dead. Delete it.
   ========================================================================== */

/* ==================================================================== home sections */
.usp-band { padding-block: var(--s-8); background: var(--bg-2); border-bottom: 1px solid var(--border); }

/* Four cards, one of which spans two columns, in a four-column grid is FIVE
   column-units — so the fourth card wrapped onto a second row and sat alone
   beside three empty cells. That is what was on screen.

   A real bento instead: the feature takes the left half over two rows, two
   cards stack top-right, and the fourth runs full width underneath them. Four
   cards, no holes, and the big one still reads as the feature. */
.cat-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 660px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 246px;
  }
  .cat-grid > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .cat-grid > :nth-child(2) { grid-column: 3 / 4; grid-row: 1; }
  .cat-grid > :nth-child(3) { grid-column: 4 / 5; grid-row: 1; }
  .cat-grid > :nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
}

.split { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px); } }
.split-media { position: relative; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 940px) { .split.is-reverse .split-media { order: -1; } }

.split-badge {
  position: absolute;
  left: var(--s-5); bottom: var(--s-5);
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: var(--t-sm);
  font-weight: 700;
}
.split-badge .ico { color: var(--brand); }

.box-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.box-facts span { display: inline-flex; align-items: center; gap: 8px; }
.box-facts .ico { color: var(--accent-ink); }

.crate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.crate-list li {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--t-sm); font-weight: 500;
}
.crate-list li:last-child { border-bottom: 0; }
.crate-list .ico { color: var(--sprout); }

.lineage {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6);
  margin-top: var(--s-8); padding: var(--s-6);
  border: 1px solid var(--band-border); border-radius: var(--r-panel);
  background: rgba(255, 255, 255, .035);
}
.lineage img { width: 74px; height: 74px; border-radius: var(--r-ctl); object-fit: cover; background: #fff; flex: none; }
.lineage-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--band-fg-muted); margin: 0 0 4px; }
.lineage-text { margin: 0; color: var(--band-fg-muted); max-width: 60ch; font-size: var(--t-sm); }
.lineage-text b { color: var(--band-fg); font-weight: 700; }

/* ==================================================================== inner page head */
.page-head { padding-block: var(--s-9) var(--s-8); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.page-head h1 { font-size: var(--t-3xl); margin-bottom: var(--s-3); max-width: 20ch; }
.page-head .lede { max-width: 62ch; }
.page-head-grid { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: minmax(0, 1fr) auto; } }

.page-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-content: center;
  padding-block: var(--s-10);
  overflow: hidden;
  isolation: isolate;
  background: var(--raw-night);
  color: #fff;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(6, 18, 11, .90), rgba(6, 18, 11, .62) 55%, rgba(6, 18, 11, .35));
}
.page-hero h1 { color: #fff; font-size: var(--t-3xl); max-width: 18ch; margin-bottom: var(--s-4); }
.page-hero .lede { color: rgba(255, 255, 255, .86); max-width: 56ch; }
.page-hero .breadcrumb { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb a:hover { color: var(--raw-sprout); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .75); }
.page-hero .eyebrow::before { background: var(--raw-sprout); }

/* ==================================================================== shop */
.shop-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1080px) { .shop-layout { grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-9); } }

.filters { display: grid; gap: var(--s-7); }
@media (min-width: 1080px) { .filters { position: sticky; top: 100px; } }

.filter-group h3 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--fg-subtle);
  margin-bottom: var(--s-3);
}
.filter-list { display: grid; gap: 2px; }
.filter-opt {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; min-height: 46px; padding: 0 var(--s-4);
  border: 1px solid transparent; border-radius: var(--r-ctl);
  background: transparent;
  font-size: var(--t-sm); font-weight: 600; color: var(--fg-muted);
  text-align: left; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.filter-opt .ico { color: var(--fg-subtle); }
.filter-opt:hover { background: var(--surface-2); color: var(--fg); }
.filter-opt[aria-pressed='true'] { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.filter-opt[aria-pressed='true'] .ico { color: var(--brand); }
.filter-opt .n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }

.shop-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding-bottom: var(--s-5); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.shop-count { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-subtle); }
.shop-bar .select { width: auto; min-width: 190px; min-height: 46px; margin-left: auto; background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; }
.shop-search { position: relative; flex: 1 1 240px; }
.shop-search .input { padding-left: 44px; min-height: 46px; border-radius: var(--r-pill); }
.shop-search .ico { position: absolute; left: 15px; top: 23px; transform: translateY(-50%); color: var(--fg-subtle); pointer-events: none; }

.filter-toggle { display: inline-flex; }
@media (min-width: 1080px) { .filter-toggle { display: none; } }
@media (max-width: 1079px) { .filters-desktop { display: none; } }

.prod-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ==================================================================== product detail */
.pdp { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 980px) { .pdp { grid-template-columns: 1.02fr .98fr; gap: clamp(40px, 4.4vw, 76px); } }

@media (min-width: 980px) { .pdp-media { position: sticky; top: 104px; } }

.pdp-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
}
.pdp-frame img { width: 100%; height: 100%; object-fit: cover; }
.pdp-frame.is-contain { background: #fff; }
.pdp-frame.is-contain img { object-fit: contain; padding: clamp(16px, 3vw, 40px); }
.pdp-frame .specimen svg { max-width: 168px; }

.pdp-thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.pdp-thumb {
  width: 74px; height: 74px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  overflow: hidden;
  background: var(--surface-2);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp-thumb[aria-pressed='true'] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.pdp-title { font-size: var(--t-3xl); margin-bottom: var(--s-3); }
.pdp-model { display: inline-flex; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--s-3); }
.pdp-price { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin: var(--s-6) 0; }
.pdp-price .now { font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pdp-price .was { font-family: var(--font-mono); color: var(--fg-subtle); text-decoration: line-through; }
.pdp-price .unit { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-subtle); }

.variant-set { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }
.variant-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 62px; padding: 0 var(--s-5);
  border: 1.5px solid var(--border); border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: var(--t-sm); font-weight: 600;
  cursor: pointer; text-align: left;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.variant-opt b { font-family: var(--font-display); font-size: var(--t-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.variant-opt:hover { border-color: var(--border-strong); }
.variant-opt[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-soft); }

.pdp-actions { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
@media (min-width: 520px) { .pdp-actions { grid-template-columns: 1fr auto; } }

.pdp-block { padding-top: var(--s-7); margin-top: var(--s-7); border-top: 1px solid var(--border); }
.pdp-block h2 { font-size: var(--t-lg); margin-bottom: var(--s-4); }

/* mobile: keep the buy action reachable without scrolling back up */
.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(16, 38, 26, .08);
  transform: translateY(110%);
  transition: transform var(--dur-2) var(--ease-out);
}
.buy-bar.is-up { transform: none; }
@media (max-width: 979px) { .buy-bar { display: flex; } }
.buy-bar .price { flex: none; }
.buy-bar .btn { flex: 1; }

/* ==================================================================== farm box */
.fb-hero { text-align: center; padding-block: var(--s-11) var(--s-9); }
.fb-hero h1 { font-size: var(--t-4xl); max-width: 17ch; margin-inline: auto; }
.fb-hero .lede { margin-inline: auto; }
.fb-hero .eyebrow { justify-content: center; }

.box-band { background: var(--bg-2); border-block: 1px solid var(--border); }

.box-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 940px) { .box-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 88px); } }

.mach-head { display: grid; gap: var(--s-6); align-items: end; margin-bottom: var(--s-8); }
@media (min-width: 900px) { .mach-head { grid-template-columns: minmax(0, 1fr) auto; } }

.crate {
  position: relative;
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
}
.crate::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 8px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 42px);
  opacity: .6;
}
.crate-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.crate-head .mono { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-subtle); }
.crate-foot { margin: var(--s-4) 0 0; font-size: var(--t-xs); color: var(--fg-subtle); }

.season {
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .season { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .season { grid-template-columns: repeat(6, 1fr); } }
.season-cell { background: var(--surface); padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.season-cell.is-now { background: var(--brand-soft); }
.season-m { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--fg-subtle); }
.season-cell.is-now .season-m { color: var(--brand); font-weight: 700; }
.season-cell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-xs); color: var(--fg-muted); }

.plan-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); }
.plan {
  position: relative;
  display: grid; gap: var(--s-4); align-content: start;
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.plan.is-pick { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } }
.plan-name { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }
.plan-price { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 0; }
.plan-price small { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 400; color: var(--fg-subtle); letter-spacing: .05em; text-transform: uppercase; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); color: var(--fg-muted); }
.plan ul li { display: flex; gap: var(--s-3); align-items: flex-start; }
.plan ul .ico { color: var(--brand); margin-top: 2px; flex: none; }

/* ==================================================================== farmers */
.seq { display: grid; gap: var(--s-8); }
.seq-row { display: grid; gap: var(--s-5); align-items: start; padding-bottom: var(--s-8); border-bottom: 1px solid var(--border); }
.seq-row:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 880px) { .seq-row { grid-template-columns: 116px minmax(0, 1fr) 300px; gap: var(--s-8); } }
.seq-n { font-family: var(--font-mono); font-size: var(--t-2xl); font-weight: 600; color: var(--accent-ink); letter-spacing: -.03em; line-height: 1; }
.seq-body h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.seq-body p { color: var(--fg-muted); margin-bottom: 0; }
.seq-aside {
  padding: var(--s-5);
  border: 1px dashed var(--border-strong); border-radius: var(--r-card);
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: var(--t-xs); line-height: 1.65; color: var(--fg-muted);
}
.seq-aside b { display: block; font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--s-2); }

/* ==================================================================== about */
.timeline { display: grid; }
.tl-row { display: grid; gap: var(--s-3); padding: var(--s-6) 0; border-top: 1px solid var(--border); }
@media (min-width: 800px) { .tl-row { grid-template-columns: 210px minmax(0, 1fr); gap: var(--s-8); align-items: baseline; } }
.tl-key { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.tl-row h2 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.tl-row p { color: var(--fg-muted); margin: 0; }

/* ==================================================================== contact */
.contact-grid { display: grid; gap: var(--s-9); align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(44px, 5vw, 88px); } }

.reach { display: grid; gap: var(--s-3); }
.reach-item {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--s-4); align-items: center;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.reach-item:hover { border-color: var(--brand); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .reach-item:hover { transform: none; } }
.reach-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); }
.reach-ico .ico { color: var(--brand); }
.reach-txt { display: grid; gap: 2px; min-width: 0; }
.reach-txt b { font-size: var(--t-sm); font-weight: 700; overflow-wrap: anywhere; }
.reach-txt small { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fg-subtle); }

.form-grid { display: grid; gap: 0 var(--s-4); }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.order-summary { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); margin-bottom: var(--s-5); }
.order-summary h3 { font-size: var(--t-md); margin-bottom: var(--s-4); }
.order-summary .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
.order-summary .cart-thumb { display: none; }
