/* ================================================================
   Second Muse — Shop Now, mobile (shop.mobile.html)

   Full-screen, app-style shop built from the "SHOP PAGE - Light Mode
   (latest V3)" frames in Figma. Every measurement below is in Figma
   pixels of that 666-wide phone frame, multiplied by --u, so the whole
   layout scales with the phone exactly like the design does.

   One scrolling surface only (the page itself) plus the horizontal
   card rows: no nested vertical scrollers, no scroll listeners.
   ================================================================ */

:root {
  --u: calc(min(100vw, 620px) / 666);
  --tab-h: calc(91 * var(--u));
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Light: cream page, red ink. Dark mode (below) swaps the two. */
  --bg: #fff6e7;          /* page */
  --accent: #a31d1f;      /* buttons, titles' outline, text */
  --on-accent: #faf0db;   /* what sits on an accent fill */
  --accent-95: rgba(163, 29, 31, 0.95);
  --accent-85: rgba(163, 29, 31, 0.85);
  --accent-80: rgba(163, 29, 31, 0.8);
  --tile-bg: #ece2cf;     /* photo placeholder */
  --label-fill: #fff;     /* card labels over photos */
  --chip-ink: #fff;
  --field-bg: #fff;
  --field-ink: #1a1a1a;
  --muted: #8a7c6c;
}

html, body { background: var(--bg); }
body.sa-body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--field-ink); }
body.no-scroll { overflow: hidden; }

.sa-app {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + 40 * var(--u) + var(--safe-b));
  background: var(--bg);
}

/* ---------- top bar: nav pill (left) + home / heart / closet (right) ----------
   Fixed like the nav on every other page, so the heart and closet are
   always one tap away. */
.sa-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 620px);
  height: 0;
  z-index: 55;
}

/* the site's own nav pill (nav.js runs it), recoloured red per the design */
.sa-top .hero-nav-pill {
  position: absolute;
  top: calc(32 * var(--u) + env(safe-area-inset-top, 0px));
  left: calc(29 * var(--u));
  width: calc(274 * var(--u));
  background: var(--accent);
  border-radius: calc(26 * var(--u));
}
.sa-top .nav-pill-row { height: calc(52 * var(--u)); gap: calc(14 * var(--u)); padding: 0 calc(20 * var(--u)); }
.sa-top .menu-icon { width: calc(24 * var(--u)); gap: calc(5 * var(--u)); }
.sa-top .menu-icon span { background: var(--on-accent); }
.sa-top .nav-wordmark { color: var(--on-accent); font-size: calc(20 * var(--u)); letter-spacing: calc(1 * var(--u)); }
.sa-top .nav-bag-link img.nav-bag { height: calc(31 * var(--u)); filter: brightness(0) invert(1); opacity: 0.95; }
.sa-top .nav-pill-drop.is-open { border-top-color: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.sa-top .nav-drop-links a,
.sa-top .nav-drop-subtext,
.sa-top .nav-drop-subtext a { color: var(--on-accent); }

.sa-top-icons {
  position: absolute;
  /* vertically centred on the nav pill (top 32, height 52 → middle 58) */
  top: calc(29 * var(--u) + env(safe-area-inset-top, 0px));
  right: calc(29 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
}
.sa-circle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  border: none;
  border-radius: 50%;
  padding: 0;
  background: var(--accent);
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sa-circle picture { display: contents; }
/* every round button's icon sits on a square, optically centred canvas */
.sa-circle img,
.sa-fab img { width: 100%; height: 100%; display: block; pointer-events: none; }
/* inline icons follow the theme too */
.sa-fav svg path,
.sa-expand svg path,
.sa-back svg path { fill: var(--on-accent); }
.sa-section-link svg path { stroke: var(--accent); }
.sa-circle svg { width: 50%; height: 50%; display: block; margin-top: 4%; }
.sa-home[hidden] { display: none; }

/* the closet (cart) button: cart.js finds it by [data-cart-toggle] and
   adds the badge; cart.css normally pins that attribute to the corner,
   so undo the positioning here and let the row place it */
.sa-top-icons .sa-cart[data-cart-toggle] {
  position: relative;
  top: auto; right: auto; left: auto; bottom: auto;
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  margin: 0;
}
.sa-fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--on-accent);
  color: var(--accent);
  font: 700 10px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.sa-fav-count[hidden] { display: none; }

/* ---------- screens ---------- */
.sa-screen[hidden] { display: none; }
.sa-home-screen { padding-top: calc(118 * var(--u) + env(safe-area-inset-top, 0px)); }

/* Section titles: Modak in cream with the thick red outline from Figma */
.sa-title {
  margin: 0;
  font-family: "Modak", "Lilita One", sans-serif;
  font-weight: 400;
  line-height: 1;
  color: var(--on-accent);
  -webkit-text-stroke: calc(7 * var(--u)) var(--accent);
  paint-order: stroke fill;
  text-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.18);
  letter-spacing: calc(0.5 * var(--u));
}

.sa-section + .sa-section { margin-top: calc(47 * var(--u)); }
.sa-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(56 * var(--u));
  padding: 0 calc(35 * var(--u)) 0 calc(37 * var(--u));
  margin-bottom: calc(1 * var(--u));
}
.sa-section-link {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.sa-section-link .sa-title { font-size: calc(46 * var(--u)); }
.sa-section-link svg { width: calc(13 * var(--u)); height: calc(23 * var(--u)); flex: none; }
.sa-expand {
  width: calc(41 * var(--u));
  height: calc(41 * var(--u));
  border: none;
  border-radius: 50%;
  padding: 0;
  background: var(--accent-85);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-expand svg { width: 55%; height: 55%; transition: transform 0.25s ease; }
.sa-section.is-expanded .sa-expand svg { transform: rotate(180deg); }

/* card row: native horizontal scroll, snap per card */
.sa-row {
  display: flex;
  gap: calc(18 * var(--u));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  /* sideways swipes are driven by shop-app.js (bindRowSwipe); the browser
     only handles the page's up/down scroll here */
  touch-action: pan-y;
  padding: 0 calc(29 * var(--u));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sa-row::-webkit-scrollbar { display: none; }
.sa-section.is-expanded .sa-row {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: calc(18 * var(--u));
}

.sa-card {
  position: relative;
  flex: none;
  width: calc(293 * var(--u));
  height: calc(293 * var(--u));
  border-radius: calc(20 * var(--u));
  overflow: hidden;
  background: var(--tile-bg);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* no link preview popping up mid-swipe */
  user-select: none;
}
.sa-card img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.sa-card::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}
.sa-card-label {
  position: absolute;
  left: calc(17 * var(--u));
  right: calc(12 * var(--u));
  bottom: calc(12 * var(--u));
  z-index: 1;
  font-family: "Momo Trust Display", "Lilita One", sans-serif;
  font-size: max(11px, calc(20 * var(--u)));
  line-height: 1.15;
  color: var(--label-fill);
  -webkit-text-stroke: calc(2.4 * var(--u)) var(--accent);
  paint-order: stroke fill;
}
.sa-card-soon {
  position: absolute;
  top: calc(14 * var(--u));
  right: calc(14 * var(--u));
  z-index: 1;
  padding: calc(5 * var(--u)) calc(12 * var(--u));
  border-radius: 999px;
  background: var(--on-accent);
  color: var(--accent);
  font: 700 max(9px, calc(15 * var(--u))) "Lilita One", sans-serif;
  letter-spacing: 0.03em;
}

/* ---------- list screens (a collection, category, style, Shop All, Favorites) ---------- */
.sa-hero {
  position: relative;
  aspect-ratio: 660 / 730;
  background: var(--tile-bg);
  overflow: hidden;
}
.sa-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-hero::after {
  content: "";
  position: absolute;
  inset: 60% 0 0 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 55%, transparent));
  pointer-events: none;
}
.sa-hero-text {
  position: absolute;
  left: calc(34 * var(--u));
  right: calc(30 * var(--u));
  bottom: calc(14 * var(--u));
  z-index: 1;
}
.sa-hero-text .sa-title { font-size: calc(56 * var(--u)); }
.sa-count {
  margin: calc(2 * var(--u)) 0 0 calc(5 * var(--u));
  font-family: "Lilita One", sans-serif;
  font-size: max(12px, calc(24 * var(--u)));
  color: var(--accent);
  text-shadow: 0 0 calc(6 * var(--u)) color-mix(in srgb, var(--bg) 90%, transparent);
}

.sa-back {
  position: fixed;
  top: calc(46 * var(--u) + env(safe-area-inset-top, 0px));
  left: max(calc(16 * var(--u)), calc(50vw - 310px + 16 * var(--u)));
  z-index: 56;
  width: calc(59 * var(--u));
  height: calc(59 * var(--u));
  border: none;
  border-radius: 50%;
  padding: 0;
  background: var(--accent-85);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-back svg { width: 52%; height: 52%; }
.sa-back[hidden] { display: none; }

/* screens without a hero photo (Shop All, Favorites, search results):
   a cream title bar under the top icons, like the Shop All frame */
.sa-plain-head {
  padding: calc(118 * var(--u) + env(safe-area-inset-top, 0px)) calc(30 * var(--u)) calc(18 * var(--u));
}
.sa-plain-head .sa-title { font-size: calc(64 * var(--u)); }

/* As in the Collection / Shop All frames, those screens drop the nav pill:
   their title (or the back arrow) takes its place top-left. */
body.sa-view-entry .sa-top .hero-nav-pill,
body.sa-view-all .sa-top .hero-nav-pill,
body.sa-view-favorites .sa-top .hero-nav-pill { display: none; }
body.sa-view-all .sa-plain-head,
body.sa-view-favorites .sa-plain-head { padding-top: calc(28 * var(--u) + env(safe-area-inset-top, 0px)); padding-right: calc(250 * var(--u)); }
.sa-plain-head .sa-count { margin-left: calc(4 * var(--u)); }
.sa-list-screen.has-hero .sa-plain-head { display: none; }
.sa-list-screen:not(.has-hero) .sa-hero { display: none; }
.sa-list-screen.has-hero .sa-back { display: grid; }

.sa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(3 * var(--u));
  padding: calc(3 * var(--u)) 0 0;
}
.sa-empty {
  padding: calc(60 * var(--u)) calc(40 * var(--u));
  text-align: center;
  font-family: "Lilita One", sans-serif;
  font-size: max(15px, calc(28 * var(--u)));
  color: var(--accent);
}
.sa-empty small {
  display: block;
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.sa-tile {
  position: relative;
  aspect-ratio: 218 / 226;
  overflow: hidden;
  border-radius: calc(3 * var(--u));
  background: var(--tile-bg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sa-tile img {
  color: transparent; /* no alt text flashing over the tile while loading */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-tile .img-hover { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .sa-tile:hover .img-hover { opacity: 1; }
}
.sa-tile.is-broken img { display: none; }
.sa-tile .no-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.sa-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--on-accent);
  color: var(--accent);
  font: 700 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

/* favourite heart: on every tile and in the product popup */
.sa-heart {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  padding: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sa-heart svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.sa-heart path { fill: transparent; stroke: #fff; stroke-width: 2; transition: fill 0.15s ease, stroke 0.15s ease; }
.sa-heart.is-on path { fill: var(--heart-on, #a31d1f); stroke: var(--heart-line, #fff); }
.sa-heart.is-pop svg { animation: sa-pop 0.32s ease; }
@keyframes sa-pop { 40% { transform: scale(1.3); } }

.pd-photo .sa-heart { left: 10px; bottom: 34px; width: 44px; height: 44px; }
.pd-photo .sa-heart svg { width: 28px; height: 28px; }

/* ---------- bottom tab bar + search button (floating) ---------- */
.sa-tabbar {
  --kb: 0px; /* height of the phone keyboard while searching (shop-app.js) */
  position: fixed;
  left: 50%;
  bottom: calc(18 * var(--u) + var(--safe-b));
  transform: translate(-50%, calc(-1 * var(--kb)));
  width: min(100vw, 620px);
  height: var(--tab-h);
  z-index: 58; /* under the closet drawer (cart.css 60/61) */
  pointer-events: none;
}
.sa-tabs {
  position: absolute;
  left: calc(18 * var(--u));
  top: 0;
  width: calc(267 * var(--u));
  height: 100%;
  border-radius: calc(45 * var(--u));
  background: var(--accent-80);
  display: flex;
  align-items: center;
  padding: 0 calc(5 * var(--u));
  box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.sa-tab {
  flex: 1;
  height: calc(82 * var(--u));
  border: none;
  border-radius: calc(41 * var(--u));
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--u));
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sa-tab.is-active { background: var(--accent-95); box-shadow: inset 0 0 0 calc(2 * var(--u)) color-mix(in srgb, var(--on-accent) 22%, transparent), 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.18); }
.sa-tab picture { display: contents; }
/* same box for both icons, artwork centred inside it */
.sa-tab img { width: calc(54 * var(--u)); height: calc(53 * var(--u)); object-fit: contain; display: block; }
.sa-tab span {
  font: 400 max(8px, calc(12 * var(--u))) "Hammersmith One", sans-serif;
  line-height: 1;
  color: var(--on-accent);
  white-space: nowrap;
}

/* the search button: a circle that grows into the search bar */
.sa-fab {
  position: absolute;
  right: calc(19 * var(--u));
  top: calc(5 * var(--u));
  width: calc(81 * var(--u));
  height: calc(81 * var(--u));
  border: none;
  border-radius: 50%;
  padding: calc(9 * var(--u));
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.sa-fab picture { display: contents; }

.sa-searchbar {
  position: absolute;
  left: calc(18 * var(--u));
  right: calc(19 * var(--u));
  top: calc(5 * var(--u));
  height: calc(81 * var(--u));
  margin: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 calc(92 * var(--u)) 0 calc(10 * var(--u));
  border-radius: 999px;
  border: calc(6 * var(--u)) solid var(--accent-85);
  background: var(--field-bg);
  box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.2);
  /* closed: only the circle under the button is "uncovered" */
  clip-path: inset(0 0 0 calc(100% - 81 * var(--u)) round 999px);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.38s cubic-bezier(0.22, 0.9, 0.24, 1), opacity 0.12s linear 0.26s;
}
.sa-searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 calc(6 * var(--u));
  background: transparent;
  font: 400 16px "Hammersmith One", -apple-system, sans-serif; /* 16px stops iOS zooming in */
  color: var(--field-ink);
  -webkit-appearance: none;
  appearance: none;
}
.sa-searchbar input:focus { outline: none; }
.sa-searchbar input::placeholder { color: var(--muted); }
.sa-searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sa-search-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sa-search-close svg { width: 20px; height: 20px; }
.sa-search-close path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }

.sa-suggest {
  position: absolute;
  left: calc(18 * var(--u));
  bottom: calc(100% + 14 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(10 * var(--u));
  pointer-events: none;
}
.sa-chips-label {
  margin: 0 0 calc(2 * var(--u)) calc(4 * var(--u));
  font: 400 max(12px, calc(18 * var(--u))) "Hammersmith One", sans-serif;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sa-chip {
  border: none;
  border-radius: calc(20 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  background: var(--accent);
  color: var(--chip-ink);
  font: 400 max(14px, calc(26 * var(--u))) "Hammersmith One", sans-serif;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.sa-scrim {
  position: fixed;
  inset: 0;
  z-index: 57;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sa-scrim.is-on { opacity: 1; pointer-events: auto; }

/* open */
body.search-open .sa-searchbar {
  clip-path: inset(0 0 0 0 round 999px);
  opacity: 1;
  pointer-events: auto;
  transition: clip-path 0.38s cubic-bezier(0.22, 0.9, 0.24, 1), opacity 0s;
}
body.search-open .sa-tabs { opacity: 0; transform: scale(0.94); pointer-events: none; }
body.search-open .sa-suggest { pointer-events: auto; }
body.search-open .sa-chips-label { opacity: 1; transition-delay: 0.15s; }
body.search-open .sa-chip { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.05s); }
/* once something's typed, the results behind take over */
.sa-tabbar.has-query .sa-suggest { visibility: hidden; }

/* ---------- desktop / wide screens ----------
   The same app, full screen: buttons and type keep their designed size
   (--u stops growing at 620px), while the page itself opens out to the
   whole window, rows show more cards and grids get more columns. */
@media (min-width: 900px) {
  .sa-app { max-width: none; }
  .sa-top,
  .sa-tabbar { width: 100vw; }
  .sa-back { left: calc(29 * var(--u)); }
  .sa-section-head { padding-right: calc(29 * var(--u)); }
  .sa-section.is-expanded .sa-row { row-gap: calc(18 * var(--u)); }
  .sa-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .sa-hero { aspect-ratio: auto; height: min(62vh, 600px); }
  .sa-hero img { object-position: center 30%; }
  .sa-plain-head { padding-right: 0; }
  /* the search bar grows out of the button to a comfortable width */
  .sa-searchbar { left: auto; width: min(640px, calc(100vw - 37 * var(--u))); }
  .sa-suggest { left: auto; right: calc(19 * var(--u)); width: min(640px, calc(100vw - 37 * var(--u))); }
}
@media (min-width: 1400px) {
  .sa-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* the product popup sits above the tab bar */
.sa-body .product-detail-popup { z-index: 70; }
.sa-body .pd-slide { color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .sa-heart.is-pop svg { animation: none; }
  .sa-expand svg, .sa-tab, .sa-tabs, .sa-searchbar, .sa-chip, .sa-chips-label, .sa-scrim { transition: none !important; }
}

/* ================================================================
   Dark mode — follows the phone's Appearance setting. Every cream
   becomes red and every red becomes cream, icons included (each icon
   has a red twin, swapped in by <picture> in shop.mobile.html).
   Only this page loads shop-app.css, so only Shop Now changes.
   ================================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #a31d1f;
    --accent: #faf0db;
    --on-accent: #a31d1f;
    --accent-95: rgba(250, 240, 219, 0.97);
    --accent-85: rgba(250, 240, 219, 0.9);
    --accent-80: rgba(250, 240, 219, 0.78);
    --tile-bg: #8c181b;
    --label-fill: #a31d1f;
    --chip-ink: #a31d1f;
    --field-bg: #8c181b;
    --field-ink: #faf0db;
    --muted: rgba(250, 240, 219, 0.7);
    --heart-on: #faf0db;
    --heart-line: #a31d1f;
  }
  /* the nav pill's bag icon is red artwork: keep it as-is on cream */
  .sa-top .nav-bag-link img.nav-bag { filter: none; }
  .sa-top .nav-pill-drop .nav-drop-social img { filter: none; }
  .sa-heart path { stroke: #faf0db; }
  .sa-heart.is-on path { fill: #faf0db; stroke: #a31d1f; }

  /* product popup + toast, swapped the same way */
  .sa-body .product-detail-card { background: #a31d1f; border-color: #faf0db; }
  .sa-body .pd-name { color: #faf0db; }
  .sa-body .pd-price { color: #faf0db; text-decoration: underline; text-underline-offset: 3px; }
  .sa-body .pd-meta,
  .sa-body .pd-desc { color: rgba(250, 240, 219, 0.82); }
  .sa-body .pd-photo { background: #8c181b; }
  .sa-body .add-to-cart-btn { background: #faf0db; color: #a31d1f; }
  .sa-body .product-detail-popup .popup-close { background: #faf0db; }
  .sa-body .product-detail-popup .popup-close line { stroke: #a31d1f; }
  .sa-body .toast { background: #faf0db; color: #a31d1f; }
}
