/* =========================================================================
   AFTERGLOW OFFICIAL PDP — Premium Designer Brand Layout
   左：单图 carousel · 右：sticky summary
   ========================================================================= */

/* =========================================================================
   Inline Complete the Look — 紧贴 gallery 下方（左列内）
   ========================================================================= */
body.ms-pdp-page .ms-pdp__look-inline {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ms-line, #e5e5e5);
}
body.ms-pdp-page .ms-pdp__look-inline-head {
  margin-bottom: 20px;
}
body.ms-pdp-page .ms-pdp__look-inline-eyebrow {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted, #666);
  margin-bottom: 6px;
}
body.ms-pdp-page .ms-pdp__look-inline-title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ms-ink, #000);
  margin: 0;
}
body.ms-pdp-page .ms-pdp__look-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  body.ms-pdp-page .ms-pdp__look-inline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— 紧凑卡片：image (1:1) + name + price —— */
body.ms-pdp-page .ms-pdp__look-card {
  display: block;
  text-decoration: none;
  color: var(--ms-ink, #000);
  background: var(--ms-bg-soft, #f7f7f7);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease;
}
body.ms-pdp-page .ms-pdp__look-card:hover {
  transform: translateY(-2px);
}

body.ms-pdp-page .ms-pdp__look-card-img {
  aspect-ratio: 1 / 1;
  background: var(--ms-bg-soft, #f7f7f7);
  overflow: hidden;
}
body.ms-pdp-page .ms-pdp__look-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.ms-pdp-page .ms-pdp__look-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.ms-pdp-page .ms-pdp__look-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ms-ink, #000);
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.ms-pdp-page .ms-pdp__look-card-price,
body.ms-pdp-page .ms-pdp__look-card-price * {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ms-ink, #000);
}
body.ms-pdp-page .ms-pdp__look-card-price del {
  color: var(--ms-ink-faint, #999);
  margin-right: 4px;
}

/* —— 强制 Astra 容器全宽 ——
   只在 .ms-pdp-page body class 下生效（不污染其他页面，performance neutral）
   ast-page-builder-template body class 已经做了大部分工作，CSS 这里只补漏 */
body.ms-pdp-page .ast-container,
body.ms-pdp-page .site-content > .ast-container,
body.ms-pdp-page #primary,
body.ms-pdp-page .entry-content,
body.ms-pdp-page .ms-main--pdp {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
}
body.ms-pdp-page #secondary,
body.ms-pdp-page .widget-area { display: none; }
body.ms-pdp-page .site-content { display: block; }

.ms-pdp {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  color: var(--ms-ink);
  box-sizing: border-box;
}
@media (max-width: 900px) { .ms-pdp { padding: 10px 16px 100px; } }
@media (max-width: 480px) { .ms-pdp { padding: 8px 14px 96px; } }

/* —— Cart Look modal（加车后弹的）在手机端紧凑：图小一点 / 单行更紧 —— */
@media (max-width: 600px) {
  .ms-cart-toast { gap: 10px; padding: 10px; }
  .ms-cart-toast__img { flex-basis: 50px; width: 50px; height: 64px; }
  .ms-cart-look__list { max-height: 260px; }
  .ms-cart-look__item { padding: 6px; gap: 10px; }
  .ms-cart-look__img { flex-basis: 48px; width: 48px; height: 60px; }
  .ms-cart-look__name { font-size: 12px; }
  .ms-cart-actions { flex-direction: column; }     /* 两按钮竖排，每个全宽 */
  .ms-cart-btn { width: 100%; height: 46px; }
}

/* —— Breadcrumb —— */
.ms-pdp__crumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ms-pdp__crumb a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.ms-pdp__crumb a:hover { color: var(--ms-ink); }
.ms-pdp__crumb-sep { opacity: .35; }
.ms-pdp__crumb-current { color: var(--ms-ink); }

/* —— 主布局 —— */
.ms-pdp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 1100px) { .ms-pdp__layout { gap: 36px; } }
@media (max-width: 900px) {
  .ms-pdp__layout {
    grid-template-columns: 1fr;
    gap: 12px;                                /* 之前 20 → 12：拉近 gallery 跟 summary */
  }
  .ms-pdp__crumb { margin-bottom: 8px; font-size: 10px; }   /* 之前 14 → 8 */
  .ms-pdp__title { font-size: clamp(24px, 7vw, 32px); margin-bottom: 4px; }
  .ms-pdp__price { font-size: 24px; margin-bottom: 10px; }
  .ms-pdp__excerpt { font-size: 13px; margin-bottom: 10px; }
  .ms-pdp__specs-key { flex: 0 0 70px; font-size: 9px; letter-spacing: .18em; }
  .ms-pdp__specs li { padding: 7px 0; font-size: 12px; }
  .ms-pdp__links { gap: 20px; }
  .ms-pdp__link { font-size: 12px; }
  .ms-swatch__guide { font-size: 12px; }
}

/* =========================================================================
   左：Gallery
   ========================================================================= */
.ms-pdp__gallery {
  position: relative;
}

.ms-gallery {
  position: relative;
  border-radius: 0;                   /* 完全方角，避免任何 sub-pixel 缝隙 */
  overflow: hidden;
  background: transparent;
  box-shadow: none !important;
  border: 0;
  outline: none;
}
.ms-gallery,
.ms-gallery *,
.ms-pdp__gallery,
.ms-pdp__gallery * {
  box-shadow: none !important;        /* 强制 nuke 所有继承 / 插件注入的 shadow */
}
/* 桌面端：限制高度 ≤ 视口，让一张图在一屏内完整显示 + 居中
   180px = sticky header + breadcrumb + 一点 padding 缓冲 */
@media (min-width: 901px) {
  .ms-pdp__gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;                   /* 允许 CTL 等 sibling 换到下一行 */
    align-items: flex-start;
    justify-content: center;           /* thumbs+gallery 整体在列内居中 */
    gap: 12px;
  }
  /* Inline CTL 强制 100% 宽度，从下一行开始（不挤进 thumb+image 那行） */
  .ms-pdp__gallery .ms-pdp__look-inline {
    flex: 1 0 100%;
    width: 100%;
  }
  .ms-gallery {
    flex: 0 1 auto;                    /* 不抢空间，按 aspect-ratio 自身大小 */
    width: auto;
    max-width: 100%;
    height: calc(100vh - 40px);         /* 几乎吃掉整个视口高度 */
    max-height: 1000px;
    min-height: 500px;
    aspect-ratio: 2 / 3;
  }
  .ms-gallery__cell { aspect-ratio: auto; height: 100%; }
}

/* —— 横向轨道：scroll-snap，每次 1 张 —— */
.ms-gallery__track {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ms-gallery__track::-webkit-scrollbar { display: none; }

.ms-gallery__cell {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  margin: 0;
  background: transparent;             /* 同样透明，避免 carousel 滑动时灰边闪烁 */
  aspect-ratio: 4 / 5;
}
.ms-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;                 /* contain：完整显示图片，留白边而不裁画面 */
  object-position: center;
  display: block;
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  border: 0;                          /* WP 给 img 默认 border, 重置 */
  background: transparent;
}
figure.ms-gallery__cell { margin: 0; padding: 0; }   /* <figure> 默认 margin 重置 */
.ms-gallery__cell { cursor: zoom-in; }

/* —— 主图右下角的小放大镜 hint —— */
.ms-gallery__zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.ms-gallery__cell:hover .ms-gallery__zoom-hint { opacity: 1; }

.ms-gallery__placeholder {
  aspect-ratio: 4 / 5;
  background: var(--ms-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ms-ink-faint);
  border-radius: 6px;
}

/* —— 左右箭头按钮（桌面端 hover 显示）—— */
.ms-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity .3s ease, background .25s ease, transform .35s cubic-bezier(.16,1,.3,1), border-color .25s ease;
  padding: 0;
}
.ms-gallery__arrow--prev { left: 16px; }
.ms-gallery__arrow--next { right: 16px; }
.ms-gallery:hover .ms-gallery__arrow { opacity: 1; }
.ms-gallery__arrow:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.ms-gallery__arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.ms-gallery__arrow--next:hover { transform: translateY(-50%) translateX(3px); }

/* —— 自动播放进度条（顶部细线）—— */
.ms-gallery__progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, .2);
  z-index: 3;
  overflow: hidden;
}
.ms-gallery__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 100%;
  animation: ms-shimmer 4s linear infinite;
  transition: width .1s linear;
}

/* —— 圆点指示器（图片下方居中浮动）—— */
.ms-gallery__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  z-index: 4;
}
.ms-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.ms-gallery__dot:hover { background: rgba(255, 255, 255, .65); }
.ms-gallery__dot.is-active {
  background: #fff;
  transform: scale(1.5);
}

/* —— 图片计数（右上角）—— */
.ms-gallery__counter {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: #fff;
  z-index: 4;
  pointer-events: none;
}
.ms-gallery__counter-sep { opacity: .5; }

@media (max-width: 900px) {
  .ms-gallery__arrow { display: none; }       /* 移动端 swipe 不要按钮 */
  .ms-gallery__cell {
    aspect-ratio: 3 / 4;
    max-height: 60vh;                          /* 视口 60% 上限，保证标题同屏 */
  }
  .ms-gallery__dots { bottom: 12px; }
  .ms-gallery__counter { top: 12px; right: 12px; }
  .ms-gallery__zoom-hint { display: none; }
}

/* =========================================================================
   缩略图竖列（gallery 左侧 — 桌面端）
   ≤ 5 张：直接平铺
   > 5 张：固定 5 张高度的窗口 + 上下箭头按钮控制
   ========================================================================= */
.ms-gallery__thumbs {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  width: 72px;
}

/* —— 上/下箭头按钮 —— */
.ms-gallery__thumbs-arrow {
  width: 72px;
  height: 26px;
  border: 1px solid var(--ms-line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-ink-muted);
  border-radius: 4px;
  padding: 0;
  transition: all .2s ease;
  flex: 0 0 auto;
}
.ms-gallery__thumbs-arrow:hover:not(:disabled) {
  color: var(--ms-ink);
  border-color: var(--ms-ink);
}
.ms-gallery__thumbs-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* —— 滚动 viewport（固定高度 = 5 张缩略图） —— */
.ms-gallery__thumbs-viewport {
  flex: 0 0 auto;
  /* 5 张 × 90px + 4 个 × 8px gap = 482px */
  height: 482px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}
.ms-gallery__thumbs-viewport::-webkit-scrollbar { display: none; }

/* 不到 5 张时取消窗口限制，自然平铺 */
.ms-gallery__thumbs--no-scroll .ms-gallery__thumbs-viewport {
  height: auto;
  overflow: visible;
}

.ms-gallery__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 90px;
  border: 1px solid var(--ms-line);
  background: transparent;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease;
  box-shadow: none;
  scroll-snap-align: start;
}
.ms-gallery__thumb:hover { border-color: var(--ms-ink-muted); }
.ms-gallery__thumb.is-active {
  border-color: var(--ms-ink);
  border-width: 2px;
}
.ms-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .ms-gallery__thumbs { display: none; }   /* 移动端 swipe + dots 已经够了 */
}

/* =========================================================================
   Zoom Lightbox — 点主图弹全屏
   ========================================================================= */
.ms-gallery__zoom {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ms-gallery__zoom[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.ms-gallery__zoom-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  user-select: none;
  cursor: zoom-out;
  transform: scale(.96);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  display: block;
}
.ms-gallery__zoom[aria-hidden="false"] .ms-gallery__zoom-img {
  transform: scale(1);
}
.ms-gallery__zoom-close,
.ms-gallery__zoom-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ms-gallery__zoom-close:hover,
.ms-gallery__zoom-nav:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.ms-gallery__zoom-close { top: 24px; right: 24px; }
.ms-gallery__zoom-nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ms-gallery__zoom-nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.ms-gallery__zoom-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 600px) {
  .ms-gallery__zoom-close { top: 12px; right: 12px; }
  .ms-gallery__zoom-nav--prev { left: 8px; }
  .ms-gallery__zoom-nav--next { right: 8px; }
  .ms-gallery__zoom-nav { width: 40px; height: 40px; }
}

/* =========================================================================
   右：Summary（sticky 跟随滚动）
   ========================================================================= */
.ms-pdp__summary {
  position: sticky;
  top: 100px;          /* header 高度 + 一点点空隙 */
  align-self: start;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .ms-pdp__summary { position: static; }
}

/* —— Eyebrow chip —— */
.ms-pdp__chip {
  align-self: flex-start;
  display: inline-block;
  padding: 5px 12px 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ms-ink);
  background: #fff;
  border: 1px solid var(--ms-line-strong);
  border-radius: 999px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.ms-pdp__chip::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 100%;
  animation: ms-shimmer 5s linear infinite;
}
.ms-pdp__chip--new {
  background: #000;
  color: #fff;
  border-color: #000;
}
.ms-pdp__chip--sale { color: var(--ms-danger, #ff4757); border-color: currentColor; }

/* —— 标题 —— */
.ms-pdp__title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.005em;
  line-height: 1.04;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--ms-ink);
}

/* —— Meta line: SKU · Cat —— */
.ms-pdp__meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ms-pdp__sep { opacity: .4; }

/* —— Price —— */
.ms-pdp__price {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ms-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ms-pdp__price ins {
  text-decoration: none;
}
.ms-pdp__price del {
  font-size: 18px;
  color: var(--ms-ink-faint);
  text-decoration: line-through;
}
.ms-pdp__price .woocommerce-Price-amount {
  font-variant-numeric: tabular-nums;
}

/* —— 短描述 —— */
.ms-pdp__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ms-ink-muted);
  margin-bottom: 14px;
  max-width: 480px;
}

/* —— 分隔线 —— */
.ms-pdp__divider {
  height: 1px;
  background: var(--ms-line);
  margin: 4px 0 14px;
  position: relative;
}
.ms-pdp__divider::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 56px;
  height: 1px;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 100%;
  animation: ms-shimmer 5s linear infinite;
}

/* =========================================================================
   加购 / 变体表单（覆盖 WC 默认样式）
   ========================================================================= */
.ms-pdp__cart {
  margin-bottom: 16px;
}

/* WC variations form 容器 */
.ms-pdp__cart .variations_form,
.ms-pdp__cart form.cart {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* —— 变体表（label + 选项） —— */
.ms-pdp__cart .variations {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}
.ms-pdp__cart .variations tr {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.ms-pdp__cart .variations th,
.ms-pdp__cart .variations td {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.ms-pdp__cart .variations th.label label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
  margin-bottom: 8px;
  display: inline-block;
}
.ms-pdp__cart .variations td.value {
  position: relative;
}

/* —— 默认 select 样式 —— */
.ms-pdp__cart .variations select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 14px center;
  background-size: 12px;
  border: 1px solid var(--ms-line-strong);
  border-radius: 999px;
  padding: 12px 40px 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ms-ink);
  width: 100%;
  cursor: pointer;
  transition: border-color .2s ease;
}
.ms-pdp__cart .variations select:focus,
.ms-pdp__cart .variations select:hover {
  border-color: var(--ms-ink);
  outline: none;
}

/* =========================================================================
   Swatch — 色块圆 / 尺寸胶囊 / 通用 pill
   ========================================================================= */
.ms-swatch { display: block; }

/* 隐藏 WC 原始 select（保留在 DOM，触发 variation 联动） */
.ms-swatch__select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
  opacity: 0;
}

.ms-swatch__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0;                      /* 选项之间无间距，连成 segmented control */
}
.ms-swatch__btn {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--ms-line-strong);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ms-ink);
  transition: border-color .2s ease, color .2s ease, background .2s ease, z-index 0s;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0;            /* 矩形 */
}
/* 相邻按钮共享边线（避免 2px 双线） */
.ms-swatch__btn + .ms-swatch__btn { margin-left: -1px; }

.ms-swatch__btn:hover {
  border-color: var(--ms-ink);
  z-index: 1;                  /* hover 边线浮到上层 */
}
/* —— 选中：黑边 + 加粗，z-index 抬高让黑边完整显示 —— */
.ms-swatch__btn[aria-checked="true"] {
  border-color: var(--ms-ink);
  font-weight: 700;
  z-index: 2;
  outline: 1px solid var(--ms-ink);
  outline-offset: -2px;
}
/* —— 缺货：斜划线 + 灰化 —— */
.ms-swatch__btn[disabled],
.ms-swatch__btn.is-out {
  cursor: not-allowed;
  color: var(--ms-ink-faint);
  border-color: var(--ms-line);
  background: var(--ms-bg-soft);
}
.ms-swatch__btn[disabled]::after,
.ms-swatch__btn.is-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%; right: 8%;
  height: 1px;
  background: var(--ms-ink-faint);
  transform: rotate(-18deg);
  transform-origin: center;
}

/* —— Size: 长方形 segmented —— */
.ms-swatch__btn--size {
  min-width: 90px;
  height: 50px;
  padding: 0 20px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
}

/* —— Color: 同样矩形（代替原来的圆形），色块作为背景 —— */
.ms-swatch__btn--color {
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--ms-swatch-color, #e2e2e2);
  font-size: 0;
}
.ms-swatch__btn--color .ms-swatch__btn-inner {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ms-swatch__btn--color[aria-checked="true"] {
  outline: 1.5px solid var(--ms-ink);
  outline-offset: -2px;
}
.ms-swatch__btn--color[disabled]::after,
.ms-swatch__btn--color.is-out::after {
  left: 0; right: 0; top: 50%;
  transform: rotate(-18deg);
}

/* —— Pill: 通用 fallback —— */
.ms-swatch__btn--pill {
  min-width: 80px;
  height: 48px;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* —— 旧的下方 current 隐藏（留 DOM 给屏幕阅读器，不显示） —— */
.ms-swatch__current {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* —— 选中后 label 旁的 value：跟参考图一致，普通大小写黑字 —— */
.ms-pdp__cart .variations th.label label .ms-swatch__label-value {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;          /* 保留原 casing：Black Python */
  color: var(--ms-ink);
  margin-left: 2px;
}

/* —— size 行右上角的 Sizing Guide 链接 —— */
.ms-pdp__cart .variations tr { position: relative; }
.ms-swatch__guide {
  position: absolute;
  top: -2px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ms-ink);
  cursor: pointer;
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ms-ink-faint);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.ms-swatch__guide svg {
  width: 16px;
  height: 16px;
  color: var(--ms-ink-muted);
  transition: color .2s ease;
}
.ms-swatch__guide:hover {
  color: #000;
  text-decoration-color: var(--ms-ink);
}
.ms-swatch__guide:hover svg { color: var(--ms-ink); }

/* —— 宽 modal（Size Guide 表格用） —— */
.ms-modal__panel--wide {
  width: min(720px, 92vw);
}

/* —— Reset 按钮（"clear" link） —— */
.ms-pdp__cart .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ms-ink-faint);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ms-pdp__cart .reset_variations:hover { color: var(--ms-ink); }

/* —— Single variation 价格区（变体选中后显示） —— */
.ms-pdp__cart .single_variation_wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ms-pdp__cart .woocommerce-variation-price {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ms-ink);
}
.ms-pdp__cart .woocommerce-variation-availability {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
}
.ms-pdp__cart .stock.out-of-stock { color: var(--ms-danger, #ff4757); }

/* —— 数量 + Add to Cart 行 —— */
body.ms-pdp-page .ms-pdp__cart .woocommerce-variation-add-to-cart,
body.ms-pdp-page .ms-pdp__cart form.cart {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
}

/* —— Quantity：中圆角矩形 + −/+ 按钮（跟 Add to Cart 同款 12px 圆角） —— */
body.ms-pdp-page .ms-pdp__cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ms-line-strong);
  border-radius: 12px;
  height: 56px;
  flex: 0 0 auto;
  background: #fff;
  padding: 0 4px;
  transition: border-color .2s ease;
}
body.ms-pdp-page .ms-pdp__cart .quantity:hover { border-color: var(--ms-ink); }
body.ms-pdp-page .ms-pdp__cart .ms-qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--ms-ink-muted);                /* 默认柔和灰，跟参考一致 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, color .2s ease;
}
body.ms-pdp-page .ms-pdp__cart .ms-qty-btn:hover {
  background: var(--ms-bg-soft);
  color: var(--ms-ink);                       /* hover 时变黑 */
}
body.ms-pdp-page .ms-pdp__cart .ms-qty-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
body.ms-pdp-page .ms-pdp__cart .quantity .qty {
  border: 0;
  background: transparent;
  width: 36px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-ink);
  -moz-appearance: textfield;
  height: 100%;
}
body.ms-pdp-page .ms-pdp__cart .quantity .qty::-webkit-outer-spin-button,
body.ms-pdp-page .ms-pdp__cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.ms-pdp-page .ms-pdp__cart .quantity .qty:focus { outline: none; }

/* —— Add to cart button（outline 风 — 白底黑边 + hover 反色）—— */
/* —— 注：Astra 主题给 .button.alt 注入全局色 + 字体 + !important，
   所以同向 !important 反制（限定 bg/color/border/font-weight 4 项）。 —— */
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button,
html body.ms-pdp-page .ms-pdp__cart button.button.alt,
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button.button.alt {
  flex: 1 1 auto;
  height: 56px;
  background: #fff !important;
  color: #000 !important;                  /* 加粗黑字（字面值，避免 var 被覆盖） */
  border: 1.5px solid #000 !important;
  border-radius: 12px;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;             /* 提升到 extra-bold */
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s ease, color .25s ease;
  box-shadow: none !important;
  text-shadow: none !important;
}
/* —— hover / active / focus 都翻黑底白字 —— */
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:hover,
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:active,
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:focus,
html body.ms-pdp-page .ms-pdp__cart button.button.alt:hover,
html body.ms-pdp-page .ms-pdp__cart button.button.alt:active,
html body.ms-pdp-page .ms-pdp__cart button.button.alt:focus {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  outline: none;
}
/* —— hover：黑底白字 + light-flare 扫光 —— */
body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transition: left .8s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:hover {
  background: var(--ms-ink);
  color: #fff;
}
body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:hover::after { left: 100%; }
/* —— disabled（变体没选完前）：白底 + 灰边 + 灰字，
   视觉上明显比 active 弱一档，用户立刻知道"要先选尺寸" —— */
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:disabled,
html body.ms-pdp-page .ms-pdp__cart button.button.alt:disabled,
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button.disabled {
  opacity: 1 !important;
  cursor: not-allowed;
  background: #fff !important;
  color: #b0b0b0 !important;
  border: 1.5px solid #d4d4d4 !important;
}
/* disabled hover：保持灰，不翻黑（无 pointer-events 限制，让 :disabled HTML 属性自然阻止点击） */
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button:disabled:hover,
html body.ms-pdp-page .ms-pdp__cart .single_add_to_cart_button.disabled:hover {
  background: #fff !important;
  color: #b0b0b0 !important;
  border-color: #d4d4d4 !important;
}

/* =========================================================================
   Accordion — Description
   ========================================================================= */
.ms-pdp__accordion {
  display: flex;
  flex-direction: column;
}
.ms-pdp__acc-item {
  border-top: 1px solid var(--ms-line);
}
.ms-pdp__acc-item:last-child { border-bottom: 1px solid var(--ms-line); }
.ms-pdp__acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink);
  transition: color .2s;
}
.ms-pdp__acc-item summary::-webkit-details-marker { display: none; }
.ms-pdp__acc-item summary:hover { color: var(--ms-ink); }
.ms-pdp__acc-icon {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--ms-ink-muted);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  width: 16px;
  text-align: center;
}
.ms-pdp__acc-item[open] .ms-pdp__acc-icon {
  transform: rotate(45deg);
}
.ms-pdp__acc-body {
  padding: 0 0 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ms-ink-muted);
}
.ms-pdp__acc-body p { margin: 0 0 .8em; }
.ms-pdp__acc-body p:last-child { margin-bottom: 0; }
.ms-pdp__acc-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.ms-pdp__acc-body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.ms-pdp__acc-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--ms-ink-faint);
}

/* =========================================================================
   Size Guide table
   ========================================================================= */
.ms-size__intro {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ms-ink-muted);
  margin: 0 0 14px;
}
.ms-size__intro strong { color: var(--ms-ink); font-weight: 600; }

.ms-size__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  border-radius: 6px;
  border: 1px solid var(--ms-line);
}
.ms-size__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-align: left;
  background: #fff;
  min-width: 480px;
}
.ms-size__table thead th {
  background: var(--ms-bg-soft);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-ink);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ms-line);
  white-space: nowrap;
}
.ms-size__table tbody th {
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ms-ink);
  padding: 11px 12px;
  background: var(--ms-bg-soft);
  border-right: 1px solid var(--ms-line);
  white-space: nowrap;
  width: 64px;
}
.ms-size__table tbody td {
  padding: 11px 12px;
  color: var(--ms-ink);
  border-top: 1px solid var(--ms-line);
  white-space: nowrap;
}
.ms-size__table tbody tr:hover td,
.ms-size__table tbody tr:hover th { background: rgba(180, 188, 210, .08); }

.ms-size__note {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ms-ink-faint);
  margin: 0;
}

/* =========================================================================
   Wash & Care icons
   ========================================================================= */
.ms-care__icons {
  list-style: none !important;
  margin: 16px 0 18px !important;
  padding: 16px !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 18px 22px;
  background: var(--ms-bg-soft);
  border-radius: 8px;
  border: 1px solid var(--ms-line);
}
.ms-care__icons li {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
  min-width: 64px;
}
.ms-care__icons li::before { display: none !important; }
.ms-care__icons li svg {
  color: var(--ms-ink);
  flex-shrink: 0;
}
.ms-care__icons li:hover { color: var(--ms-ink); }
.ms-care__icons li:hover svg {
  color: var(--ms-ink);
  transform: scale(1.05);
  transition: transform .25s ease;
}

.ms-care__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ms-care__list li {
  position: relative;
  padding-left: 18px !important;
  margin-bottom: 8px !important;
}
.ms-care__list li::before {
  content: '✦' !important;
  position: absolute;
  left: 0;
  color: var(--ms-ink-faint);
}

/* =========================================================================
   Quick Specs（accordion 之后的平铺信息块）
   ========================================================================= */
.ms-pdp__specs {
  list-style: none;
  margin: 14px 0 12px;
  padding: 0;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
}
.ms-pdp__specs li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--ms-line);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ms-ink);
}
.ms-pdp__specs li:first-child { border-top: 0; }
.ms-pdp__specs-key {
  flex: 0 0 90px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
}
.ms-pdp__specs-val { color: var(--ms-ink); }

/* =========================================================================
   Inline Icon Links（横排 — Shipping & Care）
   ========================================================================= */
.ms-pdp__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 12px 0 18px;
}
.ms-pdp__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ms-ink);
  cursor: pointer;
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.ms-pdp__link svg { color: var(--ms-ink); transition: transform .25s ease; }
.ms-pdp__link:hover { color: #000; }
.ms-pdp__link:hover svg { transform: scale(1.08); }

/* =========================================================================
   Modal（Shipping / Care 弹窗）
   ========================================================================= */
.ms-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.ms-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.ms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.ms-modal__panel {
  position: relative;
  background: #fff;
  width: min(560px, 92vw);
  max-height: min(85vh, 720px);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.98);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
}
.ms-modal[aria-hidden="false"] .ms-modal__panel {
  transform: translateY(0) scale(1);
}
.ms-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ms-line);
}
.ms-modal__title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--ms-ink);
}
.ms-modal__close {
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: var(--ms-ink-muted);
  border-radius: 50%;
  transition: all .2s ease;
}
.ms-modal__close:hover {
  color: var(--ms-ink);
  background: var(--ms-bg-soft);
}
.ms-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 24px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ms-ink);
}
.ms-modal__body h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
  margin: 18px 0 8px;
  font-weight: 600;
}
.ms-modal__body h4:first-child { margin-top: 0; }
.ms-modal__body p { margin: 0 0 12px; }
.ms-modal__body ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ms-modal__body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.ms-modal__body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--ms-ink-faint);
}
.ms-modal__body strong { color: var(--ms-ink); font-weight: 600; }

body.ms-modal-open { overflow: hidden; }

/* =========================================================================
   Added-to-Cart Modal — 加车后弹出 + Complete the Look 推荐
   ========================================================================= */
.ms-modal__panel--cart {
  width: min(560px, 94vw);
  max-height: min(90vh, 760px);
}
.ms-modal--cart .ms-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  letter-spacing: .04em;
}

/* —— 刚加产品的小摘要 —— */
.ms-cart-toast {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--ms-bg-soft);
  border-radius: 8px;
  margin-bottom: 18px;
}
.ms-cart-toast__img {
  flex: 0 0 60px;
  width: 60px;
  height: 75px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.ms-cart-toast__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ms-cart-toast__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.ms-cart-toast__name {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ms-ink);
  line-height: 1.2;
}
.ms-cart-toast__variant {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ms-ink-muted);
}

/* —— Complete the Look 区 —— */
.ms-cart-look {
  margin-bottom: 18px;
}
.ms-cart-look__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.ms-cart-look__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
}
.ms-cart-look__title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
  color: var(--ms-ink);
}
.ms-cart-look__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.ms-cart-look__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.ms-cart-look__item:hover {
  border-color: var(--ms-ink);
  background: var(--ms-bg-soft);
}
.ms-cart-look__img {
  flex: 0 0 56px;
  width: 56px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.ms-cart-look__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ms-cart-look__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ms-cart-look__name {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ms-ink);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-cart-look__price {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ms-ink);
}
.ms-cart-look__price del { color: var(--ms-ink-faint); margin-right: 6px; font-weight: 400; }
.ms-cart-look__price ins { background: transparent; text-decoration: none; color: var(--ms-ink); }

/* + 按钮（simple product）/ → 链接箭头（variable product） */
.ms-cart-look__add {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ms-line-strong);
  background: #fff;
  color: var(--ms-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .25s ease;
}
.ms-cart-look__add:hover {
  background: var(--ms-ink);
  color: #fff;
  border-color: var(--ms-ink);
}
.ms-cart-look__add:disabled { opacity: .5; cursor: not-allowed; }
.ms-cart-look__add.is-added {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.ms-cart-look__add.is-added::after {
  content: '✓';
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1;
}
.ms-cart-look__add.is-added svg { display: none; }
.ms-cart-look__add.is-loading {
  background: var(--ms-bg-soft);
  cursor: wait;
}
.ms-cart-look__add--link {
  background: transparent;
  cursor: pointer;
}

/* —— Modal 底部按钮 —— */
.ms-cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.ms-cart-btn {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--ms-ink);
  transition: all .2s ease;
}
.ms-cart-btn--ghost {
  background: #fff;
  color: var(--ms-ink);
}
.ms-cart-btn--ghost:hover { background: var(--ms-bg-soft); }
.ms-cart-btn--solid {
  background: var(--ms-ink);
  color: #fff;
}
.ms-cart-btn--solid:hover {
  background: #fff;
  color: var(--ms-ink);
}

/* —— Add to Cart 按钮 loading 态 —— */
.ms-pdp__cart .single_add_to_cart_button.is-loading {
  cursor: wait;
  opacity: .7;
}

/* =========================================================================
   Related sections — Complete the Look + You May Also Like
   ========================================================================= */
.ms-pdp__related {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--ms-line);
}
/* Complete the Look 在前面 → 缩短上下间距，跟 You May Also Like 拉开节奏 */
.ms-pdp__look + .ms-pdp__related {
  margin-top: 60px;
}
/* Complete the Look 自己是头条出现 → 顶端不需要 border */
.ms-pdp__look { border-top: 0; padding-top: 32px; }
.ms-pdp__related-head {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ms-pdp__related-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ms-ink-muted);
}
.ms-pdp__related-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  padding-bottom: 14px;
  color: var(--ms-ink);
}
.ms-pdp__related-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 100%;
  animation: ms-shimmer 5s linear infinite;
}

/* =========================================================================
   Mobile sticky add-to-cart bar
   ========================================================================= */
.ms-pdp__sticky {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ms-line);
  padding: 12px 16px env(safe-area-inset-bottom, 12px);
  display: none;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.ms-pdp__sticky.is-visible { transform: translateY(0); }
.ms-pdp__sticky-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ms-pdp__sticky-name {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ms-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-pdp__sticky-price {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ms-ink);
}
.ms-pdp__sticky-btn {
  flex: 0 0 auto;
  background: var(--ms-ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ms-pdp__sticky-btn:hover { color: #fff; }

@media (max-width: 900px) {
  .ms-pdp__sticky { display: flex; }
}
