/* ==========================================================================
   Product detail (templates/product.php): factory spec sheet hero.
   Scoped to .pdp-hero so nothing else on the site is touched.
   ========================================================================== */

.pdp-hero { padding-top: 12px; }
.pdp-hero .product-grid { gap: clamp(24px, 4vw, 56px); }

/* ---------- gallery: plate with view labels ---------- */
.pdp-hero .gallery-main { box-shadow: none; border: 1px solid var(--rule); border-radius: 4px; }
.pdp-hero .plate-tag { color: var(--ink); background: var(--surface); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 2px; }
.pdp-hero .thumbs button { position: relative; border-radius: 4px; display: grid; grid-template-rows: 1fr auto; }
.pdp-hero .thumbs button img { min-height: 0; padding: 6px 6px 0; }
.pdp-view-label { display: block; padding: 4px 0 5px; font: 500 .62rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-top: 1px solid var(--rule); background: var(--surface); }
.pdp-hero .thumbs button[aria-pressed="true"] .pdp-view-label { color: var(--on-accent); background: var(--accent); border-top-color: var(--accent); }
.pdp-hero .thumbs button:hover { border-color: var(--ink-2); }
.pdp-hero .thumbs button[aria-pressed="true"] { border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- info column ---------- */
.pdp-info { gap: 0; justify-items: stretch; }
.pdp-info > * + * { margin-top: 16px; }

.pdp-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.pdp-sheet-head .pdp-code { color: var(--accent-ink); font-weight: 600; }

.pdp-info h1.display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.06; margin-top: 18px; }
.pdp-info .pdp-lede { margin-top: 12px; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.pdp-who { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--accent); font-size: .9rem; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.pdp-who b { font-weight: 700; color: var(--navy); }

.pdp-label { font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- price tiers ---------- */
.pdp-price { margin-top: 22px; border: 1px solid var(--rule-strong); background: var(--surface); border-radius: 4px; }
.pdp-price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.pdp-price-head a { font-weight: 600; letter-spacing: .04em; }
.pdp-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pdp-tiers li { display: grid; gap: 6px; padding: 12px 12px 14px; min-width: 0; }
.pdp-tiers li + li { border-left: 1px solid var(--rule); }
.pdp-tiers span { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.pdp-tiers b { font: 600 1.18rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.pdp-tiers li.is-first { background: var(--accent-soft); }
.pdp-tiers li.is-first span { color: var(--accent-ink); }
.pdp-price-quote { margin: 0; padding: 14px; font-size: .95rem; }
/* Amber is reserved for this one "not included" note so it reads as a caveat, not a promo. */
.pdp-hero .pdp-deco-note { --pdp-note-bg: #fff8e6; --pdp-note-ink: #7a4b00; margin: 0; border-radius: 0 0 3px 3px; border-left: 0; border-top: 1px solid var(--rule); background: var(--pdp-note-bg); color: var(--ink); font-size: .88rem; line-height: 1.5; }
.pdp-hero .pdp-deco-note b { color: var(--pdp-note-ink); }

@media (max-width: 1100px) and (min-width: 901px), (max-width: 560px) {
  .pdp-tiers { grid-template-columns: 1fr; }
  .pdp-tiers li { grid-template-columns: 1fr auto; align-items: center; padding: 9px 14px; }
  .pdp-tiers li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .pdp-tiers span { font-size: .74rem; }
  .pdp-tiers b { font-size: 1.02rem; }
}

/* ---------- MOQ / production facts ---------- */
.pdp-facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.pdp-facts > div { padding: 10px 12px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.pdp-facts dt { font: 500 .64rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pdp-facts dd { margin: 6px 0 0; font: 600 .98rem/1.2 var(--f-display); color: var(--ink); }
.pdp-facts dd.sub { margin-top: 3px; font: 400 .78rem/1.35 var(--f-body); color: var(--ink-2); }
@media (max-width: 560px) { .pdp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CTAs ---------- */
.pdp-info .hero-cta { margin-top: 22px; }
.pdp-info .hero-cta .btn { flex: 1 1 200px; justify-content: center; }
.pdp-sublinks { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; font-size: .9rem; }
.pdp-sublinks a { font-weight: 600; }

/* ---------- custom + certs ---------- */
.pdp-custom { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
.pdp-custom .custom-strip { margin: 0; font-size: .82rem; color: var(--ink-2); }
.pdp-certs { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font: 500 .76rem/1.5 var(--f-mono); letter-spacing: .02em; color: var(--ink); }
.pdp-certs > span { white-space: nowrap; }
.pdp-certs .pdp-label { margin-right: 10px; }
.pdp-certs > span:not(.pdp-label) + span::before { content: "/"; margin: 0 8px; color: var(--rule-strong); }

@media (max-width: 900px) {
  .pdp-info h1.display { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-hero .thumbs button { transition: none; }
}
