/* ==========================================================================
   Meeow shop v2 (ADR-0040): catalog cards, inquiry states and the product
   dialog. Sits in the pages layer on top of bright-v1's sv1 base; colours
   come from ds tokens so the dark theme follows without extra rules.
   ========================================================================== */

/* ---------- Multi-level category nav ---------- */
.shop-page.sv1.is-active { animation: none; transform: none; }
.sv1-catnav { margin-top: 18px; display: grid; gap: 10px; }
.sv1-catnav .sv1-cats { margin-top: 0; }
.sv1-subs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 2px; margin-inline: -2px;
  scroll-snap-type: x proximity;
}
.sv1-subs::-webkit-scrollbar { display: none; }
.sv1-subs[hidden] { display: none !important; }
.sv1-sub {
  flex: 0 0 auto; width: 86px; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 6px;
  padding: 8px 6px 10px;
  border: 1px solid var(--ds-line, var(--b-hair));
  border-radius: 18px;
  background: #fff; color: var(--ds-ink-1, var(--b-ink));
  text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .28s ease, transform .28s ease;
}
.sv1-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(15, 27, 45, .28);
}
.sv1-sub__media {
  width: 52px; height: 52px; overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #fff 70%, transparent), transparent 60%),
    color-mix(in srgb, var(--ds-cream-100, #f5f1ea) 80%, #fff);
}
.sv1-sub__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv1-sub__all {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--ds-ink-2, #3d4d5c); font: 800 .78rem/1 var(--ds-font-sans, inherit);
  background: color-mix(in srgb, var(--ds-success-soft, #d9f3ef) 70%, #fff);
}
.sv1-sub__text { display: grid; gap: 1px; min-width: 0; width: 100%; line-height: 1.35; }
.sv1-sub strong {
  font-size: .68rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv1-sub small { color: var(--ds-ink-3, var(--b-muted)); font-size: .6rem; }
.sv1-sub[aria-pressed="true"] {
  background: color-mix(in srgb, var(--ds-success-soft, #d9f3ef) 85%, #fff);
  border-color: color-mix(in srgb, var(--ds-success, #0a7166) 45%, var(--ds-line, #d7dde5));
}
.sv1-sub[aria-pressed="true"] small { color: var(--ds-success, #0a7166); }
.sv1-sub--clear { width: 92px; }
.sv1-sub--clear strong { font-size: .64rem; }

.sv3-guide {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; margin-top: 14px; padding: 8px 12px;
  border: 1px solid var(--ds-line-2); border-radius: 18px;
  background: color-mix(in srgb, var(--ds-ai-soft) 55%, var(--ds-surface-1));
}
.sv3-guide__icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; background: var(--ds-surface-1); color: var(--ds-ai);
}
.sv3-guide__icon svg { width: 19px; height: 19px; }
.sv3-guide__copy { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; line-height: 1.5; }
.sv3-guide__copy strong { color: var(--ds-ink-1); font-size: .84rem; }
.sv3-guide__copy small { color: var(--ds-ink-2); font-size: .76rem; }
.sv3-guide button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; margin-inline-start: auto; padding: 0 12px;
  border: 1px solid var(--ds-ai-line); border-radius: 12px;
  background: var(--ds-surface-1); color: var(--ds-ai);
  font: 700 .77rem/1.3 var(--ds-font-sans); cursor: pointer;
}
.sv3-guide button svg { width: 14px; height: 14px; }
.sv3-guide button:hover { background: var(--ds-ai-soft); }
.sv3-guide button:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }

@media (max-width: 760px) {
  .sv1-catnav { margin-top: 14px; gap: 8px; }
  .sv1-sub { width: 78px; padding: 7px 5px 9px; border-radius: 16px; }
  .sv1-sub__media { width: 46px; height: 46px; border-radius: 14px; }
  .sv1-sub strong { font-size: .64rem; }
  .sv1-sub small { font-size: .58rem; }
  .sv1-sub--clear { width: 84px; }
  .sv3-guide { gap: 9px; min-height: 54px; margin-top: 12px; padding: 8px 10px; }
  .sv3-guide__icon { width: 34px; height: 34px; }
  .sv3-guide__copy { display: grid; gap: 0; }
  .sv3-guide__copy strong { font-size: .77rem; }
  .sv3-guide__copy small { display: none; }
  .sv3-guide button { min-height: 36px; padding-inline: 10px; font-size: .72rem; }
}

@media (max-width: 380px) { .sv3-guide__icon { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .sv1-sub, .sv1-sub:hover { transition: none; transform: none; }
}

/* ---------- Cards ---------- */
.sv2-card { position: relative; }
.sv2-card .sv1-card__media {
  position: relative; z-index: 1; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, #fff 55%, transparent), transparent 55%),
    var(--ds-cream-100);
}
.sv2-card__shot {
  position: relative; z-index: 1;
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.sv2-card__shot:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: -4px; }
.sv2-card__stage { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.sv2-card__kicker, .sv2-pd__kicker {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0;
}
.sv2-card__kicker small, .sv2-pd__kicker small {
  color: #a44c3f; font: 750 .67rem/1.5 var(--ds-font-sans);
}
.sv2-compare-btn {
  position: relative; z-index: 2; flex: none;
  min-height: 30px; padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--ds-success) 35%, var(--ds-line));
  border-radius: 999px;
  color: var(--ds-success); background: color-mix(in srgb, var(--ds-success-soft) 80%, #fff);
  font: 750 .68rem/1 var(--ds-font-sans); cursor: pointer;
}
.sv2-compare-btn[aria-pressed="true"] {
  color: #fff; background: var(--ds-success); border-color: transparent;
}
.sv2-compare-btn:disabled { opacity: .45; cursor: not-allowed; }
.sv2-name {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start; gap: 4px 10px; min-width: 0; margin: 6px 0 4px;
  text-align: right;
}
.sv2-name--stack { display: grid; grid-template-columns: 1fr; gap: 2px; }
.sv2-name__fa, .sv2-name__en { display: block; min-width: 0; overflow-wrap: anywhere; }
.sv2-name__fa { color: var(--ds-ink-1); font-weight: 850; }
.sv2-name__en {
  color: #526576; font: 750 .74rem/1.5 Arial, sans-serif;
  text-align: left; unicode-bidi: isolate;
}
.sv2-name--stack .sv2-name__en { text-align: right; }
.sv2-card h3.sv2-name {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin-block: 6px 3px;
  font: inherit;
}
.sv2-card .sv2-name__fa { font-size: 1rem; line-height: 1.45; }
.sv2-card .sv2-name__en { font-size: .73rem; font-weight: 600; text-align: right; }
.sv2-open {
  display: grid; width: 100%; padding: 0;
  border: 0; background: none; color: inherit;
  font: inherit; text-align: inherit; cursor: pointer;
  gap: inherit; grid-template-columns: inherit;
}
.sv2-open::after { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; }
.sv2-open:focus-visible { outline: none; }
.sv2-card:has(.sv2-open:focus-visible) { outline: 3px solid var(--ds-focus); outline-offset: 3px; }
.sv2-card .sv1-add, .sv2-card .sv2-compare-btn { z-index: 2; }
.sv2-card .sv1-price small { font-variant-numeric: tabular-nums; }
.cart-line .sv2-name { margin: 0 0 2px; }
.lx-card-body .sv2-name { margin: 0 0 6px; font-size: .95rem; }

.sv1-add.sv2-ask { color: var(--ds-info); background: var(--ds-info-soft); text-decoration: none; }
.sv1-add.sv2-ask svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.sv1-add.sv2-ask:hover { color: var(--ds-ink-inverse); background: var(--ds-info); }
.sv1-add:focus-visible, .sv1-btn:focus-visible, .sv2-pill:focus-visible, .sv2-mini:focus-visible, .sv2-pd__close:focus-visible {
  outline: 3px solid var(--ds-focus); outline-offset: 2px;
}

.sv2-more { margin-top: 18px; display: flex; justify-content: center; }
.sv2-more[hidden] { display: none; }
.sv2-more .sv1-btn { min-width: 220px; }
.sv2-more svg { width: 16px; height: 16px; transform: rotate(90deg); }

/* ---------- Product dialog ---------- */
.sv2-pd {
  width: min(1000px, calc(100vw - 32px));
  max-width: none; max-height: min(90vh, 820px);
  margin: auto; padding: 0;
  overflow: hidden;
  color: var(--ds-ink-1);
  background: var(--ds-surface-1);
  border: 0; border-radius: var(--ds-radius-xl);
  box-shadow: 0 30px 80px -20px rgba(12, 21, 35, .45);
}
.sv2-pd[open] { display: flex; animation: sv2In .32s cubic-bezier(.2, .8, .2, 1); }
.sv2-pd::backdrop { background: var(--ds-scrim); backdrop-filter: blur(3px); }
@keyframes sv2In { from { opacity: 0; transform: translateY(18px) scale(.985); } }
html:has(.sv2-pd[open]) { overflow: hidden; }

.sv2-pd__close {
  position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  color: var(--ds-ink-1); background: var(--ds-surface-glass);
  box-shadow: var(--ds-elev-1); cursor: pointer;
}
.sv2-pd__close svg { width: 18px; height: 18px; }
.sv2-pd__close:hover { background: var(--ds-surface-2); }

.sv2-pd__body {
  flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start;
  gap: 28px; padding: 24px;
}

.sv2-pd__gallery { position: sticky; top: 0; display: grid; gap: 10px; }
.sv2-pd__frame {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--ds-radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #fff 50%, transparent), transparent 60%),
    var(--ds-cream-100);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-line) 70%, transparent);
}
.sv2-pd__frame { aspect-ratio: 1; background: #fff; touch-action: pan-y; }
.sv2-pd__frame > img { width: 100%; height: 100%; object-fit: contain; }
.sv2-photo-set { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.sv2-photo-set__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv2-photo-set__product { position: absolute; left: 20%; bottom: 17%; width: 60%; height: 70%; object-fit: contain; object-position: center bottom; filter: drop-shadow(5px 7px 4px #35291e24); }
.sv2-photo-set--mint .sv2-photo-set__product { bottom: 25%; height: 60%; }
.sv2-pd__thumbs { display: flex; justify-content: center; gap: 10px; }
.sv2-pd__thumbs button { width: 62px; aspect-ratio: 1; padding: 3px; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; }
.sv2-pd__thumbs button > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.sv2-pd__thumbs .sv2-photo-set { border-radius: 9px; }
.sv2-pd__thumbs button[aria-pressed="true"] { border-color: var(--ds-teal-600, #087f75); }
.sv2-pd__thumbs button:focus-visible { outline: 3px solid var(--ds-ink-1, #172f35); outline-offset: 3px; }
.sv2-pd__count { text-align: center; color: var(--ds-ink-3); font-size: .72rem; font-variant-numeric: tabular-nums; }
.sv2-pd__photo-note { margin: 0; color: var(--ds-ink-3); font-size: .74rem; line-height: 1.9; }
.sv2-pd__photo-note a { color: var(--ds-info); text-underline-offset: 3px; }

.sv2-pd__info { min-width: 0; display: grid; gap: 14px; padding-top: 6px; padding-inline-end: 44px; }
.sv2-pd__info h2.sv2-name {
  margin: -4px 0 0;
  font: var(--ds-weight-display) var(--ds-text-2xl)/var(--ds-leading-tight) var(--ds-font-display);
  text-wrap: balance;
}
.sv2-pd__info h2.sv2-name .sv2-name__en { font-size: clamp(.9rem, 2vw, 1.1rem); }
.sv2-pd__desc { margin: -4px 0 0; color: var(--ds-ink-2); font-size: .92rem; line-height: 1.8; }

.sv2-pd__about {
  margin: 0;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
  overflow: clip;
}
.sv2-pd__about > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 9px 14px;
  list-style: none; cursor: pointer;
  color: var(--ds-ink-1);
}
.sv2-pd__about > summary::-webkit-details-marker { display: none; }
.sv2-pd__about-sum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sv2-pd__about-sum b { font-size: .83rem; font-weight: 750; }
.sv2-pd__about-sum small { color: var(--ds-ink-3); font-size: .7rem; font-weight: 500; }
.sv2-pd__about-chev {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sv2-pd__about-chev { flex: none; transition: transform .28s ease; }
.sv2-pd__about[open] > summary { border-bottom: 1px solid color-mix(in srgb, var(--ds-line) 80%, transparent); }
.sv2-pd__about[open] .sv2-pd__about-chev { transform: rotate(180deg); }
.sv2-pd__about > summary:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: -3px; }
.sv2-pd__about-body {
  display: grid;
  padding: 3px 14px 11px;
}
@media (prefers-reduced-motion: no-preference) {
  .sv2-pd__about[open] .sv2-pd__about-body { animation: sv2-guide-in .2s ease-out both; }
}
@keyframes sv2-guide-in {
  from { opacity: .65; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.sv2-pd__about-box {
  padding: 10px 0;
  border-bottom: 1px solid var(--ds-line);
}
.sv2-pd__about-box:last-child { border-bottom: 0; }
.sv2-pd__about-box strong {
  display: block;
  color: var(--ds-ink-2);
  font-size: .73rem; font-weight: 750;
}
.sv2-pd__about-box p {
  margin: 3px 0 0;
  color: var(--ds-ink-1);
  font-size: .83rem; line-height: 1.7;
}

/* ---------- Reviews / Q&A ---------- */
.sv2-voice {
  display: grid; gap: 12px;
  padding: 14px;
  border-radius: calc(var(--ds-radius-lg) + 2px);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--ds-ink-1) 4%, var(--ds-surface-2)), var(--ds-surface-2));
  box-shadow: inset 0 0 0 1px var(--ds-line-2);
}
.sv2-voice__head b { display: block; font-size: .95rem; font-weight: 750; }
.sv2-voice__head small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--ds-ink-3); font-size: .74rem; }
.sv2-voice__tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: var(--ds-radius-pill);
  background: var(--ds-surface-1);
  box-shadow: inset 0 0 0 1px var(--ds-line);
}
.sv2-voice__tabs button {
  min-height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--ds-radius-pill);
  color: var(--ds-ink-2); background: transparent;
  font: 650 .84rem/1 var(--ds-font-sans); cursor: pointer;
}
.sv2-voice__tabs button em {
  min-width: 1.5rem; padding: 2px 7px;
  border-radius: 999px;
  color: var(--ds-ink-3); background: var(--ds-surface-2);
  font-style: normal; font-size: .72rem; font-weight: 750;
}
.sv2-voice__tabs button.is-on {
  color: var(--ds-ink-1); background: var(--ds-surface-1);
  box-shadow: var(--ds-elev-1);
}
.sv2-voice__tabs button.is-on em { color: var(--ds-ink-inverse); background: var(--ds-info); }
.sv2-voice__tabs button:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.sv2-voice__panel { display: grid; gap: 10px; }
.sv2-voice__list { display: grid; gap: 8px; }
.sv2-voice-card {
  display: grid; gap: 8px;
  padding: 12px 14px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
  box-shadow: inset 0 0 0 1px var(--ds-line);
}
.sv2-voice-card.is-pending { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-warning) 45%, var(--ds-line)); }
.sv2-voice-card > header { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.sv2-voice-av {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ds-ink-inverse); background: color-mix(in srgb, var(--ds-info) 75%, var(--ds-ink-1));
  font-size: .9rem; font-weight: 800;
}
.sv2-voice-card header strong { display: block; font-size: .86rem; }
.sv2-voice-card header small { color: var(--ds-ink-3); font-size: .72rem; }
.sv2-voice-card > p { margin: 0; color: var(--ds-ink-1); font-size: .86rem; line-height: 1.85; }
.sv2-stars { display: inline-flex; gap: 2px; }
.sv2-stars i {
  width: 11px; height: 11px;
  background: var(--ds-line-2);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.sv2-stars i.is-on { background: #f0a202; }
.sv2-voice-card--qa { gap: 10px; }
.sv2-voice-q, .sv2-voice-a { margin: 0; display: grid; gap: 4px; font-size: .86rem; line-height: 1.85; }
.sv2-voice-q span, .sv2-voice-a span {
  width: fit-content; padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem; font-weight: 750;
}
.sv2-voice-q span { color: var(--ds-info); background: var(--ds-info-soft); }
.sv2-voice-a span { color: var(--ds-success); background: var(--ds-success-soft); }
.sv2-voice-wait, .sv2-voice-empty, .sv2-voice-hint, .sv2-voice-loading {
  margin: 0; color: var(--ds-ink-3); font-size: .8rem; line-height: 1.8;
}
.sv2-voice-form {
  display: grid; gap: 10px;
  padding: 14px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
  box-shadow: inset 0 0 0 1px var(--ds-line-2);
}
.sv2-voice-form h3 { margin: 0; font-size: .9rem; font-weight: 750; }
.sv2-voice-form > p { margin: -4px 0 0; color: var(--ds-ink-3); font-size: .74rem; line-height: 1.7; }
.sv2-voice-form label { display: grid; gap: 6px; color: var(--ds-ink-2); font-size: .78rem; font-weight: 650; }
.sv2-voice-form input, .sv2-voice-form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--ds-line-2); border-radius: 12px;
  color: var(--ds-ink-1); background: var(--ds-surface-2);
  font: inherit;
}
.sv2-voice-form textarea { min-height: 88px; resize: vertical; }
.sv2-voice-form input:focus-visible, .sv2-voice-form textarea:focus-visible {
  outline: 3px solid var(--ds-focus); outline-offset: 1px;
}
.sv2-voice-rate {
  margin: 0; padding: 0; border: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sv2-voice-rate legend { padding: 0; margin-inline-end: 4px; color: var(--ds-ink-2); font-size: .78rem; font-weight: 650; }
.sv2-voice-rate label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  border-radius: 999px; cursor: pointer;
  background: var(--ds-surface-2); box-shadow: inset 0 0 0 1px var(--ds-line);
}
.sv2-voice-rate input { position: absolute; opacity: 0; pointer-events: none; }
.sv2-voice-rate label:has(input:checked) {
  color: var(--ds-ink-inverse); background: var(--ds-info);
  box-shadow: none;
}
.sv2-voice-form__msg { margin: 0; color: var(--ds-success); font-size: .8rem; }
.sv2-voice-form .sv1-btn { justify-self: start; min-height: 44px; }

.sv2-pd__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sv2-pd__facts div { padding: 10px 12px; border-radius: var(--ds-radius-md); background: var(--ds-surface-2); }
.sv2-pd__facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sv2-pd__facts dt { color: var(--ds-ink-3); font-size: .72rem; }
.sv2-pd__facts dd { margin: 2px 0 0; color: var(--ds-ink-1); font-size: .88rem; font-weight: 650; }

.sv2-pd__clinical { margin: 0; display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--ds-radius-md); color: var(--ds-info); background: var(--ds-info-soft); font-size: .82rem; line-height: 1.85; }
.sv2-pd__clinical.is-sun { color: var(--ds-warning); background: var(--ds-warning-soft); }
.sv2-pd__clinical svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }
.sv2-pd__clinical span { color: var(--ds-ink-1); }

.sv2-pd__buy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 16px; border-radius: var(--ds-radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ds-success) 8%, var(--ds-surface-1)), var(--ds-surface-1) 55%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-success) 22%, var(--ds-line-2));
}
.sv2-pd__buy-copy { min-width: 0; display: grid; gap: 4px; }
.sv2-pd__buy .sv1-price strong { font-size: 1.3rem; }
.sv2-pd__buy-note { color: var(--ds-ink-3); font-size: .74rem; line-height: 1.7; }
.sv2-pd__buy .sv1-btn { min-height: 48px; padding-inline: 22px; text-decoration: none; }
.sv2-pd__buy .sv1-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sv2-pd__buy .sv1-btn.sv2-ask { color: var(--ds-ink-inverse); background: var(--ds-info); }
.sv2-pd__buy .sv1-btn.is-added { background: var(--ds-success); }

.sv2-pd__more { display: grid; gap: 10px; }
.sv2-pd__more-head { display: grid; gap: 2px; }
.sv2-pd__more h3 { margin: 0; font-size: .92rem; font-weight: 750; }
.sv2-pd__more p { margin: 0; color: var(--ds-ink-3); font-size: .74rem; line-height: 1.7; }
.sv2-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sv2-pill {
  min-height: 48px; padding: 6px 14px;
  display: grid; text-align: center; line-height: 1.45;
  border: 1px solid var(--ds-line-2); border-radius: var(--ds-radius-md);
  color: var(--ds-ink-1); background: var(--ds-surface-1);
  font-family: var(--ds-font-sans); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.sv2-pill strong { font-size: .84rem; }
.sv2-pill small { color: var(--ds-ink-3); font-size: .7rem; }
.sv2-pill:hover { border-color: var(--ds-success); background: var(--ds-success-soft); }
.sv2-minis { display: grid; gap: 8px; }
.sv2-mini-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 6px; padding-inline-end: 8px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
  box-shadow: inset 0 0 0 1px var(--ds-line);
}
.sv2-mini-card .sv1-add, .sv2-mini-card .sv2-ask {
  position: relative; z-index: 1;
  min-width: 72px; min-height: 40px; padding: 0 10px;
  font-size: .78rem;
}
.sv2-mini-card .sv1-add.is-added { background: var(--ds-success); }
.sv2-mini {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 0; border: 0; border-radius: 12px;
  color: var(--ds-ink-1); background: transparent;
  font-family: var(--ds-font-sans); text-align: start; cursor: pointer;
}
.sv2-mini img { flex: none; width: 76px; height: 57px; object-fit: cover; border-radius: 10px; background: var(--ds-cream-100); }
.sv2-mini span { min-width: 0; display: grid; line-height: 1.6; }
.sv2-mini strong { font-size: .84rem; }
.sv2-mini small { color: var(--ds-ink-3); font-size: .72rem; }
.sv2-mini-card:hover { box-shadow: inset 0 0 0 1px var(--ds-line-2), var(--ds-elev-1); }

/* ---------- Small screens: the dialog becomes a bottom sheet ---------- */
@media (max-width: 760px) {
  .sv2-pd {
    width: 100vw; max-height: 92dvh;
    margin: auto 0 0; border-radius: 26px 26px 0 0;
  }
  .sv2-pd[open] { animation-name: sv2Sheet; }
  @keyframes sv2Sheet { from { transform: translateY(40px); opacity: .4; } }
  .sv2-pd__body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
  .sv2-pd__gallery { position: static; }
  .sv2-pd__info { padding-inline-end: 0; gap: 12px; }
  .sv2-pd__info h2 { margin-top: -6px; font-size: 1.3rem; }
  .sv2-pd__close { top: 22px; inset-inline-end: 22px; }
  .sv2-pd__buy { position: sticky; bottom: 0; z-index: 2; margin-inline: -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: 0 -10px 24px -16px rgba(12, 21, 35, .4); }
  .sv2-pd__buy .sv1-btn { flex: 1; }
  .sv2-pd__buy .sv1-price strong { font-size: 1.1rem; }
  .sv2-mini img { width: 64px; height: 48px; }
  .sv2-mini-card { grid-template-columns: 1fr; }
  .sv2-mini-card .sv1-add, .sv2-mini-card .sv2-ask { width: 100%; }
  .sv2-more .sv1-btn { width: 100%; }
}

/* ---------- Compare ---------- */
.sv2-compare-tray {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 18px 0 0; padding: 14px 16px;
  color: #f4f7fb;
  background: linear-gradient(135deg, #132238, #1b334d 55%, #123f4b);
  border-radius: 22px;
  box-shadow: 0 18px 40px -18px rgba(12, 21, 35, .55);
}
.sv2-compare-tray[hidden] { display: none !important; }
.sv2-compare-tray__copy { min-width: 0; flex: 1 1 220px; }
.sv2-compare-tray__copy strong { display: block; font-size: .92rem; }
.sv2-compare-tray__copy p {
  margin: 4px 0 0; color: color-mix(in srgb, #fff 72%, transparent);
  font-size: .74rem; line-height: 1.6; overflow-wrap: anywhere;
}
.sv2-compare-tray__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sv2-compare-tray .sv1-btn { min-height: 42px; }
.sv2-compare-tray .sv1-btn--soft {
  color: #fff; background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 35%, transparent);
}
.sv2-compare-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(90vh, 820px);
  margin: auto; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--ds-radius-xl);
  background: var(--ds-surface-1); color: var(--ds-ink-1);
  box-shadow: 0 30px 80px -20px rgba(12, 21, 35, .45);
}
.sv2-compare-dialog[open] { display: grid; grid-template-rows: auto 1fr; }
.sv2-compare-dialog::backdrop { background: var(--ds-scrim); backdrop-filter: blur(3px); }
.sv2-compare-dialog__head { padding: 22px 56px 10px 22px; }
.sv2-compare-dialog__head h2 { margin: 0; font: 850 1.25rem/1.4 var(--ds-font-display); }
.sv2-compare-dialog__head p { margin: 6px 0 0; color: var(--ds-ink-3); font-size: .82rem; line-height: 1.7; }
.sv2-compare-dialog__body { overflow: auto; padding: 8px 18px 20px; }
.sv2-compare-empty, .sv2-compare-swipe, .sv2-compare-footnote {
  margin: 0 0 12px; color: var(--ds-ink-3); font-size: .78rem; line-height: 1.7;
}
.sv2-compare-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.sv2-compare-table {
  width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0;
  font-size: .84rem;
}
.sv2-compare-table caption { caption-side: bottom; padding-top: 10px; color: var(--ds-ink-3); font-size: .72rem; text-align: right; }
.sv2-compare-table th, .sv2-compare-table td {
  padding: 12px; border-bottom: 1px solid var(--ds-line);
  vertical-align: top; text-align: right;
}
.sv2-compare-table thead th { border-bottom-color: var(--ds-line-2); background: var(--ds-surface-2); }
.sv2-compare-table tbody th { width: 8.5rem; color: var(--ds-ink-3); font-weight: 700; background: color-mix(in srgb, var(--ds-surface-2) 65%, transparent); }
.sv2-compare-product { display: grid; gap: 8px; justify-items: start; min-width: 140px; }
.sv2-compare-product img {
  width: 88px; height: 88px; object-fit: contain;
  border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--ds-line);
}
.sv2-compare-product .sv2-name { margin: 0; font-size: .9rem; }
.sv2-compare-product small { color: var(--ds-ink-3); }
.sv2-compare-product button {
  min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px;
  color: #8a3b3b; background: #ffe8e8; font: 700 .72rem/1 var(--ds-font-sans); cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sv2-pd[open] { animation: none; }
  .sv2-pill, .sv2-mini, .sv2-card__stage { transition: none; }
  .sv2-pd__about-chev { transition: none; }
}

@media (max-width: 600px) {
  .sv2-name { grid-template-columns: 1fr; gap: 4px; }
  .sv2-name__en { text-align: right; }
  .sv2-compare-tray { border-radius: 18px; padding: 12px; }
}

/* ---------- Ask Mio — Soft UI cream/coral chip strip (shop only) ---------- */
.shop-page .ds-ask-inline,
.shop-page .ds-ask-inline--shop {
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0 0;
  margin-inline: clamp(24px, 3.6vw, 48px);
  padding: 4px 4px 4px 8px;
  max-width: min(620px, calc(100% - 2 * clamp(24px, 3.6vw, 48px)));
  background: color-mix(in srgb, #fce5ba 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--ds-coral-500, #ff6b5e) 18%, var(--ds-cream-300, #ddd6cc));
  border-radius: 14px;
  box-shadow: none;
}
.shop-page .ds-ask-inline__lead {
  color: var(--ds-action-ink, #a83428);
  font-size: 11.5px;
  gap: 5px;
}
.shop-page .ds-ask-inline__lead > span:last-child {
  text-decoration: none;
}
.shop-page .ds-ask-inline__lead .ds-askbtn__spark { display: none; }
.shop-page .ds-ask-inline__face {
  width: 20px; height: 20px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-coral-500, #ff6b5e) 22%, transparent);
}
.shop-page .ds-ask-inline__chips { gap: 5px; }
.shop-page .ds-ask-inline button {
  min-height: 28px;
  padding: 0 11px;
  color: var(--ds-ink-2, #3d4d5c);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ds-cream-300, #ddd6cc) 70%, var(--ds-line, #d7dde5));
  border-radius: 999px;
  font: 600 11.5px / 1 var(--ds-font-sans, inherit);
  text-decoration: none;
  box-shadow: none;
}
.shop-page .ds-ask-inline button:hover {
  color: var(--ds-action-ink, #a83428);
  background: var(--ds-action-soft, #ffe6df);
  border-color: color-mix(in srgb, var(--ds-coral-500, #ff6b5e) 30%, var(--ds-line, #d7dde5));
}
.shop-page .ds-ask-inline button:focus-visible {
  outline: 2px solid var(--ds-focus, #20c9b5);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .shop-page .ds-ask-inline,
  .shop-page .ds-ask-inline--shop {
    margin-inline: 0;
    max-width: none;
  }
}

/* Hidden feedback tabs must remain hidden even when panel layout uses grid. */
.sv2-voice__panel[hidden] { display: none !important; }

/* Price range and order-method filters use the shop's shared design tokens. */
.sv4-price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.sv4-price-range label { display: grid; gap: 6px; min-width: 0; color: var(--ds-ink-2); font-size: .72rem; }
.sv4-price-range input { width: 100%; min-width: 0; min-height: 44px; padding: 9px; border: 1px solid var(--ds-line-2); border-radius: 12px; background: var(--ds-surface-1); color: var(--ds-ink-1); font: inherit; direction: ltr; text-align: center; }
.sv4-price-range input:focus-visible { outline: 3px solid var(--ds-focus, var(--ds-action)); outline-offset: 3px; }
.sv4-price-range input[aria-invalid="true"] { border-color: var(--ds-danger, #a53a32); }
.sv4-price-error { color: var(--ds-danger, #a53a32); font-size: .72rem; line-height: 1.8; margin: 10px 0 0; }
.sv4-price-error[hidden] { display: none; }
.sv4-range-clear { min-height: 44px; margin-top: 5px; padding-inline: 0; text-align: start; }

/* Source-backed catalog media and dense facets (ADR-0047). Package pixels remain untouched. */
.sv4-facet-options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 3px; }
.sv4-facet-options .sv1-opt[hidden] { display: none; }
.sv4-brand-search { width: 100%; min-height: 44px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-surface-1); color: var(--ds-ink-1); font: inherit; }
.sv4-brand-search:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.sv2-card .sv4-source-media { background: radial-gradient(ellipse at 78% 18%,#eaf4ef88,transparent 58%),linear-gradient(155deg,#fff 25%,#f8f7f2); isolation: isolate; }
.sv4-source-media .sv2-card__shot { display: grid; place-items: center; padding: 12px 14px; }
.sv4-source-media .sv2-card__stage { width: 100%; height: 100%; object-fit: contain; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.sv4-source-media--stick .sv2-card__stage { transform: rotate(-24deg) scale(1.08); }
.sv4-media-badge { position: absolute; inset-inline: 12px; bottom: 7px; justify-self: start; width: fit-content; padding: 3px 8px; border: 1px solid #dfebe6; border-radius: 8px; background: #fffffff2; color: #425e55; font-size: .67rem; line-height: 1.65; pointer-events: none; }
.sv4-studio-view { display: grid; place-items: center; aspect-ratio: 1; width: 100%; padding: 12%; background: #f5f1e9 url('/assets/products/snapp/studio-mint-v1.png') center / cover; }
.sv4-studio-view .sv4-studio-view__product { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10px; border-radius: 18px; box-shadow: 0 16px 32px -20px #29483d; }
.sv1-sub__media img { object-fit: contain; }
.sv2-name__en:empty { display: none; }

.sv1-opt { min-height: 44px; }
.sv1-filters__close { min-width: 44px; min-height: 44px; }
@media (max-width: 400px) {
  .sv1-toolbar { flex-wrap: wrap; }
  .sv1-sort { flex: 1; min-width: 0; }
  .sv1-sort select { width: 100%; min-width: 0; }
  .sv1-count { flex: 0 0 100%; text-align: end; }
}
@media (min-width: 901px) {
  .sv1-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sv1-cat { min-width: 0; }
  .sv1-cat strong { white-space: normal; }
}

/* Model-level listing and explicit variant selection. */
.sv139-options { position:relative; z-index:2; width:100%; padding:12px 4px; border:0; border-top:1px solid var(--line,#d7e3dc); background:transparent; color:var(--ink,#163c34); font:inherit; text-align:right; cursor:pointer; min-height:44px; }
.sv139-picker { margin:16px 0; padding:16px; border:1px solid var(--line,#d7e3dc); border-radius:18px; min-width:0; }
.sv139-picker legend { font-weight:700; padding:0 6px; }
.sv139-picker > div { display:flex; flex-wrap:wrap; gap:8px; }
.sv139-picker .sv2-pill { flex:1 1 135px; min-height:64px; }
.sv139-picker [aria-pressed=true] { outline:2px solid var(--mint,#17654b); outline-offset:2px; }
.sv139-picker :focus-visible,.sv139-options:focus-visible { outline:3px solid #177357; outline-offset:3px; }
.sv2-card .sv4-source-media { background:#f6f5ee url('/assets/products/studio-v139.webp') center/cover; }
.sv4-source-media .sv2-card__shot { padding:22px; }
.sv4-source-media--stick .sv2-card__stage { transform:none; }
.sv1-facet[hidden] { display:none; }

/* Natural, uncropped product photography. Square frame reserves stable space. */
.sv2-card .sv1-card__media {
  aspect-ratio: 1 / 1;
  background: #fff;
  isolation: isolate;
}
.sv2-card .sv1-card__media .sv2-card__shot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(16px, 6%, 26px);
  background: transparent;
}
.sv2-card .sv1-card__media .sv2-card__stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: normal;
  transform: none;
  transition: none;
}
.sv2-card .sv140-cutout .sv2-card__stage {
  filter: drop-shadow(0 5px 4px rgb(31 40 34 / 10%));
}

/* Stable catalogue rows, including long bilingual names and variant controls. */
.sv2-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.sv2-card[hidden] { display: none; }
.sv2-card .sv1-card__media { flex: 0 0 auto; width: 100%; aspect-ratio: 1; height: auto; }
.sv2-card .sv1-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sv2-card h3.sv2-name { min-height: 5.5em; }
.sv2-card .sv2-name__fa { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv2-card .sv2-name__en { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv2-card .sv139-options { margin-top: auto; }
.sv1-opt[hidden], .sv1-facet[hidden] { display: none; }
#shopProducts { grid-auto-rows: 1fr; }
.sv2-card .sv1-card__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sv2-card .sv1-card__foot { margin-top: auto; }
#shopProducts { grid-auto-rows: auto; }
.sv2-card h3.sv2-name { min-height: 0; }
.sv2-card .sv139-options { display: none; }
.sv2-amount { display: inline-flex; align-items: baseline; gap: .25em; white-space: nowrap; }
.sv2-from { font-weight: 750; color: var(--ds-ink-2, #3d4d5c); }
.sv1-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
@media (max-width: 760px) {
  .sv3-guide { display: none; }
  .sv2-card .sv1-card__specs { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}
