/* ==========================================================================
   AURELIA — storefront stylesheet
   Visual language follows THOMAS SABO: black / white / grey only, no tinted
   paper, no decorative serif, uppercase micro-labels with wide tracking and
   photography-led layout. Colour is carried by the product, never by the UI.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #565656;
  --ink-3: #8d8d8d;
  --line: #dcdcdc;
  --line-soft: #ececec;
  --bone: #f4f4f4;
  --paper: #ffffff;
  --sand: #efefef;
  --gold: #111111;          /* 品牌强调色统一为黑，避免暖金色破坏黑白体系 */
  --gold-soft: #f4f4f4;
  --danger: #b3261e;
  --ok: #1c7a4a;

  --sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* 兼容旧规则：站点所有标题都走无衬线，--serif 指向同一族，避免漏改的区块退回衬线 */
  --serif: var(--sans);

  --gutter: 40px;
  --max: 1440px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.serif { font-family: var(--sans); font-weight: 500; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.link-under {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease);
}
.link-under:hover { opacity: 0.55; }

/* ------------------------------------------------------- announcement bar */

.announce {
  position: relative;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 44px;
  line-height: 1.5;
}
.announce span { opacity: 0.45; margin: 0 12px; }
.announce-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
  color: #fff; opacity: 0.65;
}
.announce-close:hover { opacity: 1; }
.announce-close svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.announce.is-hidden { display: none; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  gap: 24px;
}

.nav-left { display: flex; gap: 28px; align-items: center; height: 100%; }

/* 导航项本身不做定位：mega 面板要相对 .site-header 铺满整行，
   一旦这里加了 position，面板就只能贴着单个导航项展开 */
.nav-item { display: flex; align-items: center; height: 100%; }

.nav-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.logo {
  font-family: var(--sans);
  font-size: 20px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 600;
  white-space: nowrap;
}

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  position: relative;
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: var(--bone); }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.4; }

.badge-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: none;
}
.badge-count.is-on { display: block; }

/* ----------------------------------------------------------- 心愿单心形 */

.wish-btn { text-decoration: none; }
.wish-btn svg { transition: fill 0.2s var(--ease), transform 0.2s var(--ease); }

/* 商品卡片上的心形：压在图片右上角，不占布局 */
.card-wish {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.2s var(--ease);
}
.card:hover .card-wish,
.card-wish.is-on,
.card-wish:focus-visible { opacity: 1; }
.card-wish svg {
  width: 15px; height: 15px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.card-wish.is-on svg { fill: var(--ink); }
.card-wish:hover { background: #fff; }

/* 详情页的心愿单按钮：与加购并排，视觉上必须弱一档 */
.pdp-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: none;
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pdp-wish svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.pdp-wish:hover { border-color: var(--ink); color: var(--ink); }
.pdp-wish.is-on { border-color: var(--ink); color: var(--ink); }
.pdp-wish.is-on svg { fill: currentColor; }

.menu-toggle { display: none; }

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  min-height: min(72vh, 660px);
  background: linear-gradient(90deg, #fbfbfb 0 46%, #ebebeb 46% 100%);
  overflow: hidden;
  isolation: isolate;
}

/* 图片与文案叠在同一格：文案压在画面左下，和 THOMAS SABO 的满幅主视觉一致 */
.hero-art {
  grid-area: 1 / 1;
  display: grid;
  place-items: center end;
  padding: 30px clamp(0px, 5vw, 110px) 40px 0;
  overflow: hidden;
}
.hero-art img {
  width: min(52vw, 540px);
  max-width: none;
  opacity: 1;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.14));
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 70% 30%, rgba(255, 255, 255, 0.5), transparent 62%);
  pointer-events: none;
}

.hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(44px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }

.hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
  max-width: 15ch;
  text-transform: none;
}
.hero h1 .cjk {
  display: block;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1.6;
  margin-top: 20px;
  color: var(--ink-2);
  text-transform: uppercase;
}

.hero p {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 400px;
  margin: 20px 0 30px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  /* 窄屏改成上下两块：图片在上、文案在下，叠着放会把标题压到插画上 */
  .hero { min-height: 0; grid-template-rows: auto auto; }
  .hero-art {
    grid-area: 1 / 1;
    place-items: center;
    padding: 26px 0 0;
    min-height: 0;
  }
  .hero-art img { width: min(56vw, 240px); }
  .hero-copy {
    grid-area: 2 / 1;
    position: relative;
    padding-top: 22px;
    padding-bottom: 40px;
  }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); max-width: none; }
  .hero h1 .cjk { font-size: 12px; letter-spacing: 0.26em; margin-top: 14px; }
}

/* ------------------------------------------------------- marquee / strip */

.strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
}
.strip-track {
  display: inline-flex;
  gap: 64px;
  animation: slide 40s linear infinite;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.strip-track b { color: var(--ink-3); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ------------------------------------------------------------- sections */

.section { padding: clamp(52px, 6vw, 88px) 0; }
.section-tight { padding: clamp(36px, 4.5vw, 60px) 0; }
.section-alt { background: var(--bone); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.005em;
  margin: 10px 0 0;
  line-height: 1.2;
}
.section-head .sub { color: var(--ink-2); font-size: 13px; margin: 10px 0 0; max-width: 520px; }

/* -------------------------------------------------------- category tiles */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bone);
  overflow: hidden;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  mix-blend-mode: multiply;
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cat-tile .label i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.35) 26%, transparent 52%);
  z-index: 1;
}

/* --------------------------------------------------------- product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 16px;
}

/* 卡片做成竖向 flex：有「N 个款式」的商品比没有的多一行，
   按钮必须贴底对齐，否则同一行的加购按钮会高低错落。 */
.card { position: relative; display: flex; flex-direction: column; }

.card-media {
  /* 这是 <a>，默认是 inline：不给 block 的话 aspect-ratio 根本不生效 */
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bone);
  overflow: hidden;
  margin-bottom: 14px;
  flex: none;
}
.card-media img {
  /* 必须绝对定位：img 一旦参与父级高度计算，就会和 aspect-ratio 互相拉扯，
     把 .card-media 撑到整卡高度，下面的材质与价格被下一行的图片盖住。 */
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 1s var(--ease);
}
.card-img-alt { opacity: 0; }
/* hover 换第二张图：THOMAS SABO 的列表卡就是这个行为，
   比在卡片里塞一排缩略图干净得多 */
.card:hover .card-img-alt { opacity: 1; }
.card:hover .card-img { transform: scale(1.02); }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 9px;
}
.badge.is-soft { background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid var(--line); }
.badge.is-sale { background: var(--ink); color: #fff; }

.quick-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 3;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background 0.2s;
}
.quick-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card:hover .quick-add { opacity: 1; transform: none; }

.card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-name { font-size: 13px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.45; }
.card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.card-price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.card-price s { color: var(--ink-3); margin-left: 8px; font-size: 11.5px; font-weight: 400; }
.card-price .price-range i { font-style: normal; margin: 0 3px; color: var(--ink-3); font-weight: 400; }
.card-variants { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* 卡片内加购：THOMAS SABO 的列表页每张卡都能直接选码加购，
   不用先点进详情页再退回来。 */
.card-buy { margin-top: auto; padding-top: 10px; }
.cb-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s;
}
.cb-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 选码面板做成卡片内的内联展开：绝对定位会盖住价格和加购按钮，
   在 4 列网格里还会溢到下一行去。 */
.card-sizes {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}
.cq-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.cq-x { border: 0; background: none; font-size: 16px; line-height: 1; color: var(--ink-2); padding: 0 2px; }
.cq-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cq-chip {
  min-width: 42px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--ink-2);
  transition: all 0.18s;
}
.cq-chip:hover { border-color: var(--ink); color: var(--ink); }
.cq-chip.is-out {
  color: #b5b5b5; cursor: not-allowed;
  background: linear-gradient(to top right, transparent 47.5%, var(--line) 47.5%, var(--line) 52.5%, transparent 52.5%);
}
.cq-loading { font-size: 12px; color: var(--ink-3); padding: 6px 0; }

/* ------------------------------------------------------------- editorial */

.editorial {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 500px;
  background: #0d0d0d;
  color: #f5f5f5;
}
.editorial-art {
  background: linear-gradient(160deg, #1e1e1e, #0a0a0a 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.editorial-art img { width: 64%; max-width: 400px; opacity: 0.9; filter: invert(1) grayscale(1) contrast(1.1); }
.editorial-copy {
  padding: clamp(44px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-copy .eyebrow { color: #9a9a9a; }
.editorial-copy h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin: 16px 0 0;
}
.editorial-copy p { color: #b0b0b0; font-size: 13.5px; margin: 20px 0 30px; max-width: 430px; }

/* ---------------------------------------------------------- service strip */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: 36px 26px;
  text-align: center;
}
.service svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.2; margin: 0 auto 14px; }
.service h3 { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 7px; font-weight: 600; }
.service p { margin: 0; font-size: 12px; color: var(--ink-3); }

/* ------------------------------------------------------------ newsletter */

.newsletter { background: var(--bone); text-align: center; }
.newsletter h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.01em;
  margin: 12px 0 12px;
}
.newsletter p { color: var(--ink-2); font-size: 13px; margin: 0 auto 28px; max-width: 460px; }
.newsletter form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--paper);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter input:focus { outline: none; }
.newsletter .btn { min-height: 48px; padding: 0 26px; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer-brand .logo { font-size: 17px; letter-spacing: 0.4em; }
.footer-brand p { color: var(--ink-2); font-size: 12.5px; max-width: 300px; margin: 18px 0 22px; line-height: 1.7; }
.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 12.5px; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  border-top: 0;
  padding: 4px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
}
.footer-pay { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.footer-pay span {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
}
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.footer-social a:hover { color: var(--ink); }

/* ------------------------------------------------------------ cart drawer */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 90;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(430px, 100%);
  background: var(--paper);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.10);
}
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line-soft); padding: 20px 24px 26px; }

.ship-meter { font-size: 12px; color: var(--ink-2); margin-bottom: 16px; }
.ship-meter .bar { height: 2px; background: var(--line); margin-top: 9px; position: relative; }
.ship-meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); transition: width 0.4s var(--ease); }

.line-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.line-item:last-child { border-bottom: 0; }
.line-item-media { aspect-ratio: 4/5; background: var(--bone); overflow: hidden; }
.line-item-media img { width: 100%; height: 100%; object-fit: cover; }
.line-item h3 { font-size: 13.5px; margin: 0 0 4px; font-weight: 500; }
.line-item .meta { font-size: 11.5px; color: var(--ink-3); }
.line-item .price { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  margin-top: 10px;
}
.qty button { width: 28px; height: 28px; border: 0; background: none; font-size: 14px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }

.remove { background: none; border: 0; padding: 0; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--danger); }

.totals { font-size: 13px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.totals div.grand { color: var(--ink); font-size: 15px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.totals .val { font-variant-numeric: tabular-nums; }

.empty-state { text-align: center; padding: 70px 10px; color: var(--ink-3); font-size: 13.5px; }
.empty-state .serif { font-size: 22px; color: var(--ink); display: block; margin-bottom: 8px; }

/* --------------------------------------------------------- search overlay */

.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  z-index: 101;
  transform: translateY(-100%);
  transition: transform 0.36s var(--ease);
  border-bottom: 1px solid var(--line);
}
.search-panel.is-open { transform: none; }
.search-inner { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 34px; }
.search-inner form { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.search-inner input {
  flex: 1; border: 0; background: none; font-size: 22px; font-family: var(--serif);
  letter-spacing: 0.02em; padding: 4px 0;
}
.search-inner input:focus { outline: none; }
.search-hint { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.search-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }

/* ------------------------------------------------------------- shop page */

.page-head { padding: clamp(40px, 5vw, 64px) 0 28px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0.02em;
  margin: 8px 0 0;
}
.page-head p { color: var(--ink-2); font-size: 13.5px; margin: 12px 0 0; max-width: 520px; }

.crumbs { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 34px 8px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
}
.select-wrap::after {
  content: "";
  position: absolute; right: 13px; top: 50%;
  width: 5px; height: 5px;
  border-right: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.result-count { font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------- product page */

.pdp {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 7vw, 88px);
  align-items: start;
}
.pdp-gallery { display: grid; gap: 12px; }
/* 主图与缩略图统一 4/5 竖幅，和列表卡片同一比例：插画是竖版构图，
   方形裁切会把戒圈上下的留白切掉，看起来像放大过头的产品照。 */
.pdp-main { aspect-ratio: 4 / 5; background: var(--bone); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pdp-thumbs button { aspect-ratio: 4 / 5; background: var(--bone); border: 1px solid transparent; padding: 0; overflow: hidden; }
.pdp-thumbs button.is-active { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 数量 / 库存 / 尺码表 ---- */

.pdp-price .price-dash { font-style: normal; margin: 0 4px; color: var(--ink-3); }

.pdp-qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 18px; }
.pdp-qty-row .option-label { margin-bottom: 0; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 40px; }
.qty-stepper button {
  width: 34px; height: 38px; border: 0; background: none;
  font-size: 15px; color: var(--ink-2); line-height: 1;
  transition: background 0.18s;
}
.qty-stepper button:hover { background: var(--bone); }
.qty-stepper span { min-width: 30px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

.pdp-stock { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.pdp-stock.is-out { color: var(--danger); }

.size-guide-link {
  margin-left: auto;
  border: 0; background: none; padding: 0;
  font-size: 11px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.size-guide-link:hover { color: var(--ink); }

/* 尺码表弹窗 */
.sg-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.sg-modal[hidden] { display: none !important; }
.sg-backdrop { position: absolute; inset: 0; background: rgba(28, 24, 20, 0.42); }
.sg-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: var(--paper);
  padding: 26px 24px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.sg-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-2); }
.sg-panel h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.sg-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sg-table th {
  text-align: left; font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--ink); padding: 8px 6px;
}
.sg-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }

.pdp-info { position: sticky; top: calc(var(--nav-h) + 24px); }
.pdp-info h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: 0.03em; margin: 10px 0 10px; line-height: 1.35; }
.pdp-price { font-size: 18px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.pdp-price s { color: var(--ink-3); font-size: 14px; margin-left: 10px; }
.pdp-material { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.pdp-desc { font-size: 14px; color: var(--ink-2); margin: 22px 0; border-top: 1px solid var(--line-soft); padding-top: 22px; }

.option-label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.size {
  min-width: 46px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); background: transparent;
  font-size: 12.5px; color: var(--ink-2); transition: all 0.18s;
}
.size:hover { border-color: var(--ink-3); }
.size.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.pdp-actions { display: flex; gap: 10px; margin-bottom: 26px; }
.pdp-actions .btn { flex: 1 1 auto; min-width: 0; }
/* 心愿单按钮在操作区里是「副操作」：宽度由内容撑开，
   不能用 100%（会把主按钮挤成一条竖排的字） */
.pdp-actions .pdp-wish { width: auto; flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
@media (max-width: 480px) {
  .pdp-actions { flex-direction: column; }
  .pdp-actions .pdp-wish { width: 100%; }
}

.accordion { border-top: 1px solid var(--line-soft); }
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion summary {
  list-style: none;
  padding: 16px 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 16px; color: var(--ink-3); }
.accordion details[open] summary::after { content: "−"; }
.accordion .body { font-size: 13.5px; color: var(--ink-2); padding-bottom: 16px; }

/* ------------------------------------------------------------- checkout */

.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 7vw, 88px);
  align-items: start;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .err { font-size: 11.5px; color: var(--danger); margin-top: 5px; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: block; }

.summary-box { background: var(--bone); padding: 26px; position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-box h2 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 20px; font-weight: 500; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.summary-item img { width: 56px; aspect-ratio: 4/5; object-fit: cover; background: #fff; }
.summary-item h3 { font-size: 13px; margin: 0; font-weight: 500; }
.summary-item .meta { font-size: 11.5px; color: var(--ink-3); }
.summary-item .price { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- order confirm */

.confirm { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 96px; text-align: center; }
.confirm .tick {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; margin: 0 auto 26px;
}
.confirm h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 14px; }
.confirm .sub { color: var(--ink-2); font-size: 14px; }
.confirm .order-no {
  display: inline-block; margin: 24px 0 32px;
  border: 1px dashed var(--line); padding: 12px 22px;
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.1em;
}
.confirm-table { text-align: left; border-top: 1px solid var(--line-soft); margin-top: 32px; }
.confirm-table .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.confirm-table .row .val { font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------------------------------------------------------------- toast */

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #f3efe8;
  padding: 13px 20px; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.3s var(--ease);
}
.toast.is-out { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* -------------------------------------------------------------- skeleton */

.sk { background: linear-gradient(90deg, #f1ece4 25%, #f8f5ef 37%, #f1ece4 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-card { aspect-ratio: 4/5; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-art { min-height: 320px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary-box { position: static; order: -1; }
  .services { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .logo { font-size: 21px; }
  .menu-toggle { display: inline-grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-results { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 48px 0; }
  .quick-add { opacity: 1; transform: none; min-height: 38px; font-size: 11px; }
  .newsletter form { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* mobile nav sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 95;
  padding: 90px var(--gutter) var(--gutter);
  transform: translateX(-100%);
  transition: transform 0.34s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav a { font-family: var(--serif); font-size: 26px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .close-mobile { position: absolute; top: 18px; right: 16px; }

/* 404 page */
.nf-wrap { max-width: 640px; margin: 0 auto; padding: 88px 24px 56px; text-align: center; }
.nf-code { font-size: 13px; letter-spacing: 0.4em; color: #8a8a8a; margin: 0 0 16px; }
.nf-title { font-size: 32px; font-weight: 400; margin: 0 0 12px; }
.nf-desc { color: #666; margin: 0 0 36px; }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* hidden attribute must always win over explicit display rules */
[hidden] { display: none !important; }

/* sold-out variant */
/* 缺货态统一由下方 .sizes .size.is-out 负责画斜线，这里只保留禁止光标，避免划两道线 */
.size.is-out { cursor: not-allowed; }

/* ==========================================================================
   语言 / 币种切换（跨境）
   ========================================================================== */

.locale-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 2px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.locale-btn {
  border: 0;
  background: none;
  padding: 4px 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  line-height: 1;
}

.locale-btn:hover { color: var(--ink); }

.locale-select {
  appearance: none;
  -webkit-appearance: none;
  width: 76px;
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  padding: 4px 14px 4px 4px;
  line-height: 1;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b645d' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 8px 5px;
}

.locale-select:hover { color: var(--ink); }

#ship-note { min-height: 0; }

@media (max-width: 620px) {
  /* 窄屏顶部只保留「菜单 / 搜索 / 心愿单 / 购物袋 / 语言币种」。
     账户（订单查询）挤进来会把整行顶出横向滚动条，收进抽屉更合理。 */
  .nav { gap: 8px; }
  .nav-right { gap: 0; min-width: 0; }
  .nav-right .icon-btn { width: 36px; height: 36px; }
  .nav-right .icon-btn[aria-label="账户"],
  .nav-right a.icon-btn[href="/orders/lookup"] { display: none; }
  .logo { font-size: 18px; letter-spacing: 0.22em; }
  .locale-switch { padding-right: 4px; gap: 0; margin-right: 0; border-right: 0; }
  .locale-btn { padding: 4px; font-size: 10px; }
  .locale-select { padding-right: 10px; font-size: 10px; max-width: 58px; }
}

/* ---- 单品页：图集 / 卖点 / 规格表 ---- */
.pdp-thumbs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.pdp-thumbs button { position: relative; }
.pdp-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs .thumb-video {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; color: #fff; background: rgba(0, 0, 0, .28); pointer-events: none;
}

.pdp-highlights { margin: 14px 0 18px; }
.pdp-highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pdp-highlights li {
  position: relative; padding-left: 16px;
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
}
.pdp-highlights li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold, #a8895f);
}

.spec-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-tbl th, .spec-tbl td {
  text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line-soft);
  vertical-align: top; font-weight: 400;
}
.spec-tbl th { width: 38%; color: var(--ink-3); padding-right: 12px; }
.spec-tbl td { color: var(--ink); }
.spec-tbl tr:last-child th, .spec-tbl tr:last-child td { border-bottom: 0; }

/* 后台 Markdown 渲染出来的正文 */
#pdp-care p, .md-body p { margin: 0 0 10px; line-height: 1.8; }
#pdp-care ul, #pdp-care ol, .md-body ul, .md-body ol { margin: 0 0 10px 18px; line-height: 1.8; }
#pdp-care h1, #pdp-care h2, #pdp-care h3, #pdp-care h4 { margin: 14px 0 8px; font-size: 14px; }
#pdp-care a { text-decoration: underline; }
#pdp-care code { background: var(--bone); padding: 1px 5px; font-size: 12px; }

/* ---- 列表：价格区间与分页 ---- */
.shop-bar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input {
  width: 84px; border: 1px solid var(--line); background: transparent;
  padding: 7px 10px; font-size: 12px; font-family: inherit; color: var(--ink);
}
.price-range .pr-sep { color: var(--ink-3); font-size: 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 34px 0 0; flex-wrap: wrap; }
.pager .chip { min-width: 36px; text-align: center; }
.pager .chip[disabled] { opacity: .35; cursor: not-allowed; }
.pager-gap { color: var(--ink-3); padding: 0 2px; }

@media (max-width: 720px) {
  .shop-bar-right { gap: 10px; }
  .price-range input { width: 68px; }
}

/* ---- 单品页：多维选项（尺寸 × 材质 …） ---- */
.opt-block { margin-bottom: 18px; }
.opt-block:last-of-type { margin-bottom: 22px; }
.opt-label {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.opt-label .opt-sel {
  font-size: 12.5px; letter-spacing: .02em; text-transform: none; color: var(--ink);
}
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-values .size { min-width: 48px; }

/* ---- 取值挂图：图片本身就是选择器（对齐 THOMAS SABO：点图换款式） ---- */
/* 款式图选择器：对齐 THOMAS SABO 的方块图卡 ——
   常驻细边框 + 浅灰底，选中是「黑框 + 内圈留白」，一眼能看出选的是哪张。 */
.opt-values .opt-img {
  width: 74px; height: 92px; min-width: 0; padding: 0;
  position: relative; overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--line);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.opt-values .opt-img:hover { border-color: var(--ink-3); }
.opt-values .opt-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply; /* 白底商品图压到浅灰底上不会出现一块死白 */
}
.opt-values .opt-img.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
/* 选中角标：只是一个很小的实心点，不抢图片注意力 */
.opt-values .opt-img.is-active::before {
  content: '';
  position: absolute;
  top: 5px; right: 5px;
  width: 6px; height: 6px;
  background: var(--ink);
  z-index: 2;
}
/* 缺货斜线：.size.is-out 用背景画线，这里会被图片盖住，得单独盖一层 */
.opt-values .opt-img.is-out img { filter: grayscale(1) opacity(.42); }
.opt-values .opt-img.is-out::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(0, 0, 0, .3) 50%, transparent calc(50% + .5px));
}

/* 颜色维度没挂图时退化成色点，避免图片块和文字块混在一排。
   和图片卡同样的逻辑：选中是「白圈 + 黑环」，未选只有细灰环。 */
.opt-values { align-items: flex-start; }
.opt-values .opt-dot {
  width: 44px; height: 44px; min-width: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-color: transparent;
}
.opt-values .opt-dot:hover { border-color: transparent; }
.opt-dot i {
  width: 26px; height: 26px; border-radius: 50%; display: block;
  background: var(--sw, #cfcac3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
  transition: box-shadow 0.18s var(--ease);
}
.opt-dot.is-active { background: transparent; color: var(--ink); }
.opt-dot.is-active i {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), 0 0 0 3px #fff, 0 0 0 4px var(--ink);
}

/* 不可选组合：灰掉并划一道细线，而不是凭空消失（客人要能看出提供过这个规格） */
.sizes .size.is-out {
  color: rgba(0, 0, 0, .3);
  border-color: var(--line);
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px));
  cursor: not-allowed;
}
.sizes .size.is-out.is-active { color: rgba(0, 0, 0, .38); border-color: var(--line); }

/* 只有一张图时不显示缩略图栏，避免孤零零一个方块 */
.pdp-thumbs.is-single { display: none; }

/* 多维选项容器：竖排（每个维度一块），与单维度时的一行 chip 区分开 */
#pdp-sizes.opt-list { display: block; }

/* 加购按钮与上方内容之间统一留白：有选项时由 opt-block 收尾，无选项时靠这里撑开 */
.pdp-actions { margin-top: 24px; }
.opt-block:last-of-type { margin-bottom: 0; }

/* ==================================================== 帮助中心 / 品牌页 */

.page-lead {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
  margin: 14px 0 0;
  max-width: 620px;
}

.content-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px);
  align-items: start;
}

.content-nav {
  position: sticky;
  top: 96px;
  /* 顶部不再画一条 200px 的孤线：右侧正文首节本来就没有分隔线，不对称 */
  padding-top: 4px;
}
.content-nav-title {
  font-family: var(--serif);
  font-size: 15px;
  margin-bottom: 14px;
}
.content-nav ul { list-style: none; padding: 0; margin: 0; }
.content-nav li + li { margin-top: 10px; }
.content-nav a {
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.content-nav a:hover { color: var(--ink); }
.content-nav a.is-active { color: var(--ink); font-weight: 500; }

.content-body { max-width: 720px; }
.content-body section + section { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line-soft); }
.content-body h2 {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.content-body p { font-size: 14px; line-height: 1.9; color: var(--ink-2); margin: 0 0 14px; }
.content-body p:last-child { margin-bottom: 0; }
.content-body strong { color: var(--ink); font-weight: 600; }
.content-body ul, .content-body ol { margin: 0 0 16px; padding-left: 22px; }
/* 全局把 ul 的 list-style 清掉了，正文里必须恢复，否则读起来是一堆断句 */
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li::marker { color: var(--ink-3); }
.content-body li { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.content-body li + li { margin-top: 6px; }
.content-body a { border-bottom: 1px solid var(--line); }
.content-body a:hover { border-color: var(--ink); }
.content-body code { font-size: 12.5px; background: var(--bone); padding: 2px 6px; }

.content-foot {
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

/* Markdown 表格：尺码对照 / 配送时效 */
.md-table-wrap { overflow-x: auto; margin: 4px 0 18px; }
.md-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md-table th,
.md-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.md-table th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom-color: var(--line);
}
.md-table td { color: var(--ink-2); }
.md-table tr:last-child td { border-bottom: 0; }

@media (max-width: 820px) {
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .content-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: baseline;
  }
  .content-nav-title { width: 100%; margin-bottom: 4px; }
  .content-nav ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .content-nav li + li { margin-top: 0; }
}

/* ============================================================ 心愿单页 */

.wish-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(40px, 5vw, 64px) 0 26px;
  border-bottom: 1px solid var(--line-soft);
}
.wish-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0.02em;
  margin: 8px 0 0;
}
.wish-count { font-size: 13px; color: var(--ink-3); }
.wish-clear {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.wish-clear:hover { color: var(--ink); border-color: var(--ink); }

.wish-empty {
  text-align: center;
  padding: clamp(64px, 12vw, 120px) 0;
}
.wish-empty .serif { display: block; font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.wish-empty p { color: var(--ink-3); font-size: 13.5px; margin: 0 0 24px; }

/* --------------------------------------------------- 列表页二级筛选 */
/* 材质是分类之外客人最常切的一维，单独一行放在主筛选栏下面，
   不挤进上面那排品类 chip 里，否则「全部/戒指/项链…」会被淹掉 */
.filter-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}
/* 数量跟在标签后面，用更弱的颜色；选中时反白 */
.chip-n {
  font-style: normal;
  margin-left: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.chip.is-active .chip-n { color: rgba(255, 255, 255, 0.65); }
.filter-reset {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  font-size: 12px;
  color: var(--ink-3);
  flex: none;
}
.filter-reset:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 620px) {
  .filter-group { gap: 10px; }
  .filter-extra { align-items: flex-start; }
}

/* ============================================================ Mega Menu */
/* 面板挂在 body 上（不在 header 里），所以定位用 top = header 底边，
   由 JS 每次展开时算一次——靠 CSS 的话 sticky 头一滚就错位。 */

.mega {
  position: fixed;
  left: 0; right: 0;
  top: 68px;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 48px -28px rgba(35, 30, 25, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }

.mega-inner {
  position: relative;
  display: grid;
  grid-template-columns: 170px 160px 180px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
  padding-top: 30px;
  padding-bottom: 34px;
  align-items: start;
}

.mega-col { min-width: 0; }
.mega-head {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li + li { margin-top: 9px; }
.mega-list a {
  font-size: 13.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.18s var(--ease);
}
.mega-list a:hover { color: var(--ink); }
.mega-list a.is-strong { color: var(--ink); font-size: 15px; }
.mega-n { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mega-total { font-size: 12px; color: var(--ink-3); }

.mega-col-wide { min-width: 0; }
.mega-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mega-item { display: block; }
.mega-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--bone);
  overflow: hidden;
  margin-bottom: 10px;
}
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.mega-item:hover .mega-thumb img { transform: scale(1.04); }
.mega-item-name { display: block; font-size: 13px; color: var(--ink); }
.mega-item-price { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mega-item-price .price-dash { font-style: normal; margin: 0 3px; }

.mega-all {
  position: absolute;
  right: var(--gutter);
  top: 34px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.mega-all:hover { color: var(--ink); border-color: var(--ink); }

.mega-loading { display: flex; justify-content: center; padding: 44px 0; }
.mega-loading span {
  width: 18px; height: 18px;
  border: 1px solid var(--line);
  border-top-color: var(--ink-3);
  border-radius: 50%;
  animation: mega-spin 0.8s linear infinite;
}
@keyframes mega-spin { to { transform: rotate(360deg); } }

/* 当前展开的导航项保持下划线，鼠标横移时不会“闪一下” */
.nav-left .nav-link.is-open { color: var(--ink); }
.nav-left .nav-link.is-open::after { transform: scaleX(1); }

@media (max-width: 1080px) {
  .mega { display: none; }
}

/* ---------------------------------------------- 抽屉内的二级折叠 */
.mobile-nav { overflow-y: auto; }

.mnav-group { border-bottom: 1px solid var(--line-soft); }
.mnav-t {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  text-align: left;
}
.mnav-t svg { transition: transform 0.24s var(--ease); color: var(--ink-3); }
.mnav-t.is-open svg { transform: rotate(180deg); }
.mnav-sub { padding: 2px 0 16px; }
.mnav-sub a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 0;
  display: block;
}
.mnav-sub a:hover { color: var(--ink); }

/* -------------------------------------------------- 详情页：到货通知 */
.sa-form {
  border: 1px solid var(--line);
  background: var(--bone);
  padding: 18px 18px 16px;
  margin: -10px 0 26px;
}
.sa-title { font-size: 13px; letter-spacing: 0.06em; margin-bottom: 6px; }
.sa-desc { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); margin: 0 0 12px; }
.sa-row { display: flex; gap: 8px; }
.sa-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.sa-row input:focus { outline: none; border-color: var(--ink); }
.sa-row .btn { flex: 0 0 auto; height: 42px; padding: 0 20px; }
.sa-msg { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.sa-msg.is-ok { color: var(--ok); }
.sa-msg.is-err { color: var(--danger); }

/* ---------------------------------------------------- 订单查询页 */
.lookup-wrap {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 8vw, 96px);
  align-items: start;
}
.lookup-form { display: flex; flex-direction: column; gap: 16px; }
.lk-field { display: flex; flex-direction: column; gap: 8px; }
.lk-field span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lk-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.lk-field input:focus { outline: none; border-color: var(--ink); }
.lookup-form .btn { height: 46px; }
.lookup-hint { font-size: 12.5px; line-height: 1.8; color: var(--ink-3); margin: 2px 0 0; }
.lookup-hint.is-err { color: var(--danger); }

.lookup-result {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.lk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lk-no { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.02em; }
.lk-status {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.lk-status.is-shipped, .lk-status.is-done, .lk-status.is-paid { border-color: var(--ok); color: var(--ok); }
.lk-status.is-cancelled, .lk-status.is-refunded { color: var(--ink-3); }
.lk-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 22px; }
.lk-rows { border-top: 1px solid var(--line-soft); }
.lk-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}
.lk-rows .row .val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.lk-rows .row.is-total { font-size: 15px; border-bottom: 0; }
.lk-rows .row.is-total .val { font-size: 17px; }

@media (max-width: 820px) {
  .lookup-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ------------------------------------------------------- 商品大图浮层 */
.pdp-main.is-zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lb-stage {
  margin: 0;
  width: min(78vw, 760px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: var(--bone);
}

.lb-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px;
  line-height: 0;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 34px;
  line-height: 1;
  padding: 10px 6px;
  transition: color 0.2s var(--ease);
}
.lb-nav:hover { color: #fff; }
.lb-nav[hidden] { display: none; }

.lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .lb-stage { width: 88vw; }
  .lb-prev, .lb-next { position: absolute; bottom: 16px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-count { bottom: 22px; }
}

/* --------------------------------------------------------- 详情页评价 */
.pdp-reviews {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rv-title { font-family: var(--serif); font-size: 15px; letter-spacing: 0.02em; margin: 0; font-weight: 400; }
.rv-head .link-under { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; font-size: 12.5px; color: var(--ink-3); }
.rv-head .link-under:hover { color: var(--ink); }

.rv-summary { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.rv-summary.is-empty { color: var(--ink-3); }
.rv-avg { font-family: var(--serif); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-stars { color: var(--gold); letter-spacing: 0.12em; font-size: 13px; }

.rv-list { list-style: none; margin: 18px 0 0; padding: 0; }
.rv-item { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.rv-item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-author { font-size: 13px; color: var(--ink); }
.rv-date { font-size: 11.5px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.rv-body { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); margin: 8px 0 0; }

.rv-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-rate { display: flex; gap: 4px; }
.rv-star {
  background: none;
  border: 0;
  padding: 0 2px;
  font-size: 22px;
  line-height: 1;
  color: var(--line);
  transition: color 0.15s var(--ease);
}
.rv-star.is-on { color: var(--gold); }
.rv-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  resize: vertical;
}
.rv-input:focus { outline: none; border-color: var(--ink); }
.rv-actions { display: flex; align-items: center; gap: 16px; }
.rv-actions .btn { height: 42px; padding: 0 22px; }
.rv-actions .link-under { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; font-size: 12.5px; color: var(--ink-3); }
.rv-msg { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.rv-msg.is-ok { color: var(--ok); }
.rv-msg.is-err { color: var(--danger); }

/* ==================================================== 列表页两栏布局 */
/* 对齐 THOMAS SABO：左侧常驻筛选栏（桌面），右侧结果区只保留结果数与排序；
   手机上筛选栏变成左侧抽屉，靠「筛选」按钮打开，不占竖向空间。 */

.shop-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 46px);
  padding: 26px 0 72px;
  align-items: start;
}

.shop-side {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  padding-right: 22px;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - var(--nav-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.side-head { display: none; }

.side-block { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.side-block:first-of-type { padding-top: 0; }
.side-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}

/* 侧栏里的分类用「文字列表 + 右侧计数」，不是胶囊按钮：
   胶囊在窄栏里两三个就换行，列表扫读更快 */
.filters-vert { display: flex; flex-direction: column; gap: 1px; }
.filters-vert .chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  text-align: left;
}
.filters-vert .chip:hover { color: var(--ink); }
.filters-vert .chip.is-active { background: none; color: var(--ink); font-weight: 600; }
.chip-n { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.shop-side .price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.shop-side .price-range input {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  font-family: inherit;
}
.shop-side .price-range input:focus { outline: none; border-color: var(--ink); }
.shop-side .price-range .pr-sep { color: var(--ink-3); font-size: 11px; }
.shop-side .price-range #price-apply { grid-column: 1 / -1; margin-top: 6px; width: 100%; }
.shop-side .select-wrap select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  padding: 0 8px;
}
.shop-side .filter-extra { display: block; padding: 0; border: 0; }
.filter-reset {
  width: 100%;
  margin-top: 4px;
  padding: 9px 0;
  border: 1px solid var(--line);
  background: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.filter-reset:hover { border-color: var(--ink); color: var(--ink); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.result-count { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.shop-toolbar .sort-wrap { margin-left: auto; }
.shop-toolbar .sort-wrap select {
  border: 0;
  background: transparent;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  color: var(--ink);
}
.shop-toolbar .sort-wrap select:focus { outline: none; }

.filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ink);
  background: none;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 有侧栏时网格降到 3 列，卡片才不会被挤成细条 */
.shop-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .shop-layout { grid-template-columns: 186px minmax(0, 1fr); gap: 24px; }
  .shop-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .shop-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .filter-btn { display: inline-flex; }
  .shop-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px);
    /* 要盖在遮罩（z-index 90）之上，否则抽屉会被灰色蒙层压住 */
    z-index: 95;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 0 20px 48px;
    max-height: none;
    overflow-y: auto;
    transform: translateX(-101%);
    transition: transform 0.32s var(--ease);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.12);
  }
  .shop-side.is-open { transform: none; }
  .side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .side-close { border: 0; background: none; padding: 0; display: grid; place-items: center; }
}

/* ============================================ 窄屏头部与主视觉微调 */
@media (max-width: 700px) {
  .announce {
    font-size: 9.5px;
    letter-spacing: 0.08em;
    padding: 8px 34px;
    line-height: 1.6;
  }
  .announce-close { right: 6px; }

  /* 移动端汉堡靠左、图标靠右，和 THOMAS SABO 的手势习惯一致 */
  .site-header .nav { position: relative; }
  .site-header .menu-toggle {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
  }
  .nav-right { gap: 0; }
  .logo { font-size: 17px; letter-spacing: 0.36em; text-indent: 0.36em; }
}

@media (max-width: 900px) {
  /* 三栏导航在窄屏只剩 logo 与图标，改用 flex + 绝对居中 logo，
     避免 grid 两列把 logo 顶到最左边 */
  .site-header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }
  .site-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.3em;
    text-indent: 0;
  }
  .site-header .menu-toggle {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
  }
}

/* 390px 宽度下 5 个图标 + 语言切换会把 logo 顶出屏幕：
   窄屏只保留搜索 / 心愿单 / 购物袋，其余收进菜单 */
@media (max-width: 900px) {
  .site-header .locale-switch { display: none; }
  .site-header .nav-right a[href="/orders/lookup"] { display: none; }
  .site-header .logo { font-size: 15px; letter-spacing: 0.28em; }
  .site-header .icon-btn { width: 36px; height: 36px; }
  .site-header .icon-btn svg { width: 17px; height: 17px; }
}

/* ==================================================== 快速查看（Quick view） */

.qv-open {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  z-index: 3;
  padding: 10px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s;
}
.card:hover .qv-open,
.qv-open:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.qv-open:hover { background: var(--ink); color: #fff; }
/* 触屏没有 hover，这张按钮永远不出现；移动端点卡片直接进详情更省事 */
@media (hover: none) { .qv-open { display: none; } }

.qv {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}
.qv[hidden] { display: none; }
.qv-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.qv.is-open .qv-bg { opacity: 1; }

.qv-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(88vh, 720px);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  overflow: hidden;
}
.qv.is-open .qv-panel { opacity: 1; transform: none; }

.qv-x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.qv-x:hover { background: var(--bone); }

.qv-body {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: min(560px, 72vh);
  max-height: min(88vh, 720px);
  overflow-y: auto;
}
.qv-media { background: var(--bone); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }

.qv-info { padding: 42px 38px 32px; display: flex; flex-direction: column; }
.qv-name { font-size: 23px; font-weight: 500; letter-spacing: 0.01em; margin: 10px 0 8px; line-height: 1.3; }
.qv-price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qv-price i { font-style: normal; margin: 0 4px; color: var(--ink-3); font-weight: 400; }
.qv-material { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.qv-desc { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin: 16px 0 0; }

.qv-opt { margin-top: 20px; }
.qv-opt-head {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.qv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.qv-chip {
  min-width: 50px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.qv-chip:hover { border-color: var(--ink); color: var(--ink); }
.qv-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.qv-chip.is-out {
  color: #c4c4c4;
  cursor: not-allowed;
  background: linear-gradient(to top right, transparent 47.5%, var(--line) 47.5%, var(--line) 52.5%, transparent 52.5%);
}

.qv-actions { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qv-more { margin-top: 16px; font-size: 10.5px; }
.qv-loading { padding: 80px 40px; text-align: center; color: var(--ink-3); font-size: 13px; }

body.qv-lock { overflow: hidden; }

@media (max-width: 820px) {
  .qv { padding: 0; }
  .qv-panel { width: 100%; max-height: 100%; height: 100%; }
  .qv-body { grid-template-columns: 1fr; max-height: 100%; height: 100%; }
  .qv-media { aspect-ratio: 4 / 5; max-height: 46vh; }
  .qv-info { padding: 26px 22px 32px; }
  .qv-name { font-size: 20px; }
}

/* ============================================ 详情页窄屏底部加购条 */
/* 手机上往下看评价/参数时加购按钮早就滚出屏幕，THOMAS SABO 也是常驻一条。 */

.pdp-sticky { display: none; }

@media (max-width: 900px) {
  .pdp-sticky {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .ps-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .ps-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ps-price { font-size: 13px; font-weight: 600; }
  .pdp-sticky .btn { flex: 0 0 auto; min-height: 44px; padding: 0 22px; font-size: 11px; }
  /* 别让固定条盖住页脚最后一行 */
  body[data-page="product"] { padding-bottom: 64px; }
}

/* ================================================== 礼物指南（按价位） */

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gift-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gift-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}
.gift-title { font-size: 22px; font-weight: 500; letter-spacing: 0.01em; }
.gift-note { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; transition: color 0.3s var(--ease); }
.gift-arrow {
  position: absolute;
  top: 24px; right: 26px;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.gift-tile:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.gift-tile:hover .gift-kicker { color: rgba(255, 255, 255, 0.6); }
.gift-tile:hover .gift-note { color: rgba(255, 255, 255, 0.75); }
.gift-tile:hover .gift-arrow { transform: translateX(4px); }

@media (max-width: 820px) {
  .gift-grid { grid-template-columns: 1fr; gap: 10px; }
  .gift-tile { min-height: 150px; padding: 22px; }
  .gift-title { font-size: 19px; }
}

/* ============================================ 详情页服务承诺行 */

.pdp-serv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.pdp-serv li { display: flex; flex-direction: column; gap: 3px; padding: 0 14px 0 0; }
.pdp-serv li + li { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.pdp-serv svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  margin-bottom: 5px;
}
.pdp-serv b { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.pdp-serv span { font-size: 10.5px; line-height: 1.55; color: var(--ink-3); }

@media (max-width: 640px) {
  /* 窄屏三项并排会把说明压成两三个字一行，改成两行三列的行距紧凑版 */
  .pdp-serv { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
  .pdp-serv li {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 11px 0;
  }
  .pdp-serv li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .pdp-serv svg { margin-bottom: 0; }
  .pdp-serv span { flex: 1 1 100%; padding-left: 29px; }
}

/* ======================================== 头部随滚动收起（对齐 TS 头部行为） */

.site-header {
  transition: transform 0.3s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.site-header.is-pinned {
  transform: translateY(-100%);
}
/* 收起过程中如果客人把焦点送回头部（键盘 Tab），必须立刻显形，
   否则焦点会跑到一个看不见的按钮上 */
.site-header:focus-within {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

/* 选中款价格 + 区间提示：区间要小一号、退到灰，别和实价抢注意力 */
.pdp-price .price-range {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 9px;
  letter-spacing: 0;
}
