/* ==========================================================================
   Westmore Beauty —— 镜像主题主样式
   源站口径：Barlow Semi Condensed（正文）+ Ivy Presto Display（标题）；ink #1e1a34
   改这个文件必须 bump WM_VER（functions.php），否则浏览器/服务端缓存不给新样式（R18）
   ========================================================================== */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Ivy Presto Display";
  src: url("../fonts/ivypresto-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --wm-ink: #1e1a34;
  --wm-ink-70: #4b4760;
  --wm-paper: #ffffff;
  --wm-line: #e6e6e6;
  --wm-hair: #f0efee;
  --wm-sand: #f5efe7;
  --wm-tan: #e7d9c3;
  --wm-lav: #b9b4ef;
  --wm-muted: #6b6b6b;
  --wm-black: #000000;
  --f-body: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
  --f-disp: "Ivy Presto Display", Georgia, "Times New Roman", serif;
  --wm-pad: 64px;
  --wm-radius: 4px;
  --wm-head-h: 105px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--wm-ink);
  background: var(--wm-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 400; margin: 0; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wm-main { display: block; }
.wm-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--wm-pad); }
.wm-i { display: inline-block; vertical-align: middle; }

/* ---------- 公告条 ---------- */
.wm-announce {
  background: var(--wm-black);
  color: #fff;
  text-align: center;
  height: 45px;
  display: flex; align-items: center; justify-content: center;
}
.wm-announce__text {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0;
}

/* ---------- 站头 ---------- */
.wm-header { background: var(--wm-paper); position: relative; z-index: 30; }
.wm-header__top {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.wm-header__top .wm-burger { display: none; width: 44px; height: 44px; }
.wm-logo { position: absolute; left: 50%; transform: translateX(-50%); display: block; }
.wm-logo img { width: 150px; height: auto; }
.wm-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wm-actions__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; position: relative; color: var(--wm-ink);
}
.wm-actions__btn:hover { opacity: .7; }
.cart-count-bubble {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--wm-ink); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.cart-count-bubble[hidden] { display: none; }

.wm-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; height: 41px; padding: 0 var(--wm-pad);
}
.wm-nav__link {
  font-family: var(--f-disp); font-size: 16px; line-height: 1;
  padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.wm-nav__link:hover { border-bottom-color: var(--wm-ink); }

/* 移动菜单 */
.wm-menu {
  position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw);
  background: #fff; z-index: 60; padding: 18px 20px 40px;
  overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.18);
}
.wm-menu[hidden] { display: none; }
.wm-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wm-menu__title { font-family: var(--f-disp); font-size: 20px; }
.wm-menu__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.wm-menu__search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--wm-line); padding-bottom: 8px; margin-bottom: 16px; }
.wm-menu__search input { flex: 1; border: 0; outline: none; font-size: 16px; padding: 6px 0; background: transparent; }
.wm-menu__list li a { display: block; padding: 12px 0; font-family: var(--f-disp); font-size: 20px; border-bottom: 1px solid var(--wm-hair); }

/* 搜索条 */
.wm-searchbar { background: #fff; border-top: 1px solid var(--wm-hair); border-bottom: 1px solid var(--wm-hair); padding: 14px var(--wm-pad); }
.wm-searchbar form { display: flex; align-items: center; gap: 8px; max-width: 900px; margin: 0 auto; }
.wm-searchbar input { flex: 1; height: 44px; border: 1px solid var(--wm-line); border-radius: 999px; padding: 0 18px; font-size: 16px; }
.wm-searchbar button[type="submit"] { height: 44px; padding: 0 22px; background: var(--wm-ink); color: #fff; border-radius: 999px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.wm-searchbar__close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 按钮（同一套：高 44 / 圆角 4 / 大写小字） ---------- */
.wm-btn,
.wm-btn:visited,
button.wm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--wm-radius); border: 1px solid transparent;
  background: var(--wm-ink); color: #fff; cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.wm-btn:hover { background: #2b2548; color: #fff; }
.wm-btn--dark { background: var(--wm-ink); color: #fff; }
.wm-btn--light { background: #fff; color: var(--wm-ink); border-color: var(--wm-ink); }
.wm-btn--light:hover { background: var(--wm-ink); color: #fff; }
.wm-btn--block { width: 100%; }
.wm-btn--lg { height: 52px; font-size: 14px; }
.wm-btn[disabled], .wm-btn.is-loading { opacity: .55; cursor: default; }

/* ---------- 商品卡片 + 栅格 ---------- */
.wm-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px; align-items: stretch;
}
.wm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wm-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; position: relative;
}
.wm-card__media {
  display: block; background: var(--wm-sand); border-radius: 6px; overflow: hidden;
  aspect-ratio: 1 / 1;
}
.wm-card__img { width: 100%; height: 100%; object-fit: cover; }
.wm-card__img--ph { display: block; background: var(--wm-sand); }
.wm-card__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 14px 4px 0; text-align: center;
}
.wm-card__badge {
  align-self: center; background: #fff; border: 1px solid var(--wm-ink);
  color: var(--wm-ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; margin-bottom: 8px;
}
.wm-card__title {
  font-family: var(--f-body); font-size: 14px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
  min-height: 38px;
}
.wm-card__title a { display: block; }
.wm-card__sub {
  font-size: 12.5px; color: var(--wm-ink-70); margin-top: 4px;
  min-height: 34px;
}
.wm-card__price { margin-top: auto; font-size: 14px; font-weight: 700; padding: 8px 0 10px; font-variant-numeric: tabular-nums; }
.wm-card__price del { color: #8d8a99; font-weight: 400; margin-right: 6px; text-decoration: line-through; }
.wm-card__price ins { text-decoration: none; }
.wm-card__cta { margin-top: 0; }
.wm-card__cta .wm-btn,
.wm-card__cta .button {
  width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wm-ink); color: #fff; border-radius: var(--wm-radius);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 0;
}
.wm-card__cta .button:hover { background: #2b2548; color: #fff; }
.wm-card__cta .added_to_cart { display: none; }

/* ---------- 首页：hero ---------- */
.wm-hero {
  position: relative; color: #fff; overflow: hidden;
  background: #2a0b12;
}
.wm-hero__media { position: absolute; inset: 0; }
.wm-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wm-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,4,8,.72) 0%, rgba(20,4,8,.35) 48%, rgba(20,4,8,.1) 100%);
}
.wm-hero__inner {
  position: relative; z-index: 2;
  padding: 64px var(--wm-pad) 72px;
  min-height: 560px; display: flex; flex-direction: column; justify-content: center;
  max-width: 1440px; margin: 0 auto;
}
.wm-hero__eyebrow { font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.wm-hero__title {
  font-family: var(--f-disp); font-size: clamp(44px, 7vw, 92px);
  line-height: .92; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 18px;
  max-width: 720px;
}
.wm-hero__sub {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  max-width: 420px; margin-bottom: 28px; line-height: 1.45;
}
.wm-hero__cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
  min-width: 300px; height: 56px; padding: 0 32px;
  background: #fff; color: #000; border-radius: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.wm-hero__cta:hover { background: #f1ece6; }

/* 区块标题 */
.wm-section { padding: 48px 0; }
.wm-section--tight { padding: 32px 0; }
.wm-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.wm-sec-head h2 { font-family: var(--f-disp); font-size: 30px; line-height: 1; }
.wm-sec-head__link {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--wm-ink); padding-bottom: 3px;
}

/* 五宫格（品牌主张） */
.wm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wm-tile { display: flex; flex-direction: column; background: var(--wm-tan); border-radius: 6px; overflow: hidden; }
.wm-tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: #dccbb2; }
.wm-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.wm-tile__body { padding: 16px 14px 20px; }
.wm-tile__body h3 { font-size: 19px; line-height: 1.18; margin-bottom: 8px; }
.wm-tile__body p { font-size: 12.5px; line-height: 1.5; color: #3a3145; }

/* Before/After 对比段 */
.wm-results {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 0; align-items: stretch; border: 1px solid var(--wm-line); border-radius: 6px; overflow: hidden;
  background: #fff;
}
.wm-results__copy { padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.wm-results__copy h2 { font-size: 30px; line-height: 1.05; }
.wm-results__quote { font-size: 14px; line-height: 1.6; color: #2b2540; }
.wm-results__who { font-size: 12.5px; color: var(--wm-muted); }
.wm-results__media { position: relative; background: #f7f2ec; }
.wm-results__media img { width: 100%; height: 100%; object-fit: cover; }
.wm-results__tag {
  position: absolute; bottom: 10px; background: #fff; color: var(--wm-ink);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px;
}
.wm-results__tag--l { left: 10px; }
.wm-results__tag--r { right: 10px; }

/* 媒体跑马灯 */
.wm-press { background: var(--wm-lav); padding: 30px 0; overflow: hidden; }
/* 无缝循环：两份完全相同的内容并排，位移 -50% 正好是一份 → 无跳帧 */
.wm-press__track { display: flex; width: max-content; animation: wm-marquee 34s linear infinite; }
.wm-press__half { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.wm-press__half img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 1; }
@keyframes wm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wm-press__track { animation: none; } }

/* ---------- 列表页 ---------- */
.wm-page-head { padding: 40px var(--wm-pad) 22px; text-align: center; }
.wm-page-head h1 { font-size: 40px; line-height: 1.05; }
.wm-page-head p { font-size: 14px; color: var(--wm-muted); margin-top: 8px; }
.wm-shopbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--wm-pad) 18px; max-width: 1440px; margin: 0 auto;
}
.wm-shopbar__count { font-size: 13px; color: var(--wm-muted); }
.wm-shopbar .woocommerce-ordering { margin: 0; }
.wm-shopbar select,
.wm-sort select {
  height: 40px; border: 1px solid var(--wm-line); border-radius: 4px;
  padding: 0 34px 0 12px; font-size: 13px; background: #fff; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231e1a34' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.wm-shop-body { max-width: 1440px; margin: 0 auto; padding: 0 var(--wm-pad) 64px; }
.wm-shop-panel {
  border: 1px solid var(--wm-line); border-radius: 8px; padding: 32px;
  background: #fff;
}
.wm-pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; }
.wm-pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--wm-line); border-radius: 4px; font-size: 13px; padding: 0 10px;
}
.wm-pagination .page-numbers.current { background: var(--wm-ink); color: #fff; border-color: var(--wm-ink); }
.wm-empty { text-align: center; padding: 60px 0; }
.wm-empty p { color: var(--wm-muted); margin-bottom: 16px; }

/* ---------- PDP ---------- */
.wm-crumb {
  max-width: 1440px; margin: 0 auto; padding: 18px var(--wm-pad) 6px;
  font-size: 11.5px; letter-spacing: .04em; color: var(--wm-muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.wm-crumb a { color: var(--wm-muted); }
.wm-crumb a:hover { color: var(--wm-ink); }
.wm-pdp {
  max-width: 1440px; margin: 0 auto; padding: 8px var(--wm-pad) 48px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px; align-items: start;
}
.wm-gallery__stage {
  background: var(--wm-sand); border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1;
}
.wm-gallery__stage img { width: 100%; height: 100%; object-fit: cover; }
.wm-gallery__thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.wm-gallery__thumbs::-webkit-scrollbar { display: none; }
.wm-gallery__thumb {
  flex: 0 0 auto;
  width: 66px; height: 66px; border-radius: 4px; overflow: hidden;
  border: 1px solid transparent; background: var(--wm-sand); padding: 0;
}
.wm-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wm-gallery__thumb[aria-current="true"] { border-color: var(--wm-ink); }
.wm-info { display: flex; flex-direction: column; gap: 0; }
.wm-info__title { font-size: 34px; line-height: 1.05; }
.wm-info__sub {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wm-ink-70); margin-top: 8px; min-height: 16px;
}
.wm-info__price { font-size: 18px; font-weight: 700; margin: 16px 0 18px; font-variant-numeric: tabular-nums; }
.wm-info__price del { color: #8d8a99; font-weight: 400; margin-right: 8px; }
.wm-info__price ins { text-decoration: none; }
.wm-opt { margin-bottom: 16px; }
.wm-opt__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.wm-opt__label b { font-weight: 600; }
.wm-opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-swatch {
  min-width: 56px; height: 40px; padding: 0 14px;
  border: 1px solid var(--wm-line); border-radius: 4px; background: #fff;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.wm-swatch[aria-pressed="true"] { border-color: var(--wm-ink); box-shadow: inset 0 0 0 1px var(--wm-ink); }
.wm-swatch--off { opacity: .4; text-decoration: line-through; }
.wm-buybox {
  border: 1px solid var(--wm-line); border-radius: 6px; padding: 16px; margin: 6px 0 16px;
}
.wm-radio { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.wm-radio input { width: 18px; height: 18px; accent-color: var(--wm-ink); }
.wm-radio span.amt { margin-left: auto; font-weight: 700; }
.wm-info__atc { display: flex; gap: 10px; align-items: stretch; }
.wm-info__atc .wm-atc-btn { flex: 1 1 auto; height: 52px; }
.wm-info__ship {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; margin-top: 12px; color: var(--wm-ink);
}
.wm-acc { margin-top: 22px; border-top: 1px solid var(--wm-line); }
.wm-acc__item { border-bottom: 1px solid var(--wm-line); }
.wm-acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  text-align: left;
}
.wm-acc__btn .wm-acc__icon { transition: transform .2s ease; }
.wm-acc__btn[aria-expanded="true"] .wm-acc__icon { transform: rotate(45deg); }
.wm-acc__panel { padding: 0 0 16px; font-size: 14px; line-height: 1.6; color: #2b2540; }
.wm-acc__panel[hidden] { display: none; }
.wm-acc__panel p + p { margin-top: 10px; }
.wm-feats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
  margin-top: 20px;
}
.wm-feat { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #2b2540; }
.wm-feat svg { flex: 0 0 auto; }

/* PDP 下方：临床结果 / 搭配 */
.wm-clinical { background: #faf7f3; padding: 56px 0; }
.wm-clinical__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--wm-pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.wm-clinical__media img { width: 100%; border-radius: 6px; }
.wm-clinical h2 { font-size: 34px; margin-bottom: 18px; }
.wm-clinical__stat { margin-bottom: 16px; }
.wm-clinical__stat b { display: block; font-family: var(--f-body); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.wm-clinical__stat span { font-size: 13.5px; color: #3a3145; }
.wm-pairs { background: var(--wm-lav); padding: 48px 0; }
.wm-pairs__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--wm-pad); }
.wm-pairs h2 { font-size: 30px; margin-bottom: 20px; }
.wm-pairs .wm-card { background: transparent; }
.wm-pairs .wm-card__body { padding: 0; text-align: left; }
.wm-pairs .wm-card__cta .button { width: auto; padding: 0 22px; }

/* PDP sticky 加购条 */
.wm-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--wm-line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.08);
  transform: translateY(110%); transition: transform .22s ease;
}
.wm-sticky.is-on { transform: translateY(0); }
.wm-sticky__inner {
  max-width: 1440px; margin: 0 auto; padding: 10px var(--wm-pad);
  display: flex; align-items: center; gap: 14px;
}
.wm-sticky__img { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; background: var(--wm-sand); }
.wm-sticky__meta { min-width: 0; }
.wm-sticky__name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-sticky__price { font-size: 13px; font-weight: 700; }
.wm-sticky__price del { color: #8d8a99; font-weight: 400; margin-right: 6px; }
.wm-sticky__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wm-sticky .wm-btn { height: 44px; }

/* ---------- 购物车页 ---------- */
.wm-cartwrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 72px; }
.wm-cartwrap h1 { font-size: 34px; margin-bottom: 20px; }
.wm-cart-table { width: 100%; border-collapse: collapse; }
.wm-cart-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wm-muted); padding: 0 0 10px; border-bottom: 1px solid var(--wm-line); }
.wm-cart-table td { padding: 16px 0; border-bottom: 1px solid var(--wm-hair); vertical-align: middle; }
.wm-cart-prod { display: flex; align-items: center; gap: 14px; }
.wm-cart-prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--wm-sand); }
.wm-cart-prod__name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.wm-cart-prod__meta { font-size: 12px; color: var(--wm-muted); }
.wm-cart-actions { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; margin-top: 28px; }
.wm-cart-totals { border: 1px solid var(--wm-line); border-radius: 12px; padding: 18px; background: #fff; }
.wm-cart-totals .wm-sumrow { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.wm-cart-totals .wm-sumrow--total { border-top: 1px solid var(--wm-hair); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 700; }
.wm-cart-totals .wm-btn { margin-top: 14px; }

/* ---------- 页脚 ---------- */
.wm-footer { background: #000; color: #fff; padding: 34px var(--wm-pad) 0; }
.wm-footer__inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr .9fr .9fr .8fr 1.1fr; gap: 28px;
  padding-bottom: 34px;
}
.wm-footer__logo img { width: 118px; height: auto; }
.wm-footer__col h4, .wm-footer__sub h4 {
  font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 12px;
}
.wm-footer__col li { margin-bottom: 8px; }
.wm-footer__col a { font-size: 13.5px; color: #d9d7e0; }
.wm-footer__col a:hover { color: #fff; text-decoration: underline; }
.wm-sub__row { display: flex; align-items: center; border-bottom: 1px solid #4a4658; padding-bottom: 6px; margin-bottom: 16px; }
.wm-sub__row input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 13.5px; padding: 6px 0; outline: none; }
.wm-sub__row input::placeholder { color: #a8a4b6; }
.wm-sub__row button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wm-footer__social { display: flex; gap: 12px; }
.wm-footer__social a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #4a4658; border-radius: 50%; }
.wm-soc { font-size: 10px; letter-spacing: .02em; text-transform: uppercase; }
.wm-footer__legal {
  max-width: 1440px; margin: 0 auto; border-top: 1px solid #26232f;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0 18px; font-size: 12px; color: #b7b3c4;
}
.wm-footer__links { display: flex; gap: 18px; }
.wm-footer__links a { color: #b7b3c4; }
.wm-footer__links a:hover { color: #fff; }

/* ---------- 评论（R19：Yotpo 数据静态复刻） ---------- */
.wm-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.wm-stars__bg, .wm-stars__fg { display: block; white-space: nowrap; }
.wm-stars__bg { color: #d9d6d0; }
.wm-stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--wm-ink); }
.wm-stars svg { display: inline-block; margin-right: 1px; }

.wm-card__rating { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 6px; }
.wm-card__rating-count { font-size: 12px; color: var(--wm-ink-70); font-variant-numeric: tabular-nums; }

.wm-rating {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 2px;
  padding: 0; background: none; border: 0; cursor: pointer; color: var(--wm-ink);
}
.wm-rating__avg { font-size: 14px; font-weight: 700; }
.wm-rating__count { font-size: 13px; color: var(--wm-ink-70); text-decoration: underline; }
.wm-rating--empty { font-size: 13px; color: var(--wm-muted); display: block; }

.wm-reviews { max-width: 1440px; margin: 0 auto; padding: 44px var(--wm-pad) 56px; border-top: 1px solid var(--wm-line); }
.wm-reviews__head {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 40px;
  align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--wm-hair); margin-bottom: 8px;
}
.wm-reviews__score { text-align: left; }
.wm-reviews__avg { display: block; font-family: var(--f-body); font-size: 44px; line-height: 1; font-weight: 700; margin-bottom: 8px; }
.wm-reviews__based { font-size: 13px; color: var(--wm-ink-70); margin-top: 8px; }
.wm-reviews__dist { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.wm-dist__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 56px; gap: 10px; align-items: center; }
.wm-dist__label { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; color: var(--wm-ink); }
.wm-dist__track { height: 8px; background: #ece9e4; border-radius: 999px; overflow: hidden; display: block; }
.wm-dist__bar { display: block; height: 100%; background: var(--wm-ink); border-radius: 999px; }
.wm-dist__count { font-size: 12px; color: var(--wm-ink-70); text-align: right; font-variant-numeric: tabular-nums; }
.wm-reviews__note { font-size: 12.5px; color: var(--wm-muted); line-height: 1.5; }

.wm-reviews__list { display: flex; flex-direction: column; }
.wm-rev { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--wm-hair); }
.wm-rev__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--wm-sand); color: var(--wm-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.wm-rev__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.wm-rev__name { font-size: 13.5px; font-weight: 600; }
.wm-rev__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--wm-ink-70); }
.wm-rev__date { font-size: 11.5px; color: var(--wm-muted); margin-left: auto; }
.wm-rev__title { font-family: var(--f-body); font-size: 14px; font-weight: 700; margin: 8px 0 4px; }
.wm-rev__text { font-size: 13.5px; line-height: 1.6; color: #2b2540; }
.wm-rev__foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--wm-muted); }
.wm-rev__vote { display: inline-flex; align-items: center; gap: 4px; }
.wm-reviews__more-wrap { text-align: center; padding-top: 22px; }
.wm-reviews__hint { font-size: 12px; color: var(--wm-muted); margin-top: 10px; }
.wm-reviews__empty { text-align: center; padding: 28px 0 8px; }
.wm-reviews__empty h2 { font-size: 26px; margin-bottom: 6px; }
.wm-reviews__empty p { font-size: 13.5px; color: var(--wm-muted); }

@media screen and (max-width: 990px) {
  .wm-reviews { padding: 32px 20px 40px; }
  .wm-reviews__head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wm-reviews__avg { font-size: 36px; }
  .wm-rev { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .wm-rev__date { margin-left: 0; }
}

/* ---------- UGC 视频墙（R20：真实视频，本地化） ---------- */
.wm-ugc { padding: 44px 0 52px; background: #fff; }
.wm-ugc__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  align-items: start;
}
.wm-ugc__card { display: flex; flex-direction: column; }
.wm-ugc__media { position: relative; border-radius: 6px; overflow: hidden; background: #111; aspect-ratio: 9 / 16; }
.wm-ugc__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.wm-ugc__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--wm-ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: opacity .2s ease, background .2s ease;
}
.wm-ugc__play:hover { background: #fff; }
.wm-ugc__card.is-playing .wm-ugc__play { opacity: 0; pointer-events: none; }
.wm-ugc__cap {
  font-size: 11.5px; line-height: 1.45; color: var(--wm-ink-70); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media screen and (max-width: 990px) {
  .wm-ugc { padding: 28px 0 36px; }
  .wm-ugc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media screen and (max-width: 560px) {
  .wm-ugc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-ugc__play { width: 40px; height: 40px; }
}

/* ---------- 抽屉 ---------- */
.wm-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.wm-drawer.is-open { visibility: visible; pointer-events: auto; }
.wm-drawer__overlay {
  position: absolute; inset: 0; background: rgba(10, 8, 18, .42);
  opacity: 0; transition: opacity .2s ease;
}
.wm-drawer.is-open .wm-drawer__overlay { opacity: 1; }
.wm-drawer__inner {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .26s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.16);
}
.wm-drawer.is-open .wm-drawer__inner { transform: translateX(0); }
.wm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--wm-hair); }
.wm-drawer__title { font-family: var(--f-disp); font-size: 22px; }
.wm-drawer__count { font-family: var(--f-body); font-size: 14px; color: var(--wm-muted); }
.wm-drawer__close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.wm-drawer__ship { padding: 12px 20px; background: #f7f3ee; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.wm-drawer__items { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px; }
.wm-drawer__empty { padding: 40px 0; text-align: center; color: var(--wm-muted); font-size: 14px; }
.wm-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--wm-hair); align-items: start; }
.wm-line__img { width: 80px; height: 80px; border-radius: 4px; overflow: hidden; background: var(--wm-sand); }
.wm-line__img img { width: 100%; height: 100%; object-fit: cover; }
.wm-line__name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-line__qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--wm-line); border-radius: 4px; margin-top: 10px; height: 32px; }
.wm-qty__btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.wm-qty__val { min-width: 24px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.wm-line__end { text-align: right; }
.wm-line__price { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wm-line__remove { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--wm-muted); text-decoration: underline; }
.wm-drawer__foot { border-top: 1px solid var(--wm-line); padding: 16px 20px 18px; }
.wm-drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wm-drawer__note { font-size: 11.5px; color: var(--wm-muted); margin: 6px 0 12px; }
.wm-drawer__view { display: block; text-align: center; font-size: 12.5px; margin-top: 10px; text-decoration: underline; }
.wm-payicons { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.wm-payicons img { height: 22px; width: auto; }
body.wm-drawer-open { overflow: hidden; }

/* ---------- toast ---------- */
.wm-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--wm-ink); color: #fff; font-size: 13px; padding: 12px 20px;
  border-radius: 6px; z-index: 90;
}

/* ---------- 内容 / 政策页 ---------- */
.wm-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 72px; }
.wm-page h1 { font-size: 38px; margin-bottom: 18px; }
.wm-page h2 { font-size: 24px; margin: 26px 0 10px; }
.wm-page h3 { font-size: 19px; margin: 20px 0 8px; }
.wm-page p, .wm-page li { font-size: 14.5px; line-height: 1.7; color: #2b2540; }
.wm-page p { margin-bottom: 12px; }
.wm-page ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.wm-page ul li { margin-bottom: 6px; }
.wm-page a { text-decoration: underline; }
.wm-page table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.wm-page th, .wm-page td { border: 1px solid var(--wm-line); padding: 8px 10px; font-size: 13.5px; text-align: left; }

/* ---------- 账号 ---------- */
.wm-account { max-width: 720px; margin: 0 auto; padding: 40px 24px 72px; }
.wm-account h1 { font-size: 34px; margin-bottom: 18px; }
.wm-account input.input-text, .wm-account input[type="text"], .wm-account input[type="email"], .wm-account input[type="password"] {
  height: 46px; border: 1px solid #d9d9d9; border-radius: 8px; padding: 0 14px; width: 100%; font-size: 16px;
}
.wm-account label { display: block; font-size: 13px; margin: 10px 0 6px; }
.wm-account .wm-btn { margin-top: 12px; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
  :root { --wm-pad: 40px; }
  .wm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wm-footer__inner { grid-template-columns: 1.1fr .9fr .9fr .9fr; }
  .wm-footer__sub { grid-column: 1 / -1; }
}
@media screen and (max-width: 990px) {
  :root { --wm-pad: 24px; }
  .wm-nav { display: none; }
  .wm-header__top .wm-burger { display: inline-flex; align-items: center; justify-content: center; }
  .wm-logo { position: static; transform: none; margin: 0 auto; }
  .wm-logo img { width: 118px; }
  .wm-header__top { padding: 0 12px; height: 60px; }
  .wm-actions { margin-left: 0; }
  .wm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .wm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 96px; }
  .wm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-results { grid-template-columns: minmax(0, 1fr); }
  .wm-results__copy { padding: 24px 20px; }
  .wm-clinical__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wm-cart-actions { grid-template-columns: minmax(0, 1fr); }
  .wm-footer { padding: 28px 20px 0; }
  .wm-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .wm-footer__brand { grid-column: 1 / -1; }
  .wm-footer__sub { grid-column: 1 / -1; }
  .wm-footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wm-shop-panel { padding: 16px; }
  .wm-shopbar { padding: 0 20px 14px; }
  .wm-page-head { padding: 26px 20px 16px; }
  .wm-page-head h1 { font-size: 28px; }
  .wm-shop-body { padding: 0 20px 48px; }
  .wm-hero__inner { padding: 40px 20px 48px; min-height: 0; }
  .wm-hero__cta { min-width: 0; width: 100%; max-width: 320px; }
  .wm-sticky__inner { padding: 8px 16px; }
  .wm-sticky__img { width: 40px; height: 40px; }
  .wm-sec-head h2 { font-size: 24px; }
  .wm-info__title { font-size: 26px; }
  .wm-crumb { padding: 12px 20px 4px; }
  .wm-pdp { padding-left: 20px; padding-right: 20px; }
  .wm-announce__text { font-size: 10.5px; padding: 0 12px; }
}
@media screen and (max-width: 560px) {
  .wm-tiles { grid-template-columns: minmax(0, 1fr); }
  .wm-hero__title { font-size: 40px; }
  .wm-feats { grid-template-columns: minmax(0, 1fr); }
  .wm-info__atc { flex-direction: column; }
  .wm-info__atc .wm-atc-btn { width: 100%; }
  .wm-gallery__thumb { width: 56px; height: 56px; }
  .wm-secondary { font-size: 30px; }
}
