/* ============================================================
   Sirohair - Wholesale human-hair wigs & hairpieces
   Warm ivory editorial system · Playfair Display + Inter
   ============================================================ */

:root {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;
  --ink: #292420;
  --ink-2: #4A423B;
  --muted: #83776B;
  --line: #E7DFD2;
  --line-2: #D6C9B6;
  --gold: #A8845A;
  --gold-deep: #8A6B45;
  --gold-soft: #C9AE86;
  --gold-tint: #F3EBDD;
  --dark: #221E1A;
  --dark-2: #322C26;
  --on-dark: #F3EDE3;
  --on-dark-muted: #B9AE9E;
  --ok: #3E7C4F;
  --err: #B3402E;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(41, 36, 32, .05), 0 2px 8px rgba(41, 36, 32, .04);
  --shadow-md: 0 2px 6px rgba(41, 36, 32, .06), 0 12px 32px rgba(41, 36, 32, .08);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

::selection { background: var(--gold-soft); color: var(--dark); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow { width: min(860px, calc(100% - 48px)); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-top: 14px;
}

.section-head { margin-bottom: 44px; }
.section-head .section-lead { margin-top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, #B08D57, #96744A);
  color: #FFF;
  box-shadow: 0 1px 2px rgba(138, 107, 69, .35), 0 8px 22px rgba(138, 107, 69, .28);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(138, 107, 69, .4), 0 14px 30px rgba(138, 107, 69, .34); }

.btn--outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--outline:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .45);
  color: #FFF;
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: .86rem; }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(41, 36, 32, .06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B08D57, #7E6242);
  display: grid;
  place-items: center;
  color: #FFF;
  flex: none;
}

.brand-mark svg { width: 19px; height: 19px; }

.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold-deep);
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}

.nav-link:hover, .nav-item:focus-within .nav-link { color: var(--ink); background: rgba(168, 132, 90, .1); }

.nav-link.is-active { color: var(--gold-deep); font-weight: 600; }

.nav-link svg { width: 12px; height: 12px; transition: transform .2s ease; }

.nav-item:hover .nav-link svg, .nav-item:focus-within .nav-link svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}

.dropdown-link:hover { background: var(--surface-2); }

.dropdown-link .dd-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.dropdown-link .dd-icon svg { width: 18px; height: 18px; }

.dropdown-link strong { display: block; font-size: .93rem; font-weight: 600; color: var(--ink); }

.dropdown-link span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Mobile nav ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(34, 30, 26, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg);
  padding: 22px 22px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .8, .3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.mobile-nav__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mobile-nav__close svg { width: 18px; height: 18px; }

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 6px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-link.is-active { color: var(--gold-deep); font-weight: 600; }

.mobile-sub { padding: 4px 0 10px; display: none; }

.mobile-sub.is-open { display: block; }

.mobile-sub a {
  display: block;
  padding: 9px 18px;
  font-size: .92rem;
  color: var(--ink-2);
  border-left: 2px solid var(--line-2);
  margin-left: 6px;
}

.mobile-sub a:hover { border-left-color: var(--gold); color: var(--gold-deep); }

.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(640px, 78vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(24, 21, 18, .88) 0%, rgba(24, 21, 18, .68) 38%, rgba(24, 21, 18, .18) 72%),
    linear-gradient(to top, rgba(24, 21, 18, .5), transparent 40%);
}

.hero__inner {
  position: relative;
  padding: 96px 0 88px;
  color: var(--on-dark);
}

.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }

.hero h1 {
  color: #FFF;
  max-width: 900px;
  font-size: clamp(2rem, 3.9vw, 3.05rem);
  line-height: 1.14;
  margin: 18px 0 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero__sub {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(243, 237, 227, .92);
  max-width: 560px;
}

.hero .btn-row { margin-top: 34px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(243, 237, 227, .22);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(243, 237, 227, .95);
}

.hero__trust svg { width: 16px; height: 16px; color: var(--gold-soft); flex: none; }

/* ---------- Marquee strip ---------- */

.strip {
  background: var(--dark);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(243, 237, 227, .12);
  padding: 15px 0;
  overflow: hidden;
}

.strip__inner {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

.strip__inner span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.strip__inner span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Category cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.cat-card__media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--surface-2);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}

.cat-card:hover .cat-card__media img { transform: scale(1.05); }

.cat-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.cat-card__body h3 { font-size: 1.18rem; margin-top: -4px; }
.cat-card__en { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }


.cat-card__count {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.cat-card__body p { font-size: .89rem; color: var(--muted); line-height: 1.6; flex: 1; }

.cat-card__link {
  margin-top: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cat-card__link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.product-card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.product-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}

.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.product-card__price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
}

.product-card__price span { color: var(--gold-soft); font-weight: 500; font-size: .68rem; display: block; line-height: 1.2; }

.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.product-card__body h3 { font-size: 1.08rem; line-height: 1.35; }

.product-card__body p { font-size: .87rem; color: var(--muted); line-height: 1.55; flex: 1; }

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.link-arrow {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.link-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }

.product-card:hover .link-arrow svg, .cat-card:hover .link-arrow svg { transform: translateX(4px); }

.inq-mini {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  font-family: var(--font-body);
}

.inq-mini:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-tint); }

/* ---------- Feature rows (Why us) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature__icon svg { width: 22px; height: 22px; }

.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }

.feature p { font-size: .88rem; color: var(--muted); line-height: 1.62; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- Ask band ---------- */

.ask {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.ask__media { position: absolute; inset: 0; }
.ask__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ask__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,21,18,.9) 20%, rgba(24,21,18,.55) 60%, rgba(24,21,18,.35)); }

.ask__inner { position: relative; padding: 84px 0; }

.ask__inner h2 { color: #FFF; max-width: 520px; }

.ask__list { margin: 22px 0 30px; display: grid; gap: 12px; max-width: 520px; }

.ask__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(243, 237, 227, .92);
  font-size: .98rem;
  line-height: 1.55;
}

.ask__list .q {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  transition: background .15s ease;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }

.faq summary .fx {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}

.faq summary .fx svg { width: 13px; height: 13px; }

.faq details[open] summary .fx { transform: rotate(45deg); background: var(--gold-tint); border-color: var(--gold-soft); }

.faq details p {
  padding: 0 22px 20px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, #2A2521, #443A31);
  border-radius: 18px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 174, 134, .28), transparent 70%);
}

.cta-band h2 { color: #FFF; max-width: 560px; }
.cta-band p { color: rgba(243, 237, 227, .85); margin-top: 12px; max-width: 560px; font-size: 1.02rem; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 85% -20%, rgba(168, 132, 90, .12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { color: var(--line-2); }

.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.page-hero .section-lead { margin-top: 14px; }

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: .86rem;
  color: var(--ink-2);
}

.page-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Product detail ---------- */

.pd { padding: 56px 0 72px; }

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.gallery__main {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.gallery__main img { display: block; width: 100%; height: auto; object-fit: contain; padding: 18px; }

.gallery__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(34, 30, 26, .82);
  color: var(--on-dark);
  font-size: .78rem;
  padding: 7px 13px;
  border-radius: 999px;
  max-width: calc(100% - 28px);
}

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gallery__thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  padding: 0;
  transition: border-color .18s ease, transform .18s ease;
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--gold); }

.pd-info { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.pd-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.pd-tagline { font-size: 1.02rem; color: var(--muted); line-height: 1.6; }

.pd-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 12px 18px;
  width: fit-content;
}

.pd-price strong { font-size: 1.5rem; font-weight: 700; color: var(--gold-deep); font-family: var(--font-display); }

.pd-price span { font-size: .78rem; color: var(--ink-2); }

.pd-price--ask strong { font-size: 1.05rem; }

/* 详情页价格标注（可双击修改价格） */
.pd-price--spot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--gold-tint, #faf3e3); border: 1px dashed var(--gold, #c9a45c); border-radius: 12px; }
.pd-price__tag { background: var(--gold-deep, #b8893a); color: #fff; font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; white-space: nowrap; }
.pd-price__value { font-size: 1.6rem; font-weight: 700; color: var(--gold-deep, #b8893a); font-family: var(--font-display, inherit); }

.pd-highlights { display: grid; gap: 10px; }

.pd-highlights li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.pd-highlights svg { width: 17px; height: 17px; color: var(--gold-deep); flex: none; margin-top: 3px; }

/* 卖点列表：生成器只输出纯文本 li（没有 svg 勾），flex 布局下就成了六行无符号的裸文本，
   读起来像一串断句。用 ::before 补一个金色圆点做项目符号，不动 DOM，
   避免编辑器改写 textContent 时把图标一起抹掉。 */
.pd-highlights li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: .52em;
  border-radius: 50%;
  background: var(--gold, #c9a45c);
}
.pd-highlights li { gap: 10px; }

.pd-cta { display: grid; gap: 12px; }

.pd-cta .btn-row { gap: 10px; }

.pd-note { font-size: .8rem; color: var(--muted); line-height: 1.55; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }

.spec-table th, .spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th { width: 150px; font-weight: 600; color: var(--muted); font-size: .84rem; }

.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.spec-card, .size-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-card h3, .size-card h3 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  background: var(--surface-2);
}

.spec-card table { padding: 6px 10px 10px; display: block; }

.size-card__body { padding: 18px 20px 20px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.chip b { color: var(--ink); font-weight: 600; }

.chip--cm { font-size: .74rem; color: var(--muted); font-weight: 400; }

.pd-section { margin-top: 48px; display: grid; gap: 22px; }

.pd-section h2 { font-size: 1.5rem; }

.pd-section p { font-size: 1rem; line-height: 1.75; max-width: 780px; }

.pd-related { margin-top: 56px; }
.pd-related h2 { margin-bottom: 26px; font-size: 1.4rem; }

/* ---------- Category page ---------- */

.cat-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px;
  align-items: center;
  padding: 8px 0 52px;
}

.cat-intro__media {
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.cat-intro__media img { width: 100%; height: 100%; object-fit: cover; }

.cat-intro p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 14px; }

/* ---------- Two-col text ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.panel h3 { margin-bottom: 14px; font-size: 1.15rem; }

.panel p { font-size: .94rem; line-height: 1.7; }

.panel ul { display: grid; gap: 10px; margin-top: 14px; }

.panel li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.panel li svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; margin-top: 3px; }

.panel--dark { background: var(--dark); border-color: var(--dark); }
.panel--dark h3 { color: #FFF; }
.panel--dark p, .panel--dark li { color: rgba(243, 237, 227, .85); }
.panel--dark li svg { color: var(--gold-soft); }

/* ---------- Terms table ---------- */

.terms { width: 100%; border-collapse: collapse; font-size: .93rem; }

.terms th, .terms td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.terms th { width: 190px; font-weight: 600; color: var(--ink); font-size: .9rem; }
.terms td { color: var(--muted); }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
  padding: 56px 0 72px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 32px;
}

.form-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card > p { font-size: .93rem; color: var(--muted); margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field label .req { color: var(--err); }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .94rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(168, 132, 90, .16);
}

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }

.field__err {
  font-size: .78rem;
  color: var(--err);
  display: none;
}

.field.has-error .field__err { display: block; }

.form-foot { margin-top: 22px; display: grid; gap: 14px; }

.form-status {
  display: none;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .9rem;
  line-height: 1.6;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}

.form-status.is-visible { display: block; }

.form-status--ok { border-color: rgba(62, 124, 79, .45); background: rgba(62, 124, 79, .08); color: #2C5B3A; }
.form-status--err { border-color: rgba(179, 64, 46, .45); background: rgba(179, 64, 46, .07); color: #8E3323; }

.form-status .btn-row { margin-top: 14px; }

.contact-side { display: grid; gap: 16px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-card__icon svg { width: 19px; height: 19px; }

.contact-card h3 { font-size: .98rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }

.contact-card p, .contact-card a { font-size: .9rem; color: var(--muted); line-height: 1.6; word-break: break-word; }
.contact-card a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  margin-top: 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-brand .brand { color: #FFF; }
.footer-brand .brand small { color: var(--on-dark-muted); }

.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; color: var(--on-dark-muted); max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FFF;
  margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 11px; }

.footer-col a, .footer-col li { font-size: .9rem; color: var(--on-dark-muted); line-height: 1.5; }
.footer-col a:hover { color: var(--gold-soft); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-soft); flex: none; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(243, 237, 227, .14);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(185, 174, 158, .8);
}

.footer-bottom p { color: inherit; max-width: 720px; line-height: 1.6; }

/* ---------- Mobile sticky CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.mobile-cta .btn { flex: 1; padding: 12px 14px; font-size: .88rem; }

.product-card__media a { display: block; height: 100%; }

.card-noimg {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, #F4EEE4 14px 28px);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.card-noimg svg { width: 34px; height: 34px; color: var(--gold-soft); }
.card-noimg span { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.card-noimg small { font-size: .8rem; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Utility ---------- */

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface-2); border-block: 1px solid var(--line); }
.bg-surface { background: var(--surface); }
.text-center { text-align: center; }
.text-center .eyebrow::before { display: none; }
.text-center .section-lead { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.eyebrow + h2, .eyebrow + h1 { margin-top: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cat-grid, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .pd-grid, .contact-grid { grid-template-columns: 1fr; }
  .pd-info { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cat-intro { grid-template-columns: 1fr; }
  .cat-intro__media { max-height: 340px; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .product-grid, .cat-grid, .feature-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 72px 0 64px; }
  .cta-band { padding: 40px 26px; }
  .form-card { padding: 26px 22px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .terms th { width: 130px; }
  .spec-table th { width: 116px; }
}

/* ============================================================
   Additions: WhatsApp · filters · sub-series · custom page
   ============================================================ */

/* ---------- WhatsApp ---------- */
.btn--wa { background: #25D366; border: 1px solid #25D366; color: #fff; }
.btn--wa:hover { background: #1EBE5D; border-color: #1EBE5D; transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(37, 211, 102, .35), 0 12px 28px rgba(37, 211, 102, .3); }
.header-wa {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; color: var(--gold-deep);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.header-wa svg { width: 17px; height: 17px; }
.header-wa:hover { border-color: #25D366; color: #25D366; transform: translateY(-2px); }

/* ---------- Card: made-to-order tag ---------- */
.product-card__custom {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--gold-tint); color: var(--gold-deep);
  border: 1px solid var(--gold-soft);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
}

/* ---------- Category filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 40px 0 36px; box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-group__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.filter-chip {
  font: inherit; font-size: .84rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-chip.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.filter-count { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.filter-empty { display: none; text-align: center; padding: 40px 20px 8px; color: var(--muted); }
.filter-empty.is-visible { display: block; }
.filter-empty p { margin-bottom: 14px; }
.is-hidden { display: none !important; }

/* ---------- Sub-series blocks ---------- */
.series-block { margin-bottom: 54px; }
.series-block:last-child { margin-bottom: 0; }
.series-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.series-head h2 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; }
.series-count { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.series-note { font-size: .92rem; color: var(--muted); line-height: 1.7; max-width: 820px; margin: 12px 0 22px; }

/* ---------- Made-to-order strip (product page) ---------- */
.mto-strip {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px; padding: 18px 20px;
  background: var(--gold-tint); border: 1px dashed var(--gold-soft); border-radius: var(--radius);
}
.mto-strip__icon { flex: none; margin-top: 2px; }
.mto-strip__icon svg { width: 22px; height: 22px; color: var(--gold-deep); }
.mto-strip h3 { font-size: 1rem; margin-bottom: 4px; }
.mto-strip p { font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.mto-strip a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.mto-strip a svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; transition: transform .2s ease; }
.mto-strip a:hover svg { transform: translateX(3px); }

/* ---------- Custom page: spec banner & optional label ---------- */
.spec-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--gold-tint); border: 1px solid var(--gold-soft); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; color: var(--ink-2);
}
.spec-banner svg { width: 17px; height: 17px; color: var(--gold-deep); flex: none; }
.spec-banner__clear {
  margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; padding: 4px;
}
.spec-banner__clear svg { width: 14px; height: 14px; }
.spec-banner__clear:hover { color: var(--err); }
.field label .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Spec preview ---------- */
.spec-preview {
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.6; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 14px;
}

/* ---------- Compare table ---------- */
.terms--compare th, .terms--compare td { vertical-align: top; }
.terms--compare thead th { color: var(--gold-deep); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.terms--compare tbody th { width: 130px; }
.terms--compare td { width: calc((100% - 130px) / 2); }

@media (max-width: 720px) {
  .filter-bar { gap: 12px 16px; padding: 16px; }
  .filter-count { margin-left: 0; width: 100%; }
  .series-head { flex-wrap: wrap; }
  .mto-strip { flex-direction: column; gap: 10px; }
  .terms--compare tbody th { width: 104px; }
}

/* ---------- Legal / policy long-form (faq-returns) ---------- */
.legal { max-width: 820px; }
.legal__intro { font-size: .98rem; color: var(--ink); line-height: 1.75; margin-bottom: 30px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 1.08rem; margin: 24px 0 10px; color: var(--ink); }
.legal p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal ul.legal-list { list-style: none; counter-reset: l; display: grid; gap: 12px; margin: 14px 0 18px; }
.legal ul.legal-list li { position: relative; padding-left: 40px; color: var(--muted); line-height: 1.7; }
.legal ul.legal-list li::before { counter-increment: l; content: counter(l); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.legal .note { background: var(--surface-2); border-left: 3px solid var(--gold-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .92rem; line-height: 1.7; margin: 16px 0; }
.legal .terms { margin: 8px 0 4px; }
.legal-en { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 4px 20px; }
.legal-en summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; }
.legal-en summary::-webkit-details-marker { display: none; }
.legal-en summary::after { content: " +"; color: var(--gold-deep); font-weight: 700; }
.legal-en[open] summary::after { content: " \u2212"; }
.legal-en[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.legal-en .legal { max-width: none; }
.legal-en .legal h2:first-child { margin-top: 14px; border-bottom: 0; }

/* ---------- Color swatches (product showcase) ---------- */
.pd-colors { margin: 18px 0 4px; }
.pd-colors h3 { font-size: 1.02rem; margin-bottom: 12px; }
.swatches { display: flex; gap: 18px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.swatch__chip { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch--custom .swatch__chip { background: repeating-linear-gradient(45deg,#f4eee3,#f4eee3 6px,#e8ddcc 6px,#e8ddcc 12px); display: grid; place-items: center; font-size: .6rem; font-weight: 700; color: var(--ink); box-shadow: none; border: 1px dashed var(--gold-deep); }

/* ---------- In-page editor (local editing only) ---------- */
.edit-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 .9rem/1 var(--font-en, sans-serif);
  box-shadow: 0 8px 24px rgba(0,0,0,.28); display: flex; align-items: center; gap: 6px;
}
.edit-fab.is-on { background: var(--gold-deep, #b8893a); }
.editing [data-edit] { outline: 1px dashed transparent; border-radius: 4px; transition: outline-color .15s; cursor: text; }
.editing [data-edit]:hover { outline-color: var(--gold-deep, #b8893a); background: rgba(184,137,58,.08); }
.editing img { cursor: pointer; outline: 2px dashed transparent; outline-offset: 2px; }
.editing img:hover { outline-color: var(--gold-deep, #b8893a); }

/* ---------- 焊接网专属：图片展示框固定 1:1（contain，不裁剪） ---------- */
.ratio-square .product-card__media { aspect-ratio: 1 / 1; }
.ratio-square .product-card__media img { height: 100%; }
.ratio-square .gallery__main { aspect-ratio: 1 / 1; }
.ratio-square .gallery__main img { height: 100%; }

/* ---------- 编辑模式：画廊小图调序按钮 ---------- */
.gallery__thumb { position: relative; }
.thumb-mv { display: none; position: absolute; top: 3px; right: 3px; gap: 3px; z-index: 5; }
.editing .thumb-mv { display: flex; }
.thumb-mv span {
  width: 20px; height: 20px; border-radius: 5px; cursor: pointer; user-select: none;
  background: rgba(34, 30, 26, .85); color: #fff; font-size: 13px; line-height: 20px;
  text-align: center; font-weight: 700;
}
.thumb-mv span:hover { background: var(--gold-deep, #b8893a); }
.thumb-mv span.mv-del:hover { background: #c0392b; }
.editing [data-edit] a { pointer-events: none; }
.editing [data-edit][contenteditable="true"] { outline-color: var(--gold-deep, #b8893a); background: #fffdf7; }

/* ---------- 详情页「工厂报价」按钮 + 展开价格面板（小尺寸版） ---------- */
.btn--price {
  background: var(--gold-deep); border: 1px solid var(--gold-deep); color: #fff;
  cursor: pointer; font: inherit;
  display: inline-flex; width: fit-content;
  padding: 4px 12px; font-size: .8rem; line-height: 1.4; border-radius: 999px;
  gap: 5px;
}
.btn--price:hover { background: #75592f; border-color: #75592f; transform: translateY(-1px); }
.btn--price.is-open { background: var(--gold-tint); color: var(--gold-deep); }
.pd-price-reveal {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 6px 12px; border: 1px dashed var(--gold-deep); border-radius: 8px;
  background: var(--gold-tint); width: -moz-fit-content; width: fit-content;
}
.pd-price-reveal__tag { font-size: .78rem; font-weight: 600; color: var(--gold-deep); }
.pd-price-reveal__value { font-size: .95rem; font-weight: 700; color: var(--dark); }
.pd-price-reveal__note { font-size: .75rem; opacity: .6; }

/* ---------- 剪发造型服务：30 款标准造型网格 ---------- */
.style-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-top: 14px;
}
.style-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; text-align: center;
}
.style-card img { width: 100%; height: auto; display: block; }
.style-card figcaption { padding: 8px 6px; font-weight: 700; font-size: .9rem; letter-spacing: .04em; }

/* ============================================================
   2026-10-27 审核修正：首屏信任条 / 双 CTA / 询价态价格
   ============================================================ */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 20px;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  line-height: 1.3;
}

.trust-row svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gold);
}

.trust-row--tight { margin-top: 14px; gap: 6px 8px; }
.trust-row--tight li { font-size: .76rem; padding: 5px 11px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* 询价态：价格位置是文字而非数字，收一号字避免溢出 */
.pd-price__value--ask {
  font-size: 1.05rem !important;
  letter-spacing: .01em;
}

/* 规格表新增的商务条款分组 */
.pd-spec-group { margin-top: 34px; }
.pd-spec-group > h2 { margin-bottom: 14px; }

@media (max-width: 640px) {
  .trust-row li { font-size: .74rem; padding: 5px 10px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- 工艺四象限对比（详情页） ---------- */
.pd-construction { margin-top: 46px; }

.const-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.const-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.const-card--current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(168, 132, 90, .16);
}

.const-card__tier {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.const-card h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.const-card__base {
  font-size: .84rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 12px;
  min-height: 3.2em;
}

.const-card dl { margin: 0; }
.const-card dt {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.const-card dd {
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 2px 0 0;
}

.const-ladder {
  margin-top: 18px;
  font-size: .86rem;
  color: var(--ink-2);
  background: var(--surface-2);
  border-left: 3px solid var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
}
.const-ladder strong { color: var(--ink); }

@media (max-width: 900px) {
  .const-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .const-grid { grid-template-columns: 1fr; }
  .const-card__base { min-height: 0; }
}

/* ---------- 产品卡商务徽章行 ---------- */
.product-card__meta {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-block;
  margin: 2px 0 10px;
  /* 卡片正文是 flex column，inline-block 会被拉成整行宽，
     米色胶囊变成一条贯穿卡片的长条；这里让它按内容宽度收缩。 */
  align-self: flex-start;
  width: fit-content;
}

/* ---------- FAQ B2B 六块 ---------- */
.b2b-item {
  border: 1px solid #e7e1d3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 12px;
}

.b2b-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.b2b-item > summary::-webkit-details-marker { display: none; }
.b2b-item > summary::marker { content: ""; }

.b2b-item > summary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: var(--gold-deep, #b8893a);
  transition: transform .22s ease;
}

.b2b-item[open] > summary svg { transform: rotate(45deg); }
.b2b-item[open] > summary { border-bottom: 1px solid #f0ebe0; }
.b2b-item > summary:hover { background: #fbf8f1; }
.b2b-item > .b2b-body { padding-top: 16px; }

.b2b-line {
  display: flex;
  align-items: center;
  gap: 13px;
}

.b2b-num {
  font-family: var(--font-display);
  font-style: normal;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 2px 9px;
  flex: none;
}

.b2b-body p {
  padding: 0 22px 20px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .b2b-line { gap: 9px; font-size: .9rem; }
  .b2b-body p { padding: 0 16px 18px; }
}

/* ---------------- Product Video（产品详情页视频区） ---------------- */
.pd-videos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.pd-videos__item {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 520px);
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.pd-videos__item video {
  display: block;
  width: 100%;
  height: auto;
}
/* 删除按钮：仅编辑模式显示 */
.vid-del {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.vid-del:hover { background: rgba(180, 40, 40, .85); }
.editing .vid-del { display: block; }
/* 添加按钮：仅编辑模式显示 */
.pd-videos__add {
  display: none;
  margin-top: 14px;
  padding: 12px 20px;
  border: 1px dashed #a08c6a;
  border-radius: 8px;
  background: transparent;
  color: #6b5a3e;
  font-size: .92rem;
  cursor: pointer;
}
.pd-videos__add:hover { background: rgba(160, 140, 106, .12); }
.pd-videos__add[disabled] { opacity: .55; cursor: wait; }
.editing .pd-videos__add { display: inline-block; }
/* 无视频：访客整块隐藏，编辑模式显示虚线占位 */
.pd-videos[data-empty="1"] { display: none; }
.editing .pd-videos[data-empty="1"] { display: block; }
.pd-videos[data-empty="1"] .pd-videos__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  border: 2px dashed #c9bda6;
  border-radius: 10px;
  background: rgba(160, 140, 106, .06);
}
.pd-videos[data-empty="1"] .pd-videos__grid::after {
  content: "这里还没有视频 · 点下方按钮添加";
  color: #9a8a6d;
  font-size: .9rem;
}

/* ---------------- SKU options（产品选项选择器：颜色/长度/造型） ---------------- */
.pd-options {
  display: grid;
  gap: 14px;
  margin: 4px 0 8px;
  padding: 14px 16px;
  background: rgba(201, 164, 92, .05);
  border: 1px solid rgba(201, 164, 92, .25);
  border-radius: 12px;
}
.pd-options__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2, #6b5f4b);
  margin-bottom: 8px;
}
.pd-options__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  padding: 8px 16px;
  border: 1px solid #d8cdb8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #33302a);
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opt-chip:hover { border-color: var(--gold, #c9a45c); }
.opt-chip.is-active {
  border-color: var(--gold-deep, #b8893a);
  background: var(--gold-tint, #faf3e3);
  color: var(--gold-deep, #b8893a);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--gold-deep, #b8893a);
}
.opt-chip:focus-visible { outline: 2px solid var(--gold-deep, #b8893a); outline-offset: 2px; }

/* ---------------- SKU 选项升级：淘宝式颜色图卡 / 长度价格行 / 标注弹窗 ---------------- */
.pd-options { position: relative; }
/* 编辑模式标注入口 */
.opt-edit-btn { display: none; margin-top: 12px; padding: 8px 14px; border: 1px dashed #a08c6a;
  border-radius: 8px; background: transparent; color: #6b5a3e; font-size: .85rem; cursor: pointer; }
.opt-edit-btn:hover { background: rgba(160, 140, 106, .12); }
.editing .opt-edit-btn { display: inline-block; }
/* 颜色图卡（有 img 的选项） */
.pd-options__chips--swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 92px; padding: 6px 6px 8px;
  border: 2px solid #e2d9c6; border-radius: 10px; background: #fff; cursor: pointer;
  font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.opt-swatch:hover { border-color: var(--gold, #c9a45c); }
.opt-swatch.is-active { border-color: var(--gold-deep, #b8893a); box-shadow: 0 0 0 2px rgba(184, 137, 58, .25); }
.opt-swatch__img { width: 100%; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #f4efe4; }
.opt-swatch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-swatch__label { font-size: .8rem; line-height: 1.25; text-align: center; color: var(--ink, #33302a); }
.opt-swatch.is-active .opt-swatch__label { color: var(--gold-deep, #b8893a); font-weight: 600; }
/* 长度价格行（组名含 Length/长度/尺寸） */
.pd-options__group--rows .pd-options__chips { display: grid; gap: 8px; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border: 1px solid #d8cdb8; border-radius: 10px;
  background: #fff; cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opt-row:hover { border-color: var(--gold, #c9a45c); }
.opt-row.is-active { border-color: var(--gold-deep, #b8893a); background: var(--gold-tint, #faf3e3);
  box-shadow: inset 0 0 0 1px var(--gold-deep, #b8893a); }
.opt-row__label { font-size: .95rem; font-weight: 600; color: var(--ink, #33302a); }
.opt-row.is-active .opt-row__label { color: var(--gold-deep, #b8893a); }
.opt-row__meta { font-size: .85rem; color: var(--ink-2, #6b5f4b); white-space: nowrap; }
.opt-row__meta::first-line { color: inherit; }
.opt-row__main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.opt-row__img {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; overflow: hidden;
  background: #f2ece1; border: 1px solid #e4d9c6; display: block;
}
.opt-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 色卡图不是主图廊的图：整张显示，不裁切放大 */
#galleryMain img.is-swatch { object-fit: contain; background: #f7f2e8; }

/* 卡片里的缩略图不接收鼠标事件：否则按下时轻微位移会被浏览器判成"拖图"，
   click 不触发，用户点了图就像没反应（文字区却能点）。 */
.opt-row__img img,
.opt-swatch__img img,
.opt-style__img img {
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.opt-row.is-active .opt-row__img { border-color: var(--gold-deep, #b8893a); }
.opt-row__price { font-weight: 700; color: var(--ink, #33302a); }
.opt-row.is-active .opt-row__price { color: var(--gold-deep, #b8893a); }
.opt-row__stock { color: var(--ink-2, #6b5f4b); }
.opt-row__dot { margin: 0 5px; color: #bcae96; }

/* 带色卡图的组合 SKU：单列整行，价格与库存在右侧完整显示（两列时右侧会被省略号截断） */
.pd-options__group--rows .pd-options__chips--cards2 {
  grid-template-columns: 1fr;
}
.opt-row--img {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px; border-radius: 9px;
}
.opt-row--img .opt-row__main { gap: 9px; }
.opt-row--img .opt-row__img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; }
.opt-row--img .opt-row__label { font-size: .9rem; line-height: 1.2; }
.opt-row--img .opt-row__right {
  justify-content: flex-end; padding-left: 0; flex-wrap: nowrap; min-width: 0;
}
.opt-row--img .opt-row__meta { font-size: .82rem; overflow: visible; text-overflow: clip; white-space: nowrap; }
@media (max-width: 620px) {
  .pd-options__group--rows .pd-options__chips--cards2 {
    grid-template-columns: 1fr; gap: 6px;
  }
  .opt-row--img { padding: 9px 11px; gap: 8px; }
  .opt-row--img .opt-row__main { gap: 7px; }
  .opt-row--img .opt-row__img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 5px; }
  .opt-row--img .opt-row__label { font-size: .8rem; }
  .opt-row--img .opt-row__right { padding-left: 0; }
  .opt-row--img .opt-row__meta { font-size: .72rem; }
}
/* 选项标注弹窗 */
.opt-modal-overlay, #optModal {
  position: fixed; inset: 0; z-index: 9999; background: rgba(30, 25, 15, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.opt-modal {
  width: min(680px, 100%); max-height: 88vh; overflow: auto;
  background: #fffdf8; border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.opt-modal__head { display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; font-weight: 700; color: var(--ink, #33302a); margin-bottom: 10px; }
.opt-modal__x { border: none; background: transparent; font-size: 1rem; cursor: pointer; color: #9a8a6d; }
.opt-modal__help { font-size: .82rem; line-height: 1.7; color: var(--ink-2, #6b5f4b);
  background: rgba(201, 164, 92, .1); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.opt-modal__help code { background: #fff; border: 1px solid #e2d9c6; border-radius: 4px;
  padding: 1px 6px; font-size: .78rem; color: #8a6a2f; }
.opt-modal__ta { width: 100%; min-height: 260px; resize: vertical; box-sizing: border-box;
  border: 1px solid #d8cdb8; border-radius: 8px; padding: 12px; font: .88rem/1.7 ui-monospace, Consolas, monospace;
  color: var(--ink, #33302a); background: #fff; }
.opt-modal__ta:focus { outline: 2px solid var(--gold-deep, #b8893a); outline-offset: 1px; }
.opt-modal__foot { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.opt-modal__save { padding: 10px 18px; border: none; border-radius: 8px; background: var(--gold-deep, #b8893a);
  color: #fff; font-weight: 600; cursor: pointer; font-family: inherit; }
.opt-modal__save[disabled] { opacity: .55; cursor: wait; }
.opt-modal__clear, .opt-modal__cancel { padding: 10px 16px; border: 1px solid #d8cdb8; border-radius: 8px;
  background: #fff; color: var(--ink, #33302a); cursor: pointer; font-family: inherit; }
.opt-modal__clear:hover, .opt-modal__cancel:hover { border-color: var(--gold, #c9a45c); }

/* ---------------- 1688 式批发：阶梯价表 + 数量步进器 + 卡片区间价 ---------------- */
.pd-tiers {
  margin-top: 12px; padding: 12px 16px;
  border: 1px solid #e2d9c6; border-radius: 10px; background: #fffdf8;
}
.pd-tiers__head { font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-deep, #b8893a); margin-bottom: 8px; }
.pd-tiers__row { display: flex; justify-content: space-between; padding: 5px 0;
  font-size: .88rem; color: var(--ink, #33302a); border-bottom: 1px dashed #eee4d2; }
.pd-tiers__row:last-child { border-bottom: none; }
.pd-tiers__row span:last-child { font-weight: 600; color: var(--gold-deep, #b8893a); }
.pd-qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pd-qty__label { font-size: .85rem; font-weight: 600; color: var(--ink-2, #6b5f4b); }
.pd-qty__btn { width: 32px; height: 32px; border: 1px solid #d8cdb8; border-radius: 8px;
  background: #fff; font-size: 1rem; cursor: pointer; color: var(--ink, #33302a); line-height: 1; }
.pd-qty__btn:hover { border-color: var(--gold, #c9a45c); }
.pd-qty__input { width: 64px; height: 32px; text-align: center; border: 1px solid #d8cdb8;
  border-radius: 8px; font-size: .95rem; background: #fff; color: var(--ink, #33302a); }
.pd-qty__input:focus { outline: 2px solid var(--gold-deep, #b8893a); outline-offset: 1px; }
.pd-qty__total { margin-left: auto; font-size: .95rem; font-weight: 700;
  color: var(--gold-deep, #b8893a); }
/* 卡片价格区间（1688 式醒目价） */
.product-card__price b { color: inherit; font-weight: 600; padding: 0 2px; }
.product-card__price { line-height: 1.25; }

/* =============== 1688 国际站式详情页布局 =============== */
.pd-crumb { padding: 14px 0 0; font-size: .8rem; }
.pd-crumb .breadcrumb { margin: 0; }
.pd-grid--1688 {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(380px, 460px);
  gap: 24px;
  align-items: start;
}
/* 左侧竖排缩略图 */
.pd-rail { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 90px; }
.pd-rail__nav {
  width: 100%; height: 22px; border: 1px solid #e2d9c6; border-radius: 999px;
  background: #fff; color: #8a7a5c; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.pd-rail__nav svg { width: 14px; height: 14px; }
.pd-rail__nav:hover { border-color: var(--gold, #c9a45c); color: var(--gold-deep, #b8893a); }
.pd-rail__list {
  display: flex; flex-direction: column; gap: 8px; flex-wrap: nowrap;
  max-height: 470px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #ddd2bb transparent;
  padding: 0 2px;
}
.pd-rail__list::-webkit-scrollbar { display: none; }
.pd-rail .gallery__thumb {
  width: 84px; height: 84px; flex: 0 0 auto; padding: 0; overflow: hidden;
  border: 2px solid #e2d9c6; border-radius: 8px; background: #f6f1e6; cursor: pointer;
}
.pd-rail .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-rail .gallery__thumb.is-active { border-color: var(--gold-deep, #b8893a); }
/* 中间大图舞台 */
.pd-stage { position: relative; border-radius: 12px; background: #f7f2e8; overflow: hidden; max-width: 800px; }
.pd-stage .gallery__main { position: relative; aspect-ratio: 1 / 1; background: #f7f2e8; }
.pd-stage .gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-stage__tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-tool {
  width: 36px; height: 36px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 253, 248, .94); color: #6b5f4b; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.pd-tool svg { width: 18px; height: 18px; }
.pd-tool.is-on { color: #c0392b; }
.pd-tool.is-on svg { fill: currentColor; }
.pd-stage__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 44px; border: none; border-radius: 8px;
  background: rgba(255, 253, 248, .9); color: #5d5140; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07); opacity: 0; transition: opacity .18s ease;
}
.pd-stage__arrow svg { width: 20px; height: 20px; }
.pd-stage:hover .pd-stage__arrow { opacity: 1; }
.pd-stage__arrow--prev { left: 10px; }
.pd-stage__arrow--next { right: 10px; }
.pd-stage__bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 10px; }
.pd-tabs { display: flex; gap: 4px; background: rgba(255, 253, 248, .94); border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.pd-tab { border: none; background: transparent; padding: 6px 18px; border-radius: 999px; font-size: .82rem; font-family: inherit; color: #6b5f4b; cursor: pointer; }
.pd-tab.is-active { background: var(--dark); color: var(--on-dark); }
/* Photos / Video 切换：舞台内直接换播放器 */
.pd-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #14110d; display: block; z-index: 1; }
.pd-stage__video[hidden] { display: none; }
/* 视频模式：底部留一条深色带放 Photos/Video，避免和播放器自带控制条叠在一起 */
.pd-stage[data-mode="video"] { background: #0d0b09; }
.pd-stage[data-mode="video"] .gallery__main { background: #0d0b09; }
.pd-stage[data-mode="video"] .pd-stage__video { inset: 0 0 58px 0; height: calc(100% - 58px); }
.pd-stage[data-mode="video"] .gallery__main img { visibility: hidden; }
.pd-stage[data-mode="video"] .gallery__cap,
.pd-stage[data-mode="video"] .pd-stage__arrow { display: none; }
.pd-stage__bottom, .pd-stage__tools { z-index: 3; }
/* 无视频占位面板（点 Video 时出现，替代黑屏） */
.pd-stage__empty { position: absolute; inset: 0 0 58px 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 8px;
  color: #cfc4b2; z-index: 2; }
.pd-stage[data-mode="video"] .pd-stage__empty { display: flex; }
.pd-stage__empty svg { width: 46px; height: 46px; color: #8a7a5c; margin-bottom: 2px; }
.pd-stage__empty strong { font-size: 1.02rem; font-weight: 600; color: #f3ede3; }
.pd-stage__empty span { font-size: .8rem; line-height: 1.55; max-width: 320px; color: #9a8c78; }
.pd-stage__empty a { margin-top: 6px; font-size: .82rem; color: #cbb489;
  border-bottom: 1px solid rgba(203, 180, 137, .45); padding-bottom: 1px; }
.pd-stage__empty a:hover { color: #e2cfab; }
.pd-stage__empty-up { display: none; margin-top: 12px; padding: 7px 14px; border-radius: 999px;
  border: 1px dashed rgba(203, 180, 137, .55); background: transparent; color: #cbb489;
  font-family: inherit; font-size: .78rem; cursor: pointer; }
.editing .pd-stage__empty-up { display: inline-block; }
.pd-stage__empty-up:hover { background: rgba(203, 180, 137, .12); }
.pd-stage .gallery__cap { position: absolute; left: 12px; top: 12px; bottom: auto; right: auto;
  margin: 0; width: max-content; max-width: 62%; height: auto;
  background: rgba(255, 253, 248, .88); border-radius: 6px; padding: 4px 8px; font-size: .74rem; color: #6b5f4b; }
/* 右侧信息栏 */
.pd-info .pd-title { font-size: 1.55rem; line-height: 1.3; margin: 6px 0 8px; }
.pd-info .pd-tagline { color: var(--ink-2, #6b5f4b); font-size: .95rem; margin: 0 0 12px; }
.pd-meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: #6b5f4b; }
.pd-meta li { display: flex; align-items: center; gap: 5px; }
.pd-meta svg { width: 14px; height: 14px; color: var(--gold-deep, #b8893a); }
.pd-buybox { border: 1px solid #e7dcc8; border-radius: 12px; padding: 16px; background: #fffdf8; }
.pd-price { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed #e7dcc8; margin-bottom: 12px; }
.pd-price__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #8a7a5c; }
.pd-price__value { font-size: 2rem; font-weight: 700; line-height: 1.15; color: var(--gold-deep, #b8893a); }
.pd-price__value span { font-size: .78rem; font-weight: 500; color: #9a8a6d; }
.pd-price__hint { font-size: .76rem; color: #8a7a5c; }
.pd-terms-mini { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: #5d5140; margin-bottom: 10px; }
.pd-terms-mini span::before { content: "·"; color: var(--gold, #c9a45c); margin-right: 6px; }
.pd-sample { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(201, 164, 92, .08); border: 1px solid rgba(201, 164, 92, .28);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.pd-sample__text { display: flex; flex-direction: column; gap: 2px; }
.pd-sample__text strong { font-size: .86rem; color: #4a4030; }
.pd-sample__text span { font-size: .74rem; color: #7d6f57; }
.pd-sample__btn { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--gold-deep, #b8893a); color: var(--gold-deep, #b8893a);
  font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-sample__btn:hover { background: var(--gold-deep, #b8893a); color: #fff; }
.pd-buybox .pd-options { margin: 0 0 14px; padding: 14px; }
.pd-buybox .pd-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-buybox .pd-cta .btn { flex: 1 1 auto; justify-content: center; }
/* 供应商实力卡 */
.pd-supplier { margin-top: 14px; border: 1px solid #e7dcc8; border-radius: 12px; padding: 14px 16px; background: #fff; }
.pd-supplier__head { display: flex; gap: 10px; align-items: center; }
.pd-supplier__head svg { width: 26px; height: 26px; color: var(--gold-deep, #b8893a); flex: 0 0 auto; }
.pd-supplier__head strong { display: block; font-size: .92rem; color: #33302a; }
.pd-supplier__head span { font-size: .76rem; color: #7d6f57; }
.pd-supplier__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e7dcc8; }
.pd-supplier__stats div { display: flex; flex-direction: column; gap: 2px; }
.pd-supplier__stats b { font-size: .95rem; color: var(--gold-deep, #b8893a); }
.pd-supplier__stats span { font-size: .72rem; color: #8a7a5c; }
.pd-about .pd-intro { max-width: 78ch; }
/* 移动端 */
@media (max-width: 1080px) {
  .pd-grid--1688 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pd-grid--1688 .pd-info { grid-column: 1 / -1; }
  /* 平板：主图给个上限，别让 900px 宽的方图撑成一屏还多 */
  .pd-stage { max-width: 720px; margin-inline: auto; width: 100%; order: 1; }
  .pd-rail { flex-direction: row; align-items: center; order: 2; }
  .pd-rail__nav { display: none; }
  .pd-rail__list { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 4px; }
  .pd-rail .gallery__thumb { width: 68px; height: 68px; }
  .pd-rail { position: static; }
  .pd-info { order: 3; }
}
@media (max-width: 640px) {
  .pd-grid--1688 { grid-template-columns: 1fr; }
  .pd-rail { flex-direction: row; order: 2; }
  .pd-rail__nav { display: none; }
  .pd-rail__list { flex-direction: row; max-height: none; overflow-x: auto; }
  .pd-stage { order: 1; max-width: none; }
  .pd-info { order: 3; }
  .pd-info .pd-title { font-size: 1.25rem; }
  .pd-price__value { font-size: 1.6rem; }
}

/* 1688 布局微调（10-29） */
/* 主图舞台改成 1:1：产品图源全部是正方形，4:5 会把方图塞进竖长框，
   上下各留一条米色空带（1440 宽下 76px、1024 宽下 112px），看着像图片被压。
   同时清掉 .gallery__main img 继承来的 18px 内边距，让主图真正满框。 */
.pd-stage .gallery__main { aspect-ratio: 1 / 1; }
.pd-stage .gallery__main img { padding: 0; }
.pd-stage .gallery__main video { padding: 0; }

/* ---------- 商品详情页主图区改版（2026-10-30）----------
   结构：.pd-grid--1688 > (.pd-media > .pd-stage + .pd-rail) + .pd-info
   缩略图从左侧 84px 竖条挪到主图正下方横排：原来的竖条只放 5-10 张小图，
   下面会空出 500-600px 米色空白，主图也被挤到 606px；
   现在主图 736px（+21%），左侧空白消失，缩略图接近 1688 原生排布。 */
.pd-media { display: grid; gap: 12px; min-width: 0; }
/* Product details 移到图片列下方以后，填补主图+缩略图结束后的空白，
   让左右两栏高度接近（原来正文整宽独占一行，左栏要空 500px） */
.pd-media .pd-about { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line, #e7dcc8); }
.pd-media .pd-about .pd-intro { max-width: none; }
.pd-media .pd-about p { max-width: none; }
.pd-grid--1688 { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: 26px; }
.pd-media .pd-rail {
  position: static; flex-direction: row; align-items: center; gap: 0; padding: 0;
  min-width: 0;
}
.pd-media .pd-rail__nav { display: none; }
.pd-media .pd-rail__list {
  display: flex; flex-direction: row; flex-wrap: nowrap; max-height: none;
  overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 2px 0 6px;
  scrollbar-width: thin;
}
.pd-media .pd-rail .gallery__thumb { width: 64px; height: 64px; }
@media (max-width: 1080px) {
  .pd-grid--1688 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pd-stage { max-width: 720px; margin-inline: auto; width: 100%; }
  /* 缩略图跟随主图一起收窄居中，否则主图居中了缩略图还贴着左边，看着不对齐 */
  .pd-media .pd-rail { max-width: 720px; margin-inline: auto; width: 100%; }
  .pd-media .pd-rail .gallery__thumb { width: 64px; height: 64px; }
  .pd-related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 相关产品固定 4 个：3 列网格会剩一张孤零零落到第二行，
   改 4 列排成一行，和上面的 4 张推荐正好齐平 */
@media (min-width: 1081px) {
  .pd-related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 620px) {
  .pd-related .product-grid { grid-template-columns: 1fr; }
}
.pd-rail .thumb-mv { top: 1px; right: 1px; gap: 2px; }
.pd-rail .thumb-mv span { width: 15px; height: 15px; font-size: 10px; line-height: 15px; }
.pd-options__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pd-options__hint { font-size: .72rem; color: #9a8a6d; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* 颜色图卡在右栏收窄成淘宝/1688 式九宫格 */
.pd-buybox .pd-options__chips--swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.pd-buybox .opt-swatch { width: auto; padding: 4px 4px 6px; }
/* 纯文字胶囊（如 Custom colour）不与色卡同宽，否则文字被挤成竖排 */
.pd-buybox .pd-options__chips--swatches > .opt-chip:not(.opt-swatch) {
  grid-column: 1 / -1; justify-self: start; max-width: 100%;
}
.pd-buybox .opt-swatch__label { font-size: .72rem; }
/* 缩略图栏编辑控件悬浮才显示，保持商品页干净 */
.pd-rail .thumb-mv { opacity: 0; transition: opacity .15s ease; }
.pd-rail .gallery__thumb:hover .thumb-mv { opacity: 1; }

/* ---------------- 规格过多时的折叠（1688 式 +N 磁贴 / 更多选项组） ---------------- */
.pd-options__chips.is-collapsed > .opt-overflow { display: none; }
.opt-more {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 2px dashed #ddd2bb; background: #fffdf8; color: #7d6f57;
  font-family: inherit; cursor: pointer; line-height: 1.2;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.opt-more:hover { border-color: var(--gold, #c9a45c); color: var(--gold-deep, #b8893a); background: #fff; }
.opt-more:focus-visible { outline: 2px solid var(--gold-deep, #b8893a); outline-offset: 2px; }
.opt-more--swatch {
  flex-direction: column; padding: 6px 4px; border-radius: 10px; aspect-ratio: 3 / 4;
}
.opt-more--swatch .opt-more__n { font-size: 1.15rem; font-weight: 700; color: var(--gold-deep, #b8893a); }
.opt-more--swatch .opt-more__t { font-size: .72rem; }
.opt-more--chip { padding: 8px 15px; border-radius: 999px; font-size: .86rem; }
.opt-more--row { width: 100%; padding: 10px 16px; border-radius: 10px; justify-content: space-between; font-size: .88rem; }
.opt-more__caret { font-size: .8rem; transition: transform .18s ease; }
.pd-options__chips:not(.is-collapsed) > .opt-more--row .opt-more__caret,
.opt-groups-toggle[aria-expanded="true"] .opt-more__caret { transform: rotate(180deg); }
/* 选项组过多：第 4 组起收进 “More options (N)” */
.opt-groups-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  margin-top: 12px; padding: 9px 14px;
  border: 1px dashed #d8cdb8; border-radius: 10px;
  background: rgba(201, 164, 92, .06); color: #6b5f4b;
  font-size: .85rem; font-family: inherit; cursor: pointer;
}
.opt-groups-toggle:hover { border-color: var(--gold, #c9a45c); color: var(--gold-deep, #b8893a); }
.pd-options__extra { display: grid; gap: 14px; margin-top: 12px; }
.pd-options__extra[hidden] { display: none; }
/* 组头右侧：已选规格名 */
.pd-options__hint { max-width: 55%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-options__hint.is-picked { color: var(--gold-deep, #b8893a); font-weight: 600; }

/* ---------------- 风格/款型横排图卡 + 长度参考说明 ---------------- */
.pd-options__chips--styles {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.pd-options__chips--styles::-webkit-scrollbar { height: 6px; }
.pd-options__chips--styles::-webkit-scrollbar-thumb { background: #e2d9c6; border-radius: 3px; }
.pd-options__chips--styles::-webkit-scrollbar-track { background: transparent; }
.opt-style {
  flex: 0 0 auto; width: 84px; padding: 0; border: 2px solid #e2d9c6; border-radius: 8px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: inherit;
  scroll-snap-align: start; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.opt-style:hover { border-color: var(--gold, #c9a45c); }
.opt-style__img { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #f4efe4; }
.opt-style__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-style__label {
  font-size: .68rem; padding: 4px 5px; color: #5d5140; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.opt-style.is-active { border-color: var(--gold-deep, #b8893a); box-shadow: 0 0 0 2px rgba(184, 137, 58, .22); }
.opt-style.is-active .opt-style__label { color: var(--gold-deep, #b8893a); font-weight: 600; }
/* 行式右侧：价格/现货 + 参考说明 */
.opt-row__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.opt-row__note {
  font-size: .74rem; color: #8a7a5c; background: rgba(201, 164, 92, .13);
  border: 1px solid rgba(201, 164, 92, .3); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.opt-chip__note { display: block; font-size: .66rem; color: #9a8a6d; margin-top: 2px; font-weight: 400; }
.opt-swatch__note { font-size: .66rem; color: #9a8a6d; line-height: 1.2; }

/* 横排规格不撑宽父容器（flex/grid min-width:auto 溢出修复） */
.pd-grid--1688 > * { min-width: 0; }
.pd-info, .pd-buybox, .pd-options, .pd-options__group { min-width: 0; }
.pd-options__chips--styles { width: 100%; max-width: 100%; min-width: 0; }
.pd-options__chips--swatches, .pd-options__chips { min-width: 0; max-width: 100%; }

/* 颜色/款式卡片等高（名称 1~2 行不齐） */
.pd-buybox .opt-swatch { height: 100%; }
/* 手机窄屏：4 色一行排开，避免 3+1 落单 */
@media (max-width: 480px) {
  .pd-buybox .pd-options__chips--swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .pd-buybox .opt-swatch { padding: 3px 3px 5px; }
  .pd-buybox .opt-swatch__label { font-size: .66rem; line-height: 1.2; }
  .pd-buybox .opt-swatch__note { font-size: .6rem; }
}
.opt-swatch__label { min-height: 2.4em; display: flex; align-items: center; justify-content: center; text-align: center; }
.opt-style__label { min-height: 1.9em; }

/* =============== 详情图区：上产品图 / 下尺寸图（1688 式） =============== */
.pd-figures { display: grid; gap: 26px; }
.pd-figsec { position: relative; }
.pd-figsec__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pd-figsec__head h3 { font-size: 1.12rem; color: var(--ink, #33302a); margin: 0; white-space: nowrap; }
.pd-figsec__head span { font-size: .8rem; color: #9a8a6d; }
.pd-figgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
/* 尺寸图：2 列放大展示（图表文字要看得清），手机上 1 列 */
.pd-figsec[data-figdir="size"] .pd-figgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .pd-figsec[data-figdir="size"] .pd-figgrid { grid-template-columns: 1fr; }
}
.pd-fig { position: relative; margin: 0; border-radius: 10px; overflow: hidden;
  background: #f7f2e8; border: 1px solid #e7dcc8; cursor: zoom-in; }
.pd-fig img { display: block; width: 100%; height: auto; }
.pd-fig__del { display: none; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: none; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem;
  cursor: pointer; line-height: 24px; padding: 0; }
.editing .pd-fig__del { display: block; }
.pd-figsec__add { display: none; width: 100%; margin-top: 10px; padding: 18px;
  border: 2px dashed #cbbd9d; border-radius: 10px; background: rgba(201,164,92,.04);
  color: #7d6f57; font-size: .88rem; cursor: pointer; font-family: inherit; }
.pd-figsec__add:hover { border-color: var(--gold, #c9a45c); color: var(--gold-deep, #b8893a); }
.editing .pd-figsec__add { display: block; }
/* 编辑模式空区提示（访客不可见） */
.pd-figsec[data-empty="1"] .pd-figgrid { display: none; }
.pd-figsec:not([data-empty="1"]) .pd-figsec__add { display: none; }
.editing .pd-figsec[data-empty="1"] .pd-figsec__add { display: block; border-style: dashed; }
/* 空区连标题一起收起来：没有图的板块不占版面，访客看不到「Product photos」这种空标题，
   编辑模式下只剩一行细按钮（原来是两块大虚线框，看着像图片加载失败） */
.pd-figsec[data-empty="1"] { display: none; }
.editing .pd-figsec[data-empty="1"] { display: block; }
.pd-figsec[data-empty="1"] .pd-figsec__head { display: none; }
.editing .pd-figsec[data-empty="1"] .pd-figsec__add {
  margin-top: 0; padding: 9px 14px; font-size: .78rem; border-width: 1px; border-radius: 8px; text-align: center;
}
/* 整个详情图区一块图都没有时，访客侧整段收起（编辑模式仍露出细按钮） */
.pd-figures:not(:has(.pd-figsec:not([data-empty="1"]))) { display: none; }
.editing .pd-figures:not(:has(.pd-figsec:not([data-empty="1"]))) { display: grid; gap: 8px; }
/* 主图点击放大（灯箱） */
.pd-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(24, 20, 12, .82);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 28px; }
.pd-lightbox img { max-width: min(94vw, 1200px); max-height: 90vh; border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5); background: #fff; }
.pd-lightbox__x { position: absolute; top: 16px; right: 20px; border: none; background: transparent;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.pd-lightbox__x:hover { color: var(--gold, #c9a45c); }

/* ---------- 产品编号（货号）----------
   W = 女士发套、H = 女士补发片、A = 配件；编号固化在 product_codes.json，不随排序变化 */
.product-card__code {
  position: absolute; top: 12px; right: 12px;
  background: rgba(34, 30, 26, .84); color: var(--on-dark);
  font-family: var(--font-body); font-size: .64rem; font-weight: 600;
  letter-spacing: .1em; line-height: 1.6; padding: 2px 8px;
  border-radius: 999px; font-variant-numeric: tabular-nums;
  transition: opacity .2s ease;
}
.product-card:hover .product-card__code { opacity: .92; }

.pd-eyebrow { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; }
.pd-code {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  color: var(--gold-deep); background: var(--gold-tint);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 4px 11px; white-space: nowrap;
}
.editing .pd-code { border-style: dashed; }

@media (max-width: 680px) {
  .product-card__code { top: 8px; right: 8px; font-size: .6rem; padding: 2px 7px; }
  .pd-code { font-size: .66rem; padding: 3px 9px; }
}

/* ---------- 产品编号总表（product-codes.html，内部页）---------- */
.pcc__block { max-width: 1000px; margin: 0 auto 34px; }
.pcc__block h2 { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink);
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pcc__block h2 span { font-family: var(--font-body); font-size: .76rem; font-weight: 500;
  color: var(--muted); letter-spacing: .04em; margin-left: 8px; }
.pcc__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pcc__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pcc__table thead th { text-align: left; font-family: var(--font-body); font-size: .68rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pcc__table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: top; }
.pcc__table tbody tr:nth-child(even) { background: var(--surface-2); }
.pcc__table tbody tr:hover { background: var(--gold-tint); }
.pcc__table { table-layout: fixed; width: 100%; }
.pcc__code { font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; color: var(--gold-deep); font-variant-numeric: tabular-nums;
  white-space: nowrap; width: 92px; }
.pcc__series { font-size: .8rem; color: var(--muted); white-space: nowrap; width: 150px;
  overflow: hidden; text-overflow: ellipsis; }
.pcc__name a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.pcc__name a:hover { color: var(--gold-deep); border-bottom-color: var(--gold-soft); }

@media (max-width: 680px) {
  .pcc__code { width: 64px; font-size: .74rem; letter-spacing: .04em; }
  .pcc__series { width: 92px; font-size: .72rem; }
  .pcc__table { font-size: .82rem; }
  .pcc__table tbody td { padding: 9px 8px; }
  .pcc__table thead th { padding: 7px 8px; }
}

/* ---------------- 全站阶梯价卡：满 10 件 -5%（data.TRADE.tier_qty / tier_off） ---------------- */
.pd-tiers--rule {
  background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
  border-color: #e6d9bd;
}

.pd-tiers--rule .pd-tiers__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-tiers__flag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: #fff;
  background: var(--gold-deep, #b8893a);
  border-radius: 999px;
  padding: 2px 8px;
}

.pd-tiers__row.is-best {
  font-weight: 600;
}

.pd-tiers__row.is-best span:last-child {
  color: var(--gold-deep, #b8893a);
  font-weight: 800;
}

.pd-tiers__note {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #eee4d2;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-2, #6b5f4b);
}

.pd-qty { flex-wrap: wrap; }
/* 总价独立成行右对齐：不与输入框抢宽度，也不压到下面的 CTA */
.pd-qty__total {
  flex: 1 1 100%;
  max-width: none;
  margin-left: 0;
  margin-top: 2px;
  text-align: right;
  line-height: 1.25;
}
.pd-qty__calc {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-2, #6b5f4b);
  margin-top: 2px;
}

/* 数量行与 CTA 之间留呼吸，避免总价小字贴住按钮 */
.pd-options + .pd-cta { margin-top: 6px; }
.pd-qty { margin-bottom: 4px; }

/* ---------- Style finder（认款总表） ---------- */
.sg-note {
  background: var(--gold-tint); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 26px; font-size: .9rem; line-height: 1.65; color: var(--ink-2);
}
.sg-note b { color: var(--ink); }
.sg-block__title {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sg-block__title span {
  font-family: var(--font-body); font-size: .78rem; font-weight: 400; color: var(--muted);
  letter-spacing: .02em; margin-left: 10px;
}
.sg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.sg-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sg-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sg-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); }
.sg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-card__code {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(34, 30, 26, .84); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
}
.sg-card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 15px 15px; flex: 1; }
.sg-card__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.32; font-weight: 600; }
.sg-card__name a { color: var(--ink); text-decoration: none; }
.sg-card__name a:hover { color: var(--gold-deep); }
.sg-card__meta { display: grid; gap: 5px; margin-top: auto; }
.sg-card__meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.sg-card__meta dt {
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.sg-card__meta dd { font-size: .8rem; color: var(--ink-2); line-height: 1.45; word-break: break-word; }

@media (max-width: 680px) {
  .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sg-card__meta > div { grid-template-columns: 1fr; gap: 0; }
  .sg-card__meta dd { font-size: .76rem; }
  .sg-block__title { font-size: 1.24rem; }
  .sg-block__title span { display: block; margin: 4px 0 0; }
}

/* 窄屏（≤1080）商品页：.pd-media 是网格容器，.pd-about 没有 order 会跑到主图前面，
   导致手机上先显示「Product details」正文、主图被挤到下面。显式排到最后。 */
@media (max-width: 1080px) {
  .pd-media .pd-about { order: 3; }
  .pd-media .pd-stage { order: 1; }
  .pd-media .pd-rail { order: 2; }
}

/* 价格本体字号修复（2026-10-30）
   .pd-price span{font-size:.78rem}（特异性 11）会盖掉 .pd-price__value{2rem}（10），
   于是「有价」的商品也只能显示 12.5px 的小字。用子选择器提权到 20 修正。 */
.pd-price > .pd-price__value { font-size: 2rem; line-height: 1.15; }
.pd-price > .pd-price__value--ask { font-size: 1.05rem; }

.cta-band ul li, .cta-band .pd-highlights li { color: rgba(246, 240, 229, .9); }
.cta-band ul li::marker { color: var(--gold-soft, #d8b878); }
