/* ==========================================================================
   Lead Opticals — Components
   Header, mega menu, mobile nav, search, cart drawer, product cards, modals,
   toasts, footer.
   ========================================================================== */

body.no-scroll { overflow: hidden; }

.scrim {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(18,16,15,.44);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-mid) var(--e-out);
}
body.scrim-on .scrim { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Announcement marquee
   -------------------------------------------------------------------------- */
.announce {
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 0; position: relative; z-index: 60;
}
.announce .marquee-track { gap: 0; padding-right: 0; }
.announce .marquee-track > span { padding: 0 18px; white-space: nowrap; }
.announce .dot { color: var(--red); padding: 0 2px; font-size: 8px; }
.announce b { color: var(--red-bright); font-weight: 500; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255,255,255,.90);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--e-out), border-color var(--t-mid), box-shadow var(--t-mid), background-color var(--t-mid);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(18,16,15,.05); }
.site-header.is-hidden { transform: translateY(-102%); }

.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  z-index: 2;
}

/* Brand, navigation, utilities. Three columns for three children.
   It used to be three columns holding FOUR children — burger, brand, links,
   actions — so the actions wrapped onto a second row and the header stood in
   three rows at every desktop width. The burger is now taken out of the flow
   on desktop, which keeps the grid honest: the three things that belong on
   the row are the three things in it. */
.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}

/* Hidden on desktop, and specific enough to stay hidden. As a bare
   .nav-burger this lost to the .icon-btn display rule further down the file —
   same specificity, later wins — so the hamburger showed at 1440px beside the
   full navigation. Qualifying it with .nav settles it without !important. */
.nav > .nav-burger {
  display: none;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: 46px; width: auto;
  transition: transform var(--t-mid) var(--e-out);
}
.brand:hover img { transform: scale(1.03); }

.nav-links { justify-self: center; }
.nav-links ul { display: flex; gap: clamp(18px, 2.1vw, 38px); }
.nav-item > a {
  position: relative; display: block; padding: 10px 0;
  /* Navigation is brand voice too. Manrope at 600, sentence case, with only a
     hair of tracking — legible at a glance and unmistakably the same family as
     the headings it sits above. */
  font-family: var(--display);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.002em;
  text-transform: none; color: var(--ink);
  transition: color var(--t-fast) var(--e-out);
}
.nav-item > a::after {
  content: ''; position: absolute; left: 0; bottom: 4px; height: 1.5px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--e-out);
}
.nav-item > a:hover { color: var(--red); }
.nav-item > a:hover::after,
.nav-item > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: clamp(6px, 1vw, 14px); justify-self: end; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--tint); color: var(--red); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.bump { animation: bump .45s var(--e-spring); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.25); } }

.badge {
  position: absolute; top: 5px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: var(--fs-2xs); line-height: 1;
}

@media (max-width: 1000px) {
  /* The links collapse into the burger, which takes their place in the flow
     as the left-hand column. */
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav > .nav-burger { display: inline-flex; position: static; transform: none; }
  .brand { justify-self: center; }
  .brand img { height: 38px; }
}

/* --------------------------------------------------------------------------
   Mega menu
   -------------------------------------------------------------------------- */
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(18,16,15,.08);
  opacity: 0; transform: translateY(-10px);
  transition: opacity var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.mega-panel.open { opacity: 1; transform: translateY(0); }
.mega-inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
  gap: var(--sp-7); padding-block: var(--sp-7);
}
.mega-col h4 {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: var(--sp-4);
}
.mega-col li + li { margin-top: 2px; }
.mega-col a {
  display: block; padding: 5px 0; font-size: var(--fs-sm); color: var(--ink-soft);
  transition: color var(--t-fast), transform var(--t-fast) var(--e-out);
}
.mega-col a:hover { color: var(--red); transform: translateX(5px); }

.mega-feature {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--tint); padding: var(--sp-4); border: 1px solid var(--line);
  transition: border-color var(--t-mid), background-color var(--t-mid);
}
.mega-feature:hover { border-color: var(--red); background: var(--red-wash); }
.mega-feature-art { width: 132px; flex: none; }
.mega-feature .mono { color: var(--red); letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-2xs); }
.mega-feature h5 { font-size: var(--fs-md); margin: 4px 0 3px; }
.mega-price { font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 1000px) { .mega-panel { display: none; } }

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 0 auto 0 0; z-index: 200;
  width: min(400px, 88vw); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .42s var(--e-inout);
  box-shadow: 8px 0 40px rgba(18,16,15,.12);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line);
}
.mobile-logo { height: 40px; width: auto; }
.mobile-links { flex: 1; padding: var(--sp-4) var(--sp-5); overflow-y: auto; }
.mobile-links li {
  opacity: 0; transform: translateX(-16px);
  transition: opacity .4s var(--e-out), transform .5s var(--e-out);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.mobile-nav.open .mobile-links li { opacity: 1; transform: none; }
.mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: var(--fs-lg);
  transition: color var(--t-fast), padding-left var(--t-fast) var(--e-out);
}
.mobile-links a:hover { color: var(--red); padding-left: 6px; }
.mobile-links svg { width: 16px; height: 16px; color: var(--ink-soft); }
.mobile-nav-foot { padding: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mobile-sub {
  display: flex; align-items: center; gap: 11px;
  font-size: var(--fs-sm); color: var(--ink-soft); padding: 7px 0;
}
.mobile-sub svg { width: 18px; height: 18px; }
.mobile-sub:hover { color: var(--red); }
.mobile-nav-foot .btn { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */
.search-panel {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  opacity: 0; transition: opacity var(--t-mid) var(--e-out);
}
.search-panel.open { opacity: 1; }
.search-inner { padding-block: clamp(2rem, 6vh, 5rem); }
.search-bar {
  display: flex; align-items: center; gap: var(--sp-3);
  border-bottom: 1.5px solid var(--ink); padding-bottom: var(--sp-4);
}
.search-icon { display: flex; color: var(--ink-soft); }
.search-icon svg { width: 24px; height: 24px; }
.search-input {
  flex: 1; border: 0; background: none; outline: none;
  font-family: var(--display); font-size: var(--fs-xl); font-weight: 400;
  padding: 4px 0;
}
.search-input::placeholder { color: var(--ink-soft); }
.search-input::-webkit-search-cancel-button { display: none; }

.search-suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: var(--sp-5);
}
.search-suggest .label {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  margin-right: 4px;
}
.search-suggest button {
  padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-sm); transition: all var(--t-fast) var(--e-out);
}
.search-suggest button:hover { border-color: var(--red); color: var(--red); background: var(--red-wash); }

.search-results { margin-top: var(--sp-7); }
.search-hint { color: var(--ink-soft); font-size: var(--fs-sm); }
.search-count {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--sp-4);
}
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-3); }
.search-hit {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 12px; border: 1px solid var(--line);
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--e-out);
}
.search-hit:hover { border-color: var(--red); background: var(--tint); transform: translateY(-2px); }
.search-hit-art { width: 76px; flex: none; }
.search-hit-info { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); min-width: 0; }
.search-hit-info b { font-family: var(--display); font-size: var(--fs-md); font-weight: 500; }
.search-hit-price { color: var(--red); font-size: var(--fs-xs); }
.search-all { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(440px, 92vw); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .42s var(--e-inout);
  box-shadow: -10px 0 48px rgba(18,16,15,.14);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5); border-bottom: 1px solid var(--line);
}
.drawer-head h4 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); }
.drawer-count {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft);
  background: var(--tint); border-radius: var(--r-pill); padding: 3px 9px;
}

.drawer-ship { padding: var(--sp-4) var(--sp-5); background: var(--tint); border-bottom: 1px solid var(--line); }
.ship-msg { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: 9px; }
.ship-msg b { color: var(--ink); }
.ship-track { height: 3px; background: var(--line); overflow: hidden; }
.ship-track span { display: block; height: 100%; background: var(--red); width: 0; transition: width .6s var(--e-out); }

.drawer-body { flex: 1; overflow-y: auto; padding: 0 var(--sp-5); }
.drawer-item { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.drawer-thumb {
  width: 92px; flex: none; background: var(--tint); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 8px;
  transition: border-color var(--t-fast);
}
.drawer-thumb:hover { border-color: var(--red); }
.drawer-info { flex: 1; min-width: 0; }
.drawer-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.drawer-title a { font-family: var(--display); font-size: var(--fs-md); font-weight: 500; }
.drawer-title a:hover { color: var(--red); }
.drawer-remove {
  color: var(--ink-soft); padding: 2px; flex: none;
  transition: color var(--t-fast);
}
.drawer-remove svg { width: 17px; height: 17px; }
.drawer-remove:hover { color: var(--danger); }
.drawer-variant { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 3px; }
.drawer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.drawer-bottom b { font-size: var(--fs-sm); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.qty button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: background-color var(--t-fast), color var(--t-fast);
}
.qty button svg { width: 14px; height: 14px; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty span { min-width: 34px; text-align: center; font-size: var(--fs-sm); }

.drawer-empty { text-align: center; padding: var(--sp-9) var(--sp-4); }
.drawer-empty-art { width: 150px; margin: 0 auto var(--sp-5); opacity: .4; }
.drawer-empty p { margin-bottom: 8px; font-size: var(--fs-sm); }
.drawer-empty .btn { margin-top: var(--sp-5); }

.drawer-foot { padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--paper); }
.drawer-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-md); }
.drawer-row b { font-size: var(--fs-lg); }
.drawer-note { font-size: var(--fs-xs); color: var(--ink-soft); margin: 8px 0 var(--sp-4); }
.drawer-foot .btn + .btn { margin-top: 9px; }

/* --------------------------------------------------------------------------
   Frame artwork
   A product renders either a generated SVG or a photograph. Both carry
   .frame-art so every container sizes them identically and swapping one for
   the other causes no layout shift.
   -------------------------------------------------------------------------- */
.frame-art { display: block; width: 100%; height: auto; }
img.frame-art {
  object-fit: contain;
  /* Matches the SVG viewBox ratio, so a grid of half-photographed products
     still lines up. Remove once every frame is shot at a consistent ratio. */
  aspect-ratio: 300 / 130;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Catalogue loading + fallback
   Placeholders occupy the same box as a real card, so the grid does not
   reflow when live data replaces them.
   -------------------------------------------------------------------------- */
.card-skeleton {
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(100deg, var(--tint) 30%, var(--sand) 50%, var(--tint) 70%);
  background-size: 220% 100%;
  border: 1px solid var(--line);
  animation: card-shimmer 1.3s linear infinite;
}
@keyframes card-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  .card-skeleton { animation: none; background: var(--tint); }
}

.catalogue-notice {
  margin: 0 auto var(--sp-5);
  max-width: var(--maxw);
  padding: 14px var(--gutter);
  background: rgba(180,105,14,.09);
  border-left: 3px solid var(--warning);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.catalogue-notice b { color: var(--warning); }

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 4 / 3.4;
  background: var(--tint); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: var(--sp-4);
  transition: border-color var(--t-mid) var(--e-out), background-color var(--t-mid) var(--e-out);
}
.card:hover .card-media { border-color: var(--line-strong); background: var(--sand); }

.card-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card-art {
  position: absolute; inset: 12% 8%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s var(--e-out), transform .55s var(--e-out);
}
.card-art svg { width: 100%; height: auto; }
.card-art-alt { opacity: 0; transform: scale(1.08) rotate(-2deg); }
.card:hover .card-art-front { opacity: 0; transform: scale(.94); }
.card:hover .card-art-alt { opacity: 1; transform: scale(1) rotate(0); }

.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: var(--fs-3xs); letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 9px;
}
.card-badge.is-new { background: var(--red); }
.card-badge.is-sale { background: var(--success); }

.card-wish {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); background: rgba(255,255,255,.8);
  opacity: 0; transform: translateY(-6px);
  transition: all var(--t-mid) var(--e-out);
}
.card-wish svg { width: 18px; height: 18px; }
.card:hover .card-wish, .card-wish:focus-visible, .card-wish.on { opacity: 1; transform: none; }
.card-wish:hover { background: #fff; color: var(--red); }
.card-wish.on { color: var(--red); }
.card-wish.on svg { fill: currentColor; }

.card-hover {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(101%);
  transition: transform var(--t-mid) var(--e-out);
}
.card:hover .card-hover, .card:focus-within .card-hover { transform: translateY(0); }
.card-hover button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 8px; min-height: 46px;
  background: var(--ink); color: #fff;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--t-fast) var(--e-out);
}
.card-hover button svg { width: 15px; height: 15px; }
.card-hover button + button { border-left: 1px solid rgba(255,255,255,.18); }
.card-hover button:hover { background: var(--red); }

.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.card-name { font-size: var(--fs-md); font-weight: 500; }
.card-name a:hover { color: var(--red); }
.card-price { font-size: var(--fs-sm); white-space: nowrap; }
.card-price b { font-weight: 500; color: var(--ink); }
.card-price s { color: var(--ink-soft); font-size: var(--fs-xs); margin-right: 3px; }
.card-meta { font-size: var(--fs-xs); color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: 4px; }

.stars { display: inline-flex; gap: 1.5px; color: var(--red); }
.star { width: var(--star-size, 13px); height: var(--star-size, 13px); color: var(--line-strong); }
.star svg { width: 100%; height: 100%; }
.star.on { color: var(--red); }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-soft); }

.card-swatches { display: flex; gap: 5px; }
.swatch-mini {
  width: 17px; height: 17px; border-radius: 50%; padding: 2px;
  border: 1px solid transparent;
  transition: border-color var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
.swatch-mini span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.swatch-mini:hover { transform: scale(1.15); }
.swatch-mini.on { border-color: var(--ink); }

/* A 17px dot is precise enough for a mouse and too small for a thumb. On touch
   the dot grows to clear the 24px minimum and the row spaces out to match, so
   neighbouring colourways cannot be tapped by accident. Pointer-based rather
   than width-based: a small laptop with a trackpad does not need this, and a
   large tablet does. */
@media (pointer: coarse) {
  .card-swatches { gap: 8px; }
  .swatch-mini { width: 26px; height: 26px; padding: 3px; }
}

/* Grids */
.product-grid {
  display: grid; gap: var(--sp-6) var(--sp-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); } }
@media (max-width: 420px)  { .product-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* --------------------------------------------------------------------------
   Modal / quick view
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 240;
  display: grid; place-items: center; padding: var(--sp-4);
  background: rgba(18,16,15,.5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--t-mid) var(--e-out);
  overflow-y: auto;
}
.modal.open { opacity: 1; }
.modal-card {
  position: relative; background: var(--paper);
  width: min(940px, 100%); max-height: min(88vh, 720px); overflow-y: auto;
  transform: translateY(24px) scale(.98);
  transition: transform .45s var(--e-out);
  box-shadow: var(--shadow-lg);
}
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 4; background: rgba(255,255,255,.9); }

.modal-quick { display: grid; grid-template-columns: 1fr 1fr; }
.qv-art {
  background: var(--tint); border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-7);
  min-height: 300px;
}
.qv-art svg { width: 100%; }
.qv-info { padding: var(--sp-7) var(--sp-6); }
.qv-info h3 { margin: var(--sp-3) 0 10px; }
.qv-rating { display: flex; align-items: center; gap: 9px; font-size: var(--fs-xs); color: var(--ink-soft); }
.qv-price { font-size: var(--fs-lg); color: var(--red); margin: var(--sp-4) 0 2px; }
.qv-price s { color: var(--ink-soft); font-size: var(--fs-sm); margin-right: 6px; }
.qv-price-note { font-size: var(--fs-xs); color: var(--ink-soft); margin-left: 8px; letter-spacing: .05em; }
.qv-blurb { font-size: var(--fs-sm); color: var(--ink-soft); margin: var(--sp-4) 0 var(--sp-5); line-height: 1.7; }
.qv-opt { margin-bottom: var(--sp-5); }
.qv-opt .label { display: block; margin-bottom: 10px; }
.qv-opt .label b { color: var(--ink); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.qv-actions { display: grid; gap: 9px; margin-top: var(--sp-5); }
.qv-assure { margin-top: var(--sp-5); display: grid; gap: 9px; }
.qv-assure li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--ink-soft); }
.qv-assure svg { width: 17px; height: 17px; color: var(--red); flex: none; }

.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; padding: 3px;
  border: 1px solid var(--line-strong);
  transition: all var(--t-fast) var(--e-out);
}
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatch:hover { transform: scale(1.06); border-color: var(--ink-faint); }
.swatch.on { border-color: var(--ink); border-width: 1.5px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-sm); background: var(--paper); white-space: nowrap;
  transition: all var(--t-fast) var(--e-out);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 820px) {
  .modal-quick { grid-template-columns: 1fr; }
  .qv-art { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--sp-6); min-height: 0; }
  .qv-info { padding: var(--sp-6) var(--sp-5); }
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 13px 20px; font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .35s var(--e-out), transform .45s var(--e-spring);
}
.toast.in { opacity: 1; transform: none; }
.toast-icon { display: flex; color: #6EE7B7; }
.toast-icon svg { width: 17px; height: 17px; }
.toast.is-success { background: var(--ink); }
.toast.is-error { background: var(--danger); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: auto; }
.foot-cta { border-bottom: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-9); }
.foot-cta-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: center;
}
.foot-cta h3 { color: #fff; margin: var(--sp-3) 0 10px; max-width: 18ch; }
.foot-cta .text-muted { color: rgba(255,255,255,.6); font-size: var(--fs-sm); }
.foot-form-row { display: flex; gap: 10px; }
.foot-form .input {
  background: transparent; border-color: rgba(255,255,255,.28); color: #fff; flex: 1;
}
.foot-form .input::placeholder { color: rgba(255,255,255,.4); }
.foot-form .input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(194,33,39,.24); }
.foot-form-msg { margin-top: 10px; font-size: var(--fs-xs); min-height: 18px; }
.foot-form-msg.is-ok { color: #6EE7B7; }
.foot-form-msg.is-err { color: #FCA5A5; }

.foot-main {
  display: grid; grid-template-columns: 1.15fr 2fr; gap: var(--sp-8);
  padding-block: var(--sp-9);
}
.foot-brand-col img {
  height: 62px; width: auto; margin-bottom: var(--sp-5);
  background: #fff; padding: 10px 14px;
}
.foot-blurb { font-size: var(--fs-sm); line-height: 1.75; max-width: 40ch; margin-bottom: var(--sp-5); }
.foot-contact { display: grid; gap: 12px; }
.foot-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: var(--fs-sm); }
.foot-contact svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 3px; }
.foot-contact a:hover { color: #fff; }

.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.foot-col h4 {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin-bottom: var(--sp-4);
}
.foot-col a {
  display: block; padding: 6px 0; font-size: var(--fs-sm);
  transition: color var(--t-fast), transform var(--t-fast) var(--e-out);
}
.foot-col a:hover { color: #fff; transform: translateX(4px); }

.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  padding-block: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs); color: rgba(255,255,255,.5);
}
.foot-bottom a:hover { color: #fff; }
.foot-social { display: flex; gap: 9px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--e-out);
}
.foot-social svg { width: 17px; height: 17px; }
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }

@media (max-width: 900px) {
  .foot-cta-inner, .foot-main { grid-template-columns: 1fr; gap: var(--sp-6); }
  .foot-links { grid-template-columns: repeat(2, 1fr); }
  .foot-bottom { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .foot-form-row { flex-direction: column; }
  .foot-links { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Card: brand, availability, sold-out
   Quiet by default — availability is information, not an advertisement, so it
   sits with the material and shape rather than shouting from the image.
   -------------------------------------------------------------------------- */
.card-brand {
  font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px;
}
.card-avail { color: var(--ink-soft); }
.card-avail::before { content: ' · '; }
.card-avail.is-out { color: var(--danger); }
.card-avail.is-low { color: #8a6d22; }

.card-badge.is-out { background: var(--ink); color: #fff; }
.card.is-sold-out .card-art { opacity: .55; }
.card.is-sold-out .card-add { display: none; }

/* Search empty state — a way forward, not a dead end. */
.search-empty { text-align: center; padding: var(--sp-6) var(--sp-4); }
.search-empty-title { font-family: var(--display); font-size: var(--fs-lg); margin: 0 0 6px; }
.search-empty .search-hint { max-width: 46ch; margin: 0 auto var(--sp-4); }
.search-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.card-avail.is-unknown { color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------------------
   Mobile action bar
   Two thumb-sized actions pinned to the bottom of a phone screen, on the pages
   whose job is to start a conversation. Phones only: from 768px up the page
   has room for its own CTAs and this would be clutter.

   z-index 140 puts it UNDER the sticky header (150), the scrim (180) and every
   overlay (200), so an open menu, cart or search always covers it rather than
   fighting it.
   -------------------------------------------------------------------------- */
.mobile-cta { display: none; }

@media (max-width: 767px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    /* Sits above the iOS home indicator rather than under it. */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 18px rgba(18, 16, 15, .10);
  }

  .mobile-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    /* Comfortably past the 44px thumb target on every phone tested. */
    min-height: var(--mobile-cta-btn-h);
    padding: 12px 10px;
    font-size: var(--fs-base); font-weight: 600; line-height: 1;
    text-decoration: none;
    background: var(--paper); color: var(--ink);
  }
  .mobile-cta-btn svg { width: 19px; height: 19px; }
  .mobile-cta-btn.is-wa { background: var(--red); color: #fff; }
  .mobile-cta-btn.is-wa svg { fill: currentColor; }
  .mobile-cta-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

  /* Room for the bar so it never sits on top of the end of the footer. */
    /* Measured, not estimated: the bar is 52px of button plus a 1px top
       border, and reserving exactly 52px left the last footer row sitting
       under it with nothing to spare. --mobile-cta-h is the real outer
       height; the extra --sp-4 is breathing room, so the end of the page
       clears the bar instead of merely touching it. */
  body.has-mobile-cta { padding-bottom: calc(var(--mobile-cta-h) + var(--sp-4) + env(safe-area-inset-bottom, 0px)); }
}

/* A phone held sideways has almost no vertical room; the bar would eat it. */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 460px) {
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}

/* The brand promise, set with the mark in the footer. Manrope, tight, quiet —
   it is a signature, not a headline competing with the page. */
.foot-tagline {
  font-family: var(--display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: var(--sp-3) 0 var(--sp-2);
  color: var(--ink);
}
