/* ═══════════════════════════════════════════════════════════
   product-page.css — per-product landing pages at /p/<slug>
   Loaded ONLY on those pages, on top of main.css + selector.css.
   Reuses the same colour tokens / font tokens so the look is
   100% consistent with the configurator.
═══════════════════════════════════════════════════════════ */

.pp-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Reuse .s-header from selector.css for the brand row at the top.
   Only override what differs for the landing page. */
.pp-body .s-header { flex-shrink: 0; }

/* ─── Main area ─── */
.pp-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  width: 100%;
  box-sizing: border-box;
}

.pp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color var(--t-fast);
}
.pp-back:hover { color: var(--accent); }

/* ─── Card ─── */
.pp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.pp-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0e0f;
  border: 1px solid rgba(200,168,75,.06);
  border-radius: 6px;
  min-height: 360px;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}
.pp-card__media img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.pp-card__media-placeholder {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: .15;
}

.pp-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pp-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pp-card__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0;
  line-height: 1.1;
  word-break: break-word;
}
.pp-card__badge {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  padding: 5px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pp-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.pp-spec {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,.04);
}
.pp-spec:last-child { border-bottom: none; }
.pp-spec__k { color: var(--muted); }
.pp-spec__v { color: var(--text); text-align: right; }

/* dB widget — same two-row layout as the configurator card */
.pp-card__db {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.pp-db-row1 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.pp-db-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.pp-db-fill { height: 100%; transition: width .3s; }
.pp-db-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}
.pp-db-row2 {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Price + Buy button */
.pp-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pp-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.pp-buy-btn {
  background: var(--accent);
  color: #0d0e0f;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pp-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,168,75,.32);
}
.pp-buy-btn:active { transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .pp-main { padding: 24px 16px 40px; }
  .pp-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }
  .pp-card__media { min-height: 240px; padding: 12px; }
  .pp-card__media img { max-height: 280px; }
  .pp-card__name { font-size: 1.4rem; }
  .pp-card__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .pp-buy-btn { justify-content: center; }
}
