/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE HEAD — replaces the dark text band that repeated the product
   name + description (DEPLUS feedback 2026-11-16). Three options a/b/c are
   built by scripts/build.mjs (PRODUCT_HEAD); shared title styles first.
═══════════════════════════════════════════════════════════════════════════ */

.product-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}
.product-model {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* light breadcrumb (a, b) */
.ph-breadcrumb { justify-content: flex-start; flex-wrap: wrap; color: #6b7280; font-size: 13px; }
.ph-breadcrumb a { color: #6b7280; }
.ph-breadcrumb a:hover { color: var(--color-primary); }
.ph-breadcrumb .breadcrumb-sep { color: #c3c8d1; }
.ph-breadcrumb [aria-current] { color: var(--color-text-primary); font-weight: 600; }

/* ── A · Clean start ─────────────────────────────────────────────────────── */
.ph-crumbs { padding: calc(var(--navbar-height) + 22px) 0 0; background: #fff; }
.ph-detail.ph-a { padding-top: 28px; }
.ph-a .product-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }

/* ── B · Model switcher strip ────────────────────────────────────────────── */
.ph-strip {
  padding: calc(var(--navbar-height) + 18px) 0 18px;
  background: #f5f7fa;
  border-bottom: 1px solid #e6e9ef;
}
.ph-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ph-switch { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph-switch-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6b7280; white-space: nowrap;
}
.ph-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0; list-style: none; }
.ph-pills::-webkit-scrollbar { display: none; }
.ph-pill {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #d9dee6; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
a.ph-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.ph-pill.is-current { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.ph-detail.ph-b { padding-top: 48px; }
.ph-b .product-title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }

.ph-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ph-facts li {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid #d9dee6; color: var(--color-text-primary);
}

/* ── C · Product stage ───────────────────────────────────────────────────── */
.ph-stage {
  position: relative;
  padding: calc(var(--navbar-height) + 28px) 0 72px;
  background:
    radial-gradient(60% 70% at 75% 55%, rgba(214, 45, 47, 0.16) 0%, transparent 60%),
    radial-gradient(80% 60% at 20% 0%, #0b2a5c 0%, transparent 70%),
    var(--color-dark);
  color: #fff;
  overflow: hidden;
}
.ph-breadcrumb-dark { color: rgba(255, 255, 255, 0.55); }
.ph-breadcrumb-dark a { color: rgba(255, 255, 255, 0.6); }
.ph-breadcrumb-dark a:hover { color: #fff; }
.ph-breadcrumb-dark .breadcrumb-sep { color: rgba(255, 255, 255, 0.3); }
.ph-breadcrumb-dark [aria-current] { color: #fff; }
.ph-stage-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; margin-top: 36px;
}
.ph-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ff8a8c; margin-bottom: 14px;
}
.ph-stage-title {
  font-family: 'Barlow Semi Condensed', var(--font-heading), sans-serif;
  font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.98;
  letter-spacing: -0.01em; text-transform: uppercase; color: #fff; margin: 0 0 12px;
}
.ph-stage-model { font-size: 16px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }
.ph-facts-dark { margin-bottom: 32px; }
.ph-facts-dark li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.ph-stage .product-gallery .gallery-main { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.ph-stage .cert-pill { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.ph-stage .gallery-dot { background: rgba(255, 255, 255, 0.35); }
.ph-stage .gallery-dot.active { background: #fff; }
.ph-detail.ph-c { padding-top: 64px; }
.ph-overview-text { font-size: var(--font-size-md); line-height: 1.75; color: var(--color-text-secondary); }

@media (max-width: 1024px) {
  .ph-stage-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .ph-strip-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .ph-switch { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ph-pills { max-width: 100%; }
  .ph-stage { padding-bottom: 48px; }
  .ph-stage-grid { margin-top: 24px; }
  .ph-detail.ph-a, .ph-detail.ph-b { padding-top: 24px; }
}

.ph-stage #product-cert-pills { display: none !important; }
@media (max-width: 1024px) {
  .ph-stage .product-gallery { order: -1; }
  .ph-stage .gallery-main { min-height: 300px; }
  .ph-stage-grid { gap: 28px; }
}

/* ── B on phones: one-line breadcrumb, scrollable size pills with edge fade,
      compact gallery so the product name is on the first screen ── */
@media (max-width: 768px) {
  .ph-strip { padding: calc(var(--navbar-height) + 12px) 0 14px; }
  .ph-breadcrumb { flex-wrap: nowrap; font-size: 12px; min-width: 0; }
  .ph-breadcrumb > * { flex-shrink: 0; }
  .ph-breadcrumb [aria-current] { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-switch { width: 100%; }
  .ph-switch-label { font-size: 11px; }
  .ph-pills {
    width: calc(100% + 24px); margin-right: -24px; padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .ph-pill { height: 34px; padding: 0 14px; font-size: 13px; }
  .ph-detail.ph-b .gallery-main,
  .ph-detail.ph-a .gallery-main { min-height: 0; }
  .ph-detail.ph-b .gallery-slide,
  .ph-detail.ph-a .gallery-slide { min-height: 0; height: 250px; padding: 16px; }
  .ph-detail.ph-b .gallery-slide img,
  .ph-detail.ph-a .gallery-slide img { max-height: 218px; }
  .ph-detail .service-detail-grid { gap: 28px; }
  .ph-b .product-title { font-size: 2rem; }
}

/* share button sits on the badge row instead of its own line */
.ph-detail .product-action-bar { float: right; margin: 0 0 0 12px; }
