/* SANFER dealer Phase-1 — mobile-first. Desktop polish later. */
:root {
  color-scheme: only light;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
  --bg: #f6f5f3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e6e3;
  --brand: #c41230; /* SANFER-ish red accent */
  --brand-dark: #9a0e26;
  --metal: #2c333a;
  --metal-soft: #4a5560;
  --ok: #1a7f4b;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  --sticky-h: 64px;
  --max: 480px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}
html {
  color-scheme: only light;
  background-color: #f6f5f3;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  background: #f6f5f3;
  background-color: #f6f5f3;
  color-scheme: only light;
  padding-bottom: calc(var(--sticky-h) + 20px);
}

/* Defeat phone “force dark / 网页深色” that ignores color-scheme alone */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
    --bg: #f6f5f3;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e8e6e3;
  }
  html, body {
    color-scheme: only light;
    background: #f6f5f3 !important;
    background-color: #f6f5f3 !important;
    color: #1a1a1a !important;
  }
  .topbar,
  .drawer,
  .product-card,
  .filter-chip,
  .site-footer,
  .sticky-bar,
  .section,
  .wrap,
  main,
  header,
  footer {
    color-scheme: only light;
    forced-color-adjust: none;
  }
  .topbar {
    background: rgba(255, 255, 255, 0.94) !important;
  }
  .product-card,
  .product-card--list,
  .product-card--featured {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }
  .filter-chip {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }
  .filter-chip.is-active {
    background: #c41230 !important;
    color: #ffffff !important;
  }
  .sticky-bar {
    background: rgba(255, 255, 255, 0.96) !important;
  }
  .site-footer {
    background: #ffffff !important;
    color: #1a1a1a !important;
  }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.topbar .dealer-badge {
  flex: 1;
  min-width: 0;
}
.topbar .dealer-badge strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: var(--brand);
}
.topbar .dealer-badge span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.drawer.open { display: block; }
.drawer a {
  display: block;
  padding: 14px 22px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.drawer a:active { background: #fafafa; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #1c2228 0%, #2d3640 55%, #3a2328 100%);
  color: #fff;
  padding: 28px 0 36px;
}
.hero .wrap { padding-top: 8px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,18,48,0.22);
  color: #ffd0d7;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.hero p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
}
.hero p + p {
  margin: 0 0 22px;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 17px; }

/* Sections */
.section {
  padding: 28px 0 8px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.section-head .more {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.section-sub {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Product cards — large horizontal */
.product-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 140px;
}
.product-card .pic {
  background: linear-gradient(180deg, #f3f3f3, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.product-card .pic img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
}
.product-card .body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: #fde8ec;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.product-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.3;
}
.product-card .model {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-card .slogan {
  font-size: 13px;
  color: var(--metal-soft);
  margin: 0 0 10px;
}
.product-card .link {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}

/* Category teaser */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 110px;
  background: var(--metal);
  color: #fff;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.cat-card .label {
  position: relative;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
}
.cat-card strong {
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
.cat-card span {
  font-size: 12px;
  opacity: 0.85;
}
.cat-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Promo banner */
.promo-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.promo-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.promo-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,0.72), rgba(20,20,20,0.25));
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-banner h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.promo-banner p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* CTA strip */
.cta-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.cta-strip h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.cta-strip p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.cta-strip .row {
  display: grid;
  gap: 10px;
}

/* Footer */
.site-footer {
  padding: 28px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer .disclaimer {
  background: #fff7f8;
  border: 1px solid #f3d0d6;
  color: #7a2434;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.site-footer .meta { line-height: 1.7; }

/* Sticky bottom bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.sticky-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sticky-bar .btn { min-height: 48px; border-radius: 12px; }
.sticky-bar .btn-call {
  background: var(--metal);
  color: #fff;
}
.sticky-bar .btn-wechat {
  background: #07c160;
  color: #fff;
}

/* Forms */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.page-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.form-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .req { color: var(--brand); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(196,18,48,0.25);
  border-color: var(--brand);
  background: #fff;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Product detail */
.detail-pic {
  background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}
.detail-pic img {
  max-height: 280px;
  width: auto;
}
.detail-body {
  padding-top: 18px;
  padding-bottom: 28px;
}
.detail-body.wrap {
  padding-left: 22px;
  padding-right: 22px;
}
.detail-body .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: #fde8ec;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.detail-body h1 {
  margin: 0 0 4px;
  font-size: 26px;
}
.detail-body .model {
  color: var(--muted);
  margin-bottom: 10px;
}
.detail-body .slogan {
  font-size: 15px;
  color: var(--ink);
  font-weight: 800;
  margin: 0 0 6px;
  padding: 12px 14px;
  line-height: 1.55;
  background: #f7f7f7;
  border-radius: 12px;
  box-sizing: border-box;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  min-height: 36px;
}
.params {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.params th,
.params td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.params th {
  width: 88px;
  color: var(--muted);
  font-weight: 500;
  background: #fafafa;
}
.params tr:last-child th,
.params tr:last-child td { border-bottom: none; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sticky-h) + 24px);
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* WeChat modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask.open { display: flex; }
.modal {
  width: 100%;
  max-width: var(--max);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
}
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.modal .wechat-id {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
  user-select: all;
}

.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Single-SKU featured card — match product detail hero size */
.product-rail--single {
  display: block;
}
.product-rail--single > .product-card + .product-card {
  margin-top: 14px;
}
.list-more {
  margin: 4px 0 12px;
}
.product-card--featured {
  display: block;
  max-width: 100%;
  grid-template-columns: none;
  min-height: 0;
}
.product-card--featured .pic {
  aspect-ratio: auto;
  background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
  padding: 24px 16px;
  min-height: 280px;
}
.product-card--featured .pic img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
}
.product-card--featured .body {
  padding: 16px 22px 18px;
}
.product-card--featured h3 {
  font-size: 22px;
}
.product-card--featured .model {
  font-size: 15px;
}
.product-card--featured .slogan {
  font-size: 15px;
}

/* —— Product IA: categories / list / empty —— */
.cat-grid--stack {
  grid-template-columns: 1fr;
  gap: 12px;
}
.cat-card {
  background: var(--cat-bg, var(--metal));
  transition: transform 0.15s ease;
}
.cat-card:active { transform: scale(0.98); }
.cat-card--touch .label,
.cat-card--lg .label {
  min-height: 128px;
  padding: 18px 22px;
}
.cat-card--lg {
  min-height: 128px;
}
.cat-card--lg strong {
  font-size: 20px;
  margin-bottom: 6px;
}
.cat-card--lg span {
  font-size: 13px;
  line-height: 1.4;
  max-width: 90%;
}
.cat-card--teaser {
  opacity: 0.92;
  border: 1px dashed rgba(255,255,255,0.28);
}
.cat-badge {
  display: inline-block;
  margin-top: 12px;
  align-self: flex-start;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  letter-spacing: 0.02em;
}

.list-crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.list-crumb a { color: var(--brand); font-weight: 600; }

.filter-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 14px;
  margin: 0 -4px 4px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.filter-chip b {
  font-size: 12px;
  color: var(--brand);
  background: #fde8ec;
  border-radius: 6px;
  padding: 1px 6px;
}
.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.filter-chip.is-active b {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--muted);
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.empty-state .btn { width: 100%; }

.product-card--list {
  /* large list treatment — same visual weight as featured */
  display: block;
  grid-template-columns: none;
  min-height: 0;
}
.product-card--list .pic {
  background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
  padding: 20px 16px;
  min-height: 220px;
}
.product-card--list .pic img {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.product-card--list .body { padding: 14px 22px 16px; }

.cat-pill {
  display: inline-block;
  font-size: 12px;
  color: var(--metal-soft);
  background: #f3f3f3;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.detail-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-crumbs a { color: var(--brand); font-weight: 600; }
.back-link--secondary {
  margin-left: 12px;
  color: var(--muted);
  font-weight: 500;
}

.footer-nav {
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--metal-soft);
  font-weight: 600;
}
.footer-nav a:active { color: var(--brand); }

.drawer a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
  background: #fff7f8;
}


/* Detail page — consumer-first layout */
.detail-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text, #222);
  margin: 0 0 8px;
}
.detail-block {
  margin-top: 22px;
}
.detail-block h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.pain-grid {
  display: grid;
  gap: 12px;
}
.pain-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e8e8e8);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: var(--shadow, none);
}
.pain-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--brand, #c41230);
}
.pain-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
.fit-list {
  margin: 0;
  padding: 0 0 0 1.2em;
}
.fit-list li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line, #e8e8e8);
  border-radius: 12px;
  padding: 4px 14px 4px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted, #888);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.detail-cta {
  margin-top: 24px;
  padding: 16px;
  background: #faf6f6;
  border-radius: 14px;
  border: 1px solid #f0e0e3;
}
.detail-cta h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.detail-cta p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.55;
}

/* Product gallery — peek next card so swipe is obvious */
.gallery-strip-wrap {
  background: linear-gradient(180deg, #f0f0f0, #e8e8e8);
  padding: 10px 0 6px;
}
.gallery-strip-hint {
  padding: 0 22px 8px;
  font-size: 12px;
  color: #888;
}
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 0 22px 14px;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc(100vw - 72px);
  max-width: 340px;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7f7f7;
}
.detail-gallery-block .dim-note {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 1.5;
}
.gallery-stack {
  display: grid;
  gap: 12px;
}
.gallery-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.gallery-card--dim img {
  background: #fafafa;
}
.gallery-card--long img {
  background: #fff;
}
.gallery-stack--long {
  margin-top: 10px;
}
.more-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.more-details > summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted, #888);
  font-weight: 500;
}
.more-details[open] > summary::after { content: "–"; }
.more-details[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 4px;
}
@media (min-width: 720px) {
  .gallery-strip-item {
    width: 300px;
    height: 260px;
  }
  .gallery-stack {
    gap: 16px;
  }
}


/* Placeholder cards / missing thumbs */
.product-card .tag + .tag { margin-left: 6px; }
.tag-muted {
  color: #5a6570 !important;
  background: #eef1f4 !important;
  font-weight: 600 !important;
}
.product-card--placeholder {
  opacity: 0.98;
}
.product-card--placeholder .pic {
  background: linear-gradient(160deg, #f2f3f5, #e6e8eb);
}
.pic-placeholder {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9aa3ad;
}
.pic-placeholder--lg {
  min-height: 220px;
  font-size: 18px;
}
.product-card--featured .pic {
  min-height: 220px;
}
.product-card--featured .pic img {
  max-height: 240px;
}

/* Home featured — horizontal swipe cards */
.swipe-hint {
  margin: -8px 0 10px;
  font-size: 12px;
  color: var(--muted, #888);
}
.product-rail--swipe {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -22px;
  padding: 2px 22px 14px;
}
.product-rail--swipe::-webkit-scrollbar { display: none; }
.product-rail--swipe .product-card--featured {
  flex: 0 0 auto;
  width: calc(100vw - 72px);
  max-width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.product-rail--swipe .product-card--featured .pic {
  min-height: 170px;
  padding: 16px 12px;
}
.product-rail--swipe .product-card--featured .pic img {
  max-height: 160px;
}
.product-rail--swipe .product-card--featured .body {
  padding: 12px 14px 14px;
  flex: 1;
}
.product-rail--swipe .product-card--featured h3 {
  font-size: 18px;
}
.product-rail--swipe .product-card--featured .slogan {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 720px) {
  .product-rail--swipe .product-card--featured {
    width: 300px;
    max-width: 300px;
  }
}
