/* ============================================================
   LUMIN — Design System
   Light, editorial, outdoor-DTC. 一切从这套变量派生。
   ============================================================ */

:root {
  /* palette */
  --sand:      #0C0D13;
  --sand-2:    #13151E;
  --sand-3:    #1D202B;
  --white:     #FFFFFF;
  --surface:   #181B25;
  --ink:       #F4F2EA;
  --ink-2:     #D8D4C8;
  --muted:     #9C98A9;
  --muted-2:   #7B7787;
  --line:      #262A37;
  --line-2:    #353A4A;
  --brass:     #5FF0C8;
  --brass-2:   #38CFA8;
  --sage:      #8B7FF0;
  --sale:      #FF5C8A;

  /* type */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* metrics */
  --max: 1280px;
  --gut: 28px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgba(23,24,15,.05);
  --shadow: 0 2px 6px rgba(23,24,15,.05), 0 12px 32px rgba(23,24,15,.07);
  --shadow-lg: 0 12px 40px rgba(23,24,15,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1em; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 14px;
}
.lede { font-size: 1.06rem; color: var(--muted); max-width: 56ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--sand-2); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid var(--brass); border-radius: 999px;
  background: var(--brass); color: #0C1510;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: all .22s var(--ease);
}
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--light { background: var(--white); color: #14151C; border-color: var(--white); }
.btn--light:hover { background: var(--brass); color: #0C1510; border-color: var(--brass); }
.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--brass { background: var(--brass); border-color: var(--brass); }
.btn--brass:hover { background: var(--brass-2); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-u {
  display: inline-block; font-size: .88rem; font-weight: 600;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: opacity .2s var(--ease);
}
.link-u:hover { opacity: .6; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--brass); color: #0C1510;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 9px 16px;
}
.announce b { font-weight: 600; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,13,19,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__in {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.logo {
  font-family: var(--display); font-size: 1.42rem; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
}
.logo span { color: var(--brass); }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header__sp { flex: 1; }
.header__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  transition: background .2s var(--ease); position: relative;
}
.icon-btn:hover { background: var(--sand-3); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: 2px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brass); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.cur-select {
  border: 0; background: transparent; font-size: .85rem; font-weight: 600;
  padding: 8px 4px; cursor: pointer; color: var(--ink);
}
.burger { display: none; }

/* ---------- mobile drawer nav ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: rgba(23,24,15,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.mnav.is-open { opacity: 1; pointer-events: auto; }
.mnav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 380px);
  background: var(--sand); padding: 26px; overflow-y: auto;
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column;
}
.mnav.is-open .mnav__panel { transform: none; }
.mnav__panel a {
  display: block; font-family: var(--display); font-size: 1.5rem;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mnav__close { align-self: flex-end; margin-bottom: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__media {
  position: relative; height: clamp(480px, 72vh, 720px); overflow: hidden;
  background: var(--sand-3);
}
.hero__media img, .hero__media .hero__video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: heroIn 1.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,24,15,.62) 0%, rgba(23,24,15,.34) 42%, rgba(23,24,15,0) 72%);
}
.hero__content {
  position: absolute; inset: 0; display: flex; align-items: center;
  z-index: 2;
}
.hero__inner { max-width: 620px; color: #fff; padding: 0 var(--gut); margin-left: max(var(--gut), calc((100vw - var(--max)) / 2)); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lede { color: rgba(255,255,255,.82); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin-top: 22px; font-size: .8rem; color: rgba(255,255,255,.66); letter-spacing: .04em; }
.hero .eyebrow { color: rgba(255,255,255,.7); }

/* ---------- USP strip ---------- */
.usp {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.usp__item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 24px 8px;
}
.usp__item svg { width: 22px; height: 22px; stroke: var(--brass); fill: none; stroke-width: 1.5; flex: none; margin-top: 3px; }
.usp__item b { display: block; font-size: .9rem; font-weight: 600; }
.usp__item span { font-size: .82rem; color: var(--muted); }

/* ---------- section head ---------- */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.shead h2 { margin-bottom: 0; }

/* ---------- product grid ---------- */
.grid {
  display: grid; gap: 30px 24px;
  grid-template-columns: repeat(4, 1fr);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--sand-2); aspect-ratio: 1 / 1;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
/* 列表页悬停视频（有 video 才渲染；触屏设备不触发） */
.card__vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
@media (hover: hover) {
  .card:hover .card__vid { opacity: 1; }
}
.card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--white); color: #14151C;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card__tag--sale { background: var(--sale); color: #fff; }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: all .28s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: none; }
.card__body { padding: 14px 2px 0; }
.card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.card__title { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 500; margin: 4px 0 6px; }
.card__price { font-size: .95rem; font-weight: 600; }
.card__price del { color: var(--muted-2); font-weight: 400; margin-left: 6px; }
.card__stars { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.card__swatches { display: flex; gap: 5px; margin-top: 9px; }
.swatch-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(23,24,15,.18); }

/* ---------- editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.split__media { border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split--flip .split__media { order: 2; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-2);
}
.checklist li::before { content: '—'; color: var(--brass); font-weight: 700; }
.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat b { font-family: var(--display); font-size: 2rem; display: block; line-height: 1; }
.stat span { font-size: .8rem; color: var(--muted); }

/* ---------- size guide ---------- */
.sizeguide { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,64px); align-items: center; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.size-table th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.size-circle {
  width: 220px; height: 220px; border-radius: 50%; border: 1px dashed var(--line-2);
  display: grid; place-items: center; margin: 0 auto; background: var(--surface);
  font-family: var(--display); font-size: 1.1rem; text-align: center; padding: 20px;
}

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.stars { color: var(--brass); letter-spacing: .12em; font-size: .9rem; }
.review h4 { font-size: 1.02rem; margin: 12px 0 8px; font-family: var(--display); font-weight: 500; }
.review p { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.review footer { margin-top: auto; font-size: .78rem; color: var(--muted-2); }
.rating-band {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 8px; font-size: .9rem; color: var(--muted);
}

/* ---------- mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mosaic figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; background: var(--sand-2); }
.mosaic a { display: block; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }

/* ---------- newsletter ---------- */
.news {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.news h2 { color: #fff; }
.news .lede { color: rgba(255,255,255,.72); }
.news__form {
  display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; flex-wrap: wrap;
}
.news__form input {
  flex: 1 1 240px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07); color: #fff; outline: none;
}
.news__form input::placeholder { color: rgba(255,255,255,.5); }
.news__form input:focus { border-color: rgba(255,255,255,.6); }
.news__fine { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 16px; }

/* ---------- footer ---------- */
.footer { background: #08090D; color: #A8A4B5; margin-top: 0; padding: 72px 0 30px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--display); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p { color: rgba(247,245,241,.62); font-size: .88rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: .88rem; color: rgba(247,245,241,.72); }
.footer li a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(247,245,241,.14);
  font-size: .8rem; color: rgba(247,245,241,.55);
}
.pay-icons { display: flex; gap: 8px; align-items: center; }
.pay-icons span {
  background: rgba(255,255,255,.1); border-radius: 4px; padding: 5px 9px;
  font-size: .68rem; letter-spacing: .06em; font-weight: 600;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(247,245,241,.2); transition: all .2s var(--ease);
}
.socials a:hover { background: rgba(255,255,255,.12); }
.socials svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .78rem; color: var(--muted-2); padding: 26px 0 10px; }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 7px; }

/* ---------- shop toolbar ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 34px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--white); border-color: var(--white); color: #14151C; }
.sortsel {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  padding: 9px 14px; font-size: .85rem; cursor: pointer;
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 72px); padding-bottom: 40px; }
.pdp__gal { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp__main {
  border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2);
  aspect-ratio: 1/1;
}
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pdp__thumbs button {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0;
  background: var(--sand-2); cursor: pointer; aspect-ratio: 1/1; transition: border-color .2s var(--ease);
}
.pdp__thumbs button.is-on { border-color: var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs button { position: relative; }
.th__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .9rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45);
  background: rgba(23,24,15,.18); pointer-events: none;
}
.pdp__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #17180f; }
.pdp__info h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.pdp__price .now { font-size: 1.4rem; font-weight: 600; }
.pdp__price .was { color: var(--muted-2); text-decoration: line-through; }
.pdp__price .off { color: var(--sale); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.pdp__stars { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pdp__desc { margin: 20px 0 26px; color: var(--ink-2); }
.opt__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 8px; }
.opt__label em { font-style: normal; color: var(--muted-2); font-weight: 500; letter-spacing: 0; text-transform: none; }
.swatches { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; transition: all .2s var(--ease);
}
.swatch.is-on { box-shadow: 0 0 0 1px var(--ink); border-color: var(--white); }
.sizes { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.size {
  padding: 10px 18px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: .88rem; cursor: pointer; transition: all .2s var(--ease);
}
.size:hover { border-color: var(--ink); }
.size.is-on { background: var(--white); color: #14151C; border-color: var(--white); }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; width: fit-content; background: var(--surface); }
.qty button { width: 42px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { background: var(--sand-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.buyrow { display: flex; gap: 12px; margin: 26px 0 14px; flex-wrap: wrap; }
.buyrow .btn { flex: 1 1 200px; }
.pdp__assure { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: .85rem; color: var(--muted); }
.pdp__assure div { display: flex; gap: 9px; align-items: center; }
.acc { border-top: 1px solid var(--line); margin-top: 30px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; background: none; border: 0; cursor: pointer;
  font-size: .92rem; font-weight: 600; text-align: left;
}
.acc__btn i { font-style: normal; color: var(--muted); font-size: 1.2rem; transition: transform .25s var(--ease); }
.acc__item.is-open .acc__btn i { transform: rotate(45deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.acc__panel > div { padding: 0 0 18px; font-size: .9rem; color: var(--muted); }
.acc__panel ul { margin: 0; padding-left: 18px; }
.acc__panel li { margin-bottom: 7px; }

/* mobile sticky buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  background: rgba(12,13,19,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 12px var(--gut);
  align-items: center; gap: 12px;
}
.buybar .btn { flex: 1; }
.buybar__price { font-weight: 600; font-size: .95rem; }

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
}
.drawer__veil {
  position: absolute; inset: 0; background: rgba(23,24,15,.4);
  opacity: 0; transition: opacity .3s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(92vw, 420px);
  background: var(--sand); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .36s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 22px; background: var(--surface); }
.drawer__empty { text-align: center; padding: 60px 0; color: var(--muted); }

.mini { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini__img { width: 78px; height: 78px; border-radius: var(--r-sm); overflow: hidden; background: var(--sand-2); flex: none; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini__t { font-family: var(--display); font-size: .98rem; font-weight: 500; }
.mini__m { font-size: .78rem; color: var(--muted-2); margin: 3px 0 7px; }
.mini__q { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.mini__q button {
  width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%;
  background: var(--surface); cursor: pointer; line-height: 1;
}
.mini__r { margin-left: auto; text-align: right; }
.mini__r b { font-size: .92rem; }
.mini__rm { font-size: .72rem; color: var(--muted-2); background: none; border: 0; cursor: pointer; text-decoration: underline; }

.fsbar { margin-bottom: 16px; }
.fsbar__txt { font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.fsbar__track { height: 5px; border-radius: 999px; background: var(--sand-3); overflow: hidden; }
.fsbar__fill { height: 100%; background: var(--sage); border-radius: 999px; transition: width .4s var(--ease); }

/* ---------- cart page ---------- */
.cart-page { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { border-radius: var(--r-sm); overflow: hidden; background: var(--sand-2); aspect-ratio: 1/1; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__t { font-family: var(--display); font-size: 1.1rem; margin-bottom: 4px; }
.cart-line__m { font-size: .82rem; color: var(--muted-2); }
.cart-line__r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; position: sticky; top: calc(var(--header-h) + 20px);
}
.summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.srow { display: flex; justify-content: space-between; font-size: .9rem; padding: 8px 0; color: var(--ink-2); }
.srow--total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.srow--muted { color: var(--muted); }
.promo { display: flex; gap: 8px; margin: 16px 0; }
.promo input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sand); outline: none;
}
.promo input:focus { border-color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); outline: none; transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field--err input { border-color: var(--sale); }
.err { color: var(--sale); font-size: .76rem; margin-top: 6px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.radios { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 22px; }
.radio {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  transition: all .2s var(--ease); font-size: .92rem;
}
.radio.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input { accent-color: var(--ink); }
.radio__p { margin-left: auto; font-weight: 600; }
.radio__s { font-size: .78rem; color: var(--muted-2); display: block; font-weight: 400; }

/* ---------- success ---------- */
.merchant-note {
  margin: 12px 0 0; padding: 10px 14px;
  font-size: .76rem; line-height: 1.6; color: var(--muted);
  background: var(--sand-2); border: 1px solid var(--line); border-radius: 10px;
  text-align: center;
}
.merchant-note b { color: var(--ink); font-weight: 600 }
.pending-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 0 0 24px; padding: 14px 18px;
  background: var(--sand-3); border: 1px solid var(--brass);
  border-radius: 12px; font-size: .9rem; line-height: 1.5;
}
.pending-bar .btn { white-space: nowrap }
.success { max-width: 640px; margin: 40px auto 90px; text-align: center; }
.success__tick {
  width: 68px; height: 68px; border-radius: 50%; background: var(--sage); color: #fff;
  display: grid; place-items: center; margin: 0 auto 26px; font-size: 1.6rem;
}
.order-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; text-align: left; margin: 30px 0;
}
.order-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.order-line:last-child { border: 0; }
.order-line b { font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--sand); padding: 13px 22px; border-radius: 999px;
  font-size: .88rem; z-index: 200; opacity: 0; pointer-events: none;
  transition: all .3s var(--ease); box-shadow: var(--shadow-lg);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- misc content pages ---------- */
.prose { max-width: 720px; }
.prose h3 { margin: 34px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--display); font-size: 1.1rem; font-weight: 500;
}
.faq-q i { font-style: normal; color: var(--muted); transition: transform .25s var(--ease); }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-a > div { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.tabs { display: flex; gap: 8px; margin: 30px 0 26px; flex-wrap: wrap; }

.note-bar {
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 16px 20px; font-size: .86rem; color: var(--muted); margin-bottom: 34px;
}
.note-bar b { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero__inner { margin-left: 0; }
  .split, .sizeguide, .pdp, .cart-page { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .pdp__gal { position: static; }
  .buybar { display: flex; }
  .usp { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- 市场 / 语言选择器 ---------- */
.mk-select { display: inline-flex; align-items: center; gap: 3px; }
.mk-select svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.5; flex: none; }
.mk-select select, .lang-select {
  border: 0; background: transparent; font-size: .82rem; font-weight: 600;
  padding: 8px 2px; cursor: pointer; color: var(--ink); max-width: 168px;
}
.mk-select select:focus, .lang-select:focus { outline: none; }
@media (max-width: 1080px) { .mk-select select { max-width: 120px; } .lang-select { max-width: 90px; } }
@media (max-width: 860px) { .lang-select { display: none; } }

/* ---------- 字体回退（阿拉伯语 / 日语） ---------- */
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .logo, html[dir="rtl"] .card__title, html[dir="rtl"] .faq-q {
  font-family: 'Noto Kufi Arabic', 'Traditional Arabic', Georgia, serif; letter-spacing: 0;
}
html[lang="ja"] body, html[lang="ja"] button, html[lang="ja"] input, html[lang="ja"] select {
  font-family: 'Inter', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .card__title {
  font-family: 'Fraunces', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

/* ---------- RTL（阿拉伯语） ---------- */
[dir="rtl"] .hero__media::after {
  background: linear-gradient(270deg, rgba(23,24,15,.62) 0%, rgba(23,24,15,.34) 42%, rgba(23,24,15,0) 72%);
}
[dir="rtl"] .hero__inner { margin-left: 0; margin-right: max(var(--gut), calc((100vw - var(--max)) / 2)); }
[dir="rtl"] .hero__media img { object-position: 38% center; }
[dir="rtl"] .cart-count { right: auto; left: 1px; }
[dir="rtl"] .mnav__panel { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .mnav.is-open .mnav__panel { transform: none; }
[dir="rtl"] .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.is-open .drawer__panel { transform: none; }
[dir="rtl"] .mini__r { margin-left: 0; margin-right: auto; text-align: left; }
[dir="rtl"] .radio__p { margin-left: 0; margin-right: auto; }
[dir="rtl"] .cart-line__r { text-align: left; }
[dir="rtl"] .card__tag { left: auto !important; right: 12px; }
[dir="rtl"] .card__tag--sale { right: auto !important; left: 12px; }
[dir="rtl"] .card__stars, [dir="rtl"] .pdp__stars, [dir="rtl"] .rating-band { direction: ltr; display: inline-flex; gap: 6px; }
[dir="rtl"] .stars { unicode-bidi: isolate; }
[dir="rtl"] .size-circle, [dir="rtl"] .announce, [dir="rtl"] .news { text-align: center; }
[dir="rtl"] .logo span { margin: 0; }
[dir="rtl"] .footer__bottom { direction: ltr; }

@media (max-width: 640px) {
  :root { --gut: 18px; }
  .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .reviews { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .shead { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line__r { grid-column: 2; align-items: flex-start; text-align: left; }
  .f2 { grid-template-columns: 1fr; }
  .hero__media { height: 460px; }
  .card__quick { opacity: 1; transform: none; }
}

/* ============================================================
   发光帽新增版式（两栏网格 / 两图马赛克 / 夜场场景板块）
   ============================================================ */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.mosaic--2 { grid-template-columns: repeat(2, 1fr); }
.mosaic--3 { grid-template-columns: repeat(3, 1fr); }
.mosaic--2 figure { aspect-ratio: 4/3; }
.mosaic--3 figure { aspect-ratio: 3/4; }
.mosaic figcaption {
  padding: 10px 2px 0; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* 夜场场景：左视频 / 右清单 */
.scene {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.scene__media {
  border-radius: var(--r-lg); overflow: hidden; background: #000;
  aspect-ratio: 4/5; border: 1px solid var(--line);
}
.scene__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene__cap {
  margin-top: 10px; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.scene__list { list-style: none; margin: 26px 0 0; padding: 0; }
.scene__list li {
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-2); line-height: 1.6;
}
.scene__list li b { color: var(--ink); }
.scene__list li:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .scene__media { aspect-ratio: 16/10; }
  .mosaic--3 { grid-template-columns: repeat(2, 1fr); }
  .mosaic--3 figure { aspect-ratio: 4/3; }
}

/* ---------------- WhatsApp 客服浮动按钮 ----------------
   号码在 app.js 的 CFG.contact.whatsapp，留空则整个按钮不出现 */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
  z-index: 90;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 26px rgba(37, 211, 102, .35); }
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
[dir="rtl"] .wa-fab { right: auto; left: 18px; }
/* 移动端有底部购买条时上移，避免遮挡 */
@media (max-width: 720px) {
  .wa-fab { bottom: 84px; }
}
/* FAQ 联系区里的行内聊天链接 */
.wa-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #25D366;
  border-radius: var(--r-full, 999px);
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
  margin: 14px 0 4px;
}
.wa-inline:hover { background: rgba(37, 211, 102, .12); }
.wa-inline svg { width: 20px; height: 20px; fill: #25D366; }

/* ---------------- 灯光效果定制器 ---------------- */
.cust-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 7, 10, .78);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  overflow-y: auto;
}
.cust-panel {
  width: min(860px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--sand-2, #13151E);
  border: 1px solid var(--line-2, #353A4A);
  border-radius: 16px;
  padding: 22px 24px;
}
.cust-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.cust-head h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cust-sub { color: var(--muted); font-size: .85rem; max-width: 560px; }
.cust-close { border: none; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px 10px; }
.cust-close:hover { color: var(--ink); }
.cust-body { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin-top: 18px; }
.cust-preview svg { border-radius: 12px; display: block; }
.cust-cap { text-align: center; color: var(--muted-2); font-size: .78rem; margin-top: 8px; }
.cust-lab { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }
.cust-lab:first-child { margin-top: 0; }
.cust-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cust-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw); border: 2px solid var(--line-2, #353A4A);
  cursor: pointer; padding: 0;
}
.cust-swatch:hover { transform: scale(1.1); }
.cust-swatch.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.cust-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-chip {
  border: 1px solid var(--line-2, #353A4A); background: var(--surface, #181B25);
  color: var(--ink-2); border-radius: 999px; padding: 7px 15px;
  font-size: .82rem; cursor: pointer;
}
.cust-chip:hover { border-color: var(--muted); color: var(--ink); }
.cust-chip.is-on { background: #fff; color: #0C0D13; border-color: #fff; font-weight: 600; }
.cust-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cust-send { width: 100%; }
.cust-note { color: var(--muted-2); font-size: .78rem; text-align: center; }
#custText { width: 100%; max-width: 320px; background: var(--surface, #181B25); border: 1px solid var(--line-2, #353A4A); border-radius: 10px; color: var(--ink); padding: 10px 14px; font: inherit; }
#custText:focus { border-color: #fff; outline: none; }
/* 发光动画（transform/opacity + hue-rotate） */
.cust-a-breathe { animation: custBreathe 3.2s ease-in-out infinite; }
.cust-a-strobe  { animation: custStrobe 0.9s steps(1) infinite; }
.cust-a-hue     { animation: custHue 4.5s linear infinite; }
@keyframes custBreathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes custStrobe  { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .12; } }
@keyframes custHue     { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cust-a-breathe, .cust-a-strobe, .cust-a-hue { animation: none; }
}
/* 首页定制板块 */
.cust-mini { cursor: pointer; transition: transform .2s ease; }
.cust-mini:hover { transform: translateY(-3px); }
@media (max-width: 860px) {
  .cust-body { grid-template-columns: 1fr; }
  .cust-preview { max-width: 320px; }
}
