/* ======================================================================
   GLOBAL RESPONSIVE FIT LAYER - BASE RESET (v2.6)
   Mandatory global layout & container rules: kills horizontal overflow
   at the root, makes every box border-box sized, and keeps replaced
   elements + form controls fluid. Utility classes & enforcement rules
   live in the matching layer at the END of this sheet (they must win
   the cascade).
   ====================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent global horizontal overflow — WITHOUT making <body> a scroll
   container. overflow-x:hidden on body forces its overflow-y:visible to
   compute to auto, turning body into a scroll box that breaks the sticky
   site header. <html> owns the x-axis clamp; body uses clip, which never
   creates a scrollport. The viewport stays the ONE page scroller. */
html {
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  max-width: 100vw;
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------------------
   PAGE SCROLL LOCK — must live on the ROOT element, not on <body>.

   Why: CSS Overflow propagates the ROOT element's overflow to the viewport.
   Body's overflow is only propagated when the root's computed overflow is
   `visible`. Because <html> above declares `overflow-x: hidden`, the root
   computes to `hidden auto` and owns the viewport scrollport — so
   `body { overflow: hidden }` is completely inert for page scrolling. The
   old lock "worked" on phones only because it also set `touch-action: none`
   on <body>, which is what actually froze the page: touch-action is
   resolved by walking the whole ancestor chain, so `none` on <body> kills
   panning for EVERY touch in the document (including the cart drawer's own
   list) and leaves the catalog completely dead if the class ever sticks.

   Locking the root instead gives a real lock on desktop and mobile, keeps
   nested scrollers (drawer list, modal body) working, and leaves the sticky
   site header intact because <body> never becomes a scroll container.
   ---------------------------------------------------------------------- */
html.scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

/* The `hidden` attribute must always win.
   `[hidden] { display: none }` only exists in the UA stylesheet, and ANY
   author rule that sets `display` on the same element beats it (author
   origin outranks UA origin regardless of specificity). `.consent` sets
   `display: flex`, so `<div class="consent" hidden>` stayed visible — a
   position:fixed banner pinned across the bottom of the catalog, eating
   every touch that landed on it. Re-assert it at author-important so no
   component rule can resurrect a hidden overlay. */
[hidden] { display: none !important; }

/* Replaced elements can never force a pane wider than its container */
img, svg, video, canvas, iframe { max-width: 100%; }

/* Fluid search and input fields */
.pos-search-input, input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: clamp(0.875rem, 2.5vw, 1rem); /* Fluid font scaling */
}
input, select, textarea { max-width: 100%; }

/* ======================================================================
   ADONAI STORE — unified storefront design system v2
   (matched to the approved product screenshots)
   Type:      Playfair Display (display) · Plus Jakarta Sans (text)
   Palette:   canvas #F9FAFB · slate #111827 · emerald #16A34A
              deep slate #111827 · line #E5E7EB
   ===================================================================== */

:root {
  --ink: #111827;
  --body: #1F2937;
  --muted: #6B7280;
  --rust: #16A34A;
  --rust-dark: #15803D;
  --green: #16A34A;
  --line: #E5E7EB;
  --page: #F9FAFB;
  --card: #FFFFFF;
  --tint: #F3F4F6;
  --dark: #111827;
  --dark-soft: #1F2937;
  --font-display: "Playfair Display", Georgia, serif;
  --font-text: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Smooth scrolling fights programmatic scroll restoration after a scroll
   lock is released, and reads as lag on low-end phones. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 32rem 25rem at 100% 6%, rgba(111, 135, 104, .14), transparent 72%),
    radial-gradient(ellipse 28rem 23rem at 0% 78%, rgba(196, 116, 67, .10), transparent 70%),
    linear-gradient(180deg, #f8f5ef 0%, #fbfaf7 52%, #f3efe8 100%);
  color: var(--body);
  font: 400 15px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

/* A barely-there linen weave keeps the photo-led storefront tactile without
   adding visual noise behind the catalogue. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  opacity: .22;
  background-image: repeating-linear-gradient(90deg, rgba(91, 72, 50, .08) 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .25) 64%, transparent 100%);
}
body::after {
  opacity: .6;
  background:
    radial-gradient(circle at 92% 12%, transparent 0 82px, rgba(111, 135, 104, .11) 83px 84px, transparent 85px 140px, rgba(196, 116, 67, .08) 141px 142px, transparent 143px),
    radial-gradient(ellipse 25rem 20rem at 4% 76%, rgba(196, 116, 67, .10), transparent 72%);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
img { display: block; }
a { color: inherit; }

h1, h2, h3, .brand-word, .section-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--rust);
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 10px; }
.section-sub { color: var(--muted); max-width: 62ch; }

/* ============ HEADER ============ */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 243, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo-img { height: 38px; width: auto; max-width: 200px; display: block; object-fit: contain; }
.foot-logo-img { height: 75px; width: auto; max-width: 130px; display: block; margin-bottom: 12px; }
.t-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--rust); color: #fff;
  display: grid; place-items: center; font: 800 21px var(--font-display);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-size: 22px; font-weight: 800; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--mut); color: var(--muted); font-weight: 600; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-pill {
  display: inline-flex; align-items: center; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 10px 18px; font: 600 13.5px var(--font-text); cursor: pointer;
}
.head-pill:hover { border-color: var(--ink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 18px; font: 600 13.5px var(--font-text); cursor: pointer;
}
.cart-btn svg { width: 16px; height: 16px; }
.cart-btn:hover { background: #1F2937; }
.cart-count { background: var(--rust); border-radius: 999px; min-width: 20px; text-align: center; padding: 1px 6px; font-size: 11.5px; font-weight: 700; }

/* ============ MASTHEAD ============ */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: 50px 42px 46px;
  border: 1px solid rgba(128, 105, 81, .2);
  border-radius: 30px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, .97) 0%, rgba(255, 253, 248, .9) 40%, rgba(255, 253, 248, .16) 78%, rgba(255, 253, 248, .03) 100%),
    url("../assets/storefront-editorial-bg.jpg") center / cover no-repeat;
  box-shadow: 0 22px 52px rgba(91, 72, 50, .16);
}
.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -58px;
  bottom: -90px;
  border: 1px solid rgba(111, 135, 104, .55);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(111, 135, 104, .08), 0 0 0 36px rgba(196, 116, 67, .08);
}
.masthead::after {
  content: "KAMPALA  /  CURATED DAILY";
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(47, 107, 70, .66);
  font: 700 clamp(10px, 1.8vw, 14px)/1 var(--font-text);
  letter-spacing: .14em;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
}
.masthead .eyebrow { color: #2F6B46; }
.masthead h1 {
  max-width: 16ch;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
}
.masthead .lede { max-width: 65ch; color: #4B5563; line-height: 1.6; }

/* Let the inventory feel like a curated collection sitting on the textured
   canvas rather than another unbroken white block. */
.rail {
  position: relative;
  margin-top: 26px;
  padding-top: 30px;
  border: 1px solid rgba(128, 105, 81, .2);
  border-radius: 30px;
  background: rgba(255, 253, 248, .74);
  box-shadow: 0 16px 42px rgba(91, 72, 50, .09);
  backdrop-filter: blur(10px);
}

/* ============ RAIL / FILTER CARD ============ */
.rail { padding: 30px 22px 32px; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.search-wrap {
  display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 18px;
}
.search-wrap:focus-within { border-color: var(--ink); }
.rail-search { border: 0; outline: 0; background: transparent; font: 400 14px var(--font-text); padding: 13px 0; width: 280px; max-width: 60vw; }

/* ============ REGIONAL LOGISTICS (Footer-Adjacent Section) ============ */
.logistics {
  padding: 48px 22px 56px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.logistics-head { max-width: 680px; margin-bottom: 22px; }
.region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.region-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.region-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #D1D5DB;
}
.rc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.rc-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--tint);
  border-radius: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.rc-icon svg { width: 22px; height: 22px; }
.region-card h3 { font-size: 18px; margin: 0 0 2px; }
.rc-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ECFDF5;
  color: #15803D;
}
.region-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.filter-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; min-width: 96px; }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip {
  border: 1px solid transparent; background: var(--tint); color: var(--body);
  padding: 9px 16px; border-radius: 999px; font: 600 13px var(--font-text); cursor: pointer;
  transition: background .12s, color .12s;
}
.fchip:hover { border-color: var(--ink); }
.fchip.active { background: var(--ink); color: #fff; }
.fchip.active.rust { background: var(--rust); }
.fsel {
  font: 500 13.5px var(--font-text); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none;
}
.fsel:focus { border-color: var(--ink); }
.selects { border-top: 1px solid var(--line); padding-top: 14px; }
.price-lbl { min-width: 0; }
.price-val { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.price-range { flex: 1; min-width: 160px; accent-color: var(--rust); cursor: pointer; height: 4px; }

/* ============ PRODUCT GRID ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(17, 24, 39, .05); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .24s cubic-bezier(.32, .72, 0, 1), transform .24s cubic-bezier(.32, .72, 0, 1), border-color .2s;
  cursor: pointer; position: relative; text-align: left;
}
.pcard:hover {
  box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
  transform: translateY(-3px);
  border-color: #D1D5DB;
}
.pcard:focus-within { outline: 2px solid var(--rust); outline-offset: 2px; }
/* Single-unit inventory: a sold piece is dimmed to 50% and stamped */
.pcard.sold { opacity: .5; }
.pcard.sold img { filter: grayscale(.85); }
.pcard.sold .pmedia::after {
  content: "SOLD OUT"; position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center; pointer-events: none;
  font: 800 14px/1 var(--font-text); letter-spacing: .14em; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  background: rgba(17, 24, 39, .32);
}

/* The whole card body is one link to /product/<slug>.
   Explicit link-state selectors prevent mobile browsers from restoring their
   default underline after a link has been visited. */
.pcard-link,
.pcard-link:link,
.pcard-link:visited,
.pcard-link:hover,
.pcard-link:active {
  display: flex; flex-direction: column; flex: 1;
  text-decoration: none; color: inherit; min-width: 0;
}
.pcard-link:focus-visible { outline: none; }

/* Condition grade chip — BNWT / A / B / Vintage colour system */
.grade-badge {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: var(--grade, #475569); color: #fff;
  font: 700 10.5px/1 var(--font-text); letter-spacing: .03em;
  padding: 5px 9px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .25);
}
.pmeasure { font-size: 11.5px; color: var(--green); font-weight: 600; }

.pmedia {
  position: relative; aspect-ratio: 4 / 3.4; background: var(--tint);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.pmedia img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s cubic-bezier(.32, .72, 0, 1); display: block;
}
.pcard:hover .pmedia img { transform: scale(1.05); }
.pmedia .media-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #D1D5DB; }
.pmedia .media-icon svg { width: 54px; height: 54px; }

/* Small condition badge keeps the dual-inventory model visible without
   competing with product photography on the mobile grid. */
.inventory-badge {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  padding: 5px 8px; border-radius: 999px;
  color: #fff; font: 800 10px/1 var(--font-text); letter-spacing: .08em;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .16); pointer-events: none;
}
.inventory-badge.new { background: #b45309; }
.inventory-badge.vintage { background: #047857; }
.inventory-badge.vintage { max-width: calc(100% - 20px); white-space: nowrap; font-size: 9px; letter-spacing: .045em; }
.line-source-tag { margin-top: 4px; color: #77542f; font: 750 10px/1.4 var(--font-text); letter-spacing: .01em; }

/* Top-Left Calculated Discount Badge (#DC2626) */
.discount-badge {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  background: #DC2626; color: #FFFFFF;
  font: 800 11px/1 var(--font-text); letter-spacing: .02em;
  padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, .35); pointer-events: none;
}

.media-dots {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  display: flex; gap: 6px; padding: 4px 8px; border-radius: 999px; width: max-content;
  background: rgba(17, 24, 39, .45); backdrop-filter: blur(6px);
}
.media-dots i {
  width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .7); background: var(--tint);
  display: grid; place-items: center; color: #D1D5DB; cursor: pointer;
}
.media-dots i.active { border-color: var(--rust); box-shadow: 0 0 0 2px rgba(22, 163, 74, .4); }
.media-dots i img { width: 100%; height: 100%; object-fit: cover; }

.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; text-align: left; }
.phead-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; }
.pdem { text-transform: uppercase; letter-spacing: .08em; color: var(--rust); font-weight: 700; }
.psku { color: var(--muted); font-family: monospace; font-size: 10.5px; }
.pname {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: var(--ink);
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 2px;
}
.pcard:hover .pname { color: var(--rust); }
.pmeta { font-size: 12px; color: var(--muted); }

/* Star rating & review count */
.star-rating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #4B5563; margin-top: 2px; }
.star-rating .stars { color: #F59E0B; letter-spacing: 1px; font-size: 12px; }
.star-rating .rating-num { font-weight: 700; color: var(--ink); }
.star-rating .review-count { color: var(--muted); font-size: 11px; }

/* Pricing row */
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.pprice { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.pcompare { font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 500; }

/* Full-width Add to Cart button */
.pcard-actions {
  margin-top: auto; padding: 0 16px 16px; display: grid; gap: 7px;
}
.view-detail-btn,
.view-detail-btn:link,
.view-detail-btn:visited,
.view-detail-btn:hover,
.view-detail-btn:active {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font: 600 12.5px var(--font-text); color: var(--ink); background: #fff;
}
.view-detail-btn:hover { border-color: var(--ink); background: var(--tint); }
.add-cart-btn {
  width: 100%; border: 0; border-radius: 10px; padding: 11px 14px;
  background: var(--ink); color: #FFFFFF; font: 700 13px var(--font-text);
  cursor: pointer; display: inline-flex; justify-content: center; align-items: center;
  gap: 7px; transition: background .18s ease, transform .08s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.add-cart-btn:hover { background: var(--rust); }
.add-cart-btn:active { transform: scale(0.98); }
.add-cart-btn:disabled { background: #D1D5DB; color: #6B7280; cursor: not-allowed; transform: none; }
.pcard.flip { box-shadow: 0 0 0 3px rgba(22, 163, 74, .4); }
.empty { text-align: center; color: var(--muted); padding: 48px 0 64px; }

/* ============ FOOTER (dark warm) ============ */
.site-foot { margin-top: 72px; background: var(--dark); color: #E5E7EB; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 52px 22px 12px; }
.foot-brand-col .brand-word { color: #F3F4F6; }
.foot-brand-col .brand-sub { color: #6B7280; }
.foot-blurb { font-size: 13.5px; color: #9CA3AF; margin-top: 14px; max-width: 38ch; }
.foot-loc { font-size: 13px; color: var(--rust); margin-top: 14px; font-weight: 600; }
.foot-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #F3F4F6; margin-bottom: 14px; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.foot-list a { color: #9CA3AF; text-decoration: none; }
.foot-list a:hover { color: #F3F4F6; text-decoration: underline; }
.foot-list .k { color: #6B7280; min-width: 74px; display: inline-block; }
.foot-list .rust { color: var(--rust); }
.foot-base { color: #6B7280; font-size: 12.5px; padding: 18px 22px 24px; border-top: 1px solid #1F2937; margin-top: 28px; }

/* ============ CONSENT BANNER ============ */
.consent {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 70;
  width: min(1060px, calc(100vw - 28px));
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, .25);
  padding: 16px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between;
  transition: opacity .2s ease, transform .2s ease;
}
.consent-body strong { font-size: 14.5px; color: var(--ink); }
.consent-body p { font-size: 13px; color: var(--muted); margin-top: 3px; max-width: 68ch; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.c-btn { border-radius: 10px; padding: 10px 16px; font: 700 13px var(--font-text); cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: all .15s; }
.c-btn:hover { border-color: var(--ink); }
.c-btn.ghost { background: transparent; }
.c-btn.light { background: var(--tint); }
.c-btn.primary { background: var(--rust); color: #fff; border-color: transparent; }
.c-btn.primary:hover { background: var(--rust-dark); }
.c-btn-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--tint); color: var(--muted); font-size: 15px; font-weight: 700;
  cursor: pointer; display: grid; place-items: center; transition: all .15s;
}
.c-btn-close:hover { color: var(--ink); border-color: var(--ink); background: #E5E7EB; }

/* Product detail now lives on the dedicated PDP (/product/<slug>) —
   see css/product.css. The old in-page quick-view modal was removed so
   there is a single source of truth for product presentation. */

/* ============ CART DRAWER ============ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 48; }
/* Off-canvas via transform ONLY.
   This panel previously animated `right` (-460px → 0) while the
   `.cart-drawer` rules further down animated `transform` on the SAME
   element (#cartDrawer carries both classes). Two competing models meant a
   half-applied state could park a fixed, full-height panel on top of the
   catalog and swallow every touch. One model, one closed state. */
.drawer {
  position: fixed; top: 0; right: 0; width: min(440px, 100vw); max-width: 100vw;
  height: 100vh; height: 100dvh;
  background: var(--page); z-index: 49; box-shadow: -16px 0 48px rgba(17, 24, 39, .2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}
body.cart-open .drawer, .drawer.is-active { transform: translateX(0); }
body.cart-open .drawer-backdrop, .drawer-backdrop.is-active { opacity: 1; pointer-events: auto; }
/* The dim layer is not a scroll surface — don't let a drag on it pan the page. */
.drawer-backdrop.is-active, body.cart-open .drawer-backdrop { touch-action: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer-head h3 { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.drawer-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 1px; }
.drawer-close-btn {
  background: var(--tint); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: 700 12.5px var(--font-text); color: var(--ink);
  cursor: pointer; transition: all .15s;
}
.drawer-close-btn:hover { background: #E5E7EB; border-color: var(--ink); }

/* The drawer's own list is the scroller. `overscroll-behavior: contain`
   stops the scroll chaining to the catalog when the list hits its end, and
   `touch-action: pan-y` keeps it swipeable now that <body> no longer
   declares `touch-action: none`. */
.drawer-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
}

/* Item Card */
.cart-line-card {
  position: relative; display: flex; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  margin-bottom: 10px; align-items: center; box-shadow: var(--shadow-sm);
}
.line-thumb {
  width: 58px; height: 58px; border-radius: 8px; background: var(--tint);
  overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
  color: #D1D5DB; position: relative; border: 1px solid var(--line);
}
.line-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-thumb svg { width: 24px; height: 24px; }
.line-details { flex: 1; min-width: 0; padding-right: 18px; }
.line-title { font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-sku { font-size: 11.5px; color: var(--rust); font-weight: 700; margin-top: 1px; }
.line-price-meta { font-size: 12.5px; color: var(--body); margin-top: 2px; font-weight: 500; }
.line-remove-btn {
  position: absolute; top: 8px; right: 8px; border: 0; background: none;
  cursor: pointer; color: var(--muted); font-size: 16px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; transition: color .15s;
}
.line-remove-btn:hover { color: #DC2626; }

/* Customer Form */
.claim-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.claim-input {
  width: 100%; font: 500 13px var(--font-text); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  background: var(--card); color: var(--ink); transition: border-color .15s;
}
.claim-input:focus { border-color: var(--ink); }
.delivery-toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.deliv-toggle-btn {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  font: 700 12.5px var(--font-text); cursor: pointer; text-align: center;
  transition: all .15s; background: var(--card); color: var(--ink);
}
.deliv-toggle-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.claim-field-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 4px; display: block; }
.delivery-service-note { margin: 12px 0 10px; padding: 10px 12px; border-left: 3px solid var(--rust); border-radius: 0 9px 9px 0; background: rgba(22, 163, 74, .06); color: var(--body); font-size: 11.5px; line-height: 1.45; }
.location-allocation-status {
  margin: 0 0 8px; padding: 8px 10px; border-radius: 8px;
  background: #F3F4F6; color: #92400E; font-size: 11.5px; line-height: 1.4;
}
.claim-select {
  width: 100%; font: 500 12.5px var(--font-text); padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  background: var(--card); color: var(--ink); margin-bottom: 8px;
}
.claim-textarea {
  width: 100%; font: 500 12.5px var(--font-text); padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  background: var(--card); color: var(--ink); resize: vertical; min-height: 52px;
}

/* Footer & Cost Breakdown */
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px 20px; background: var(--card); }
.claim-summary-box {
  background: var(--page); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 5px;
}
.sum-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.sum-line.total { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; font-size: 14.5px; color: var(--ink); }
.sum-line .rust { color: var(--rust); font-size: 16.5px; font-weight: 800; }
.claim-confirm-btn {
  width: 100%; border: 0; border-radius: 10px; padding: 13px;
  background: var(--rust); color: #fff; font: 700 13.5px var(--font-text);
  cursor: pointer; transition: background .15s; text-align: center; display: block;
}
.claim-confirm-btn:hover { background: var(--rust-dark); }
.claim-confirm-btn:disabled { background: #D1D5DB; color: #6B7280; cursor: not-allowed; }
/* Secondary action inside the pay step (e.g. "continue browsing"). */
.claim-confirm-btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); font-weight: 600;
}
.claim-confirm-btn.ghost:hover { background: var(--page); }

/* ============ PAYMENT METHOD CHOOSER + PAY STEP ============ */
.pay-method-block { margin: 12px 0 4px; }
.pay-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-method-btn {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px;
  background: var(--card); color: var(--ink); font: 500 12px var(--font-text);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-method-btn strong { font-size: 12.5px; font-weight: 700; }
.pay-method-btn span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.pay-method-btn:hover { border-color: var(--rust); }
.pay-method-btn.active { border-color: var(--ink); background: var(--page); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-method-btn.active span { color: var(--body); }

.pay-step { gap: 10px; }
.pay-step-head { text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pay-step-eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); font-weight: 800; }
.pay-step-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0; color: var(--ink); }
.pay-step-sub { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.pay-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 8px 0; }
.pay-notice { font-size: 11.5px; color: var(--body); line-height: 1.5; }

.pay-detail-card {
  background: var(--page); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 13px; display: flex; flex-direction: column; gap: 6px;
}
.pay-detail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.pay-detail-row span { color: var(--muted); }
.pay-detail-row strong { color: var(--ink); text-align: right; word-break: break-word; }

.pay-code-card {
  background: #111827; border-radius: 12px; padding: 16px 18px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.pay-code-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9CA3AF; font-weight: 700; }
.pay-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 25px; font-weight: 800; color: #FFFFFF; letter-spacing: .08em;
}
.pay-code-amount { font-size: 11.5px; color: #D1D5DB; }
.pay-instructions { margin: 8px 0 0; padding-left: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.pay-instructions li { margin-bottom: 3px; }
.pay-inline-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.pay-mini-btn {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px;
  background: var(--card); color: var(--ink); font: 700 11.5px var(--font-text);
  cursor: pointer; text-decoration: none; text-align: center;
}
.pay-mini-btn:hover { border-color: var(--rust); }
.pay-flash {
  margin: 8px 0 0; padding: 9px 11px; border-radius: 9px;
  background: rgba(146, 64, 14, .08); border-left: 3px solid #B45309;
  color: #78350F; font-size: 11.5px; line-height: 1.45;
}
.pay-flash.ok { background: rgba(22, 163, 74, .08); border-left-color: #15803D; color: #14532D; }
.pay-switch { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.pay-switch-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.pay-switch-row { display: flex; flex-wrap: wrap; gap: 7px; }
.claim-notice-sub { font-size: 11px; color: var(--muted); text-align: center; margin-top: 7px; line-height: 1.4; }

/* Instant mobile money: the prompt button is the primary action, and the
   merchant-line instructions sit underneath it as the deliberate fallback. */
.pay-instant {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
  background: var(--card); display: flex; flex-direction: column; gap: 6px;
}
.pay-instant .claim-confirm-btn { margin-top: 4px; }
.pay-manual { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
.pay-manual summary {
  cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--rust);
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.pay-manual summary::-webkit-details-marker { display: none; }
.pay-manual summary::before { content: "＋"; font-weight: 800; }
.pay-manual[open] summary::before { content: "－"; }
.pay-manual > * + * { margin-top: 8px; }

/* Confirmation Screen (Screenshot 2) */
.order-confirmed-view { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.order-held-pill {
  background: #ECFDF5; border: 1px solid #BBF7D0; color: #15803D;
  border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 600; text-align: center;
}
.total-due-card {
  background: #111827; color: #FFFFFF; border-radius: 12px;
  padding: 16px 18px; text-align: center; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.due-lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #9CA3AF; font-weight: 700; }
.due-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.01em; }
.wa-instruct { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.45; }
.open-wa-btn {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; border-radius: 10px; padding: 12px;
  background: var(--rust); color: #fff; font: 700 13.5px var(--font-text);
  text-decoration: none; text-align: center; cursor: pointer; transition: background .15s;
}
.open-wa-btn:hover { background: var(--rust-dark); }
.wa-msg-preview-box {
  background: #111827; color: #E5E7EB; border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px; line-height: 1.55; max-height: 220px; overflow-y: auto; border: 1px solid #1F2937;
}
.wa-msg-preview-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px;
  font: 500 13.5px var(--font-text); opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 80; pointer-events: none; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .masthead {
    margin-top: 12px;
    padding: 34px 24px 32px;
    border-radius: 24px;
  }
  .masthead h1 { font-size: clamp(29px, 10vw, 42px); }
  .rail {
    margin-top: 18px;
    padding: 24px 14px 28px;
    border-radius: 22px;
  }
  .head-pill { padding: 9px 13px; font-size: 12.5px; }
  .head-row { gap: 10px; }
  .brand-txt { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pbody { padding: 12px 12px 14px; }
  .pname { font-size: 16px; }
  .pdesc { display: none; }
  .pcard-actions { grid-template-columns: 1fr; gap: 6px; }
  .detail-btn, .claim-btn { padding: 10px 4px; font-size: 11.5px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .consent { flex-direction: column; align-items: stretch; bottom: 10px; padding: 14px 16px; }
  .consent-actions { justify-content: stretch; width: 100%; flex-wrap: wrap; }
  .c-btn { flex: 1; min-width: 90px; padding: 10px 8px; text-align: center; }
}

/* ======================================================================
   GLOBAL RESPONSIVE FIT LAYER - UTILITIES & ENFORCEMENT (v2.6)
   Placed last on purpose: these rules must win the cascade so no
   earlier component rule can re-introduce clipping or sideways scroll.
   ====================================================================== */

/* Enforce fluid main containers */
.pos-container, .dashboard-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px;
}

/* Responsive Grid layout for team cards & product items */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  width: 100%;
}

/* Mobile override for small phone screens */
@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr; /* Single column on phone screens */
  }
}

/* Enforce strict text wrapping and ellipsis truncation */
.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Horizontal scroll container for category filters on mobile */
.category-pill-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pill-row::-webkit-scrollbar {
  display: none; /* Hide scrollbars for clean UI */
}
.category-pill-row > * { flex-shrink: 0; }

/* App navigation drawer.
   HAD NO CLOSED STATE: position:fixed, full height, 85vw wide, z-index 1000
   and permanently at left:0 with nothing to take it off-canvas. Any markup
   that used the class parked an invisible-but-interactive slab over the left
   85% of the catalog, and every swipe there went to the slab instead of the
   page. It now defaults to off-canvas + inert and only comes in on .is-open. */
.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 85vw;
  max-width: 320px; /* Limits sidebar size on large screens */
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  visibility: hidden;          /* cannot hit-test while closed */
  pointer-events: none;
  transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
}
.sidebar-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Hard re-lock of the horizontal axis: some component states flip
   body overflow back to auto - the x axis must stay clamped. */
/* Hard re-lock of the horizontal axis. <html> owns the clamp so <body> can
   never become a scroll container (which would break the sticky header). */
html { max-width: 100vw; overflow-x: hidden; }
body { max-width: 100vw; overflow-x: clip; }

/* ======================================================================
   STOREFRONT-SPECIFIC FIT FIXES (v2.6)
   ====================================================================== */

/* Search field flexes inside the rail head instead of pushing it wide */
.search-wrap { max-width: 100%; min-width: 0; }
.rail-search { min-width: 0; }

/* Cart drawer can never exceed the viewport on narrow phones */
.drawer { width: min(440px, 100vw); max-width: 100vw; }

/* Product card text: titles clamp (already), meta lines truncate */
.pmeta { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pcard, .region-card { min-width: 0; max-width: 100%; }

/* Mobile: demographic & category filter chips become horizontal
   scroll rails instead of stacking into a tall wrapped block */
@media (max-width: 640px) {
  .filter-row { flex-wrap: nowrap; align-items: center; min-width: 0; }
  .filter-row .filter-label { flex-shrink: 0; }
  .chipset {
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto;
    white-space: nowrap; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .chipset::-webkit-scrollbar { display: none; }
  .chipset .fchip { flex-shrink: 0; }
  .filter-row.selects { flex-wrap: wrap; }   /* selects keep wrapping */
  /* 16px inputs stop mobile browsers from auto-zooming on focus */
  input[type="text"], input[type="search"], .rail-search { font-size: 16px; }
  .rail-search { max-width: 100%; width: 100%; }
  .search-wrap { flex: 1 1 100%; }
}

/* ======================================================================
   HUMAN-CENTRIC CRAFT LAYER (v3.1) — Storefront
   ====================================================================== */
:root { --ease-smooth: cubic-bezier(.2, 0, .2, 1); }

button, .btn, .p-card, .chip, .nav a {
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out,
              color .2s ease-in-out, box-shadow .2s ease-in-out,
              transform .2s var(--ease-smooth);
}
button:active, .btn:active { transform: scale(.97); }
.p-card:hover { transform: translateY(-3px); border-color: #D1D5DB; box-shadow: 0 10px 24px rgba(17, 24, 39, .09); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
html[data-pointer="touch"] .btn, html[data-pointer="touch"] button { min-height: 44px; }
.pcard { transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, transform .2s var(--ease-smooth); }
.pcard:hover { transform: translateY(-3px); border-color: #D1D5DB; box-shadow: 0 10px 24px rgba(17, 24, 39, .09); }

/* ==========================================================================\n   CART DRAWER SCROLL + HIGH-CONTRAST OVERRIDES\n   ========================================================================== */
html, body { margin: 0; padding: 0; min-height: 100%; }

/* The <main> that holds the product grid must NEVER become its own scroll
   container. It has no height bound here, so `overflow-y: auto` would turn
   it into an un-scrollable scrollport that still captures touch (and
   computes overflow-x to `auto` too) — the page scrolls in fits and starts
   or not at all. `!important` is deliberate: js/cartController.js used to
   stamp an inline `overflow-y: auto` on this element on every cart close,
   and an author-important declaration outranks a non-important inline
   style, so the catalog stays scrollable even if that regression returns.
   (The admin console's styles.css DOES want overflow-y:auto on this id —
   there <main> is a bounded flex child. Different contract, same name.) */
.catalog-dashboard-region {
  overflow: visible !important;
  box-sizing: border-box;
  /* Explicitly opt back into native panning in case a stale
     `touch-action: none` is inherited from an older cached stylesheet. */
  touch-action: auto;
}

/* Cart drawer state hooks.
   REMOVED: `body.cart-drawer-open { overflow: hidden !important;
   touch-action: none; }`. That pair was the freeze.
     1. `overflow: hidden` on <body> never locked anything — the root owns
        the viewport scrollport (see the scroll-lock note at the top).
     2. `touch-action: none` on <body> is resolved against the whole
        ancestor chain, so it disabled touch panning for the entire
        document: the drawer's own item list could not be swiped, and any
        close path that failed to strip the class left the catalog
        permanently unscrollable — the reported "frozen page".
   Both classes are kept as inert state hooks so existing JS/selectors
   keep working; the real lock is `html.scroll-locked`, applied by
   js/scrollLock.js, which is reference-counted and self-healing. */
body.cart-drawer-open,
body.cart-drawer-closed { touch-action: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 420px;
  height: 100%; height: 100dvh; z-index: 1001;
  background-color: #0F172A; color: #F8FAFC;
  box-shadow: -4px 0 24px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.cart-drawer.is-active, body.cart-open .cart-drawer { transform: translateX(0); }
.cart-backdrop {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(15,23,42,.6); backdrop-filter: blur(4px); z-index: 1000;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.cart-backdrop.is-active, body.cart-open .cart-backdrop {
  opacity: 1; visibility: visible; pointer-events: auto; touch-action: none;
}
.cart-item-card { background:#1E293B; border:1px solid #334155; color:#FFF !important; }
.cart-item-card .item-title { color:#FFF !important; }
.cart-item-card .item-sku-meta { color:#94A3B8 !important; }
.cart-item-card .item-price-total { color:#10B981 !important; }
.quantity-stepper { background:#0F172A; border:1px solid #475569; }
.quantity-stepper button { color:#F8FAFC !important; }
.quantity-stepper .stepper-count { color:#FFF !important; }
.remove-btn { color:#EF4444 !important; }

/* Catalog cards advertise the gallery without downloading garment videos. */
.media-video-badge,.media-extra-photos { position:absolute; z-index:3; right:10px; padding:5px 8px; border-radius:999px; background:rgba(20,43,29,.82); color:#fff; font:600 10px var(--font-text); pointer-events:none; }
.media-video-badge { bottom:45px; }
.media-extra-photos { bottom:73px; font-size:9px; background:rgba(255,255,255,.9); color:#395543; }

.media-video-badge { display:inline-flex; align-items:center; gap:4px; }
