/**
 * PDP — 与 index (1).html + styles.css 视觉对齐（依赖 shaperfactory-pdp-design-system / styles.css）
 * 作用域：article.pdp-stitch，覆盖 bridge 中与参考稿冲突的工业风规则。
 */

/* ---------- 全宽：原版整幅视宽，不被主题 1190/1400/1920/904 框死 ---------- */
body.single-product #site-content.single-product-page--full {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.single-product .single-product-page__viewport {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 面包屑：bridge-components 把 .container 限成 1190px，产品页拉满 */
body.single-product .page-breadcrumb-container > .container {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* bridge：中间栏 904px、左栏图 426px — 在 pdp-stitch 下改为随栅格占满 */
body.single-product .pdp-stitch.single-product--industrial .single-product__primary {
  max-width: none;
  width: 100%;
}

body.single-product .pdp-stitch.single-product--industrial .single-product__gallery {
  max-width: none;
  width: 100%;
}

body.single-product .pdp-stitch.single-product--industrial .single-product__main-image {
  max-width: none;
  width: 100%;
}

body.single-product .pdp-stitch.single-product--industrial .single-product__thumbs {
  max-width: none;
  width: 100%;
}

body.single-product .pdp-stitch .single-product__shapetech-excellence-inner {
  max-width: none;
  width: 100%;
}

/* ---------- 页面壳：参考 main.container px-8 pt-12 pb-24 ---------- */
body.single-product .single-product-page__viewport {
  padding-top: 3rem;
  padding-bottom: 6rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 767px) {
  body.single-product .single-product-page__viewport {
    padding-top: 2rem;
    padding-bottom: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ---------- 文章容器：参考 body bg-surface + 无工业卡片投影 ---------- */
body.single-product .pdp-stitch.single-product--industrial {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-on-surface, #0f172a);
}

/* ---------- 12 列栅格 + gap-16（参考 lg:grid-cols-12 lg:gap-16） ---------- */
@media (min-width: 1024px) {
  body.single-product .pdp-stitch .single-product__industrial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 4rem;
    row-gap: 0;
    align-items: start;
  }

  body.single-product .pdp-stitch .single-product__media {
    grid-column: span 3 / span 3;
    padding-right: 2rem;
    min-width: 0;
  }

  body.single-product .pdp-stitch .single-product__primary {
    grid-column: span 6 / span 6;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: none;
    width: 100%;
  }

  body.single-product .pdp-stitch .single-product__order-card {
    grid-column: span 3 / span 3;
    padding-left: 2rem;
    min-width: 0;
  }
}

/* ---------- 中间栏 vertical rhythm：space-y-8 ---------- */
body.single-product .pdp-stitch .single-product__primary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

body.single-product .pdp-stitch .single-product__primary-hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 0 !important;
  max-width: none !important;
}

body.single-product .pdp-stitch .single-product__primary-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- 徽章：完全使用 .tag.tag-gold（覆盖 bridge 灰底）；flex 子项勿横向拉满 ---------- */
body.single-product .pdp-stitch .single-product__badge.tag.tag-gold {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  background-color: var(--color-accent-gold, #c5a17a) !important;
  color: #ffffff !important;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 主标题：固定 36px（覆盖 single-product-bridge 工业首屏 H1 的 clamp/48px 行高） ---------- */
body.single-product article.pdp-stitch.single-product--industrial .single-product__primary-hero .single-product__title.single-product__hero-title,
body.single-product .pdp-stitch .single-product__hero-title,
body.single-product .pdp-stitch .single-product__primary-hero .single-product__title {
  font-family: var(--font-headline);
  font-size: 2.25rem; /* 36px */
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.025em;
  text-transform: none;
  color: #0f172a;
  margin: 0;
  min-height: 0;
  width: auto;
}

@media (max-width: 640px) {
  body.single-product .pdp-stitch .single-product__hero-title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }
}

/* ---------- 营销副行 ---------- */
body.single-product .pdp-stitch .single-product__marketing-line {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 300;
  color: #1e293b;
}

/* ---------- 导语：text-slate-500 text-lg leading-relaxed max-w-2xl ---------- */
body.single-product .pdp-stitch .single-product__lead {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: #64748b;
  font-family: var(--font-body);
  min-height: 0 !important;
}

body.single-product .pdp-stitch .single-product__lead p {
  margin: 0 0 0.75rem 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

body.single-product .pdp-stitch .single-product__lead p:last-child {
  margin-bottom: 0;
}

/* ---------- Kicker 行：弱化，不抢主标题 ---------- */
body.single-product .pdp-stitch .single-product__pdp-kicker {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

/* ---------- Color / Size 区块：space-y-4 + form-label 行 ---------- */
body.single-product .pdp-stitch .single-product__catalog-visual,
body.single-product .pdp-stitch .single-product__size-block {
  gap: 1rem;
}

body.single-product .pdp-stitch .single-product__variant-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.single-product .pdp-stitch .single-product__variant-label--color .single-product__variant-label-row,
body.single-product .pdp-stitch .single-product__variant-label--size .single-product__variant-label-row {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
}

/* SIZE 行：仅「Size」标签词 — 14px、全大写（覆盖 bridge 对 prefix 的 capitalize） */
body.single-product .pdp-stitch .single-product__variant-label--size .single-product__variant-label-prefix {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

body.single-product .pdp-stitch .single-product__variant-label--size .single-product__variant-value,
body.single-product .pdp-stitch .single-product__variant-label--size .single-product__size-current-value {
  font-size: 14px;
}

/* ---------- 色卡：圆形 .color-swatch（参考稿） ---------- */
body.single-product .pdp-stitch .single-product__color-swatches--industrial {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  min-height: 0 !important;
}

body.single-product .pdp-stitch .single-product__color-swatch-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 2px;
  border: 2px solid #0f172a;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

body.single-product .pdp-stitch .single-product__color-swatch-btn:hover {
  border-color: #64748b;
}

body.single-product .pdp-stitch .single-product__color-swatch-btn.is-active {
  border-color: #0f172a;
  box-shadow: none;
}

body.single-product .pdp-stitch .single-product__color-swatch-fill {
  position: absolute;
  inset: 2px;
  border-radius: 9999px;
  display: block;
}

body.single-product .pdp-stitch .single-product__color-swatch-check {
  display: none;
}

/* ---------- 尺码：.btn-size ---------- */
body.single-product .pdp-stitch .single-product__size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.single-product .pdp-stitch .single-product__size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3rem;
  min-width: 3.5rem;
  min-height: 3rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.single-product .pdp-stitch .single-product__size-btn:hover {
  border-color: #0f172a;
}

body.single-product .pdp-stitch .single-product__size-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ---------- 主图：aspect 3/4（不做灰阶，保持原图色彩） ---------- */
body.single-product .pdp-stitch .single-product__main-image {
  aspect-ratio: 3 / 4;
  max-width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0;
}

body.single-product .pdp-stitch .single-product__main-image img,
body.single-product .pdp-stitch .single-product__main-image .single-product__image {
  filter: none;
}

/* ---------- 缩略图：全彩，不套灰阶 ---------- */
body.single-product .pdp-stitch .single-product__thumbs .single-product__thumb img {
  filter: none;
  opacity: 1;
}

/* ---------- Material info-block：与 styles.css 一致 ---------- */
body.single-product .pdp-stitch .single-product__material-aside.info-block {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 2px solid rgba(14, 165, 233, 0.2);
  background-color: #f8fafc;
}

body.single-product .pdp-stitch .single-product__material-aside-title.info-block-title {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

body.single-product .pdp-stitch .single-product__material-aside-text.info-block-text {
  font-size: 0.75rem;
  line-height: 1.625;
  color: #475569;
}

/* ---------- 侧栏订单：规格行参考 flex justify-between py-2 border-b ---------- */
body.single-product .pdp-stitch .single-product__order-card-inner.card {
  padding: 2rem;
}

body.single-product .pdp-stitch .single-product__order-spec-row {
  padding: 0.5rem 0;
  align-items: center;
}

body.single-product .pdp-stitch .single-product__order-spec-row dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #64748b;
}

body.single-product .pdp-stitch .single-product__order-spec-row dd {
  font-size: 0.875rem;
}

/* ---------- 认证区：icon-2xl + text-xs font-label ---------- */
body.single-product .pdp-stitch .single-product__trust-ms {
  font-size: 3rem;
  line-height: 1;
}

body.single-product .pdp-stitch .single-product__trust-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ---------- 工程规格：specs-grid 细缝网格（设计系统） ---------- */
body.single-product .pdp-stitch .single-product__engineering-grid.specs-grid {
  gap: 0.125rem;
}

body.single-product .pdp-stitch .single-product__engineering-cell.spec-item .single-product__engineering-icon {
  display: none;
}

body.single-product .pdp-stitch .single-product__engineering-cell.spec-item {
  padding: 1.5rem;
}

body.single-product .pdp-stitch .single-product__engineering-label.spec-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

body.single-product .pdp-stitch .single-product__engineering-text.spec-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
}

body.single-product .pdp-stitch .single-product__engineering-cell--plain .single-product__engineering-icon {
  display: none;
}

/* ---------- 品牌叙事区：参考 company-section / stat-value ---------- */
body.single-product .pdp-stitch .single-product__shapetech-excellence-copy {
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 5rem);
}

@media (min-width: 768px) {
  body.single-product .pdp-stitch .single-product__shapetech-excellence-copy {
    padding: 5rem;
  }
}

body.single-product .pdp-stitch .single-product__shapetech-stat-value {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

body.single-product .pdp-stitch .single-product__shapetech-stat-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

body.single-product .pdp-stitch .single-product__shapetech-title {
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #0f172a;
}

body.single-product .pdp-stitch .single-product__shapetech-lead {
  font-size: 16px;
  line-height: 1.625;
  font-weight: 300;
  color: #475569;
}

/*
 * 品牌叙事双栏：inner 固定高度 500px
 */
@media (min-width: 900px) {
  body.single-product .single-product__shapetech-excellence-inner.company-section-grid,
  body.single-product .pdp-stitch .single-product__shapetech-excellence-inner {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    align-items: stretch;
    box-sizing: border-box;
  }

  body.single-product .pdp-stitch .single-product__shapetech-excellence-copy {
    padding: 1.75rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    align-self: stretch;
  }

  body.single-product .pdp-stitch .single-product__shapetech-excellence-media {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
  }

  body.single-product .pdp-stitch .single-product__shapetech-excellence-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
}

/* ---------- Related Products：外层区块 + 内层卡片（对齐主图/工程区 slate 体系） ---------- */
body.single-product .single-product-page__viewport .single-product__related.ss-card {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

body.single-product .single-product-page__viewport .single-product__related.ss-card:hover {
  transform: none;
  box-shadow: none;
}

body.single-product .single-product-page__viewport .single-product__related-title {
  margin: 0 0 1.25rem 0;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
}

body.single-product .single-product-page__viewport .single-product__related-grid {
  gap: 1rem;
}

@media (min-width: 1024px) {
  body.single-product .single-product-page__viewport .single-product__related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

body.single-product .single-product-page__viewport .single-product__related-item {
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product .single-product-page__viewport .single-product__related-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.single-product .single-product-page__viewport .single-product__related-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

body.single-product .single-product-page__viewport .single-product__related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-product .single-product-page__viewport .single-product__related-placeholder {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
}

body.single-product .single-product-page__viewport .single-product__related-info {
  padding: 1rem 1rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.single-product .single-product-page__viewport .single-product__related-item-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 600;
  color: #0f172a;
}

body.single-product .single-product-page__viewport .single-product__related-item-title a {
  color: #0f172a;
  text-decoration: none;
}

body.single-product .single-product-page__viewport .single-product__related-item-title a:hover {
  color: #0ea5e9;
  text-decoration: none;
}

body.single-product .single-product-page__viewport .single-product__related-sku {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-top: auto;
}
