/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-1); padding: 0.8rem 1.6rem; border: 0;
  border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; transition: background-color .15s, transform .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--wood); }
.btn-primary:hover:not(:disabled) { background: var(--gold-deep); }
.btn-secondary {
  background: transparent; color: var(--wood);
  box-shadow: inset 0 0 0 2px var(--wood);
}
.btn-secondary:hover:not(:disabled) { background: var(--cream-dk); }
.btn-whatsapp {
  background: #25D366;
  /* Wood, not white. White on this green is 1.98:1 and fails WCAG AA
     badly on a primary CTA. Wood on the SAME green is 7.34:1 (AAA), so
     the instantly-recognizable WhatsApp green is kept rather than
     darkened to #167E3D (5.14:1) or swapped for the dark teal. */
  color: var(--wood);
}
.btn-whatsapp:hover:not(:disabled) { background: #1EBE58; }

/* Cards
   ------------------------------------------------------------------ */
.card {
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.product-card {
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-card__body { padding: var(--space-2); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card__title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }
.product-card__price { font-weight: 700; color: var(--wood); }
.product-card__compare { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }

/* Badges
   ------------------------------------------------------------------ */
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-instock { background: var(--leaf); color: #fff; }
.badge-oneofakind { background: var(--ht-blue); color: #fff; }
.badge-soldout { background: var(--muted); color: #fff; }
.badge-sale { background: var(--ht-red); color: #fff; }
.badge-lowstock { background: var(--ht-red); color: #fff; }

/* Form fields
   ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--space-2); }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--wood); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body); font-size: 1rem; width: 100%;
  padding: 0.65rem 0.8rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--cream); color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ht-blue); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.field .error { font-size: 0.8rem; color: var(--ht-red); font-weight: 600; }

/* Site nav
   ------------------------------------------------------------------ */
.site-nav { background: var(--wood); color: var(--cream); }
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); padding-block: var(--space-2); flex-wrap: wrap;
}
.site-nav__brand {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--gold); text-decoration: none; font-weight: 600;
}
.site-nav__links {
  display: flex; align-items: center; gap: var(--space-3);
  list-style: none; flex-wrap: wrap;
}
/* Scoped to .site-nav__links rather than .site-nav so this rule's
   specificity (0,1,1) never competes with .site-nav__brand (0,1,0) —
   the brand link is not one of the nav links. Escalating .site-nav__brand
   instead (e.g. with !important) would start a specificity war; see
   git history for the bug this scoping fixes. */
.site-nav__links a { color: var(--cream); text-decoration: none; font-weight: 600; }
.site-nav__links a:hover { color: var(--gold); }

.site-nav__toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: transparent; border: 0; padding: 0.5rem;
  cursor: pointer; border-radius: var(--radius);
}
.site-nav__toggle-bar { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }
.site-nav__lang {
  background: transparent; border: 0; color: var(--cream);
  font-weight: 600; font-family: var(--font-body); font-size: inherit;
  padding: 0; cursor: pointer;
}
.site-nav__lang:hover { color: var(--gold); }
.site-nav__cart { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-nav__cart-count {
  display: inline-block; min-width: 1.4em; padding: 0 0.35em;
  background: var(--gold); color: var(--wood); border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-align: center;
}
.site-nav__cart-amount { font-size: 0.85rem; }

@media (max-width: 767px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav__links {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; gap: var(--space-2); padding-block: var(--space-2);
  }
  .site-nav__links.is-open { display: flex; }
}

/* Announcement bar
   ------------------------------------------------------------------ */
.announcement {
  background: var(--gold); color: var(--wood);
  text-align: center; font-size: 0.85rem; font-weight: 700;
  padding: 0.55rem var(--space-2);
}

/* Site footer
   ------------------------------------------------------------------ */
.site-footer { background: var(--wood); color: var(--cream); padding-block: var(--space-5); }
.site-footer .wrap {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer h4 { color: var(--gold); margin-bottom: var(--space-2); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--wood-lt); font-size: 0.85rem; color: var(--cream-dk);
  text-align: center;
}

/* Grid
   ------------------------------------------------------------------ */
.grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Product card extras
   ------------------------------------------------------------------ */
/* Fallback tile for a product with no usable image — same aspect-ratio
   as .product-card img so the card grid doesn't reflow when a photo is
   missing. Shared by home.js and shop.js via product-card.js. */
.product-card__img-fallback { aspect-ratio: 1; width: 100%; background: var(--cream-dk); }
.product-card__origin { font-size: 0.85rem; color: var(--muted); }

/* Shown inside a grid container in place of product cards, either when
   the catalog fetch failed (with a WhatsApp fallback appended) or when
   a filtered result set is empty. */
.grid-error {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding-block: var(--space-4);
}

/* Home page — "sunlit market stall"
   ------------------------------------------------------------------
   The logo is abundance in full sun: a wood sign, gold brush script,
   foliage crowding the frame, the flag. The landing page borrows that
   staging rather than defaulting to flat e-commerce beige — a warm
   light falling across dark wood, greenery at the edges, and the
   tagline set on the same parchment banner the logo uses.
   ------------------------------------------------------------------ */

/* A thin Haitian flag ribbon, straight off the painted brushstroke in
   the logo. Sits under the nav on every page as a signature. */
.flag-ribbon {
  height: 5px;
  background: linear-gradient(90deg, var(--ht-blue) 0 50%, var(--ht-red) 50% 100%);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  padding-block: clamp(3.5rem, 11vw, 7rem) clamp(3rem, 9vw, 6rem);
  background: var(--wood-deep);
}
/* Layered ground: sun glow from the upper right, a green cast rising
   from the lower left like the foliage in the emblem, over deep wood. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 6%, rgba(255,210,74,.42) 0%, rgba(255,210,74,0) 58%),
    radial-gradient(100% 80% at 8% 100%, rgba(46,125,50,.34) 0%, rgba(46,125,50,0) 60%),
    linear-gradient(178deg, var(--wood) 0%, var(--wood-deep) 100%);
}
/* Woodgrain: fine vertical striations, barely there. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(
    92deg,
    rgba(0,0,0,.05) 0 2px,
    rgba(255,255,255,.02) 2px 5px,
    rgba(0,0,0,0) 5px 11px);
  opacity: .7;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.1rem, 7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 16ch;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

/* The tagline gets the logo's parchment banner treatment. */
.hero__tagline {
  display: inline-block;
  margin-block: var(--space-3) var(--space-2);
  padding: .45rem 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  color: var(--wood-deep);
  background: var(--parchment);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  /* Nicked corners, like a hung ribbon. */
  clip-path: polygon(3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%, 0 50%);
}
.hero__sub {
  color: var(--cream-dk);
  max-width: 46ch;
  margin-inline: auto;
  font-size: clamp(.98rem, 2.4vw, 1.12rem);
}
.hero .btn { margin-top: var(--space-3); }
.hero .btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
  padding-inline: 2.1rem;
}

/* One orchestrated page-load reveal beats scattered micro-motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > * {
    animation: heroRise .7s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .hero h1            { animation-delay: .05s; }
  .hero__tagline      { animation-delay: .16s; }
  .hero__sub          { animation-delay: .26s; }
  .hero .btn          { animation-delay: .36s; }
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

.home-section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.home-section h2 {
  text-align: center;
  margin-bottom: var(--space-1);
  font-size: clamp(1.5rem, 4.4vw, 2.2rem);
}
/* A small gold rule under each heading, with a leaf-green centre pip. */
.home-section h2::after {
  content: "";
  display: block;
  width: 74px; height: 3px;
  margin: .7rem auto var(--space-3);
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--gold) 0 40%, var(--leaf) 40% 60%, var(--gold) 60% 100%);
}

.category-doors {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 820px) {
  .category-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Each door carries its own colour drawn from the emblem, so the four
   read as a set rather than four identical beige tiles. */
.category-door {
  --door: var(--gold);
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  gap: .35rem;
  min-height: 118px;
  /* Extra top padding clears the 5px colour bar without leaving the
     dead space a bottom-aligned column produced for short labels. */
  padding: calc(var(--space-2) + 5px) var(--space-2) var(--space-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 55%),
    var(--cream-dk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-door::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--door);
}
.category-door__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wood);
}
.category-door__items {
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--wood-lt);
  line-height: 1.35;
}
.category-door:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-door:nth-child(1) { --door: var(--gold); }
.category-door:nth-child(2) { --door: var(--leaf); }
.category-door:nth-child(3) { --door: var(--ht-blue); }
.category-door:nth-child(4) { --door: var(--ht-red); }

/* Story panel: parchment, framed like the sign in the emblem. */
.story {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow-sm);
}
.story h2 { margin-top: 0; }
.story p {
  margin-inline: auto;
  color: var(--wood-deep);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.75;
}

/* Shop page
   ------------------------------------------------------------------ */
.shop-page { padding-block: var(--space-4) var(--space-6); }
.shop-page h1 { margin-bottom: var(--space-3); }

/* Mobile-first: filters stack above the grid in a single column so a
   narrow viewport never has to squeeze a sidebar and a grid side by
   side. The two-column layout is opt-in at the tablet breakpoint. */
.shop-layout {
  display: flex; flex-direction: column; gap: var(--space-4);
}
@media (min-width: 768px) {
  .shop-layout { flex-direction: row; align-items: flex-start; }
  .shop-filters { flex: 0 0 240px; position: sticky; top: var(--space-2); }
  .shop-results { flex: 1; min-width: 0; }
}

.shop-filters {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
}
.shop-filters__group h3 {
  font-family: var(--font-display); font-size: var(--step-0);
  margin-bottom: var(--space-1);
}
.shop-filters__clear { align-self: flex-start; }

/* flex-wrap keeps this list from ever forcing horizontal scroll — a long
   run of category buttons wraps onto new lines instead of overflowing
   the sidebar, on mobile or desktop alike. */
.filter-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none;
}
.shop-filters__group + .shop-filters__group .filter-list,
#subcategory-filters { padding-left: var(--space-2); }
.filter-list__item {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--text); cursor: pointer; transition: background-color .15s, color .15s;
}
.filter-list__item:hover { background: var(--gold); color: var(--wood); }
.filter-list__item.is-active { background: var(--wood); color: var(--cream); border-color: var(--wood); }

.shop-results__count { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-2); }

/* Product page
   ------------------------------------------------------------------ */
.product-page { padding-block: var(--space-4) var(--space-6); }

/* Mobile-first: gallery stacks above info in a single column, matching
   .shop-layout's approach — the two-column side-by-side layout is
   opt-in at the tablet breakpoint, never assumed. */
.product-detail {
  display: flex; flex-direction: column; gap: var(--space-4);
}
@media (min-width: 768px) {
  .product-detail {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-5); align-items: start;
  }
}

.product-gallery__main,
.product-gallery__main-fallback {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--cream-dk);
}
/* flex-wrap, not overflow-x: a long run of thumbnails wraps onto new
   lines instead of forcing horizontal scroll on a narrow viewport —
   same rule .filter-list uses on the shop page. */
.product-gallery__thumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-2);
}
.product-gallery__thumb {
  width: 64px; height: 64px; padding: 0; margin: 0;
  border: 2px solid transparent; border-radius: var(--radius);
  overflow: hidden; background: none; cursor: pointer; flex-shrink: 0;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: var(--gold); }

.product-info { display: flex; flex-direction: column; gap: var(--space-3); }

/* The differentiator this business rests on: provenance a dropshipper
   can't fake. A bordered callout, not a collapsed accordion, so it reads
   as prominent rather than optional reading. */
.product-origin {
  background: var(--cream-dk); border: 2px solid var(--gold);
  border-radius: var(--radius); padding: var(--space-3);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.product-origin h2 { font-size: var(--step-1); color: var(--wood); }
.product-origin__region { font-weight: 700; color: var(--wood); }
.product-origin__story { color: var(--text); }

.product-price {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--font-display); font-size: var(--step-3); color: var(--wood);
}
.product-price__compare {
  font-size: var(--step-1); font-weight: 400; color: var(--muted);
  text-decoration: line-through;
}

.product-qty input { max-width: 100px; }
.product-oneofakind {
  font-weight: 600; color: var(--ht-blue);
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-2);
}

.product-add,
.product-whatsapp { align-self: flex-start; }
.product-add-feedback {
  color: var(--leaf); font-weight: 600; font-size: 0.9rem; min-height: 1.2em;
}

.product-description p { color: var(--text); }

.product-not-found {
  text-align: center; padding-block: var(--space-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}

/* Cart page
   ------------------------------------------------------------------ */
.cart-page { padding-block: var(--space-4) var(--space-6); }
.cart-page h1 { margin-bottom: var(--space-3); }

/* Mobile-first: the line list stacks above the summary in a single
   column, matching .shop-layout and .product-detail's approach — the
   two-column side-by-side layout (summary as a sticky sidebar) is opt-in
   at the tablet breakpoint, never assumed. */
.cart-layout {
  display: flex; flex-direction: column; gap: var(--space-4);
}
@media (min-width: 768px) {
  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-lines-wrap { flex: 1; min-width: 0; }
  .cart-summary { flex: 0 0 320px; position: sticky; top: var(--space-2); }
}

.cart-lines { list-style: none; display: flex; flex-direction: column; }

/* Two-row grid per line rather than a wide table: a fixed thumbnail
   column plus a flexible info column on row one, then a flex-wrap meta
   row (stepper, subtotal, remove) spanning both columns on row two — so
   a narrow viewport wraps the meta controls onto new lines instead of
   forcing horizontal scroll, the same rule .filter-list and
   .product-gallery__thumbs already use. */
.cart-line {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--space-2);
  padding-block: var(--space-3); border-bottom: 1px solid var(--border);
}
.cart-line:first-child { padding-top: 0; }

.cart-line__img,
.cart-line__img-fallback {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius); background: var(--cream-dk);
}

.cart-line__info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }
.cart-line__variant { font-size: 0.85rem; color: var(--muted); }
.cart-line__unit-price { font-size: 0.9rem; color: var(--muted); }
/* Without this, the flex-column parent's default align-items: stretch
   pulls the pill-shaped .badge to the container's full width instead of
   hugging its text like every other badge on the site (product cards,
   the product-page stock badge). */
.cart-line__info .badge { align-self: flex-start; }

.cart-line__meta {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2); margin-top: 0.5rem;
}

.cart-line__stepper { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-line__step-btn {
  width: 32px; height: 32px; border: 1px solid var(--border);
  background: var(--cream); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1.1rem; line-height: 1;
  cursor: pointer;
}
.cart-line__step-btn:disabled { opacity: .4; cursor: not-allowed; }
.cart-line__qty-input {
  width: 3rem; text-align: center; padding: 0.4rem 0.2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--cream); color: var(--text);
}

.cart-line__subtotal { font-weight: 700; color: var(--wood); margin-left: auto; }
.cart-line__remove {
  background: transparent; border: 0; color: var(--ht-red);
  font-weight: 600; font-family: var(--font-body); font-size: 0.9rem;
  cursor: pointer; padding: 0.3rem 0;
}
.cart-line__remove:hover { text-decoration: underline; }

.cart-empty {
  text-align: center; padding-block: var(--space-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}

.cart-summary {
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.cart-summary__row { display: flex; justify-content: space-between; gap: var(--space-2); }
.cart-summary__row--total {
  font-weight: 700; font-size: var(--step-1); color: var(--wood);
  border-top: 1px solid var(--border); padding-top: var(--space-2);
}
.cart-summary__progress { font-size: 0.85rem; color: var(--muted); }
/* Shown only when /api/settings failed to load — see js/cart-page.js.
   Styled as a caveat, not an error, since the cart itself is fine. */
.cart-summary__note { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.cart-summary__checkout { width: 100%; margin-top: var(--space-1); }

/* Per-line checkout issues (stock re-check failures, price drift) —
   rendered inside the line's own <li> by js/cart-page.js's lineIssueHtml,
   so the message sits next to the item it's about instead of forcing the
   shopper to cross-reference a generic banner. */
.cart-line__issue,
.cart-line__price-change {
  grid-column: 1 / -1; font-size: 0.85rem; margin-top: 0.25rem;
}
.cart-line__issue { color: var(--ht-red); font-weight: 600; }
.cart-line__price-change { color: var(--wood); }

/* Checkout-attempt banner in the summary panel — carries the parts of a
   stock/price failure that aren't tied to one specific line: the
   heading, the price-change confirm/cancel actions, and the generic
   failure's WhatsApp fallback. */
.cart-checkout-banner {
  border-radius: var(--radius); padding: var(--space-2);
  display: flex; flex-direction: column; gap: var(--space-1);
  font-size: 0.9rem;
}
.cart-checkout-banner--warning {
  background: var(--cream-dk);
  border: 1px solid var(--ht-red);
}
.cart-checkout-banner--error {
  background: var(--cream-dk);
  border: 1px solid var(--border);
}
.cart-checkout-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* Checkout result pages (checkout-success.html, checkout-cancel.html)
   ------------------------------------------------------------------ */
.checkout-result-page { padding-block: var(--space-6); }
.checkout-result {
  max-width: 32rem; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.checkout-result__reference {
  background: var(--cream-dk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
}

/* About page
   ------------------------------------------------------------------ */
.about-page,
.faq-page { padding-block: var(--space-4) var(--space-6); }

/* Shared centered intro block for about.html and faq.html — deliberately
   generic (not named after either page) since both use it identically. */
.about-page__hero {
  text-align: center; max-width: 60ch; margin-inline: auto var(--space-4);
}
.about-page__hero p { color: var(--muted); }

/* Left-aligned prose, not centered like .story on the homepage: long,
   multi-paragraph biographical copy reads poorly centered, and this is
   the page carrying the most text on the whole site. */
.about-prose {
  max-width: 68ch; margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.about-prose h2 { font-family: var(--font-display); font-size: var(--step-1); color: var(--wood); margin-bottom: 0.4rem; }
.about-prose p { color: var(--text); line-height: 1.7; }

/* FAQ page
   ------------------------------------------------------------------ */
/* Native <details>/<summary> accordion: no JS required, so it still
   works if a script fails to load on an old Android phone. */
.faq-list { max-width: 68ch; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--cream-dk); padding: var(--space-2) var(--space-3);
}
.faq-item summary {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  color: var(--wood); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-weight: 700; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: var(--space-2); color: var(--text); line-height: 1.6; }

/* Contact page
   ------------------------------------------------------------------ */
.contact-page { padding-block: var(--space-4) var(--space-6); }
.contact-page__inner { max-width: 40rem; margin-inline: auto; }
.contact-page__inner > h1 { margin-bottom: var(--space-1); }
.contact-page__inner > p { color: var(--muted); margin-bottom: var(--space-3); }
.contact-status { min-height: 1.2em; margin-top: var(--space-2); font-weight: 600; }
.contact-status.is-success { color: var(--leaf); }
.contact-status.is-error { color: var(--ht-red); }

/* Honeypot field (netlify/functions/contact.mjs) — off-screen positioning
   rather than display:none. Some browser/extension autofill still
   populates a display:none input (it's only ever CSS-hidden, still
   present and "visible" enough for some autofill heuristics to target),
   which would trip this for a real visitor. Positioning it off the
   visible canvas instead avoids that, and aria-hidden + tabindex="-1" on
   the wrapper (see contact.html) keeps it out of the tab order and off
   screen readers, so no assistive-tech user ever encounters it either. */
.contact-hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* The real emblem, from images/logo-source.png. Circular and dense, so it
   is given room and never asked to carry small-size legibility — that is
   the wordmark's job in the nav and the basket crop's job as the favicon. */
.story__emblem,
.about-page__emblem {
  display: block;
  width: min(260px, 62vw);
  height: auto;
  margin: 0 auto var(--space-3);
  /* The artwork ships on white; a soft mask blends it into the parchment
     panel instead of showing a hard square edge. */
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(46, 27, 12, .28);
}
.about-page__emblem { width: min(320px, 70vw); }

/* Mobile filter toggle. The panel is taller than a phone viewport, so it
   starts collapsed there; above 768px it sits beside the grid and the
   toggle disappears entirely. */
.shop-filters__toggle { display: none; width: 100%; margin-bottom: var(--space-2); }
@media (max-width: 767px) {
  .shop-filters__toggle { display: inline-flex; }
  .shop-filters.is-collapsed { display: none; }
}
@media (min-width: 768px) {
  /* Never let the mobile collapse leak into the desktop layout. */
  .shop-filters.is-collapsed { display: block; }
}
