/* =============================================================
   Jesterlift Product Detail Page — product.css
   Extends assets/styles.css with PDP-specific components only.
   Reuses .values-grid / .value-card / .prose / .festival-band
   / .cta / .compare-table / .vp-list from the main stylesheet.
   ============================================================= */

/* ---------- PRODUCT OVERVIEW LAYOUT ---------- */
.pdp-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

/* product image — mirrors .prod-visual from homepage catalog */
.pdp-visual {}
.pdp-img-wrap {
  position: relative;
  background: var(--stainless);
  border: 1px solid var(--mercury-light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 28px;
}
.pdp-img-wrap .corner-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  opacity: 0.16;
}
.pdp-img-wrap .matbadge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--court);
  background: white;
  border: 1px solid var(--mercury-light);
  padding: 6px 10px;
  border-radius: 2px;
}

/* ---------- INFO COLUMN ---------- */
.pdp-info { padding-top: 8px; }
.pdp-h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 520px;
}

/* ---------- MODEL TABS ---------- */
.model-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.model-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  background: white;
  border: 1px solid var(--mercury-light);
  border-radius: 6px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease;
}
.model-tab:hover {
  border-color: var(--royal-mid);
  transform: translateY(-1px);
}
.model-tab.active {
  border-color: var(--court);
  box-shadow: 0 0 0 1px var(--court), 0 8px 24px rgba(11,11,15,0.10);
}
.model-tab .mt-sku {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--court);
}
.model-tab .mt-cap {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--court);
}
.model-tab.active .mt-sku { color: var(--royal); }

/* ---------- PRICE BLOCK ---------- */
.pdp-price-block {
  background: white;
  border: 1px solid var(--mercury-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.ppb-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ppb-line.their {
  color: var(--mercury);
  margin-bottom: 4px;
}
.ppb-line.their .strike { text-decoration: line-through; }
.ppb-line.ours {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--court);
  line-height: 1;
  margin: 4px 0 8px;
}
.ppb-line.save {
  color: var(--royal);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ppb-line.save .dot { color: var(--gold); }
.ppb-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--mercury-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mercury);
}

/* ---------- CTAs ---------- */
.pdp-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn-ghost-dark {
  background: transparent;
  color: var(--court);
  border: 1px solid var(--court);
}
.btn-ghost-dark:hover {
  background: var(--court);
  color: var(--stainless);
}

/* ---------- LIGHT BADGE PILLS (vs dark .badge-pill from hero) ---------- */
.badge-pill-light {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: white;
  border: 1px solid var(--mercury-light);
  padding: 7px 12px;
  border-radius: 100px;
}
.badge-pill-light .dot { color: var(--gold); margin-right: 5px; }

/* ---------- SPECS TABLE ---------- */
.specs-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--mercury-light);
  border-radius: 8px;
  margin-bottom: 18px;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mercury);
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--mercury-light);
  background: var(--stainless);
  white-space: nowrap;
}
.specs-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--mercury-light);
  font-family: var(--mono);
  font-size: 14px;
  color: #333;
  vertical-align: top;
}
.specs-table tbody tr:last-child td { border-bottom: none; }
.specs-table tbody tr:hover { background: rgba(245,246,247,0.5); }
.spec-name {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--court) !important;
  min-width: 220px;
}
.spec-row-highlight td {
  background: rgba(253,208,23,0.06);
  border-bottom-color: rgba(253,208,23,0.18);
}
.spec-row-highlight .spec-name { color: var(--court) !important; }

/* Section divider inside the specs table — separates per-model rows from shared rows */
.specs-table tbody tr.spec-divider td {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mercury);
  background: var(--stainless);
  padding: 14px 22px;
  border-top: 1px solid var(--mercury-light);
  border-bottom: 1px solid var(--mercury-light);
}
.specs-table tbody tr.spec-divider:hover td { background: var(--stainless); }
.specs-table tbody tr.spec-divider td::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 36px; }
  .pdp-h2 { font-size: 30px; }
  .ppb-line.ours { font-size: 36px; }
  .pdp-ctas { flex-direction: column; align-items: stretch; }
  .pdp-ctas .btn { justify-content: center; }
  .specs-table thead th, .specs-table tbody td { padding: 12px 14px; }
  .spec-name { min-width: 160px; }
}
@media (max-width: 640px) {
  .model-tabs { grid-template-columns: 1fr; }
}

/* ---------- HERO CAROUSEL ---------- */
.pdp-carousel { position: relative; }
.pdp-carousel .car-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}
.pdp-carousel .car-slide.active { display: block; }
.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mercury-light);
  background: rgba(255,255,255,0.92);
  color: var(--court);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  z-index: 2;
}
.car-nav:hover { border-color: var(--royal); box-shadow: 0 4px 14px rgba(11,11,15,0.12); }
.car-nav:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.pdp-carousel[data-count="1"] .car-nav { display: none; }
.car-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.pdp-carousel[data-count="1"] .car-thumbs { display: none; }
.car-thumb {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: white;
  border: 1px solid var(--mercury-light);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.car-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-thumb:hover { border-color: var(--royal-mid); }
.car-thumb.active { border-color: var(--court); box-shadow: 0 0 0 1px var(--court); }
.car-style-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--mercury-light);
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 2;
}
