/* ============================================================
   Unravel Commerce, storefront

   Written mobile-first: the base rules ARE the phone layout, and
   wider screens are progressive enhancement. Most of our buyers
   order from a phone, often one-handed, often on patchy 4G.

   Non-negotiables, all enforced below:
   · every tap target is at least 44px
   · form inputs are 16px, or iOS zooms the page on focus
   · primary actions sit in the bottom third, inside thumb reach
   · nothing depends on :hover
   · safe-area insets are respected on notched phones
   ============================================================ */

:root {
  --teal:      #1e7a6e;
  --teal-ink:  #14544b;
  --teal-soft: #e8f2f0;

  --ink:   #14201e;
  --ink-2: #4d5b58;
  --ink-3: #85918e;

  --line:   #e5e3dd;
  --line-2: #d3d0c7;

  --paper: #ffffff;
  --cream: #fbf7f0;
  --wash:  #f6f4ef;

  --blush:     #a86f79;
  --blush-bg:  #f9eef0;

  --ok:   #2f7d4f;  --ok-bg:   #e8f3ec;
  --warn: #8d5a14;  --warn-bg: #fbf1e0;
  --bad:  #a3352b;  --bad-bg:  #f9eae8;
  --info: #2c5f8a;  --info-bg: #e9f0f6;

  --r:    10px;
  --r-lg: 16px;

  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, monospace;

  --topbar: 54px;
  --botnav: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceae4; --ink-2: #a3aeab; --ink-3: #737e7b;
    --line: #2a302e; --line-2: #39413e;
    --paper: #171c1b; --cream: #1a201e; --wash: #101413;
    --teal: #3fa294; --teal-ink: #7fcabe; --teal-soft: #16302c;
    --blush: #d09aa4; --blush-bg: #2d2023;
    --ok: #6fbf8c; --ok-bg: #16281d;
    --warn: #d6a85c; --warn-bg: #2b2314;
    --bad: #e08a80; --bad-bg: #2d1a18;
    --info: #7fb0d8; --info-bg: #16232e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  padding-bottom: calc(var(--botnav) + var(--safe-b));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Tap targets and tap feedback, no hover to rely on. */
button, a[role="button"], .tap { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:active, .tap:active { transform: scale(.985); }

.num, .price, table td { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 28px; } }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--teal); color: #fff;
  font-size: 12.5px; text-align: center; padding: 7px 16px;
  padding-top: calc(7px + var(--safe-t));
}
.announce a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
  height: var(--topbar);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--teal);
  line-height: 1;
}
.topbar .grow { flex: 1; }
.iconbtn {
  width: 44px; height: 44px; margin: 0 -6px;
  display: grid; place-items: center; color: var(--ink-2); position: relative;
  border-radius: var(--r);
}
/* An explicit `display` beats the browser's [hidden] rule, so restate it. */
.iconbtn[hidden], [hidden] { display: none !important; }
.iconbtn .badge {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px;
  border-radius: 20px; background: var(--teal); color: #fff;
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center;
  padding: 0 4px; font-variant-numeric: tabular-nums;
}

/* Desktop nav lives in the top bar; on mobile it lives at the bottom. */
.topnav { display: none; }
@media (min-width: 900px) {
  .topbar { height: 64px; padding: 0 28px; gap: 26px; }
  .topnav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
  .topnav a.on { color: var(--teal); font-weight: 500; }
  .brand { font-size: 24px; }
}

/* ---------- bottom nav: the primary navigation on a phone ---------- */
.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--paper); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b);
}
.botnav a {
  min-height: var(--botnav);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; color: var(--ink-3); position: relative;
}
.botnav a.on { color: var(--teal); }
.botnav a .badge {
  position: absolute; top: 7px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; border-radius: 20px;
  background: var(--teal); color: #fff; font-size: 10px; font-weight: 600;
  display: grid; place-items: center; padding: 0 4px;
}
@media (min-width: 900px) { .botnav { display: none; } }

/* ---------- page furniture ---------- */
/* Block padding only: a `padding` shorthand here zeroed .wrap's 16px side gutter. */
.page { padding-top: 16px; padding-bottom: 28px; }
h1 { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
h3 { font-size: 15px; font-weight: 600; }
@media (min-width: 900px) { h1 { font-size: 34px; } h2 { font-size: 25px; } }

.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;
}
.section-head .grow { flex: 1; }
.section-head a { font-size: 13px; color: var(--teal); font-weight: 500; }
.eyebrow {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 15px; font-weight: 500; text-align: center;
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; pointer-events: none;
}
.btn-quiet { border-color: transparent; color: var(--teal); }

/* ---------- product grid ---------- */
/* Two columns on a phone: a single column wastes the screen and buries
   everything below the fold, three makes the price unreadable. */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.pcard {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.pcard-img {
  aspect-ratio: 1; background: var(--cream);
  display: grid; place-items: center; color: var(--ink-3); position: relative;
}
.pcard-badges {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.pcard-body { padding: 10px 11px 12px; display: grid; gap: 3px; flex: 1; }
.pcard-name { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.pcard-sub { font-size: 11.5px; color: var(--ink-3); }
.pcard-price { font-size: 15px; font-weight: 600; margin-top: 3px; }
.pcard-was { font-size: 12px; color: var(--ink-3); text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.pcard-tier { font-size: 11.5px; color: var(--teal); }
.pcard-foot { margin-top: auto; padding-top: 8px; }

/* ---------- badges ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.b-ready   { background: var(--ok-bg);    color: var(--ok); }
.b-limited { background: var(--warn-bg);  color: var(--warn); }
.b-out     { background: var(--bad-bg);   color: var(--bad); }
.b-blocked { background: var(--info-bg);  color: var(--info); }
.b-mto     { background: var(--wash);     color: var(--ink-2); border: 1px solid var(--line); }
.b-save    { background: var(--blush-bg); color: var(--blush); }
.b-b2b     { background: var(--teal-soft); color: var(--teal-ink); }

/* ---------- product detail ---------- */
.pdp-gallery {
  aspect-ratio: 1; background: var(--cream); border-radius: var(--r-lg);
  display: grid; place-items: center; color: var(--ink-3); position: relative;
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
  .pdp-gallery { position: sticky; top: 90px; }
}
.pdp-title { margin-bottom: 4px; }
.pdp-sku { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.pdp-price { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.pdp-price small { font-size: 13px; font-weight: 400; color: var(--ink-3); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 46px; padding: 6px 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1.25; min-width: 78px;
}
.opt small { font-size: 11px; color: var(--ink-3); }
.opt[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.opt[aria-pressed="true"] small { color: var(--teal-ink); }
.opt:disabled { opacity: .45; text-decoration: line-through; }

/* ---------- quantity stepper ---------- */
.qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  background: var(--paper);
}
.qty button { width: 46px; min-height: 46px; display: grid; place-items: center; color: var(--ink); font-size: 19px; }
.qty button:disabled { color: var(--ink-3); opacity: .45; }
.qty input {
  width: 62px; border: none; text-align: center;
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  font-weight: 500; background: transparent; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

/* ---------- price break ladder ---------- */
.breaks { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.breaks th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; padding: 6px 0;
}
.breaks td { padding: 7px 0; border-top: 1px solid var(--line); }
.breaks td:last-child, .breaks th:last-child { text-align: right; font-weight: 600; }
.breaks tr.on td { color: var(--teal-ink); }
.breaks tr.on td:first-child::before { content: '▸ '; }

/* ---------- sticky action bar (sits above the bottom nav) ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; z-index: 44;
  bottom: calc(var(--botnav) + var(--safe-b));
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.stickybar .info { flex: 1; min-width: 0; }
.stickybar .info b { display: block; font-size: 16px; font-weight: 600; }
.stickybar .info span { font-size: 11.5px; color: var(--ink-3); }
.stickybar .btn { flex: 0 0 auto; min-width: 150px; }
@media (min-width: 900px) { .stickybar { display: none; } }
.has-stickybar { padding-bottom: 78px; }
@media (min-width: 900px) { .has-stickybar { padding-bottom: 0; } }

/* ---------- panels, rows, accordions ---------- */
.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.panel + .panel { margin-top: 12px; }
.panel-head {
  padding: 13px 15px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
}
.panel-head .grow { flex: 1; }
.panel-body { padding: 15px; }
.panel-body.flush { padding: 0; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-bottom: 1px solid var(--line); min-height: 56px;
}
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
/* These sit inside inline <span> wrappers, so they need an explicit block or
   the title and subtitle run together on one line. */
.row-title { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.row-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.row .grow { display: block; }

details.acc { border-bottom: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: none; }
details.acc > summary {
  list-style: none; cursor: pointer; min-height: 52px;
  display: flex; align-items: center; gap: 10px; padding: 13px 0;
  font-size: 14px; font-weight: 500;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: ''; margin-left: auto; width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .16s;
}
details.acc[open] > summary::after { transform: rotate(225deg); }
details.acc .acc-body { padding-bottom: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* ---------- cart ---------- */
.citem { display: flex; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: none; }
.citem-img {
  width: 62px; height: 62px; flex: none; border-radius: var(--r);
  background: var(--cream); display: grid; place-items: center; color: var(--ink-3);
}
.citem-main { flex: 1; min-width: 0; }
.citem-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.citem-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.citem-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.citem-price { margin-left: auto; text-align: right; font-weight: 600; font-size: 14.5px; }
.citem .qty button { width: 38px; min-height: 38px; font-size: 17px; }
.citem .qty input { width: 46px; font-size: 16px; }
.link-danger { color: var(--bad); font-size: 12.5px; min-height: 38px; display: inline-flex; align-items: center; }

.totals { display: grid; gap: 9px; font-size: 14px; }
.totals .t { display: flex; justify-content: space-between; gap: 12px; }
.totals .t span:last-child { font-variant-numeric: tabular-nums; }
.totals .grand {
  border-top: 1px solid var(--line); padding-top: 11px; margin-top: 3px;
  font-size: 18px; font-weight: 600;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--bad); }
.field .req { color: var(--bad); }
.inp {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper);
  font-size: 16px;  /* 16px minimum: anything smaller makes iOS zoom on focus */
}
textarea.inp { min-height: 84px; line-height: 1.5; resize: vertical; }
select.inp { appearance: none; background-image: none; padding-right: 34px; }
.inp:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.inp[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
.form-grid { display: grid; gap: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .form-2 { grid-template-columns: 1fr 1fr; } }

/* Radio cards, far easier to hit than a native radio on a phone. */
.pick {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); min-height: 56px; width: 100%; text-align: left;
}
.pick + .pick { margin-top: 9px; }
.pick[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.pick .dot {
  width: 19px; height: 19px; flex: none; border-radius: 50%; margin-top: 1px;
  border: 1.6px solid var(--line-2); display: grid; place-items: center;
}
.pick[aria-pressed="true"] .dot { border-color: var(--teal); }
.pick[aria-pressed="true"] .dot::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
.pick .t { flex: 1; min-width: 0; }
.pick .t b { display: block; font-size: 14px; font-weight: 500; }
.pick .t span { font-size: 12.5px; color: var(--ink-3); }
/* ---------- shop landing: categories first ---------- */
.shopcats-head { margin: 2px 0 14px; }
.shopcats-head h1 { font-size: 32px; }
.shopcats-sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }

.cat-hero {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 18px;
  padding: 18px 16px 18px 20px; border-radius: var(--r-lg); color: #fff; text-decoration: none;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
              linear-gradient(135deg, var(--teal-ink), var(--teal));
  box-shadow: 0 14px 30px -18px rgba(20, 84, 75, .7);
}
.cat-hero-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cat-hero-kicker { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.cat-hero b { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.cat-hero-text > span:last-child { font-size: 13px; opacity: .88; }
.cat-hero-go {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.16);
}

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.cat-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:active { transform: scale(.985); }
@media (hover: hover) {
  .cat-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(20, 32, 30, .45); }
}
.cat-art {
  position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--art-bg); color: var(--art-ink);
}
.cat-art::before {                                  /* soft halo behind the icon */
  content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75), transparent 70%);
}
.cat-art::after {                                   /* one quiet ring, bottom right */
  content: ''; position: absolute; right: -18%; bottom: -34%; width: 64%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid currentColor; opacity: .12;
}
.cat-art svg { position: relative; width: 38%; max-width: 64px; height: auto; }
.cat-go {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--art-ink);
}
.cat-body { display: grid; gap: 3px; padding: 11px 12px 13px; }
.cat-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.12; }
.cat-meta { font-size: 12.5px; color: var(--ink-3); }
.cat-sample { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-chip {
  justify-self: start; margin-top: 6px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; background: var(--wash); color: var(--ink-2);
}
.cat-chip.ok  { background: var(--ok-bg); color: var(--ok); }
.cat-chip.por { background: var(--blush-bg); color: var(--blush); }

@media (prefers-color-scheme: dark) {
  .cat-art { background: color-mix(in srgb, var(--art-ink) 34%, var(--paper)); color: color-mix(in srgb, var(--art-bg) 80%, #fff); }
  .cat-art::before { background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); }
  .cat-go { background: rgba(0,0,0,.25); color: #fff; }
}

/* ---------- account needed (views/gate.js) ---------- */
.gate { max-width: 420px; margin: 28px auto 12px; text-align: center; }
.gate-ico {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
}
.gate-title { font-size: 28px; }
.gate-body { margin: 8px 0 20px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.gate-actions { display: grid; gap: 9px; }

/* ============================================================
   Shopify-store look (Sep 2026), this storefront replaces the Shopify
   site, so it wears that site's tokens: Fraunces + Inter + Cormorant,
   green #0f6e56 → #1d9e75, ink #14302a, mint grounds. One committed light
   look, so these win over the dark-mode block at the top of the file.
   ============================================================ */

:root {
  --teal: #0f6e56; --teal-ink: #0b5443; --teal-soft: #e1f0e9; --b2: #1d9e75;
  --ink: #14302a; --ink-2: #52706c; --ink-3: #7f928d;
  --line: #dfe9e3; --line-2: #cddcd4;
  --paper: #ffffff; --cream: #fbfaf7; --wash: #f5f9f6;
  --blush: #a86f79; --blush-bg: #f9eef0;
  --ok: #2f7d4f; --ok-bg: #e8f3ec; --warn: #8d5a14; --warn-bg: #fbf1e0;
  --bad: #a3352b; --bad-bg: #f9eae8; --info: #2c5f8a; --info-bg: #e9f0f6;
  --warm-bg: #fbe7dd; --warm-tx: #9a3412;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
html, body { overflow-x: clip; }
@media (prefers-color-scheme: dark) {
  .cat-art { background: var(--art-bg); color: var(--art-ink); }
  .cat-art::before { background: radial-gradient(circle, rgba(255,255,255,.75), transparent 70%); }
  .cat-go { background: rgba(255,255,255,.7); color: var(--art-ink); }
}

/* ---------- header: announcement, wordmark, ticker ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 8px; background: #14302a; color: #f5f0e8; text-align: center;
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.announce .an-msg { flex: 1; min-width: 0; max-width: 520px; transition: opacity .18s ease; }
.announce .an-nav { width: 30px; height: 30px; display: grid; place-items: center; color: inherit; opacity: .75; }
.topbar { background: #fbf6ee; border-bottom-color: #efe7da; }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--teal-ink); }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; }
.brand-script { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14px; color: var(--blush); margin-top: -1px; }
.sf-ticker { overflow: hidden; white-space: nowrap; background: #0f5a47; color: #eaf5ef; }
.sf-ticker-track { display: inline-flex; padding: 8px 0; animation: sf-marquee 40s linear infinite; }
.sf-ticker-track span {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.sf-ticker-track span::before { content: '●'; font-size: 6px; opacity: .55; }
@keyframes sf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sf-ticker-track { animation: none; } }

/* ---------- home ---------- */
.sf-home { margin-top: -16px; }
.sf-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.sf-in { max-width: var(--maxw); margin: 0 auto; }
.sf-bleed > .sf-in { padding: 0 16px; }
.sf-block { margin-top: 34px; }
.sf-band { margin-top: 34px; padding: 2px 0 30px; background: linear-gradient(180deg, #f1f8f4, #e6f2eb); }

.sf-hero { padding: 32px 0 30px; background: linear-gradient(135deg, #fbfaf7, #e9f4ee); }
.sf-hero .sf-in { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .sf-hero { padding: 52px 0 46px; }
  .sf-hero .sf-in { grid-template-columns: 1fr 320px; gap: 36px; align-items: center; }
}
.sf-pill {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--warm-tx); background: var(--warm-bg); border: 1px solid rgba(154, 52, 18, .16);
}
.sf-h1 {
  margin: 14px 0 12px; font-family: var(--display); font-weight: 900; color: var(--ink);
  font-size: clamp(31px, 7.4vw, 48px); line-height: 1.04; letter-spacing: -.015em;
}
.sf-h1 em { display: block; margin-top: 4px; font-style: italic; font-weight: 700; font-size: .82em; color: var(--teal); }
.sf-sub { max-width: 470px; margin-bottom: 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.sf-sub strong { color: var(--ink); font-weight: 600; }
.sf-cta { display: flex; flex-wrap: wrap; gap: 11px; }
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-size: 14.5px; font-weight: 700; transition: transform .15s ease;
}
.sf-btn.p { background: linear-gradient(135deg, var(--teal), var(--b2)); color: #fff; box-shadow: 0 8px 20px rgba(15, 110, 86, .22); }
.sf-btn.s { background: #fff; color: var(--teal); border: 1.5px solid var(--b2); }
@media (hover: hover) { .sf-btn:hover { transform: translateY(-2px); } }
.sf-pillars {
  padding: 4px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 110, 86, .11);
}
.sf-pillar { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid #eef3f0; }
.sf-pillar:last-child { border-bottom: 0; }
.sf-pillar svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--teal); }
.sf-pillar h4 { margin-bottom: 3px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sf-pillar p { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

.sf-head { max-width: 640px; margin: 0 auto 18px; text-align: center; }
.sf-band .sf-head { padding-top: 26px; }
.sf-eyebrow {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(15, 110, 86, .14);
}
.sf-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(29px, 6.4vw, 40px); line-height: 1.08; color: var(--ink); }
.sf-h2 em { font-style: italic; color: var(--teal); }
.sf-h2.display { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.sf-lede { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.sf-more { display: flex; justify-content: center; margin-top: 16px; }
.sf-more a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500;
}

.sf-start {
  max-width: 780px; margin: 0 auto; padding: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 14px 34px rgba(15, 110, 86, .08);
}
.sf-start-q { margin-bottom: 14px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }
.sf-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .sf-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-opt {
  display: grid; justify-items: center; align-content: start; gap: 6px; padding: 16px 10px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
@media (hover: hover) { .sf-opt:hover { border-color: var(--b2); box-shadow: 0 8px 20px rgba(15, 110, 86, .1); } }
.sf-opt i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.sf-opt i svg { width: 22px; height: 22px; }
.sf-opt b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.sf-opt span { font-size: 12px; line-height: 1.35; color: var(--ink-2); }

.sf-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 47%); gap: 12px;
  margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sf-rail::-webkit-scrollbar { display: none; }
.sf-rail > * { scroll-snap-align: start; }
@media (min-width: 620px) { .sf-rail { grid-auto-columns: minmax(200px, 31%); } }
@media (min-width: 980px) {
  .sf-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; overflow: visible; }
}

.sf-worlds { display: grid; gap: 14px; }
@media (min-width: 760px) { .sf-worlds { grid-template-columns: 1fr 1fr; } }
.sf-world {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 240px; padding: 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg, #0f6e56, #14302a);
}
.sf-world.alt { background: linear-gradient(145deg, #86606a, #3b2530); }
.sf-world svg.bg { position: absolute; top: -8px; right: -8px; width: 150px; height: 150px; opacity: .14; }
.sf-world small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.sf-world h3 { font-family: var(--serif); font-size: 31px; font-weight: 600; line-height: 1.02; }
.sf-world p { max-width: 36ch; font-size: 13.5px; opacity: .88; }
.sf-world .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-world .chips span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; background: rgba(255, 255, 255, .14); }
.sf-world .go {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-top: 6px;
  padding: 0 18px; border-radius: 999px; background: #fff; color: #14302a; font-size: 13.5px; font-weight: 600;
}

.sf-partner { padding: 8px 20px 26px; border-radius: 22px; background: #14302a; color: #eaf5ef; }
.sf-partner .sf-head { padding-top: 18px; }
.sf-partner .sf-eyebrow { background: rgba(255, 255, 255, .08); color: #bfe6d3; border-color: rgba(255, 255, 255, .14); }
.sf-partner .sf-h2 { color: #fff; }
.sf-partner .sf-h2 em { color: #8fd8b6; }
.sf-partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
@media (min-width: 760px) { .sf-partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-partner-grid div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sf-partner-grid b { display: block; margin-bottom: 3px; font-size: 13.5px; color: #fff; }
.sf-partner-grid span { font-size: 12px; line-height: 1.4; color: #a9c7bb; }
.sf-partner .sf-cta { justify-content: center; }
.sf-partner .sf-btn.s { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ---------- product card (views/card.js) ---------- */
.pcard { background: #fff; border-color: var(--line); border-radius: 16px; box-shadow: 0 8px 22px -14px rgba(15, 110, 86, .3); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 13px; }
.pc-brand { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pcard-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.15; color: var(--ink);
}
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 2px; }
.pc-price b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pc-price s { font-size: 12px; color: var(--ink-3); }
.pc-label { margin-top: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-chip {
  min-height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff;
  font-size: 12px; font-weight: 500; color: var(--ink);
}
.pc-chip[aria-pressed="true"] { background: #2f6b58; border-color: #2f6b58; color: #fff; }
.pc-chip[data-off] { color: var(--ink-3); }
.pc-foot { margin-top: auto; padding-top: 10px; }
.pc-add {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px;
  border-radius: 999px; background: #2f6b58; color: #fff; font-size: 13.5px; font-weight: 600;
}
.pc-add[data-kind="quote"] { background: #fff; color: var(--teal); border: 1.5px solid var(--b2); }
.pc-add:disabled { background: var(--wash); color: var(--ink-3); cursor: default; }
@media (pointer: coarse) { .pc-chip { min-height: 36px; } .pc-add { min-height: 44px; } }

/* ---------- origin: Indian or French collection ---------- */
.b-origin { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.b-origin::before, .flag {
  content: ''; display: inline-block; flex: none; width: 13px; height: 9px; border-radius: 2px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18);
}
.b-origin.in::before, .flag.in { background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.b-origin.fr::before, .flag.fr { background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }

/* ---------- compact card for bulk buyers (views/card.js) ---------- */
/* Half the height of the showcase card: a short art banner, tight body, and
   quantity + Add on one line. Five across on a wide screen. */
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.pc-compact { contain-intrinsic-size: auto 250px; border-radius: 12px; box-shadow: 0 4px 14px -10px rgba(15, 110, 86, .35); }
.pc-compact .pcard-img { aspect-ratio: 16 / 9; }
.pc-compact .art-mono { font-size: 26px; transform: translateY(9px); }
/* One line on the short banner: stock state left, origin right. */
.pc-compact .pcard-badges { top: 6px; left: 6px; right: 6px; gap: 3px; justify-content: space-between; flex-wrap: nowrap; }
.pc-compact .pcard-badges .b-save { display: none; }       /* the saving still shows as the struck-out price */
.pc-compact .badge-pill { padding: 2px 7px; font-size: 10.5px; }
.pc-compact .pcard-body { gap: 5px; padding: 8px 9px 9px; }
.pc-compact .pcard-name { font-size: 15.5px; line-height: 1.15; min-height: 2.3em; }
.pc-compact .pc-price { margin-top: 0; }
.pc-compact .pc-price b { font-size: 14.5px; }
.pc-compact .pc-chips { gap: 4px; }
.pc-compact .pc-chip { min-height: 26px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; }
.pc-compact .pc-size { font-size: 11.5px; color: var(--ink-3); }
.pc-compact .pc-foot { display: flex; gap: 6px; padding-top: 4px; }
.pc-qty {
  display: flex; align-items: center; flex: 0 0 auto; height: 34px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; overflow: hidden;
}
.pc-qty[hidden] { display: none; }
.pc-qty button { width: 28px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.pc-qty input {
  width: 38px; height: 100%; border: 0; background: transparent; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--ink); -moz-appearance: textfield;
}
.pc-qty input::-webkit-outer-spin-button, .pc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-compact .pc-add { flex: 1; min-width: 0; min-height: 34px; gap: 5px; font-size: 13px; }
@media (pointer: coarse) {
  .pc-compact .pc-chip { min-height: 32px; }
  .pc-qty, .pc-compact .pc-add { height: 40px; min-height: 40px; }
  .pc-qty input { font-size: 16px; }            /* 16px stops iOS zooming on focus */
}
@media (max-width: 380px) { .pc-qty button { width: 24px; } .pc-qty input { width: 32px; } }

/* ---------- polish pass 2: per-kg prices, quick quantities, sticky filters, footer ---------- */
.pc-perkg { flex-basis: 100%; font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.pc-perkg:empty { display: none; }
.opt small.perkg { font-size: 10px; color: var(--ink-3); }
.opt small.perkg:empty { display: none; }

.qty-quick { display: inline-flex; gap: 6px; }
.qty-quick .fchip { min-height: 34px; padding: 0 12px; font-weight: 600; color: var(--teal); }

/* Search and filters stay reachable while scrolling a long category. */
.cat-toolbar {
  position: sticky; top: var(--topbar); z-index: 30;
  margin: 0 -16px 8px; padding: 8px 16px 0; background: var(--wash);
  box-shadow: 0 1px 0 var(--line);
}
.cat-toolbar .searchbox { margin-bottom: 8px; }
.cat-toolbar .filterbar { padding-bottom: 8px; }

/* Cream footer on every screen, full-bleed without leaving the .wrap grid. */
.foot {
  display: block; margin-top: 40px; padding: 30px 0 22px; border-top: 0;
  background: #f5f0e8; box-shadow: 0 0 0 100vmax #f5f0e8; clip-path: inset(0 -100vmax);
  color: var(--ink-2); font-size: 13.5px;
}
.ft-top { display: grid; gap: 26px; }
@media (min-width: 900px) { .ft-top { grid-template-columns: 1.1fr 2fr; gap: 40px; } }
.ft-brand .brand { align-items: flex-start; margin-bottom: 10px; }
.ft-brand p { max-width: 34ch; line-height: 1.6; }
.ft-wa { margin-top: 14px; min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (min-width: 600px) { .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot h4 { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot li a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--ink-2); overflow-wrap: anywhere; }
@media (hover: hover) { .foot li a:hover { color: var(--teal); } }
.ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #e6dccb; font-size: 12px; color: var(--ink-3);
}

/* ---------- offers: slab nudge on cards, order ladder in the cart ---------- */
.pc-slab {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  color: var(--warm-tx); background: var(--warm-bg);
}
.ladder { margin-bottom: 14px; padding: 12px; border-radius: 12px; background: var(--teal-soft); }
.ladder-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink); }
.ladder-msg b { color: var(--teal-ink); }
.ladder-on { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fff; color: var(--ok); }
.ladder-track { position: relative; height: 8px; margin: 14px 4px 18px; border-radius: 99px; background: #fff; }
.ladder-track > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--b2)); transition: width .3s ease; }
.ladder-track i {
  position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; transform: translateY(-50%);
  border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
}
.ladder-track i.on { border-color: var(--teal); background: var(--teal); }
.ladder-track i em { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }

/* ---------- bottom sheet: the mobile modal ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(10, 18, 17, .42);
  z-index: 60; opacity: 0; transition: opacity .18s;
}
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--paper);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .22s cubic-bezier(.32, .72, 0, 1);
  padding-bottom: var(--safe-b);
}
.sheet.on { transform: none; }
.sheet-grip {
  width: 38px; height: 4px; border-radius: 4px; background: var(--line-2);
  margin: 9px auto 3px; flex: none;
}
.sheet-head {
  padding: 8px 16px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex: none;
}
.sheet-title { font-size: 16px; font-weight: 600; }
.sheet-head .grow { flex: 1; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot {
  padding: 12px 16px; border-top: 1px solid var(--line); flex: none;
  display: grid; gap: 9px;
}
/* On a wide screen the same component becomes a centred dialog. */
@media (min-width: 900px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 480px; max-width: 92vw; max-height: 84vh;
    border-radius: var(--r-lg);
    transform: translate(-50%, -46%) scale(.97); opacity: 0;
    transition: transform .18s, opacity .18s;
  }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .sheet.wide { width: 640px; }
}

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 12px; right: 12px; z-index: 80;
  bottom: calc(var(--botnav) + var(--safe-b) + 12px);
  display: grid; gap: 8px; pointer-events: none;
}
@media (min-width: 900px) { .toasts { left: auto; right: 20px; bottom: 20px; width: 340px; } }
.toast {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: 12px 14px; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .2s cubic-bezier(.32, .72, 0, 1);
  pointer-events: auto;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.toast b { font-weight: 600; }
.toast .go { margin-left: auto; color: var(--paper); text-decoration: underline; font-weight: 500; white-space: nowrap; }
.toast.bad { background: var(--bad); }

/* ---------- states ---------- */
.empty { padding: 46px 24px; text-align: center; }
.empty .ico { color: var(--ink-3); }
.empty h3 { margin-top: 12px; font-size: 16px; }
.empty p { font-size: 13.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.empty .btn { margin-top: 18px; }

.sk { background: var(--line); border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk 1.4s ease-in-out infinite; }
  @keyframes sk { 0%, 100% { opacity: .5 } 50% { opacity: .9 } }
}
.sk-card { border-radius: var(--r-lg); aspect-ratio: .78; }

/* ---------- notices ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r); font-size: 13.5px; line-height: 1.55;
  border: 1px solid;
}
.notice .ico { flex: none; margin-top: 1px; }
.n-info  { background: var(--info-bg);  border-color: color-mix(in srgb, var(--info) 26%, transparent);  color: var(--info); }
.n-warn  { background: var(--warn-bg);  border-color: color-mix(in srgb, var(--warn) 26%, transparent);  color: var(--warn); }
.n-bad   { background: var(--bad-bg);   border-color: color-mix(in srgb, var(--bad) 26%, transparent);   color: var(--bad); }
.n-ok    { background: var(--ok-bg);    border-color: color-mix(in srgb, var(--ok) 26%, transparent);    color: var(--ok); }
.notice a { text-decoration: underline; }

/* ---------- filter bar ---------- */
.filterbar {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filterbar::-webkit-scrollbar { display: none; }
.fchip {
  min-height: 38px; padding: 0 14px; border-radius: 20px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.fchip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.fchip .n { font-size: 11px; opacity: .75; }

/* ---------- order timeline ---------- */
.timeline { display: grid; gap: 0; padding: 4px 0; }
.tl { display: flex; gap: 12px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; width: 16px; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); margin-top: 5px; flex: none;
}
.tl.done .tl-dot { background: var(--teal); }
.tl-line { flex: 1; width: 1.5px; background: var(--line); min-height: 14px; }
.tl:last-child .tl-line { display: none; }
.tl-body { padding-bottom: 16px; flex: 1; }
.tl-title { font-size: 13.5px; font-weight: 500; }
.tl-time { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ---------- steps ---------- */
.stepline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.stepline b { color: var(--ink); font-weight: 600; }

/* ---------- demo banner ---------- */
.demobar {
  background: var(--warn-bg); color: var(--warn);
  font-size: 11.5px; padding: 5px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 24%, transparent);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: calc(5px + var(--safe-t));
}
/* On a phone this bar is overhead, not content, keep it to one line and let
   the label go, since the dropdown already reads as an account switcher. */
.demobar .long { display: none; }
.demobar .short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) {
  .demobar { font-size: 12px; padding: 7px 14px; flex-wrap: wrap; }
  .demobar .long { display: inline; }
}
.demobar select {
  font-size: 12px; padding: 3px 7px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
  background: var(--paper); color: var(--ink); min-height: 30px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--cream); border-radius: var(--r-lg);
  padding: 26px 20px; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 8px; }
.hero p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.hero .btn { margin-top: 18px; }
@media (min-width: 900px) { .hero { padding: 44px 40px; } }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; min-height: 84px; display: grid; align-content: center; gap: 3px;
}
.tile b { font-size: 20px; font-weight: 600; }
.tile span { font-size: 12px; color: var(--ink-3); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line); margin-top: 32px;
  padding: 24px 0 30px; font-size: 13px; color: var(--ink-3);
}
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
@media (min-width: 700px) { .foot .cols { grid-template-columns: repeat(4, 1fr); } }
.foot h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px; }
.foot li { list-style: none; margin-bottom: 7px; }
.foot li a { min-height: 30px; display: inline-flex; align-items: center; }

/* The PDP shows its add-to-cart in the sticky bar on a phone and inline on a
   desktop, never both. */
.hide-mobile-cta { display: none; }
@media (min-width: 900px) { .hide-mobile-cta { display: block; } }

/* The read-only notice carries a short phrase on a phone and the full
   explanation from a tablet up. */
.demobar .hide-long { display: inline; }
@media (min-width: 700px) { .demobar .hide-long { display: none; } }

/* ============================================================
   Polish pass, smoothness, product art, app mode.
   Appended rather than woven in, so the base phone layout above
   stays readable on its own.
   ============================================================ */

.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.small { font-size: 13px; }
.hide-desktop { }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }

/* Touch screens get the full 44px target, compact controls included. */
@media (pointer: coarse) {
  .btn-sm, .fchip, .link-danger { min-height: 44px; }
  .citem .qty button { width: 44px; min-height: 44px; }
}
.btn[aria-busy="true"] { opacity: .75; }

/* Page change: opacity only. A transform on #view would re-anchor the fixed
   sticky bar inside it for the length of the animation. */
@media (prefers-reduced-motion: no-preference) {
  .page.enter { animation: view-in .18s ease-out both; }
  @keyframes view-in { from { opacity: .01; } to { opacity: 1; } }
}

/* Toasts fade instead of blinking out, and never cover the primary button. */
.toast { transition: opacity .2s, transform .2s; }
.toast.out { opacity: 0; transform: translateY(8px); }
.page.has-stickybar ~ .toasts { bottom: calc(var(--botnav) + var(--safe-b) + 80px); }
@media (min-width: 900px) { .page.has-stickybar ~ .toasts { bottom: 20px; } }

/* Sheets: shrink with the on-screen keyboard (dvh), and keep a scroll inside
   the sheet from dragging the page behind it. */
.sheet { max-height: 88dvh; }
@media (min-width: 900px) { .sheet { max-height: 84dvh; } }
.sheet-body { overscroll-behavior: contain; }
.sheet-search { padding: 14px 16px 8px; position: sticky; top: 0; background: var(--paper); z-index: 1; }

/* Checkout: no bottom nav, so Place order owns the bottom of the screen. */
@media (max-width: 899px) {
  body.is-bare { padding-bottom: var(--safe-b); }
  body.is-bare .botnav { display: none; }
  body.is-bare .stickybar { bottom: 0; padding-bottom: calc(10px + var(--safe-b)); }
  body.is-bare .page.has-stickybar ~ .toasts { bottom: calc(var(--safe-b) + 84px); }
  /* Footer now shows on phones too (Sep 2026 storefront), see the cream footer rules. */
}

/* Installed to the home screen: clear the status bar / notch. */
@media (display-mode: standalone) {
  .topbar { padding-top: var(--safe-t); height: calc(var(--topbar) + var(--safe-t)); }
}

/* ---------- product art ---------- */
.art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--art-bg, var(--cream)); color: var(--art-ink, var(--ink-3));
  container-type: size;
}
.art.fill { position: absolute; inset: 0; }
.art-mono {
  font-family: var(--serif); font-weight: 600; letter-spacing: .06em; line-height: 1;
  font-size: 22px; font-size: clamp(13px, 30cqmin, 58px); user-select: none;
}
.art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .28s ease;
}
.art img.on { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .art {
    background: color-mix(in srgb, var(--art-bg, #888) 16%, var(--paper));
    color: color-mix(in srgb, var(--art-ink, #aaa) 55%, #fff);
  }
}
.citem-img.art { border-radius: var(--r); }
.thumb-44 { width: 44px; height: 44px; flex: none; border-radius: 9px; }
.thumb-46 { width: 46px; height: 46px; flex: none; border-radius: 9px; }

/* ---------- cards ---------- */
/* Off-screen cards skip layout and paint until scrolled near. */
.pcard { content-visibility: auto; contain-intrinsic-size: auto 300px; transition: box-shadow .15s; }
.pcard:active { box-shadow: 0 0 0 2px var(--teal-soft); }
.pcard-img { overflow: hidden; }
.pcard-badges { z-index: 1; }
.pcard-from { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

/* ---------- product page ---------- */
.pdp-gallery { overflow: hidden; }
.pdp-gallery > .gal { position: absolute; inset: 0; }
.gal {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gal-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.gal-dots span {
  width: 6px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .2s, background .2s;
}
.gal-dots span.on { width: 16px; background: #fff; }
.pdp-titlerow { display: flex; align-items: flex-start; gap: 6px; }
.pdp-titlerow .pdp-title { flex: 1; min-width: 0; }
.pdp-pricebox { margin: 18px 0 6px; display: grid; gap: 6px; justify-items: start; }
.wa {
  margin-top: 14px; color: var(--ok); background: var(--ok-bg);
  border-color: color-mix(in srgb, var(--ok) 28%, transparent);
}

/* ---------- search & catalogue ---------- */
.searchbox { position: relative; display: block; margin-bottom: 10px; }
.searchbox > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}
.searchbox .inp { padding-left: 42px; border-radius: 24px; min-height: 46px; }
.see-all { width: 100%; justify-content: center; color: var(--teal); font-weight: 500; gap: 6px; }
.more-sentinel { height: 1px; }

/* ---------- home ---------- */
.hero-actions { display: grid; gap: 9px; margin-top: 18px; max-width: 420px; }
.hero .hero-actions .btn { margin-top: 0; }

/* ---------- orders ---------- */
.b-progress { background: var(--teal-soft); color: var(--teal-ink); }
.ocard { margin-bottom: 10px; }
.ocard + .ocard { margin-top: 0; }
.ocard-link { display: block; padding: 15px 15px 0; }
.ocard-foot { display: flex; align-items: center; gap: 10px; padding: 11px 15px 12px; }
.ocard-foot b { font-size: 16px; }

/* ---------- account & forms ---------- */
a.row { color: inherit; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }

/* ============================================================
   Design pass (16 Sep), making the shelf worth looking at.

   The catalogue arrived with 14,000 variants, no photography and no stock,
   so two things decided how this reads: the art has to carry the grid, and
   an unstocked line must still feel like an invitation rather than a wall
   of red. Everything below is additive, the storefront look above is
   untouched, only deepened.
   ============================================================ */

/* ---------- product art: one range per shelf, one light per product ---------- */
.art {
  background: linear-gradient(var(--art-ang, 165deg), var(--art-bg), var(--art-deep, var(--art-bg)));
  color: var(--art-ink);
}
.art::before {                     /* the light, placed differently per product */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(58% 54% at var(--art-lx, 70%) var(--art-ly, 18%),
    rgba(255, 255, 255, .8), transparent 68%);
}
.art::after {                      /* the shoulder of a bottle, barely there */
  content: ''; position: absolute; right: -30%; bottom: -54%;
  width: 86%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid currentColor; opacity: .09;
}
.art-mono {
  position: relative; font-weight: 600; opacity: .96; letter-spacing: .1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
/* A hairline where the art meets the card body, so the tile reads as a label
   rather than a colour block that bleeds into the text. */
.pcard-img { box-shadow: inset 0 -1px 0 rgba(20, 48, 42, .07); }

/* The compact banner is only 16:9, so the pale end of the wash swallows it.
   Lead with the deep tone there and let the light fall across the top. */
.pc-compact .art {
  background: linear-gradient(var(--art-ang, 165deg), var(--art-deep), var(--art-bg) 78%);
}
.pc-compact .art::before {
  background: radial-gradient(52% 70% at var(--art-lx, 70%) var(--art-ly, 18%),
    rgba(255, 255, 255, .72), transparent 70%);
}
.art img { z-index: 1; }           /* a real photo covers the wash entirely */

/* ---------- stock, told honestly but calmly ---------- */
/* Out of stock is a fact, not an alarm: sand, not the red we keep for errors.
   Made to order is an offer, so it carries the warm accent. */
.b-out {
  gap: 5px; background: #f1ece3; color: #7b6a51;
}
.b-out::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .5;
}
.b-mto { background: var(--warm-bg); color: var(--warm-tx); border-color: transparent; }

/* Nothing ends in a dead button: what we cannot sell today still opens a
   conversation. */
.pc-add[data-kind="ask"] {
  background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); font-weight: 600;
}
.pc-add[data-kind="ask"]:active { background: var(--wash); }

/* ---------- cards ---------- */
.pcard {
  border-color: #e7eee9;
  box-shadow: 0 1px 2px rgba(20, 48, 42, .04), 0 10px 26px -20px rgba(15, 110, 86, .35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .pcard:hover {
    transform: translateY(-3px); border-color: #dae7df;
    box-shadow: 0 2px 4px rgba(20, 48, 42, .04), 0 20px 36px -24px rgba(15, 110, 86, .5);
  }
}
.pcard:active { transform: scale(.994); }
/* Two lines reserved for the name, so a grid of cards lines up on the price. */
.pc-compact .pcard-name { font-size: 16px; line-height: 1.18; min-height: 2.36em; }
.pc-price b { font-size: 16px; letter-spacing: -.01em; }
.pc-compact .pc-foot { padding-top: 8px; }
/* Pills beside a pill-shaped button; squares fought it. */
.pc-chip { border-radius: 999px; }
.pc-chip[aria-pressed="true"] { background: var(--teal-ink); border-color: var(--teal-ink); }
.pgrid { gap: 14px; }

/* ---------- rhythm: let the sections breathe ---------- */
.sf-block { margin-top: 44px; }
.sf-band { margin-top: 44px; padding-bottom: 38px; }
.sf-head { margin-bottom: 22px; }
.sf-h2 { letter-spacing: -.012em; }
.sf-lede { max-width: 52ch; margin-inline: auto; }
@media (min-width: 900px) { .sf-block, .sf-band { margin-top: 64px; } }

/* ---------- keyboard focus, which the storefront had nowhere ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--b2); outline-offset: 2px; border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .cat-card, .sf-btn { transition: none; }
}

/* ============================================================
   Home, rebuilt around inspired oils (Sep 2026)
   Mobile-first: one column at 375px, widening by tile count.
   Every block is a real filter over the catalogue, see views/home.js.
   ============================================================ */

.h-home { display: flex; flex-direction: column; gap: 30px; }

.h-hero { padding: 26px 0 4px; }
.h-kicker { display: inline-block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-wash, #eef6f2); border-radius: 999px; padding: 5px 11px; }
.h-h1 { font-family: var(--display, Fraunces, Georgia, serif); font-weight: 600; line-height: 1.08;
  font-size: clamp(30px, 8vw, 52px); margin: 14px 0 10px; letter-spacing: -.02em; }
.h-h1 em { font-style: italic; color: var(--brand); }
.h-lede { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 60ch; margin-bottom: 18px; }

.h-search { display: flex; align-items: center; gap: 10px; background: var(--card, #fff);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 640px; }
.h-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash, #eef6f2); }
.h-search svg { flex: none; color: var(--ink-3); }
.h-search .inp { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; font-size: 16px; }
.h-search .inp:focus { outline: none; box-shadow: none; }
.h-search .btn { flex: none; border-radius: 999px; padding: 10px 18px; }

.h-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-3); }
.h-facts b { color: var(--ink); font-weight: 650; }

.h-offer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 13.5px; text-decoration: none; }
.h-offer b { font-weight: 650; }
.h-offer svg:last-child { margin-left: auto; flex: none; opacity: .75; }

.h-block { display: block; }
.h-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.h-head h2 { font-family: var(--display, Fraunces, Georgia, serif); font-weight: 600;
  font-size: clamp(21px, 4.4vw, 28px); letter-spacing: -.01em; }
.h-all { font-size: 13px; color: var(--brand); text-decoration: none; white-space: nowrap; font-weight: 600; }
.h-all svg { vertical-align: -2px; }
.h-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.h-head + .h-houses, .h-head + .h-gender, .h-head + .h-bands,
.h-head + .h-origins, .h-head + .h-cats, .h-head + .h-rail { margin-top: 14px; }

/* Houses, the main way in. Two up on a phone, six on a desktop. */
.h-houses { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.h-house { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.h-house:hover { border-color: var(--brand); }
.h-house i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px;
  border-radius: 10px; background: var(--brand-wash, #eef6f2); color: var(--brand);
  font-style: normal; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; }
.h-house b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.h-house span { font-size: 12px; color: var(--ink-3); }

.h-gender { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.h-g { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-radius: 14px;
  background: var(--brand-wash, #eef6f2); text-decoration: none; }
.h-g b { font-family: var(--display, Fraunces, Georgia, serif); font-size: 16px; color: var(--ink); }
.h-g span { font-size: 12px; color: var(--ink-3); }

.h-bands { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.h-band { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card, #fff); text-decoration: none; }
.h-band:hover { border-color: var(--brand); }
.h-band b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.h-band span { font-size: 12px; color: var(--ink-3); }

.h-origins { display: grid; gap: 12px; }
.h-origin { display: block; padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card, #fff); text-decoration: none; }
.h-origin:hover { border-color: var(--brand); }
.h-origin .flag { display: inline-block; margin-bottom: 10px; }
.h-origin b { display: block; font-family: var(--display, Fraunces, Georgia, serif);
  font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.h-origin p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 10px; }
.h-go { font-size: 13px; color: var(--brand); font-weight: 600; }

.h-rail { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.h-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.h-cat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card, #fff); text-decoration: none; font-size: 13.5px; }
.h-cat:hover { border-color: var(--brand); }
.h-cat b { font-weight: 600; color: var(--ink); }
.h-cat span { font-size: 12px; color: var(--ink-3); }

.h-trade { padding: 22px 18px; border-radius: 18px; background: var(--brand-wash, #eef6f2); }
.h-trade h2 { font-family: var(--display, Fraunces, Georgia, serif); font-size: clamp(20px, 4.4vw, 26px); }
.h-trade > p { color: var(--ink-2); font-size: 14px; margin: 8px 0 16px; max-width: 58ch; }
.h-trade-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.h-trade-grid b { display: block; font-size: 13.5px; color: var(--ink); }
.h-trade-grid span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 600px) {
  .h-houses { grid-template-columns: repeat(3, 1fr); }
  .h-bands  { grid-template-columns: repeat(4, 1fr); }
  .h-origins { grid-template-columns: repeat(2, 1fr); }
  .h-rail   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-trade-grid { grid-template-columns: repeat(4, 1fr); }
  .h-trade { padding: 28px; }
}
@media (min-width: 900px) {
  .h-home { gap: 44px; }
  .h-houses { grid-template-columns: repeat(6, 1fr); }
  .h-rail   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h-hero   { padding-top: 40px; }
}

/* The house a card's scent is inspired by, above its name. */
.pc-house { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* An active facet pill reads as chosen, not merely available. */
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.on svg { opacity: .8; }

/* Browse by house, the A–Z index behind the home page tiles. */
.hx-group { margin-bottom: 18px; }
.hx-letter { font-family: var(--display, Fraunces, Georgia, serif); font-size: 15px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 8px; }
.hx-rows { display: grid; gap: 6px; }
.hx-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px;
  background: var(--card, #fff); border: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.hx-row:hover { border-color: var(--brand); }
.hx-row b { font-size: 14px; font-weight: 600; color: var(--ink); }
.hx-row span { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.hx-row svg { flex: none; color: var(--ink-3); }
@media (min-width: 600px) { .hx-rows { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .hx-rows { grid-template-columns: repeat(3, 1fr); } }
