/* MARIA design system
   Warm neutral palette, clay and sage accents, generous spacing.
   One file, no framework — the whole storefront is hand-rolled CSS. */

:root {
  --bone: #FAF7F1;
  --sand: #F3EBDE;
  --paper: #FFFFFF;
  --ink: #2E2A25;
  --ink-soft: #5A5249;
  --muted: #867C70;
  --line: #E6DCCC;
  --line-strong: #D6C9B4;
  --clay: #B85C38;
  --clay-soft: #F6E7E0;
  --sage: #6F8260;
  --sage-soft: #E9EFE3;
  --gold: #B98A2E;
  --gold-soft: #F8EEDA;
  --forest: #2F3E33;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(46, 42, 37, .05), 0 2px 8px rgba(46, 42, 37, .04);
  --shadow: 0 2px 6px rgba(46, 42, 37, .07), 0 12px 32px rgba(46, 42, 37, .08);
  --shadow-lg: 0 8px 24px rgba(46, 42, 37, .12), 0 32px 70px rgba(46, 42, 37, .14);
  --wrap: 1360px;
}

* { box-sizing: border-box; }

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

/* The cart drawer and the department panel both live outside the viewport when
   they are closed. Left alone they make the document wider than the screen, so
   a phone can swipe sideways into a blank strip — the page measured 1,098px
   wide on a 390px screen. `clip` contains them without turning the page into a
   scroll container, which would break the sticky header. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- announce + header ---------- */
.announce {
  background: var(--forest);
  color: #EFE7D6;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.announce .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 9px; padding-bottom: 9px;
}
.announce-mid { color: #C9BFA6; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 241, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 13px; padding-bottom: 13px;
}
.logo { display: flex; flex-direction: column; line-height: 1; flex: none; }
.logo-mark {
  font-size: 24px; font-weight: 800; letter-spacing: .22em;
  color: var(--ink); padding-right: .22em;
}
.logo-sub {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.search {
  flex: 1; display: flex; align-items: center; max-width: 560px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; height: 40px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.search input {
  flex: 1; border: 0; outline: 0; padding: 0 16px;
  background: transparent; font-size: 14px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search button {
  border: 0; background: transparent; padding: 0 14px;
  cursor: pointer; font-size: 15px; opacity: .65;
}
.search button:hover { opacity: 1; }

.head-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-link {
  font-size: 13.5px; color: var(--ink-soft); padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--clay); }

/* The account mark. It used to be a bullet, which read as a stray dot on a
   phone where the word beside it was hidden. */
.acct-ico { display: inline-flex; align-items: center; }
.acct-ico svg { width: 15px; height: 15px; display: block; }

/* The panel is positioned against the header, not against the button, so it
   can be centred on the screen. Anchored to the button it ran off the right
   edge on anything narrower than 1,700px, and the last departments could not
   be reached at all. */
.menu-wrap { position: static; }
.nav-btn {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13.5px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: border-color .15s ease, background .15s ease;
}
.nav-btn:hover { border-color: var(--line-strong); }
.nav-btn .caret { font-size: 9px; color: var(--muted); }
.menu-wrap.open .nav-btn { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.menu-wrap.open .nav-btn .caret { color: #C9BFA6; }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 940px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu-wrap.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
}
.mega-col { display: flex; flex-direction: column; gap: 5px; }
.mega-thumb {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--sand); aspect-ratio: 1;
}
.mega-thumb svg { width: 100%; height: 100%; display: block; }
.mega-name { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.mega-col:hover .mega-name { color: var(--clay); }
.mega-count { font-size: 11px; color: var(--muted); }
.mega-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.mega-foot a { color: var(--clay); font-weight: 600; }

/* Below 900px the desktop links do not fit beside the logo and the cart, so
   they move to their own strip under the header. Without it a phone shopper
   lost search, sign-in, help and the photo matcher entirely — the links were
   simply hidden, not moved. */
.head-nav-mobile { display: none; }

/* The scrim behind the phone department sheet. It is hidden on a desktop,
   where the panel opens on hover and a modal backdrop would be wrong. */
.menu-scrim { display: none; }

.cart-btn {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  transition: border-color .15s ease;
}
.cart-btn:hover { border-color: var(--line-strong); }
.cart-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--line); color: var(--ink-soft);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.cart-count.has-items { background: var(--clay); color: #fff; }

/* ---------- generic bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: #1F1C18; }
.btn-accent { background: var(--clay); color: #fff; }
.btn-accent:hover { background: #A45230; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); font-weight: 700;
}
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 24px;
}
.section-head h2 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.section-link { font-size: 13.5px; color: var(--clay); font-weight: 600; white-space: nowrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; background: var(--sand); color: var(--ink-soft);
}
.chip-sage { background: var(--sage-soft); color: #4E5F42; }
.chip-clay { background: var(--clay-soft); color: #8E4529; }
.chip-gold { background: var(--gold-soft); color: #8A6818; }
.chip-ink { background: #E4E1DC; color: #3B3833; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--sand), var(--bone)); padding: 54px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 54px; line-height: 1.04; letter-spacing: -.035em;
  margin: 14px 0 16px; max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--clay); }
.hero p.lede { font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* The preview notice. It appears only while the store cannot actually take
   money and dispatch an order, and disappears by itself once it can — the
   claim follows the record, the same as the confirmation email. */
.hero-note {
  margin: 18px 0 0; padding: 12px 16px; max-width: 52ch;
  font-size: 13px; line-height: 1.55; color: var(--ink-soft);
  background: var(--sand); border: 1px solid var(--line);
  border-left: 3px solid var(--clay); border-radius: 4px;
}
/* The test-mode notice. It appears on every page while the till holds
   Stripe's test keys — so nobody reads a test order as a real sale — and it
   disappears by itself the moment a live key is in place. */
.mode-note {
  margin: 0 0 18px; padding: 12px 16px;
  font-size: 13px; line-height: 1.55; color: var(--ink-soft);
  background: rgba(178,98,72,.06); border: 1px solid var(--line);
  border-left: 3px solid var(--clay); border-radius: 4px;
}
.mode-note b { color: var(--ink); }
.hero-note b { color: var(--ink); }
.hero-note a { color: var(--clay); font-weight: 600; }
/* The social note. Quieter than the preview note, because it is not an
   alert — it is a fact about the numbers on the page. */
.social-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.social-note b { color: var(--ink-soft); }
.track-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.track-late { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--clay); background: rgba(178,98,72,.07); font-size: 13px; line-height: 1.6; color: var(--ink); }
.track-late b { display: block; margin-bottom: 3px; }
.track-late .btn { margin: 6px 0; }
.status-pill.late { background: rgba(178,98,72,.12); color: #8a3f28; border-color: rgba(178,98,72,.35); }
.sat { margin: 22px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--sand); }
.sat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sat-row:last-of-type { border-bottom: 0; }
.sat-stars { display: inline-flex; gap: 4px; }
.sat-star { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.sat-star.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.hero-stats {
  display: flex; gap: 34px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 25px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- category rail ---------- */
.cat-rail { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.cat-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .ct-img { aspect-ratio: 1; background: var(--sand); }
.cat-tile .ct-img svg { width: 100%; height: 100%; display: block; }
.cat-tile .ct-meta { padding: 12px 14px 14px; }
.cat-tile h4 { margin: 0 0 2px; font-size: 13.5px; }
.cat-tile span { font-size: 11.5px; color: var(--muted); }

/* ---------- product grid + card ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card { position: relative; }
.card-media-link { display: block; }
.card-media { position: relative; background: var(--sand); aspect-ratio: 1; overflow: hidden; }
.wish {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  color: var(--muted); font-size: 15px; line-height: 1;
  display: grid; place-items: center; transition: color .15s ease, transform .15s ease, border-color .15s ease;
}
.wish:hover { transform: scale(1.08); border-color: var(--clay); color: var(--clay); }
.wish.on { color: var(--clay); border-color: var(--clay); }
.card-media svg { width: 100%; height: 100%; display: block; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.card:hover .card-media svg { transform: scale(1.045); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: var(--paper);
}
.badge-clay { background: var(--clay); color: #fff; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-sage { background: var(--sage); color: #fff; }
.badge-ink { background: var(--ink); color: var(--bone); }
/* The marker that says a number is modelled rather than observed. It has to
   be quiet — it sits on every card — but it has to be there, because a
   rating nobody gave is not a rating. */
.tag-sub { opacity: .68; font-weight: 500; letter-spacing: .04em; }
.badge .tag-sub { font-size: 9px; }
.sold-tag .tag-sub { font-size: 9px; }
.sold-tag {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(46, 42, 37, .72); color: var(--bone);
}
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
/* the category line, and the note under it that the product keeps its
   own brand. The note sits on its own line: squeezed in beside a long
   department name it pushed the name out of the tile altogether. */
.card-cat {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-brand {
  font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase;
  margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-name { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.card-tag { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.card-price strong { font-size: 18px; letter-spacing: -.02em; }
.compare { color: var(--muted); font-size: 13px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); font-weight: 600; }
.dot { opacity: .5; }
.sup { color: var(--ink-soft); max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sw { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.swatch { width: 13px; height: 13px; border-radius: 999px; border: 1px solid rgba(46,42,37,.14); }
.sup-eta { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ---------- browse layout ---------- */
.browse { display: grid; grid-template-columns: 244px 1fr; gap: 32px; align-items: start; }
.facet { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.facet h4 {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.facet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.facet-btn {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13.5px; color: var(--ink-soft); display: flex; justify-content: space-between;
  gap: 8px; transition: background .12s ease, color .12s ease;
}
.facet-btn:hover { background: var(--sand); color: var(--ink); }
.facet-btn.active { background: var(--ink); color: var(--bone); }
.facet-n { font-size: 11.5px; color: var(--muted); }
.facet-btn.active .facet-n { color: #B9AE9A; }
.facet-colors { display: flex; flex-wrap: wrap; gap: 7px; }
.fcolor {
  width: 24px; height: 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(46,42,37,.12);
}
.fcolor.active { border-color: var(--clay); box-shadow: inset 0 0 0 2px var(--paper); }
.facet-clear {
  margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--clay); text-decoration: underline;
}
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.toolbar h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.toolbar .count { color: var(--muted); font-size: 13px; }
.sort-select {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  background: var(--paper); font-size: 13px; cursor: pointer; color: var(--ink);
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13.5px;
}
.pager button.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.load-more { display: grid; place-items: center; margin-top: 26px; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.pdp-media { position: sticky; top: 96px; }
.pdp-main {
  border-radius: var(--radius); overflow: hidden; background: var(--sand);
  border: 1px solid var(--line); aspect-ratio: 1;
}
.pdp-main svg { width: 100%; height: 100%; display: block; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumbs .thumb {
  width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--line); cursor: pointer; background: var(--sand); padding: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.pdp-thumbs .thumb:hover { transform: translateY(-2px); }
.pdp-thumbs .thumb.active { border-color: var(--clay); }
.pdp-thumbs .thumb img, .pdp-thumbs .thumb svg { width: 100%; height: 100%; display: block; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--clay); }
.pdp h1 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.2; }
.pdp-lede { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pdp-price strong { font-size: 34px; letter-spacing: -.03em; }
.pdp-price .compare { font-size: 16px; }
.pdp-price .save {
  font-size: 12px; font-weight: 700; color: #8E4529; background: var(--clay-soft);
  padding: 3px 9px; border-radius: 999px;
}
.opt-block { margin: 22px 0; }
.opt-label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px; display: flex; gap: 8px; align-items: baseline;
}
.opt-label b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 9px; }
.opt {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 13px; cursor: pointer; min-width: 52px;
  transition: border-color .14s ease, background .14s ease;
}
.opt:hover { border-color: var(--line-strong); }
.opt.active { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.opt:disabled { color: #BDB4A6; text-decoration: line-through; cursor: not-allowed; }
.opt-color {
  width: 38px; height: 38px; border-radius: 999px; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(46,42,37,.14);
}
.opt-color.active { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: var(--paper); cursor: pointer; font-size: 17px; }
.qty button:hover { background: var(--sand); }
.qty span { width: 44px; text-align: center; font-size: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 22px; }
.trust div { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.trust i { font-style: normal; color: var(--sage); }

/* ---------- cost / supplier transparency ---------- */
.cost-panel {
  margin-top: 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cost-panel h4 {
  margin: 0; padding: 14px 18px; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--sand);
}
.cost-rows { padding: 6px 18px 14px; }
.cost-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line);
}
.cost-row:last-child { border-bottom: 0; }
.cost-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.cost-row.total { font-size: 15px; padding-top: 12px; }
.cost-row.total span:last-child { color: var(--sage); }
.cost-note {
  padding: 12px 18px; font-size: 12px; color: var(--muted);
  background: var(--sage-soft); border-top: 1px solid var(--line);
}
.bar {
  height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-top: 6px;
}
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.bar i.low { background: var(--gold); }
.bar i.high { background: var(--clay); }

/* ---------- reviews + related ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 40px 0 22px; }
.tab {
  background: none; border: 0; padding: 0 0 12px; cursor: pointer;
  font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent;
}
.tab.active { color: var(--ink); border-bottom-color: var(--clay); font-weight: 600; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.review-head b { font-size: 13.5px; }
.review p { margin: 7px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.avatar {
  width: 30px; height: 30px; border-radius: 999px; background: var(--sand);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-soft);
}
.rating-big { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.rating-big .score { font-size: 46px; letter-spacing: -.03em; font-weight: 700; }
.rating-bars { flex: 1; max-width: 320px; display: flex; flex-direction: column; gap: 5px; }
.rating-bars .rb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.rating-bars .bar { flex: 1; margin: 0; }

/* ---------- cart + checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 22px; }
.cart-line {
  display: grid; grid-template-columns: 104px 1fr auto; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cl-thumb { border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.cl-thumb svg { width: 100%; height: 100%; display: block; }
.cl-name { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.cl-meta { font-size: 12.5px; color: var(--muted); }
.cl-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cl-price { font-size: 17px; font-weight: 700; }
.summary { position: sticky; top: 96px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 17px; font-weight: 700; }
.free { color: var(--sage); font-weight: 700; }
.progress { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: var(--clay); }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; text-transform: uppercase; outline: 0;
}
.promo-row input:focus { border-color: var(--line-strong); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 14px; background: var(--paper); outline: 0;
}
.field input:focus, .field select:focus { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.method {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  display: flex; gap: 12px; align-items: center; cursor: pointer; margin-bottom: 10px;
}
.method.active { border-color: var(--ink); background: var(--sand); }
.method input { accent-color: var(--ink); }

/* ---------- order confirmation ---------- */
.order-hero { text-align: center; padding: 48px 0 20px; }
.order-hero .tick {
  width: 62px; height: 62px; border-radius: 999px; background: var(--sage-soft);
  color: var(--sage); display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px;
}
.order-hero h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -.025em; }
.order-hero p { color: var(--muted); margin: 0; }

/* ---------- seller + supplier console ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi .k-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.kpi .k-value { font-size: 32px; letter-spacing: -.03em; font-weight: 700; margin: 6px 0 2px; }
.kpi .k-note { font-size: 12.5px; color: var(--muted); }
.kpi.good .k-value { color: var(--sage); }
.kpi.warn .k-value { color: var(--gold); }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--sand); }
.num { font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
.mini-art { width: 38px; height: 38px; border-radius: 7px; overflow: hidden; background: var(--sand); }
.mini-art svg { width: 100%; height: 100%; display: block; }

.sup-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.sup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sup-head h3 { margin: 0; font-size: 16px; }
.sup-meta { font-size: 12px; color: var(--muted); }
.sup-rows { display: flex; flex-direction: column; gap: 6px; }
.sup-rows div { display: flex; justify-content: space-between; font-size: 13px; }
.sup-rows span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.sup-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.status-live { background: var(--sage-soft); color: #4E5F42; }
.status-cred { background: var(--gold-soft); color: #8A6818; }
.status-no { background: #E7E4DE; color: #6D6862; }
.status-sample { background: var(--clay-soft); color: #8E4529; }

/* ---------- drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(30, 26, 22, .42);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; z-index: 90;
}
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: var(--bone); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .26s cubic-bezier(.3,.8,.3,1);
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-head button { background: none; border: 0; font-size: 17px; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--paper); }
.drawer-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); }
.dl-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.dl-info strong { font-size: 13px; color: var(--ink); }
.dl-sup { font-size: 11px; }
.dl-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.dl-qty button {
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; line-height: 1;
}
.dl-qty .rm { width: auto; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; margin-left: 6px; }
.dl-price { font-weight: 700; font-size: 14px; }
.drawer-empty { text-align: center; padding: 60px 20px; }
.de-ico { font-size: 38px; display: block; margin-bottom: 10px; }
.drawer-empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: var(--bone); padding: 12px 18px;
  border-radius: var(--radius-sm); font-size: 13.5px; box-shadow: var(--shadow);
  animation: toast-in .22s ease; max-width: 340px;
}
.toast-err { background: #8E3B2E; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- footer ---------- */
.site-foot { background: var(--forest); color: #CFC6B2; margin-top: 60px; padding: 52px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.foot-col h4 {
  margin: 0 0 12px; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #8E9B85;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.foot-col a { font-size: 13.5px; color: #CFC6B2; }
.foot-col a:hover { color: #fff; }
.foot-brand .logo-mark { color: var(--bone); font-size: 26px; }
.foot-brand p { font-size: 13.5px; line-height: 1.6; max-width: 42ch; margin: 12px 0 18px; }
.foot-stats { display: flex; gap: 26px; }
.foot-stats div { display: flex; flex-direction: column; }
.foot-stats strong { font-size: 21px; color: var(--bone); }
.foot-stats span { font-size: 11px; color: #8E9B85; }
.foot-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 11.5px; color: #8E9B85;
}

/* ---------- misc ---------- */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 68ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose h3 { font-size: 16px; margin: 24px 0 6px; }
.prose p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.prose ul { color: var(--ink-soft); font-size: 15px; line-height: 1.7; padding-left: 20px; }
.note {
  background: var(--gold-soft); border: 1px solid #EAD9AE; border-radius: var(--radius);
  padding: 16px 18px; font-size: 13.5px; color: #6E541A; margin: 20px 0;
}
.note strong { color: #543F10; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 6px; font-size: 19px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-rail { grid-template-columns: repeat(4, 1fr); }
  .mega-grid { grid-template-columns: repeat(6, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- the department panel on a small screen ----------
   Below 1,080px a 940px panel cannot sit inside the screen, so it becomes a
   sheet that rises from the foot of the display. This is also where the
   header stops blurring: a blurred element becomes the containing block for
   its fixed-position children, which pulled the sheet up inside the header. */
@media (max-width: 1080px) {
  .site-head { backdrop-filter: none; background: var(--bone); }

  .mega {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: auto; max-height: 78vh; overflow-y: auto;
    border-radius: 16px 16px 0 0; border-bottom: 0;
    padding: 18px 18px 30px; z-index: 95;
    transform: translateY(102%);
  }
  .menu-wrap.open .mega { transform: translateY(0); }
  .mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

  .menu-scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(30, 26, 22, .42); z-index: 94;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .menu-scrim.open { opacity: 1; visibility: visible; }
}
@media (max-width: 900px) {
  .hero-grid, .pdp, .cart-layout, .browse { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-rail { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-link { display: none; }
  .pdp-media { position: static; }
  .summary { position: static; }
  /* The four promises sat one per line on a phone, which cost a fifth of the
     screen before the shopper saw anything. They flow into two lines instead. */
  .announce { font-size: 11.5px; }
  .announce .wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1px 14px; text-align: center; }
  .kpis { grid-template-columns: 1fr 1fr; }

  /* The sticky header uses a blur, and a blurred element becomes the
     containing block for its fixed-position children. That is cleared at
     1,080px, where the department sheet takes over. */

  /* The header becomes two rows: logo and actions on top, search beneath.
     The search box used to be hidden outright on a phone, which left 3,761
     listings unsearchable on the device most people shop on. */
  .head-inner { flex-wrap: wrap; row-gap: 10px; column-gap: 12px; }
  .logo { order: 1; }
  .logo-mark { font-size: 20px; }
  .logo-sub { font-size: 8px; }
  .head-nav { order: 2; gap: 10px; }
  .search { order: 3; display: flex; flex: 1 0 100%; max-width: none; }

  /* Sign in stays on the bar as an icon — it is the way back to an order. */
  .nav-link.account-link { display: flex; }
  .account-link #accountLabel { display: none; }
  .acct-ico svg { width: 19px; height: 19px; }

  /* A thumb is about 44px. The header buttons were 36–37px tall, which is a
     coin toss on a phone. */
  .nav-btn { padding: 11px 15px; font-size: 14px; }
  .cart-btn { padding: 10px 13px; }
  .nav-link.account-link { padding: 10px 6px; }

  /* The links that no longer fit move here, one tap away on their own strip. */
  .head-nav-mobile {
    display: flex; align-items: center; gap: 20px;
    padding: 10px 24px; border-top: 1px solid var(--line);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .head-nav-mobile::-webkit-scrollbar { display: none; }
  .head-nav-mobile > * { white-space: nowrap; flex: none; }
  .head-nav-mobile a, .head-nav-mobile button {
    font-size: 13.5px; color: var(--ink-soft); background: none;
    border: 0; padding: 0; cursor: pointer;
  }
  .head-nav-mobile a:hover, .head-nav-mobile button:hover { color: var(--ink); }
  .head-nav-mobile .nav-scan { color: var(--clay); font-weight: 600; }
}
@media (max-width: 560px) {
  .grid, .grid-5 { grid-template-columns: 1fr; }
  .cat-rail { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }

  /* Twenty-four departments, in two tidy columns of names and counts. The
     photographs go on a phone, and the sheet scrolls so every one of them
     can be reached — the last few sit below the fold by design, not by
     accident. */
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .mega-thumb { display: none; }
  .mega-col {
    display: grid; grid-template-columns: 1fr auto; align-items: baseline;
    gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line);
  }
  .mega-name { font-size: 13px; }
  .mega-count { font-size: 11px; }
  .mega-foot { font-size: 12px; margin-top: 14px; padding-top: 12px; }
}


/* ---------- accounts ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.auth-card .sub { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.auth-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-switch button {
  flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 10px; font-size: 13.5px; cursor: pointer; transition: all .14s ease;
}
.auth-switch button.active { background: var(--ink); color: var(--bone); border-color: var(--ink); font-weight: 600; }
.auth-error {
  background: #F6E7E0; border: 1px solid #E4C4B4; color: #8E4529;
  padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
}
.auth-ok {
  background: var(--sage-soft); border: 1px solid #C9D9BE; color: #40533A;
  padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px;
}
.acct-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 24px 26px; border-radius: var(--radius);
  background: var(--forest); color: var(--bone); margin-bottom: 22px;
}
.acct-hero h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.acct-hero p { margin: 0; font-size: 13px; color: #A8A08E; }
.acct-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.acct-tabs button {
  background: none; border: 0; padding: 0 0 12px; cursor: pointer; font-size: 14px;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.acct-tabs button.active { color: var(--ink); border-bottom-color: var(--clay); font-weight: 600; }
.acct-stat { display: flex; flex-direction: column; gap: 2px; }
.acct-stat strong { font-size: 24px; letter-spacing: -.02em; }
.acct-stat span { font-size: 12px; color: var(--muted); }
.order-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.order-row:last-child { border-bottom: 0; }
.order-id { font-weight: 700; font-size: 14px; }
.order-meta { font-size: 12.5px; color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: #4E5F42;
}
.status-pill.shipped { background: var(--gold-soft); color: #8A6818; }
.status-pill.processing { background: #E7E4DE; color: #6D6862; }
.addr-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  margin-bottom: 10px; position: relative;
}
.addr-card.default { border-color: var(--sage); background: var(--sage-soft); }
.addr-card h4 { margin: 0 0 5px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.addr-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.addr-actions { display: flex; gap: 12px; margin-top: 10px; }
.addr-actions button {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px;
  color: var(--muted); text-decoration: underline;
}
.addr-actions button:hover { color: var(--clay); }
.saved-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.acct-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.signin-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sage-soft); border: 1px solid #C9D9BE; border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: 13px; color: #40533A; margin-bottom: 18px;
}
.signin-note a { font-weight: 700; text-decoration: underline; }

/* ---------- guest checkout ---------- */
.guest-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--sand); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px;
}
.guest-note a { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.guest-note .guest-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin-right: 7px;
}
.method.locked { opacity: .55; cursor: not-allowed; background: var(--bone); }
.method.locked input { pointer-events: none; }
.method .method-lock { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
  .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- photography ----------
   Real studio shots sit in the same square frame as the drawn artwork, so
   swapping one for the other never shifts the layout. */
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.card:hover .card-media img { transform: scale(1.045); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer-line .dl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- specification table ---------- */
.spec-block { margin-top: 18px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th { width: 34%; font-weight: 600; color: var(--ink-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.size-chart { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.size-chart th, .size-chart td {
  padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left;
}
.size-chart thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.size-chart tbody tr:hover { background: var(--sand); }
.size-chart td:first-child { font-weight: 600; }

/* ---------- reviews ---------- */
.review-write {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: var(--paper); margin-top: 16px;
}
.review-write h4 { margin: 0 0 4px; font-size: 15px; }
.review-write .rw-hint { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.star-picker { display: flex; gap: 3px; margin-bottom: 14px; }
.star-picker button {
  background: none; border: 0; cursor: pointer; font-size: 24px; line-height: 1;
  padding: 0 2px; color: var(--line-strong); transition: color .12s ease, transform .12s ease;
}
.star-picker button.on, .star-picker button:hover { color: var(--gold); transform: scale(1.08); }
.review-write input[type="text"], .review-write textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; font-size: 13.5px; background: var(--bone);
  margin-bottom: 12px;
}
.review-write textarea { min-height: 104px; resize: vertical; }
.review-write input:focus, .review-write textarea:focus {
  outline: none; border-color: var(--clay); background: var(--paper);
}
.rw-verified {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  background: var(--sage-soft); color: #40533A; border-radius: 999px; padding: 3px 9px;
}
.rw-mine { background: var(--clay-soft); color: #8C4326; }
.review-title { font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.review-cta { margin-top: 14px; }

/* ---------- shipment tracking ---------- */
.track {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 20px 22px; margin-top: 14px;
}
.track-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.track-head h4 { margin: 0; font-size: 15px; }
.track-ref { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.track-eta { font-size: 13px; color: var(--ink-soft); margin: 0 0 18px; }
.track-steps { display: flex; flex-direction: column; gap: 0; }
.track-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px;
  background: var(--line);
}
.track-step:last-child::before { display: none; }
.track-dot {
  width: 20px; height: 20px; border-radius: 999px; background: var(--paper);
  border: 2px solid var(--line-strong); flex: none; z-index: 1; margin-top: 1px;
}
.track-step.done .track-dot { background: var(--sage); border-color: var(--sage); }
.track-step.now .track-dot { background: var(--clay); border-color: var(--clay); }
.track-step.now .track-dot::after {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 999px;
  background: #fff; margin: 5px auto;
}
.track-step.todo .track-dot { background: var(--bone); }
.track-body { flex: 1; min-width: 0; }
.track-body b { font-size: 13.5px; display: block; }
.track-step.todo .track-body b { color: var(--muted); font-weight: 500; }
.track-body span { font-size: 12.5px; color: var(--muted); }
.track-when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.track-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: #40533A;
}
.track-status.onway { background: var(--gold-soft); color: #7A5A16; }

/* ---------- loyalty ---------- */
.loyalty-panel {
  border-radius: var(--radius); padding: 20px 22px; color: var(--bone);
  background: linear-gradient(135deg, #33453A 0%, #25332B 100%); margin-bottom: 18px;
}
.loyalty-panel h4 { margin: 0 0 3px; font-size: 15px; color: var(--bone); }
.loyalty-panel p { margin: 0; font-size: 12.5px; color: #B9C3B4; }
.loyalty-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 16px 0 4px; }
.loyalty-stats .acct-stat strong { color: var(--bone); font-size: 22px; }
.loyalty-stats .acct-stat span { color: #9DA895; }
.loyalty-tier {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; background: rgba(255,255,255,.12);
  padding: 5px 11px; border-radius: 999px; color: #E4D9BE;
}
.loyalty-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); margin-top: 14px; overflow: hidden; }
.loyalty-progress i { display: block; height: 100%; background: linear-gradient(90deg, #C9A227, #E0C87A); }
.points-input {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--sage-soft); border: 1px solid #C9D9BE; border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13px; color: #40533A; margin-bottom: 14px;
}
.points-input input[type="number"] {
  width: 96px; border: 1px solid #B9CCAA; border-radius: 7px; padding: 6px 8px;
  font: inherit; font-size: 13px; background: var(--paper);
}
.points-input button {
  background: var(--sage); color: #fff; border: 0; border-radius: 7px;
  padding: 7px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.points-input button:hover { background: #5E7151; }
.points-input button:disabled { opacity: .5; cursor: default; }
.points-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- order rows in the account area ---------- */
.order-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 18px 20px; margin-bottom: 14px;
}
.order-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.order-card-head .oid { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.order-card-head .odate { font-size: 12px; color: var(--muted); }
.order-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.order-line .mini-thumb {
  width: 48px; height: 48px; border-radius: 8px; background: var(--sand);
  overflow: hidden; flex: none; border: 1px solid var(--line);
}
.order-line .ol-info { flex: 1; min-width: 0; }
.order-line .ol-info b { font-size: 13.5px; display: block; }
.order-line .ol-info span { font-size: 12px; color: var(--muted); }
.order-line .ol-right { text-align: right; font-size: 13px; }
.rate-btn {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.rate-btn:hover { border-color: var(--clay); color: var(--clay); }
.rate-btn.done { border-color: var(--sage); color: #4E6142; background: var(--sage-soft); }

/* ---------- customer service assistant ---------- */
.nav-scan {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 13.5px; letter-spacing: 0; font-weight: 500; color: var(--ink-soft);
}
.nav-scan:hover { color: var(--clay); }
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--bone);
  border: 0; border-radius: 999px; padding: 12px 18px 12px 15px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease, opacity .18s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab.hidden { opacity: 0; pointer-events: none; }
.chat-fab-ico { font-size: 17px; line-height: 1; }
body.drawer-open .chat-fab { opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 901;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 44px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: var(--forest); color: var(--bone); padding: 14px 16px;
}
.chat-title { font-size: 14px; font-weight: 700; }
.chat-sub { font-size: 11.5px; color: #B9C3B4; }
.chat-close {
  background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px;
  line-height: 1; padding: 2px 4px; opacity: .85;
}
.chat-close:hover { opacity: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; }
.chat-msg { margin-bottom: 10px; max-width: 88%; }
.chat-msg p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.chat-bot { background: var(--bone); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.chat-me {
  margin-left: auto; background: var(--clay); color: #fff; border-radius: 12px;
  padding: 9px 12px; max-width: 80%;
}
.chat-msg p + p { margin-top: 8px; }
.chat-products { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.chat-product {
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; background: var(--paper);
}
.chat-product:hover { border-color: var(--clay); }
.chat-thumb { width: 34px; height: 34px; border-radius: 7px; overflow: hidden; background: var(--sand); flex: none; }
.chat-thumb img, .chat-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-pname { flex: 1; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.chat-pprice { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-chip {
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 11.5px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.chat-chip:hover { border-color: var(--clay); color: var(--clay); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.chat-input { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  font: inherit; font-size: 13.5px; background: var(--bone);
}
.chat-input input:focus { outline: none; border-color: var(--clay); background: var(--paper); }
.chat-input button {
  width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--clay);
  color: #fff; font-size: 16px; cursor: pointer;
}
.chat-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-typing i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--muted);
  animation: chatDot 1.1s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-live { padding: 0 14px 12px; }
.chat-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 11.5px; color: var(--muted); text-decoration: underline;
}
.chat-linkbtn:hover { color: var(--clay); }
.chat-livebox { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.chat-livebox p { margin: 0 0 8px; line-height: 1.5; }
.chat-livebox input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 12px; margin-bottom: 8px; background: var(--bone);
}

/* ---------- product scanner ---------- */
.scan-scrim {
  position: fixed; inset: 0; background: rgba(46, 42, 37, .55); z-index: 950;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#scanRoot.open .scan-scrim { opacity: 1; pointer-events: auto; }
body.scan-open { overflow: hidden; }
.scan-modal {
  position: fixed; z-index: 951; left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.98);
  width: 520px; max-width: calc(100vw - 28px); max-height: calc(100vh - 40px);
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
#scanRoot.open .scan-modal { display: flex; transform: translate(-50%, -50%) scale(1); }
.scan-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.scan-title { font-size: 16px; font-weight: 700; }
.scan-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.scan-head .chat-close { color: var(--ink); }
.scan-stage {
  position: relative; background: var(--forest); aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
}
.scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-placeholder { position: absolute; color: #8E9A8B; font-size: 13px; }
.scan-reticle {
  position: absolute; inset: 14% 16%; border: 2px solid rgba(255,255,255,.72);
  border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(46,42,37,.28);
  pointer-events: none;
}
.scan-dept { display: flex; align-items: center; gap: 10px; padding: 12px 18px 0; }
.scan-dept label { font-size: 12px; color: var(--muted); }
.scan-dept select {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font: inherit; font-size: 13px; background: var(--bone);
}
.scan-controls { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; }
.scan-status { padding: 0 18px; font-size: 12px; color: var(--muted); min-height: 16px; }
.scan-results { padding: 10px 18px 18px; overflow-y: auto; }
.scan-note { font-size: 12px; color: var(--ink-soft); margin-bottom: 9px; }
.scan-empty { font-size: 13px; color: var(--muted); padding: 18px 0; }
.scan-empty a { color: var(--clay); font-weight: 600; }
.scan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scan-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px; text-decoration: none;
  color: var(--ink); background: var(--paper); display: block;
}
.scan-card:hover { border-color: var(--clay); }
.scan-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sand); }
.scan-thumb img, .scan-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-name { display: block; font-size: 12.5px; font-weight: 600; margin-top: 7px; line-height: 1.3; }
.scan-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.scan-bar { display: block; height: 4px; border-radius: 999px; background: var(--sand); margin-top: 8px; overflow: hidden; }
.scan-bar i { display: block; height: 100%; background: var(--sage); }
.scan-pct { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) {
  .scan-grid { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
}

/* A colourway with no photograph yet reads as a swatch rather than as a
   drawing, so the thumbnail row is never half photo, half clip-art. */
.pdp-thumbs .thumb { padding: 0; display: grid; place-items: center; }
.pdp-thumbs .thumb .thumb-swatch {
  width: 100%; height: 100%; border-radius: var(--radius-sm); display: block;
}
.pdp-thumbs .thumb.active .thumb-swatch { box-shadow: inset 0 0 0 2px var(--clay); }

/* ---------- sourcing disclosure ---------- */
.src-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-bottom: 46px;
}
.src-step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; position: relative;
}
.src-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--clay); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.src-step h3 { margin: 0 0 7px; font-size: 16px; }
.src-step p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.src-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.src-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.src-card.src-sample { border-style: dashed; background: var(--bone); }
.src-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.src-kind {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin-bottom: 5px;
}
.src-head h3 { margin: 0; font-size: 17px; }
.src-pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.src-ok { background: var(--sage-soft); color: #40533A; }
.src-wait { background: var(--gold-soft); color: #7A5A16; }
.src-bench { background: var(--sand); color: var(--muted); }
.src-note { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.src-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  border-top: 1px solid var(--line); padding-top: 13px;
}
.src-facts div { display: flex; flex-direction: column; gap: 2px; }
.src-facts span {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.src-facts b { font-size: 13px; font-weight: 600; line-height: 1.4; }
.src-flag {
  margin-top: 13px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--gold-soft); color: #7A5A16; font-size: 12px; line-height: 1.5;
}
.src-fulfil { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.src-fulfil h3 { margin: 0 0 8px; font-size: 17px; }

.src-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.src-table th, .src-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.src-table thead th {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-weight: 700;
}
.src-table tbody tr:hover { background: var(--sand); }
.src-table td a { color: var(--ink); font-weight: 600; }
.src-table td a:hover { color: var(--clay); }
.src-count { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.src-tag {
  display: inline-block; font-size: 12px; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0;
}
.src-cta {
  background: var(--forest); color: var(--bone); border-radius: var(--radius);
  padding: 38px 34px;
}
.src-cta h2 { margin: 0 0 8px; font-size: 24px; color: var(--bone); }
.src-cta p { margin: 0; font-size: 14px; color: #B9C3B4; }
.src-cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: var(--bone); }
.src-cta .btn-primary { background: var(--bone); color: var(--forest); }
@media (max-width: 900px) {
  .src-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-grid { grid-template-columns: 1fr; }
  .src-fulfil { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .src-flow { grid-template-columns: 1fr; }
  .src-facts { grid-template-columns: 1fr; }
}

/* ---------- returns ----------
   The 30-day promise needs somewhere to live: a form to start a return, the
   record of one, its label reference and what is owed back. */
.return-toggle { margin-top: 14px; }
.return-toggle > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--clay);
  padding: 9px 0; list-style: none; user-select: none;
}
.return-toggle > summary::-webkit-details-marker { display: none; }
.return-toggle > summary::before { content: '↩ '; }
.return-toggle[open] > summary { border-bottom: 1px solid var(--line); }

.return-block {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.return-block h4 { margin: 0 0 8px; font-size: 15px; }
.return-reason-note { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.return-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.return-msg { font-size: 12.5px; color: var(--clay); margin-left: 10px; }

.return-lines { margin: 12px 0 14px; }
.return-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.return-line .rl-name { font-size: 13.5px; flex: 1 1 200px; min-width: 0; }
.return-line .rl-meta { font-size: 12px; color: var(--muted); flex: 1 1 160px; }
.return-line .rl-of { font-size: 11.5px; color: var(--muted); }
.return-line .ret-qty {
  width: 62px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px; background: var(--paper);
}
.return-line .ret-pick { width: 17px; height: 17px; accent-color: var(--clay); }

.return-reason { margin-bottom: 14px; }
.return-reason label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.return-select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper); font-size: 13.5px;
}

.return-item {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.return-item:last-child { border-bottom: 0; }
.return-head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-bottom: 6px;
}
.return-head b { font-size: 13px; letter-spacing: .03em; }
.return-items { font-size: 13px; color: var(--ink-soft); }

/* ---------- the app ----------
   The install banner, the offline strip, and the safe areas an installed app
   needs on a phone with a notch. */
.install-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; background: var(--forest); color: #EFE7D6;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.install-banner .ib-text { flex: 1; min-width: 0; }
.install-banner .ib-text b { display: block; font-size: 13.5px; letter-spacing: .02em; }
.install-banner .ib-text span { font-size: 12.5px; color: #CFC6B2; }
.install-banner .ib-text b, .install-banner .ib-text span { color: #EFE7D6; }
.install-banner .ib-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.install-banner .ib-close {
  background: none; border: 0; color: #CFC6B2; font-size: 16px;
  cursor: pointer; padding: 6px 8px;
}
.install-banner .btn-accent { padding: 9px 16px; font-size: 13px; }

.conn-strip {
  background: #F8EEDA; color: #543F10; border-bottom: 1px solid var(--line);
  padding: 10px 24px; font-size: 12.5px; text-align: center; line-height: 1.5;
}
.conn-strip[hidden] { display: none; }

/* An installed app has no browser chrome, so the page fills the screen and
   the notch is kept clear. */
@media (display-mode: standalone) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .site-head { padding-top: env(safe-area-inset-top); }
  .announce { display: none; }
}
