/* FarmFresh — component vocabulary (frozen class names) */

/* ======================= Buttons ========================================= */
.btn {
  --btn-bg: var(--forest); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-sm);
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn--amber    { --btn-bg: var(--amber); --btn-fg: #241403; }
.btn--peach    { --btn-bg: var(--amber-200); --btn-fg: #6B3C06; }
.btn--brand    { --btn-bg: var(--brand); --btn-fg: #06251A; }
.btn--ghost    { --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: var(--line-strong); }
.btn--on-dark  { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--danger   { --btn-bg: var(--berry); --btn-fg: #fff; }
.btn--block    { width: 100%; }
.btn--sm       { min-height: 36px; padding: 0 var(--s-4); font-size: var(--t-xs); }
.btn--lg       { min-height: 52px; padding: 0 var(--s-7); font-size: var(--t-base); }
.btn--icon     { padding: 0; width: 44px; min-height: 44px; border-radius: var(--r-pill); }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--forest);
  font-weight: 700; cursor: pointer; text-align: left;
}
.link-btn:hover { text-decoration: underline; }

/* ======================= Badges / tags =================================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--mint); color: var(--forest);
}
.tag--sale    { background: var(--berry); color: #fff; }
.tag--organic { background: var(--amber); color: #241403; }
.tag--season  { background: var(--brand); color: #06251A; }
.tag--new     { background: var(--forest); color: #fff; }
.tag--soldout { background: var(--line-strong); color: var(--ink-2); }

/* Corner ribbon on product cards (matches the brand work) */
.ribbon {
  position: absolute; top: 10px; left: 0; z-index: 2;
  padding: 3px 8px 3px 6px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--berry); box-shadow: var(--shadow-xs);
}
.ribbon--organic { background: var(--amber); color: #241403; }
.ribbon--season  { background: var(--brand); color: #06251A; }

/* ======================= Rating ========================================== */
.rating { display: inline-flex; align-items: center; gap: 6px; }
.rating__stars { display: inline-flex; gap: 1px; color: var(--gold); line-height: 0; }
.rating__stars svg { width: 13px; height: 13px; }
.rating__stars .is-empty { color: var(--line-strong); }
.rating__count { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.rating--lg .rating__stars svg { width: 18px; height: 18px; }

/* ======================= Cards =========================================== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs);
}
.card__body { padding: var(--s-4); }
.card--flat { box-shadow: none; }
.card--pad { padding: var(--s-5); }

/* ---- Product card (circular produce plate on sage, per brand work) ------ */
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--sage); border-radius: var(--r-md);
  overflow: hidden; text-align: center;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pcard.is-active { background: var(--brand); }
.pcard__link { display: block; color: inherit; padding: var(--s-4) var(--s-3) var(--s-2); }
.pcard__link:hover { text-decoration: none; }
.pcard__plate {
  width: 84px; height: 84px; margin: 0 auto var(--s-3);
  background: var(--paper); border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.pcard__plate svg { width: 76%; height: 76%; object-fit: contain; }
/* Real studio photos fill the whole circular plate; the SVG plates stay inset. */
.art-photo { display: block; }
.art-photo--plate, .pcard__plate img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) { .pcard__plate { width: 104px; height: 104px; } }
.pcard__name {
  font-size: var(--t-sm); font-weight: 700; color: var(--ink);
  line-height: var(--lh-snug); min-height: 2.7em;
}
.pcard__farm { font-size: var(--t-xs); color: var(--ink-2); margin-top: 2px; }
.pcard__rating { justify-content: center; margin-top: var(--s-2); }
.pcard__price { margin-top: var(--s-1); font-size: var(--t-sm); }
.pcard__foot { padding: 0 var(--s-3) var(--s-3); display: grid; gap: var(--s-2); }
.pcard.is-active .pcard__name, .pcard.is-active .pcard__farm,
.pcard.is-active .pcard__price { color: #06251A; }

/* ---- Farm card ---------------------------------------------------------- */
.farmcard { display: flex; flex-direction: column; height: 100%; }
.farmcard__cover {
  aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--mint);
}
.farmcard__cover > img, .farmcard__cover > svg { width: 100%; height: 100%; object-fit: cover; }
/* Avatar lives in the body (not the clipped cover) and is lifted to straddle the
   seam, so its bottom half is no longer masked. */
.farmcard__body { position: relative; }
.farmcard__avatar {
  position: absolute; left: var(--s-4); top: -36px; z-index: 3;
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface);
  overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm);
}
.farmcard__avatar > svg, .farmcard__avatar > img { width: 100%; height: 100%; object-fit: cover; }
.farmcard__body { padding: var(--s-6) var(--s-4) var(--s-4); display: grid; gap: var(--s-2); }
.farmcard__meta { display: flex; gap: var(--s-3); flex-wrap: wrap; font-size: var(--t-xs); color: var(--ink-3); }

/* ---- Media card (recipe / video) ---------------------------------------- */
.mcard { display: flex; flex-direction: column; height: 100%; }
.mcard__media { position: relative; aspect-ratio: 4/3; background: var(--mint); overflow: hidden; }
.mcard__media > img, .mcard__media > svg { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { padding: var(--s-4); display: grid; gap: var(--s-2); }
.mcard__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--t-md); line-height: var(--lh-snug); }
.mcard__meta { display: flex; gap: var(--s-3); font-size: var(--t-xs); color: var(--ink-3); flex-wrap: wrap; }

.play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
  color: #fff;
}
.play-badge::after {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  -webkit-mask: var(--play-mask) center / 44% no-repeat; mask: var(--play-mask) center / 44% no-repeat;
  box-shadow: var(--shadow-md);
}
.duration-chip {
  position: absolute; right: var(--s-2); bottom: var(--s-2);
  background: rgba(0,0,0,.72); color: #fff; font-size: var(--t-xs); font-weight: 700;
  padding: 2px 7px; border-radius: var(--r-sm);
}

/* ======================= Hero / banner panels ============================ */
.panel {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--forest); color: var(--ink-on-dark);
}
.panel--split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .panel--split { grid-template-columns: 1fr 1fr; } }
.panel__content { padding: var(--s-6); display: grid; align-content: center; gap: var(--s-3); z-index: 1; }
@media (min-width: 760px) { .panel__content { padding: var(--s-8); } }
.panel__content h1, .panel__content h2, .panel__content h3 { color: #fff; }
.panel__media { min-height: 190px; position: relative; background: var(--mint); }
.panel__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__swoosh {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-repeat: no-repeat; background-position: left -40px center; background-size: auto 180%;
}

/* Overlay banner ("Great Recipes" / "Local Farm Share") */
.banner {
  position: relative; display: grid; align-items: end; min-height: 180px;
  border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate;
}
.banner > .banner__bg { position: absolute; inset: 0; z-index: -1; }
.banner > .banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,32,24,.12) 25%, rgba(0,32,24,.68));
}
.banner__bg > * { width: 100%; height: 100%; object-fit: cover; }
.banner__text { padding: var(--s-5); display: grid; gap: 2px; }
.banner__text h2, .banner__text h3 {
  color: #fff; font-size: var(--t-2xl); margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.banner__text a { color: #fff; font-weight: 700; font-size: var(--t-sm); }

/* ======================= Chips & filters ================================= */
.chips {
  display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none;
  padding-inline: max(var(--s-4), var(--safe-left));
  margin-inline: calc(-1 * max(var(--s-4), var(--safe-left)));
  padding-block: var(--s-1);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 var(--s-4);
  border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2);
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--forest); border-color: var(--forest); color: #fff;
}

/* Category sidebar (desktop shop) */
.sidenav { background: var(--forest); color: #fff; border-radius: var(--r-lg); padding: var(--s-5) var(--s-4); }
.sidenav h3 { color: #fff; font-size: var(--t-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-3); }
.sidenav ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: 2px; }
.sidenav a, .sidenav button {
  display: flex; align-items: center; gap: var(--s-2); width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: rgba(255,255,255,.88); font-size: var(--t-sm); padding: 5px 8px; border-radius: var(--r-sm);
}
.sidenav a::before, .sidenav button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none;
}
.sidenav a:hover, .sidenav button:hover { background: rgba(255,255,255,.10); text-decoration: none; color: #fff; }
.sidenav .is-on { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }

/* ======================= Tabs ============================================ */
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-width: max-content; background: none; border: 0; cursor: pointer;
  padding: var(--s-3) var(--s-4); font-size: var(--t-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--forest); }
.tabpanel { padding-block: var(--s-4); }

/* ======================= Quantity stepper ================================ */
.qty {
  display: inline-grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface);
  border: 1.5px solid var(--line-strong); min-height: 40px;
}
.qty button {
  background: var(--forest); color: #fff; border: 0; height: 100%; min-height: 38px;
  font-size: var(--t-md); font-weight: 700; cursor: pointer; line-height: 1;
}
.qty button:hover { background: var(--forest-600); }
.qty button[disabled] { background: var(--line-strong); color: var(--ink-3); cursor: not-allowed; }
.qty input {
  border: 0; text-align: center; width: 100%; min-width: 36px;
  background: transparent; font-weight: 700; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { grid-template-columns: 30px 1fr 30px; min-height: 30px; }
.qty--sm button { min-height: 28px; font-size: var(--t-sm); }

/* ======================= Forms =========================================== */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field > label, .label {
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2);
}
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px var(--s-3);
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
.textarea { min-height: 110px; resize: vertical; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(12,129,100,.18); }
.field__hint { font-size: var(--t-xs); color: var(--ink-3); }
.field__error { font-size: var(--t-xs); color: var(--berry); font-weight: 700; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--berry); }

/* Underline inputs, used on the dark newsletter / sign-in panels */
.input--underline {
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.55);
  border-radius: 0; color: #fff; padding-inline: 0;
}
.input--underline::placeholder { color: rgba(255,255,255,.7); }
.input--underline:focus { border-bottom-color: #fff; box-shadow: none; }

.checkline { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-2) 0; cursor: pointer; }
.checkline input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--forest); flex: none; }

.radio-cards { display: grid; gap: var(--s-3); }
.radio-card {
  display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer;
  padding: var(--s-4); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); background: var(--surface);
}
.radio-card input { margin-top: 3px; accent-color: var(--forest); flex: none; }
.radio-card:has(input:checked) { border-color: var(--forest); background: var(--mint); box-shadow: inset 0 0 0 1px var(--forest); }

.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
@media (min-width: 560px) { .month-grid { grid-template-columns: repeat(6, 1fr); } }
.month-grid label {
  display: grid; place-items: center; min-height: 38px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; color: var(--ink-2);
  background: var(--surface);
}
.month-grid label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #06251A; }
.month-grid input { position: absolute; opacity: 0; pointer-events: none; }

/* ======================= Announcement bar ================================ */
.announce-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 61;
  height: calc(var(--announce-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--forest-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.announce-bar a {
  color: #fff; display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em;
  padding: 4px var(--s-3);
}
.announce-bar a { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.announce-bar a:hover { text-decoration: none; opacity: .9; }
.announce-bar svg { width: 15px; height: 15px; flex: none; }
.announce-bar strong { font-weight: 800; }
.announce-bar .announce-arrow { display: inline-flex; margin-left: 2px; }
.announce-extra { display: none; }
@media (min-width: 680px) { .announce-extra { display: inline; } }

/* ======================= Header / nav ==================================== */
.site-header {
  position: fixed; left: 0; right: 0; z-index: 60;
  top: calc(var(--announce-h) + var(--safe-top));
  height: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.site-header__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(var(--s-4), var(--safe-left));
  display: flex; align-items: center; gap: var(--s-3);
}
.brand { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { height: 26px; width: auto; }
@media (min-width: 900px) { .brand svg { height: 30px; } }

.mainnav { display: none; }
@media (min-width: 900px) {
  .mainnav { display: flex; gap: var(--s-5); margin-left: var(--s-6); }
  .mainnav a {
    font-size: var(--t-xs); font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ink-2); padding-block: var(--s-2);
    border-bottom: 2px solid transparent;
  }
  .mainnav a:hover, .mainnav a.is-on { color: var(--forest); border-bottom-color: var(--brand); text-decoration: none; }
}

.searchbar { display: none; }
@media (min-width: 900px) {
  .searchbar { display: flex; flex: 0 1 320px; margin-left: 0; }
  .searchbar input {
    flex: 1; min-height: 38px; padding: 0 var(--s-3);
    border: 1.5px solid var(--line-strong); border-right: 0;
    border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2);
  }
  .searchbar button {
    width: 44px; border: 0; background: var(--brand); color: #06251A;
    border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; display: grid; place-items: center;
  }
}

.icon-btn {
  position: relative; width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: none; border: 0; color: var(--forest); cursor: pointer;
}
.icon-btn:hover { background: var(--mint); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--amber); color: #241403;
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--mint); flex: none; }
.avatar svg, .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(5, 32, 24, .5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 95; width: min(80vw, 300px);
  background: var(--forest); color: #fff; transform: translateX(-100%);
  transition: transform var(--dur) var(--ease); overflow-y: auto;
  padding: calc(var(--safe-top) + var(--s-5)) var(--s-5) calc(var(--safe-bottom) + var(--s-6));
  display: grid; align-content: start; gap: 2px;
}
.drawer.is-open { transform: none; }
.drawer a, .drawer button {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: var(--s-3); border-radius: var(--r-md); border: 0; background: none;
  color: rgba(255,255,255,.9); font-size: var(--t-base); font-weight: 600;
  text-align: left; cursor: pointer;
}
/* Size only the menu-item icons — not the avatar or the brand wordmark. */
.drawer a > svg, .drawer button > svg { width: 20px; height: 20px; flex: none; }
.drawer .brand svg { width: auto; height: 26px; }
.drawer a:hover, .drawer button:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.drawer a.is-on { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.drawer hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: var(--s-3) 0; width: 100%; }
.drawer__title { color: rgba(255,255,255,.6); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; padding: var(--s-2) var(--s-3) 0; }

/* ======================= Bottom tab bar (mobile) ========================= */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--forest-500); color: rgba(255,255,255,.78);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
@media (min-width: 900px) { .tabbar { display: none; } }
.tabbar a {
  display: grid; place-items: center; gap: 2px; padding-top: 7px;
  color: inherit; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.tabbar a:hover { text-decoration: none; }
.tabbar svg { width: 21px; height: 21px; }
.tabbar a.is-on { color: var(--amber); }
.tabbar a .tabbar__dot {
  position: absolute; margin-left: 16px; margin-top: -14px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--amber); color: #241403; font-size: 9px; display: grid; place-items: center;
}

/* ======================= Footer ========================================== */
.site-footer { background: var(--forest); color: rgba(255,255,255,.82); padding-block: var(--s-7); }
.site-footer a { color: rgba(255,255,255,.82); font-size: var(--t-sm); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
@media (min-width: 760px) { .footer-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; } }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.45); border-radius: var(--r-sm);
  color: #fff; font-size: 11px; line-height: 1.1;
}
.store-badge:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.store-badge strong { display: block; font-size: 13px; }
.store-badge svg { width: 22px; height: 22px; flex: none; }

/* Newsletter strip — moved out of the home page into the footer head. */
.footer-newsletter-strip {
  display: grid; gap: var(--s-4); align-items: center;
  padding-bottom: var(--s-6); margin-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
@media (min-width: 760px) { .footer-newsletter-strip { grid-template-columns: 1fr auto; gap: var(--s-8); } }
.footer-newsletter-strip h3 { color: #fff; margin: 0 0 4px; }
.footer-newsletter-strip p { color: rgba(255,255,255,.72); font-size: var(--t-sm); margin: 0; max-width: 46ch; }
.footer-newsletter { display: flex; gap: var(--s-2); min-width: min(360px, 100%); }
.footer-newsletter input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid rgba(255,255,255,.32); border-radius: var(--r-sm);
  background: rgba(255,255,255,.1); color: #fff;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.6); }
.footer-newsletter button { flex: none; }

/* ======================= Review ========================================== */
.review {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  padding: var(--s-5) var(--s-4) var(--s-4); position: relative; display: grid; gap: var(--s-2);
}
.review__quote { position: absolute; top: 6px; left: 12px; font-size: 42px; line-height: 1; color: var(--brand); opacity: .55; font-family: Georgia, serif; }
.review__who { display: flex; align-items: center; gap: var(--s-2); font-weight: 800; font-size: var(--t-sm); color: var(--ink); }
.review__who .avatar { width: 34px; height: 34px; border: 2px solid var(--line); }
.review__body { font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-2); }
.review__reply {
  background: var(--mint-100); border-radius: var(--r-sm); padding: var(--s-3);
  font-size: var(--t-xs); color: var(--ink-2);
}
.review--plain { background: var(--surface); }

/* ======================= Cart / line items =============================== */
.lineitem {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-3);
  align-items: center; padding: var(--s-3); background: var(--mint);
  border-radius: var(--r-md);
}
.lineitem__plate { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.lineitem__plate svg, .lineitem__plate img { width: 76%; height: 76%; object-fit: contain; }
.lineitem__name { font-weight: 700; font-size: var(--t-sm); line-height: var(--lh-snug); }
.lineitem__meta { font-size: var(--t-xs); color: var(--ink-2); }
.lineitem__end { display: grid; gap: var(--s-2); justify-items: end; }

.summary { display: grid; gap: var(--s-2); }
.summary__row { display: flex; justify-content: space-between; font-size: var(--t-sm); }
.summary__row--total { font-size: var(--t-md); font-weight: 800; color: var(--ink); padding-top: var(--s-3); border-top: 1px solid var(--line); }

.sticky-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: var(--s-3) max(var(--s-4), var(--safe-left));
  display: flex; gap: var(--s-3); align-items: center;
  box-shadow: 0 -6px 20px rgba(10,44,34,.08);
}
@media (min-width: 900px) { .sticky-bar { bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* ======================= Status / timeline =============================== */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 800;
  background: var(--mint); color: var(--forest); text-transform: capitalize;
}
.pill--amber { background: #FDEBD6; color: #8A4C05; }
.pill--brand { background: #D9F2E4; color: #0B6B4A; }
.pill--grey  { background: var(--surface-2); color: var(--ink-3); }
.pill--berry { background: #FBE2E0; color: #9C2A20; }

.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); position: relative; }
.timeline li::before {
  content: ""; grid-row: 1 / span 2; width: 12px; height: 12px; margin-top: 5px;
  border-radius: 50%; background: var(--line-strong); justify-self: center;
}
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--brand); }
.timeline li.is-current::before { background: var(--amber); box-shadow: 0 0 0 4px #FDEBD6; }

/* ======================= Tables (seller) ================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 560px; }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th {
  font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-2); white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 760px) { .statgrid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); display: grid; gap: 2px; }
.stat__label { font-size: var(--t-xs); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.stat__value { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat__delta { font-size: var(--t-xs); font-weight: 700; color: var(--brand-700); }
.stat__delta.is-down { color: var(--berry); }

.sparkbars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: var(--s-2); }
.sparkbars i { flex: 1; background: var(--brand); border-radius: 2px 2px 0 0; min-height: 2px; }

/* ======================= Modal / sheet =================================== */
.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; }
.modal::backdrop { background: rgba(5, 32, 24, .55); }
.modal__card {
  background: var(--surface); color: var(--ink); width: min(560px, 94vw);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  max-height: 88dvh; display: grid; grid-template-rows: auto 1fr auto;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; }
.modal__body { padding: var(--s-5); overflow-y: auto; }
.modal__foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); display: flex; gap: var(--s-3); justify-content: flex-end; }
@media (max-width: 640px) {
  .modal { margin: auto auto 0; }
  .modal__card { width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: var(--safe-bottom); }
}

/* ======================= Toast =========================================== */
.toasts {
  position: fixed; z-index: 120; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--s-4));
  display: grid; gap: var(--s-2); width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: var(--s-5); } }
.toast {
  background: var(--forest-800); color: #fff; border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-lg);
  font-size: var(--t-sm); font-weight: 600; display: flex; align-items: center; gap: var(--s-3);
  animation: toast-in var(--dur) var(--ease); pointer-events: auto;
}
.toast--err { background: var(--berry); }
.toast a, .toast button { color: var(--amber); font-weight: 800; background: none; border: 0; cursor: pointer; margin-left: auto; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ======================= Empty & skeleton ================================ */
.empty { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: var(--s-9) var(--s-5); color: var(--ink-3); }
.empty svg { width: 76px; height: 76px; opacity: .55; }
.empty h3 { margin: 0; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--mint) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: var(--r-sm); }
@keyframes skel { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ======================= Misc ============================================ */
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.note { background: var(--mint); border-left: 3px solid var(--brand); padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-sm); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); font-size: var(--t-sm); }
.kv dt { color: var(--ink-3); font-weight: 700; }
.kv dd { margin: 0; }

/* ======================= Market stands =================================== */
.stand-list { display: grid; gap: var(--s-3); }
@media (min-width: 760px) { .stand-list--two { grid-template-columns: 1fr 1fr; } }

.stand {
  display: grid; grid-template-columns: 78px 1fr; gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4); align-items: start;
}
.stand--open { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.stand--past { opacity: .62; }
.stand__when {
  display: grid; justify-items: center; gap: 2px; padding: var(--s-2) 0;
  background: var(--mint); border-radius: var(--r-sm); text-align: center;
}
.stand__day {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--forest);
}
.stand__date { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; color: var(--heading); line-height: 1; }
.stand__time { font-size: 10px; font-weight: 700; color: var(--ink-2); }
.stand__body { display: grid; gap: 4px; min-width: 0; }
.stand__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--t-md); line-height: var(--lh-snug); }
.stand__line { font-size: var(--t-sm); color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.stand__line svg { width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.stand__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s-1); }

.stand-line {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: 700; color: var(--forest);
}
.stand-line svg { width: 13px; height: 13px; }
.stand-line--live { color: var(--brand-700); }
.stand-line--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px rgba(60,186,123,.25);
}

/* ======================= Social handles ================================== */
.social-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social-chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 var(--s-3);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); font-size: var(--t-xs); font-weight: 700;
}
.social-chip:hover { border-color: var(--forest); color: var(--forest); text-decoration: none; }
.social-chip svg { width: 16px; height: 16px; flex: none; }
.social-row--dark .social-chip {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color: #fff;
}
.social-row--dark .social-chip:hover { background: rgba(255,255,255,.22); color: #fff; }
.social-chip--icon { padding: 0; width: 36px; justify-content: center; }

/* Day-of-week picker, same shape as the month grid */
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); }
.day-grid label {
  display: grid; place-items: center; min-height: 38px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 800; text-transform: uppercase; color: var(--ink-2);
  background: var(--surface);
}
.day-grid label:has(input:checked) { background: var(--forest); border-color: var(--forest); color: #fff; }
.day-grid input { position: absolute; opacity: 0; pointer-events: none; }
