/* ==========================================================================
   Dr.Sprouts & Microgreens — site.css
   One hand-written stylesheet, no framework.  Single light theme by choice.
   Sections: tokens · reset · type · layout · header · buttons · hero · why ·
   cards · products · steps · farm · faq · recipes + articles · contact ·
   footer · basket · dialog · toast · utilities · motion
   ========================================================================== */

/* ---- 1. Tokens ----------------------------------------------------------- */
:root {
  --green: #3A9A3B;
  --green-deep: #1E5A2A;
  --green-tint: #E9F4E4;
  --orange: #F08A24;
  --orange-tint: #FDEBD9;
  --paper: #FBFCF7;
  --ink: #1B2A1E;
  --muted: #5B6B5E;
  --rule: #DCE6D6;
  --line: #06C755;            /* LINE brand green — LINE buttons only */
  --line-deep: #05A847;
  --white: #FFFFFF;
  --focus: #1E5A2A;

  --font-head: "Prompt", "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-22: 1.375rem;
  --fs-28: 1.75rem; --fs-36: 2.25rem; --fs-48: 3rem;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 42, 30, .06), 0 8px 24px rgba(27, 42, 30, .08);
  --header-h: 64px;
}

/* ---- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-16); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
dl, dd, figure { margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---- 3. Type ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 600; line-height: 1.2;
  margin: 0 0 .5em; color: var(--ink); text-wrap: balance;
}
h1 { font-size: var(--fs-36); font-weight: 700; }
h2 { font-size: var(--fs-28); }
h3 { font-size: var(--fs-18); }
.h-small { font-size: var(--fs-16); color: var(--green-deep); margin-top: 1.25rem; }
@media (min-width: 900px) {
  h1 { font-size: var(--fs-48); }
  h2 { font-size: var(--fs-36); }
  h3 { font-size: var(--fs-22); }
}
p, li, dd { max-width: 65ch; }
.lead { font-size: var(--fs-18); color: var(--muted); }
.eyebrow {
  font-family: var(--font-head); font-size: var(--fs-14); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 .5rem;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-14); }
.center { text-align: center; }
.center p, .center h2 { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.prose p { margin-bottom: 1.1em; }

/* ---- 4. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: 2.5rem; }
.section-rule { border-top: 1px solid var(--rule); }
.page-head { padding-bottom: 1rem; }
.page-head .lead { max-width: 60ch; }
@media (min-width: 900px) { .section { padding-block: 4rem; } .page-head { padding-top: 3rem; padding-bottom: 1.5rem; } }
.section-title { margin-bottom: .75rem; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 1.5rem; }
.section-note { color: var(--muted); font-size: var(--fs-14); margin-top: 1.25rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head .section-intro { margin-bottom: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.two-col { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .two-col-rev .two-col-media { order: 2; }
}
.two-col-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.crumbs { font-size: var(--fs-14); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin-inline: .35em; }

/* ---- 5. Header ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--green-deep); color: var(--white); padding: .5rem .9rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: .5rem; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(251, 252, 247, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }
.brand { flex: 0 0 auto; margin-right: auto; display: block; }
.brand-logo { width: auto; height: 40px; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; }
.site-nav a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; color: var(--ink); white-space: nowrap;
}
.site-nav a:hover { background: var(--green-tint); color: var(--green-deep); }
.site-nav a[aria-current="page"] { color: var(--green-deep); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav-lang { display: none; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { font-family: var(--font-head); font-size: var(--fs-14); font-weight: 500; display: flex; gap: .3rem; align-items: center; }
.lang-switch a { text-decoration: none; color: var(--muted); padding: .25rem; }
.lang-switch a:hover { color: var(--green-deep); }
.lang-switch [aria-current] { color: var(--green-deep); font-weight: 600; padding: .25rem; }
.lang-dot { color: var(--rule); }
.basket-btn, .icon-btn, .nav-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; background: var(--white); color: var(--green-deep);
}
.basket-btn:hover, .icon-btn:hover, .nav-toggle:hover { background: var(--green-tint); }
.ico { width: 22px; height: 22px; flex: none; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700;
  line-height: 20px; text-align: center; font-family: var(--font-head);
}
.nav-toggle { display: none; }
.nav-toggle .ico + .ico { display: none; }
.nav-toggle[aria-expanded="true"] .ico { display: none; }
.nav-toggle[aria-expanded="true"] .ico + .ico { display: block; }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-line span { display: none; }
  .header-line { padding-inline: .6rem; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); padding: .5rem var(--gutter) 1rem;
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .75rem .5rem; font-size: var(--fs-18); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--green); }
  .nav-lang { display: block; }
  .nav-lang a { color: var(--muted); font-weight: 500; border-bottom: 0; }
}
@media (max-width: 599px) { .lang-switch { display: none; } }

/* ---- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-16); line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn .ico { width: 20px; height: 20px; }
.btn-line { background: var(--line); color: var(--white); border-color: var(--line); }
.btn-line:hover { background: var(--line-deep); border-color: var(--line-deep); color: var(--white); }
.btn-line .ico-line path:first-child { fill: var(--white); }
.btn-line .ico-line path + path { stroke: var(--line); }
.btn-secondary { background: var(--white); color: var(--green-deep); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-primary { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.btn-primary:hover { background: #154420; border-color: #154420; color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-deep); border-color: transparent; padding-inline: .6rem; }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-lg { min-height: 52px; padding: .7rem 1.5rem; font-size: var(--fs-18); }
.btn-sm { min-height: 38px; padding: .35rem .9rem; font-size: var(--fs-14); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.btn-row.center { justify-content: center; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---- 7. Hero (home-page slider) ----------------------------------------- */
/* All slides share one grid cell: the box is as tall as the tallest slide from the first paint, so
   changing slides (or site.js starting up) never moves the page.  An inactive slide is invisible
   (not focusable, not read out) but keeps its text in the page. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--green-tint); }
.hero-track { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 27rem; padding-block: 2rem 5rem;
}
.hero-slide:not(.is-active) { visibility: hidden; opacity: 0; }
.hero-slide.is-active { z-index: 1; }
.hero-slide:focus { outline: none; }
.hero-slide:focus-visible .hero-panel { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 42, 30, .05), rgba(27, 42, 30, .25));
}
.hero-panel {
  background: rgba(251, 252, 247, .94); border-radius: var(--radius); padding: 1.5rem;
  max-width: 640px; box-shadow: var(--shadow);
}
.hero-title { font-size: var(--fs-36); font-weight: 700; margin-bottom: .6rem; }
.hero-panel .lead { color: var(--ink); margin-bottom: .5rem; }
.hero-note { font-size: var(--fs-14); color: var(--muted); margin: 1rem 0 0; }
.hero:not([data-slider]) .hero-slide { padding-bottom: 3rem; }
@media (min-width: 900px) {
  .hero-slide { min-height: 34rem; padding-block: 3.5rem 6rem; }
  .hero:not([data-slider]) .hero-slide { padding-bottom: 4rem; }
  .hero-panel { padding: 2.25rem 2.5rem; }
  .hero-title { font-size: var(--fs-48); }
}
/* phones (< 480px): smaller headline, lead, buttons and padding, so that slide 1 and the slider
   controls under it fit in the first screen of a 390×844 phone in Thai and in English */
@media (max-width: 479px) {
  .hero-slide { padding-block: 1rem 4.25rem; }
  .hero:not([data-slider]) .hero-slide { padding-bottom: 1.5rem; }
  .hero-panel { padding: 1rem 1.1rem 1.15rem; }
  .hero-panel .eyebrow { font-size: .8125rem; letter-spacing: .04em; margin-bottom: .35rem; }
  .hero-title { font-size: var(--fs-28); margin-bottom: .45rem; }
  .hero-panel .lead { font-size: var(--fs-16); line-height: 1.55; }
  .hero-panel .btn-row { margin-top: .75rem; gap: .5rem; }
  .hero-panel .btn-lg { min-height: 46px; padding: .5rem 1.15rem; font-size: var(--fs-16); }
  .hero-note { margin-top: .6rem; }
  .hero-controls { bottom: .75rem; }
}

/* slider controls: pause/play · previous · dots · next, on a paper strip over the photo */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 2; pointer-events: none; }
.hero-controls-inner { display: flex; align-items: center; gap: .5rem; }
.hero-controls-inner > * { pointer-events: auto; }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(251, 252, 247, .94); color: var(--green-deep); box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--white); color: var(--green); }
.slider-btn .ico { width: 22px; height: 22px; }
.slider-btn .ico-play { display: none; }
.hero-slider.is-paused [data-slider-toggle] .ico-pause { display: none; }
.hero-slider.is-paused [data-slider-toggle] .ico-play { display: block; }
.slider-dots {
  display: flex; align-items: center; height: 44px; padding-inline: .25rem;
  background: rgba(251, 252, 247, .94); border-radius: 999px; box-shadow: var(--shadow);
}
.slider-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 44px; padding: 0; border: 0; background: transparent;
}
.slider-dot::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 999px;
  background: transparent; border: 2px solid var(--green-deep);
}
.slider-dot[aria-current="true"]::before { width: 22px; background: var(--green-deep); }
.slider-dot:hover::before { background: var(--green-tint); }
.slider-dot[aria-current="true"]:hover::before { background: var(--green); border-color: var(--green); }
@media (max-width: 599px) { .slider-dot { width: 28px; } }

/* ---- 8. Why strip -------------------------------------------------------- */
.why-grid { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; align-items: start; }
.why-item h3 { font-size: var(--fs-16); margin: 0; align-self: center; }
.why-item p { grid-column: 2; font-size: var(--fs-14); color: var(--muted); margin: 0; }
.why-icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green-deep); grid-row: span 2;
}
.why-icon .ico { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .why-item { grid-template-columns: 1fr; }
  .why-item p, .why-item h3 { grid-column: 1; }
  .why-icon { grid-row: auto; margin-bottom: .25rem; }
}

/* Home: the old site's "Sprouts & Microgreens" block — numbered reasons around a photo.
   Phone: heading, photo, then the six reasons in one column. From 1000px: 3 · photo · 3,
   the right-hand column right-aligned as on the old site. */
.why-head { text-align: center; margin-bottom: 2rem; }
.why-head .eyebrow { margin-inline: auto; }
.why-title { text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.why-rule { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--green); }
.why-rule::before, .why-rule::after { content: ""; width: min(22vw, 180px); height: 1px; background: var(--rule); }
.why-rule .ico { width: 26px; height: 26px; }
.why-layout { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.why-photo { order: -1; justify-self: center; width: min(78vw, 360px); }
.why-photo img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; } /* the photo's white ground melts into the page colour */
.why-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.why-point { position: relative; padding-top: .35rem; }
.why-num {
  position: absolute; top: -.35rem; left: -.15rem; z-index: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 4.5rem; line-height: 1;
  color: #E4EBE1; letter-spacing: -.02em; pointer-events: none;
}
.why-script {
  position: relative; z-index: 1; display: block; margin-left: 2.1rem;
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive; font-size: 2.1rem; line-height: 1.1;
  color: var(--green);
}
.why-point h3 { position: relative; z-index: 1; font-size: var(--fs-18); margin: .35rem 0 .35rem 2.1rem; color: var(--green-deep); }
.why-point p { position: relative; z-index: 1; margin: 0 0 0 2.1rem; color: var(--muted); font-size: var(--fs-16); max-width: 42ch; }
@media (min-width: 1000px) {
  .why-layout { grid-template-columns: 1fr minmax(300px, 400px) 1fr; align-items: center; gap: 2.5rem; }
  .why-photo { order: 0; width: 100%; }
  .why-col-end .why-point { text-align: right; }
  .why-col-end .why-num { left: auto; right: -.15rem; }
  .why-col-end .why-script, .why-col-end h3, .why-col-end p { margin-left: 0; margin-right: 2.1rem; }
  .why-col-end p { margin-left: auto; }
  .why-col-end { padding-top: 3rem; }
}

/* ---- 9. Cards ------------------------------------------------------------ */
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(27, 42, 30, .04);
}
.card-media { position: relative; display: block; background: var(--green-tint); }
.card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.recipe-card .card-media img { aspect-ratio: 4 / 3; }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1rem 1.1rem; flex: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-title { margin: 0; font-size: var(--fs-18); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green-deep); }
.card-sub { color: var(--muted); font-size: var(--fs-14); margin: 0; }
.card-text { color: var(--muted); font-size: var(--fs-14); margin: 0; }
.card-meta { color: var(--muted); font-size: var(--fs-14); margin: 0 0 .25rem; }
.product-card .order-box { margin-top: auto; padding-top: .5rem; }
.store-card { flex-direction: row; align-items: flex-start; gap: .25rem; }
.store-icon { padding: 1rem 0 0 1rem; color: var(--green); }
.store-icon .ico { width: 28px; height: 28px; }
.store-card .card-body { padding-left: .5rem; }
/* With store logos: every card has the same logo slot above the name (the store icon when a store
   has no logo), so names and branches line up across the grid.  Logos keep their own proportions,
   44px tall at most, never wider than 200px, left-aligned on the white card. */
.store-card-slot { flex-direction: column; gap: 0; }
.store-logo { display: flex; align-items: center; height: 44px; margin: 1.1rem 1rem 0; }
.store-logo picture { min-width: 0; max-width: 100%; }
.store-logo img { max-height: 44px; object-fit: contain; object-position: left center; }
.store-logo .store-icon { padding: 0; }
.store-card-slot .card-body { padding-left: 1rem; padding-top: .75rem; }

/* Japanese label tag — styled like the orange ribbon on the real packaging */
.ja-tag {
  display: inline-block; background: var(--orange); color: var(--white); font-weight: 600;
  font-size: 12px; line-height: 1; padding: .35em .7em; border-radius: 999px; letter-spacing: .04em;
}
.tag-new {
  position: absolute; top: .75rem; left: .75rem; background: var(--green-deep); color: var(--white);
  font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: .3em .7em; border-radius: 999px;
}
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: .35em .7em; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
.pill-available { color: var(--green-deep); background: var(--green-tint); border-color: transparent; }
.pill-preorder { color: #8A4A05; background: var(--orange-tint); border-color: transparent; }
.pill-ask { color: var(--muted); background: #F1F4EE; border-color: transparent; }

/* Prices */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; margin: 0; font-variant-numeric: tabular-nums; }
.price-now { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-22); color: var(--orange); }
.price-was { color: var(--muted); font-size: var(--fs-14); }
.price-unit { color: var(--muted); font-size: var(--fs-14); }
.price-big .price-now { font-size: var(--fs-36); }
.price-big .price-was, .price-big .price-unit { font-size: var(--fs-16); }

/* Stepper + order box */
.order-box { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; }
.order-box .btn-line { grid-column: 2; }
.order-box .btn-secondary { grid-column: 1 / -1; }
.order-box-compact .btn { padding-inline: .75rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--white); height: 44px; }
.stepper-btn { width: 40px; border: 0; background: transparent; color: var(--green-deep); font-size: var(--fs-22); font-weight: 500; line-height: 1; border-radius: 999px; }
.stepper-btn:hover { background: var(--green-tint); }
.stepper-input { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; }
.stepper-input::-webkit-outer-spin-button, .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-input:focus-visible { outline-offset: -3px; }
.promo-line { display: flex; gap: .5rem; align-items: flex-start; color: var(--green-deep); font-size: var(--fs-14); margin-top: 1.5rem; max-width: none; }
.promo-line .ico { width: 18px; height: 18px; margin-top: .2em; }

/* ---- 10. Product page ---------------------------------------------------- */
.product-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.product-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-tint); }
.product-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-info h1 { margin: .5rem 0 .25rem; }
.product-info .card-head { justify-content: flex-start; gap: .75rem; }
.product-sub { color: var(--muted); font-size: var(--fs-18); margin-bottom: .75rem; }
.spec-list { display: grid; gap: .6rem; margin: 1.25rem 0; }
.spec-list div { display: grid; grid-template-columns: 8.5em 1fr; gap: .5rem; border-top: 1px solid var(--rule); padding-top: .6rem; }
.spec-list dt { color: var(--muted); font-size: var(--fs-14); font-weight: 500; padding-top: .1em; }
.spec-list dd { margin: 0; }
.order-panel { background: var(--green-tint); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; }
.order-panel-title { font-size: var(--fs-18); margin-bottom: .75rem; }
.order-panel .order-box { grid-template-columns: auto 1fr; }
.order-panel .btn-secondary { background: var(--white); }
.order-panel .small { margin: .75rem 0 0; }
.disclaimer { color: var(--muted); font-size: var(--fs-14); margin-top: 2rem; max-width: 80ch; }

/* ---- 11. Steps ----------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 900px) { .steps:not(.steps-stack) { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 3.25rem; }
.step h2, .step h3 { font-size: var(--fs-18); margin-bottom: .25rem; }
.step p { color: var(--muted); margin: 0; }
.step-num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white); font-family: var(--font-head); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.section-steps .btn-row { margin-top: 1.75rem; }

/* ---- 12. Farm strip, gallery, facts ------------------------------------- */
.farm-strip { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .farm-strip { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.farm-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.farm-photos picture:first-child, .farm-photos > img:first-child { grid-column: 1 / -1; }
.farm-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.farm-photos picture:first-child img { aspect-ratio: 16 / 9; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; margin: 1.25rem 0 1.5rem; }
.fact dt { font-size: var(--fs-14); color: var(--muted); }
.fact dd { font-family: var(--font-head); font-weight: 600; color: var(--green-deep); }

/* Company information (about + contact pages): the producer and the distributor, small print */
.section-company { padding-block: 2rem; }
.company-title { font-size: var(--fs-18); margin-bottom: .75rem; }
.company-info { display: grid; gap: 1rem 2rem; }
@media (min-width: 700px) { .company-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.company-row dt { font-size: var(--fs-14); color: var(--muted); font-weight: 500; margin-bottom: .15rem; }
.company-row dd { display: flex; flex-direction: column; gap: .1rem; }
.company-name { font-weight: 600; }
.company-detail { font-size: var(--fs-14); color: var(--muted); }
.gallery, .photo-strip { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery img, .photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery figcaption, .photo-strip figcaption { font-size: var(--fs-14); color: var(--muted); margin-top: .35rem; }
.badges { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.badge-img { width: 120px; height: auto; }
.sources { padding-left: 1.2em; font-size: var(--fs-14); color: var(--muted); }
.sources li { margin-bottom: .5em; }
.wholesale { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .wholesale { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---- 13. FAQ ------------------------------------------------------------- */
.faq-item { border-top: 1px solid var(--rule); padding: .25rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; padding: .8rem 2rem .8rem 0; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-18);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .25rem; top: .7rem; color: var(--green); font-size: var(--fs-22); font-weight: 500;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); padding-bottom: .75rem; margin: 0; }

/* ---- 13b. Recipes + articles --------------------------------------------- */
/* recipe cards on /recipes/: meta line, product chips, collapsed ingredients/method */
.recipe-grid { align-items: start; }                 /* opening one card must not stretch its row */
.recipe-card[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.recipe-meta { display: flex; align-items: center; gap: .4rem; margin: .2rem 0 0; color: var(--green-deep); font-size: var(--fs-14); font-weight: 500; }
.recipe-meta .ico { width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .4rem 0 0; font-size: var(--fs-14); max-width: none; }
.chips-label { color: var(--muted); margin-right: .1rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .75rem; border-radius: 999px;
  background: var(--green-tint); color: var(--green-deep); text-decoration: none; font-weight: 500; line-height: 1.3;
}
.chip:hover { background: var(--green); color: var(--white); }
.recipe-more { margin-top: .6rem; border-top: 1px solid var(--rule); }
.recipe-more summary {
  cursor: pointer; list-style: none; position: relative; min-height: 44px; display: flex; align-items: center;
  padding: .5rem 2rem .5rem 0; font-family: var(--font-head); font-weight: 600; color: var(--green-deep);
}
.recipe-more summary::-webkit-details-marker { display: none; }
.recipe-more summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: var(--fs-22); font-weight: 500; line-height: 1;
}
.recipe-more[open] summary::after { content: "\2212"; }
.recipe-more summary:hover { color: var(--green); }
.recipe-more-body { font-size: var(--fs-14); padding-bottom: .25rem; }
.recipe-sub { font-size: var(--fs-14); color: var(--muted); margin: .35rem 0 .3rem; }
.recipe-list { padding-left: 1.3em; display: grid; gap: .3rem; margin-bottom: .6rem; }
.recipe-list li::marker { color: var(--green); }

/* article cards and article pages (/recipes/<slug>/) */
.article-card .card-media img { aspect-ratio: 4 / 3; }
.article-meta { color: var(--muted); font-size: var(--fs-14); margin: 0; }
.card-more { align-self: flex-start; margin: auto 0 0 -.6rem; }
.article-head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
@media (min-width: 900px) { .article-head { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; } }
.article-head h1 { margin-bottom: .6rem; overflow-wrap: break-word; }
.article-head .lead { margin-bottom: .75rem; }
.article-hero { max-width: 420px; }
.article-hero img { width: 100%; border-radius: var(--radius); background: var(--green-tint); }
.article-body { max-width: 68ch; }
.article-body h2 { font-size: var(--fs-22); margin: 2.25rem 0 .6rem; }
@media (min-width: 900px) { .article-body h2 { font-size: var(--fs-28); } }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; display: grid; gap: .4rem; }
.article-body li::marker { color: var(--green); }
.article-body .article-sources { padding-left: 1.3em; gap: .25rem; }
.sources a { overflow-wrap: anywhere; }
.article-body .disclaimer { margin-top: 1.75rem; }

/* ---- 14. Contact --------------------------------------------------------- */
.contact-block { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-block { grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; } }
.contact-list { display: grid; gap: 1rem; }
.contact-row dt { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-14); color: var(--green-deep); margin-bottom: .15rem; }
.contact-row .ico { width: 18px; height: 18px; }
.contact-row dd { padding-left: 1.65rem; }
.line-block { background: var(--green-tint); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.qr { width: 160px; height: 160px; background: var(--white); padding: 8px; border-radius: var(--radius-sm); }
.qr-figure figcaption { font-size: var(--fs-14); color: var(--muted); margin-top: .5rem; }
/* Google map on /contact/: 16:10 box (padding trick: also right in browsers without aspect-ratio) */
.map-frame {
  position: relative; width: 100%; height: 0; padding-top: 62.5%;
  border-radius: var(--radius); overflow: hidden; background: var(--green-tint);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-note { display: flex; gap: .4rem; align-items: flex-start; color: var(--muted); font-size: var(--fs-14); margin: .75rem 0 0; max-width: none; }
.map-note .ico { width: 18px; height: 18px; flex: none; margin-top: .15em; color: var(--green); }

/* ---- 15. Footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--white); margin-top: 2rem; padding-top: 2.5rem; font-size: var(--fs-14); color: var(--muted); }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }
.footer-logo { width: 180px; height: auto; margin-bottom: .75rem; }
.footer-nav ul { list-style: none; display: grid; gap: .35rem; }
.footer-nav a, .footer-contact a { color: var(--ink); }
.footer-line a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--green-deep); text-decoration: none; }
.footer-line .ico { width: 18px; height: 18px; fill: var(--line); }
.footer-line .ico path + path { stroke: var(--white); }
.footer-copy { border-top: 1px solid var(--rule); margin-top: 2rem; padding-block: 1.25rem; }
.footer-copy p { margin: 0; max-width: none; }
.footer-copy .footer-made { margin-bottom: .35rem; }
.footer-co { display: inline-block; }
body.has-basket .site-footer { padding-bottom: 5rem; }

/* ---- 16. Basket bar (sticky) --------------------------------------------- */
.basket-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--white);
  border-top: 1px solid var(--rule); box-shadow: 0 -6px 24px rgba(27, 42, 30, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.basket-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.basket-bar-sum { margin: 0; font-family: var(--font-head); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket-bar-sum .price-now { font-size: var(--fs-18); }
@media (max-width: 599px) { .basket-bar .btn span { font-size: var(--fs-14); } }

/* ---- 17. Basket panel + dialog ------------------------------------------- */
.basket-panel { background: var(--white); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; }
.basket-panel[data-inline] { border: 1px solid var(--rule); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 12px); }
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.basket-title { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-22); margin: 0; }
.basket-title .ico { color: var(--green); }
.basket-empty { color: var(--muted); margin: 0; }
.basket-list { list-style: none; display: grid; gap: .5rem; }
.basket-item { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: center; border-top: 1px solid var(--rule); padding-top: .6rem; }
.basket-item-name { font-weight: 600; margin: 0; }
.basket-item-sub { font-size: var(--fs-14); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.basket-item-tools { display: flex; align-items: center; gap: .4rem; grid-row: span 2; }
.basket-item .stepper { height: 38px; }
.basket-item .stepper-btn { width: 34px; }
.basket-item .stepper-input { width: 38px; }
.basket-item .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.basket-item .icon-btn .ico { width: 18px; height: 18px; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--rule); padding-top: .75rem; margin: 0; font-family: var(--font-head); font-weight: 500; max-width: none; }
.basket-total .price-now { font-size: var(--fs-28); }
.basket-promo { display: flex; gap: .4rem; align-items: center; margin: 0; color: var(--green-deep); background: var(--green-tint); padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: var(--fs-14); max-width: none; }
.basket-promo .ico { width: 18px; height: 18px; }
.basket-preview-label { font-size: var(--fs-14); color: var(--muted); }
.basket-preview {
  width: 100%; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .6rem .75rem; resize: vertical;
  background: var(--paper); font-size: var(--fs-14); line-height: 1.5; min-height: 7em;
}
.basket-actions { display: grid; gap: .6rem; }
.basket-actions .btn-lg { width: 100%; }
.basket-actions .btn-row { margin: 0; }
.basket-qr { display: none; align-items: center; gap: 1rem; border-top: 1px solid var(--rule); padding-top: .9rem; }
.basket-qr .qr { width: 120px; height: 120px; flex: none; }
.basket-qr p { margin: 0; font-size: var(--fs-14); color: var(--muted); }
@media (min-width: 900px) { .basket-qr { display: flex; } }
.basket-note { font-size: var(--fs-14); color: var(--muted); margin: 0; }

.basket-dialog {
  position: fixed; inset: auto 0 0 0; z-index: 60; margin: 0; width: 100%; max-width: 100%; max-height: 92vh;
  border: 0; padding: 0; background: transparent; overflow: auto; overscroll-behavior: contain;
}
.basket-dialog:not([open]) { display: none; }
.basket-dialog .basket-panel { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
.basket-dialog::backdrop { background: rgba(27, 42, 30, .55); }
.dialog-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(27, 42, 30, .55); }
@media (min-width: 900px) {
  .basket-dialog { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 560px; max-height: 88vh; border-radius: var(--radius); }
  .basket-dialog .basket-panel { border-radius: var(--radius); padding: 1.5rem; }
}
body.has-dialog { overflow: hidden; }

/* LINE on a computer: the QR for the phone (site.js adds html.line-by-qr off phones and tablets) */
.line-by-qr .basket-qr { display: none; }
.line-phone-body { display: grid; gap: 1rem; justify-items: center; }
.line-phone-qr { width: min(300px, 100%); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 4px; }
.line-phone-qr svg { display: block; width: 100%; height: auto; }
.line-phone-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; align-self: center; }
.line-phone-actions { margin: 0; }
.line-phone-done { margin: 0; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--green-tint); color: var(--green-deep); font-size: var(--fs-14); max-width: none; }
@media (min-width: 900px) {
  .line-phone-dialog { width: 680px; }
  .line-phone-body { grid-template-columns: 300px 1fr; justify-items: stretch; }
}

/* ---- 18. Toast ----------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%) translateY(10px); z-index: 70;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 999px; font-size: var(--fs-14);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 19. Motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide:first-child .hero-panel { animation: rise .5s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  /* slider: a short cross-fade (the leaving slide turns invisible once it has faded out) */
  .hero-slider.is-ready .hero-slide { transition: opacity .4s ease, visibility 0s linear .4s; }
  .hero-slider.is-ready .hero-slide.is-active { transition: opacity .4s ease, visibility 0s linear 0s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toast { transition: none; }
}

/* ---- 20. Print ----------------------------------------------------------- */
@media print {
  .site-header, .basket-bar, .basket-dialog, .toast, .skip-link, .hero-controls { display: none !important; }
}
