/* ============================================
   product-detail.css
============================================ */

/* ── HERO ── */
.pd-hero {
  --tv-page-gap: 4.25rem;
  background: var(--navy2);
  padding: calc(var(--tv-nav-h) + var(--tv-page-gap)) 0 5rem;
  border-bottom: 1px solid rgba(24,112,181,0.2);
  background-image: none !important;
}
.pd-hero-inner {
  /* 65 / 25 two-column grid with a 10% gutter. The right column is ALWAYS
     rendered (a placeholder stands in when a product has no photo) so the
     hero keeps its proportions instead of leaving the right half empty —
     13 of the 15 catalogue products currently ship without an image. */
  display: grid;
  grid-template-columns: 62fr 33fr;
  column-gap: 5%;
  align-items: center;
}
.pd-hero-left  { min-width: 0; }
.pd-hero-right { min-width: 0; }

.pd-badge {
  display: inline-block;
  background: rgba(24,112,181,0.15);
  border: 1px solid rgba(24,112,181,0.35);
  padding: 4px 14px; border-radius: 3px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.125rem;
  text-transform: uppercase; color: var(--blue2);
  margin-bottom: 12px;
}
.pd-cat {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1875rem;
  text-transform: uppercase; color: var(--smoke);
  margin-bottom: 16px;
}
.pd-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4rem, 9vw, 6.875rem); font-weight: 700;
  line-height: 0.9; color: var(--white);
  letter-spacing: 0.0125em; margin-bottom: 24px;
}
.pd-desc {
  /* Fills the text column up to ~1440px, then caps so the measure stays
     readable on very wide screens. */
  max-width: 44rem;
  font-size: 1rem; color: var(--smoke);
  line-height: 1.85; margin-bottom: 36px;
}
.pd-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.pd-img-wrap {
  width: 100%;
  aspect-ratio: 36 / 34;
  background: var(--navy3);
  border: 1px solid rgba(24,112,181,0.15);
  border-radius: 8px; padding: 28px;
  display: flex; align-items: center; justify-content: center;
}
.pd-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 3rem; color: var(--blue2); opacity: 0.25;
}
.pd-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}

/* ── SPECS SECTION ── */
.pd-specs-section {
  background: var(--navy);
  background-image: repeating-linear-gradient(135deg,rgba(255,255,255,0.012),rgba(255,255,255,0.012) 7px,transparent 7px,transparent 14px);
  padding: 5rem 0;
}
.pd-block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.875rem); font-weight: 700;
  color: var(--white); margin-bottom: 32px; line-height: 1;
}

/* Spec two-col */
.pd-spec-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
}
.pd-spec-table {
  border: 1px solid rgba(24,112,181,0.15);
  border-radius: 6px; overflow: hidden; width: 100%;
}
.pd-spec-row {
  display: flex; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(24,112,181,0.08);
}
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-alt { background: rgba(24,112,181,0.04); }
.pd-spec-label {
  width: 160px; flex-shrink: 0;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.09375rem;
  text-transform: uppercase; color: var(--smoke);
}
.pd-spec-value {
  font-size: 0.875rem; font-weight: 600; color: var(--white);
}

/* ── FEATURES SECTION ── */
.pd-features-section {
  background: var(--navy2);
  padding: 5rem 0;
}
.pd-feature-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.pd-feature-group {
  background: var(--navy3);
  border: 1px solid rgba(24,112,181,0.12);
  border-left: 3px solid var(--blue);
  padding: 24px;
  border-radius: 4px;
}
.pd-feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.125rem; font-weight: 600; color: var(--white);
  margin-bottom: 12px; letter-spacing: 0.01875rem;
}
.pd-feature-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-feature-bullets li {
  font-size: 0.875rem; color: var(--silver); line-height: 1.6;
  display: flex; align-items: flex-start; gap: 10px;
}
.pd-feature-bullets li::before {
  content: '→'; color: var(--blue2);
  flex-shrink: 0; font-size: 0.75rem; margin-top: 2px;
}

/* ── GALLERY ── */
.pd-gallery-section { background: var(--navy); padding: 5rem 0; }
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.pd-gallery-item {
  background: var(--navy3);
  border: 1px solid rgba(24,112,181,0.15);
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 1; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.pd-gallery-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.pd-gallery-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(24,112,181,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; font-size: 1.5rem; color: #fff;
}
.pd-gallery-item:hover .pd-gallery-overlay { opacity: 1; }

/* ── LIGHTBOX ── */
.pd-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.pd-lightbox-inner img { max-width: 85vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.pd-lb-close {
  position: absolute; top: -48px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 1.75rem; cursor: pointer; padding: 8px;
}
.pd-lb-prev, .pd-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 2.25rem; cursor: pointer; padding: 12px 18px;
  border-radius: 4px; transition: background 0.2s;
}
.pd-lb-prev:hover, .pd-lb-next:hover { background: rgba(255,255,255,0.2); }
.pd-lb-prev { left: -72px; }
.pd-lb-next { right: -72px; }
.pd-lb-count {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
}

/* ── ENQUIRY ── */
.pd-enquiry { background: var(--navy2); padding: 5rem 0; }
.pd-enquiry-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.pd-enquiry-sub {
  font-size: 0.9375rem; color: var(--smoke); line-height: 1.8; margin-bottom: 32px;
}
.pd-enquiry-facts { display: flex; flex-direction: column; gap: 12px; }
.pd-enq-fact {
  font-size: 0.875rem; color: var(--silver);
  display: flex; align-items: center; gap: 10px;
}
.pd-enq-fact i { color: var(--blue2); width: 16px; }
.pd-enq-form-group { margin-bottom: 18px; }
.pd-enq-form-group label {
  display: block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.09375rem; text-transform: uppercase;
  color: var(--smoke); margin-bottom: 6px;
}
.pd-enq-form-group input,
.pd-enq-form-group textarea {
  width: 100%; background: var(--navy3);
  border: 1.5px solid rgba(24,112,181,0.15); border-radius: 4px;
  padding: 13px 16px; color: var(--white); font-size: 1rem;
  font-family: 'Barlow', sans-serif; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.pd-enq-form-group input:focus,
.pd-enq-form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,112,181,0.15);
}
.pd-enq-form-group input::placeholder,
.pd-enq-form-group textarea::placeholder { color: #2d4a63; }
.pd-enq-success {
  text-align: center; padding: 48px 24px;
  background: var(--navy3);
  border: 1px solid rgba(24,112,181,0.15); border-radius: 6px;
}
.pd-enq-success i { font-size: 3rem; color: #4CAF50; display: block; margin-bottom: 16px; }
.pd-enq-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.pd-enq-success p { font-size: 0.875rem; color: var(--smoke); }

/* ── RELATED ── */
.pd-related {
  background: var(--navy);
  background-image: repeating-linear-gradient(135deg,rgba(255,255,255,0.012),rgba(255,255,255,0.012) 7px,transparent 7px,transparent 14px);
  padding: 5rem 0;
}
.pd-rel-card {
  background: var(--navy2);
  border: 1px solid rgba(24,112,181,0.12);
  padding: 28px; height: 100%;
  transition: background 0.2s, border-color 0.2s;
}
.pd-rel-card:hover { background: var(--navy3); border-color: rgba(24,112,181,0.3); }
.pd-rel-img {
  height: 140px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.pd-rel-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pd-rel-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.pd-rel-desc { font-size: 0.8125rem; color: var(--smoke); line-height: 1.6; margin-bottom: 12px; }
.pd-rel-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-rel-specs span {
  background: rgba(24,112,181,0.1);
  border: 1px solid rgba(24,112,181,0.2);
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.6875rem; color: var(--silver);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .pd-hero { --tv-page-gap: 3.375rem; padding-bottom: 3.75rem; }
  .pd-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .pd-img-wrap { width: 280px; }
  .pd-spec-two-col { grid-template-columns: 1fr; }
  .pd-enquiry-inner { grid-template-columns: 1fr; gap: 40px; }
  .pd-lb-prev { left: -48px; }
  .pd-lb-next { right: -48px; }
}
@media (max-width: 575px) {
  .pd-hero { --tv-page-gap: 2.75rem; padding-bottom: 3.125rem; }
  .pd-img-wrap { width: 220px; }
  .pd-title { font-size: clamp(3rem,12vw,4.5rem); }
  .pd-hero-actions { flex-direction: column; }
  .pd-hero-actions a { text-align: center; }
  .pd-spec-label { width: 110px; font-size: 0.625rem; }
  .pd-gallery { grid-template-columns: 1fr 1fr; }
  .pd-lb-prev { left: 8px; }
  .pd-lb-next { right: 8px; }
  .pd-lb-prev, .pd-lb-next { font-size: 1.5rem; padding: 8px 12px; }
  .pd-enquiry-facts { display: none; }
  .pd-feature-groups { grid-template-columns: 1fr; }
}

/* ============================================
   NEW IN v2 — additive only, nothing above is modified.
   Breadcrumb, tagline, stat strip, in-the-box / compatible
   lists, and the searchable variant table. All reuse the
   existing palette, radii, Barlow Condensed headers and the
   .compare-table row language.
============================================ */

/* .breadcrumb-tv is defined in products.css; product-detail pages
   don't load that file, so it is repeated here (not modified there). */
.breadcrumb-tv {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  font-size:0.75rem; color:var(--smoke); margin-bottom:24px;
}
.breadcrumb-tv a { color:var(--smoke); text-decoration:none; transition:color 0.2s; }
.breadcrumb-tv a:hover { color:var(--blue); }
.breadcrumb-tv span { color:var(--smoke); }

/* .text-blue is used by the enquiry heading. */
.text-blue { color:var(--blue2); }

/* ── HERO TAGLINE ── */
.pd-tagline {
  font-size:1.0625rem; font-weight:600; color:var(--blue2);
  line-height:1.5; margin-top:-10px; margin-bottom:22px;
}

/* ── STAT HIGHLIGHT STRIP (machine layout) ── */
.pd-stats {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  margin-top:52px;
  background:rgba(24,112,181,0.15);
  border:1px solid rgba(24,112,181,0.15);
  border-radius:6px; overflow:hidden;
}
.pd-stat { background:var(--navy3); padding:22px 24px; }
.pd-stat-val {
  font-family:'Barlow Condensed', sans-serif;
  font-size:2rem; font-weight:700; color:var(--white);
  line-height:1; margin-bottom:6px;
}
.pd-stat-key {
  font-size:0.625rem; font-weight:700; letter-spacing:0.09375rem;
  text-transform:uppercase; color:var(--smoke);
}

/* ── IN THE BOX / COMPATIBLE ── */
.pd-supply-section {
  background:var(--navy);
  background-image: repeating-linear-gradient(135deg,rgba(255,255,255,0.012),rgba(255,255,255,0.012) 7px,transparent 7px,transparent 14px);
  padding:5rem 0;
}
.pd-supply-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.pd-supply-list {
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:12px;
}
.pd-supply-list li {
  display:flex; gap:12px; align-items:flex-start;
  font-size:0.875rem; color:var(--silver); line-height:1.6;
}
.pd-supply-list li i {
  color:var(--blue2); font-size:0.8125rem;
  margin-top:4px; width:16px; flex-shrink:0;
}
.pd-supply-compat li i { color:#4CAF50; }

/* ── ENQUIRY EXTRAS ── */
.pd-enq-direct { margin-top:28px; }
.pd-enq-direct .btn-outline i { margin-right:8px; color:#25D366; }
.pd-enq-opt {
  font-weight:400; letter-spacing:0;
  text-transform:none; color:#3a5068;
}
.pd-enq-form-group select {
  width:100%; background:var(--navy3);
  border:1.5px solid rgba(24,112,181,0.15); border-radius:4px;
  padding:13px 16px; color:var(--white); font-size:1rem;
  font-family:'Barlow', sans-serif; outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.pd-enq-form-group select:focus {
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(24,112,181,0.15);
}

/* ── VARIANT TABLE ──
   Row/header treatment intentionally mirrors .compare-table on the
   products page: navy3 uppercase Barlow Condensed header, zebra rows
   on rgba(27,117,188,0.04), silver body text. */
.pd-variants-section {
  background:var(--navy);
  background-image: repeating-linear-gradient(135deg,rgba(255,255,255,0.012),rgba(255,255,255,0.012) 7px,transparent 7px,transparent 14px);
  padding:5rem 0;
}
.vt-toolbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-bottom:18px; flex-wrap:wrap;
}
.vt-search { position:relative; flex:1; max-width:420px; }
.vt-search > i {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  color:var(--smoke); font-size:0.8125rem; pointer-events:none;
}
.vt-search input {
  width:100%; background:var(--navy3);
  border:1.5px solid rgba(24,112,181,0.15); border-radius:6px;
  padding:12px 38px; color:var(--white); font-size:1rem;
  font-family:'Barlow', sans-serif; outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.vt-search input:focus {
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(24,112,181,0.15);
}
.vt-search input::placeholder { color:#2d4a63; }
.vt-search input::-webkit-search-cancel-button { display:none; }
.vt-clear {
  display:none; position:absolute; right:10px; top:50%;
  transform:translateY(-50%); background:none; border:none;
  color:var(--smoke); cursor:pointer; font-size:0.8125rem; padding:4px 6px;
}
.vt-clear:hover { color:var(--white); }
.vt-count {
  font-family:'Barlow Condensed', sans-serif;
  font-size:0.8125rem; font-weight:600; letter-spacing:0.125rem;
  text-transform:uppercase; color:var(--smoke); white-space:nowrap;
}
.vt-wrap {
  border:1px solid rgba(24,112,181,0.15);
  border-radius:6px; overflow:auto;
  max-height:620px; position:relative;
}
.vt-table { width:100%; border-collapse:collapse; }
.vt-table thead th {
  position:sticky; top:0; z-index:2;
  font-family:'Barlow Condensed', sans-serif;
  font-size:0.875rem; font-weight:600; letter-spacing:0.09375rem;
  text-transform:uppercase; padding:14px 20px; text-align:left;
  background:var(--navy3); color:var(--smoke);
  border-bottom:1px solid rgba(24,112,181,0.2);
}
.vt-th-act { text-align:right !important; }
.vt-table td {
  padding:12px 20px; font-size:0.875rem; color:var(--silver);
  border-bottom:1px solid rgba(27,117,188,0.1);
}
.vt-table tbody tr:nth-child(even) td { background:rgba(27,117,188,0.04); }
.vt-table tbody tr:hover td { background:rgba(24,112,181,0.10); }
.vt-val { font-weight:600; color:var(--white); white-space:nowrap; }
/* 2nd/3rd attribute columns — same rhythm as .vt-val but secondary weight. */
.vt-val2 { color:var(--silver); white-space:nowrap; }
.vt-art {
  font-family:'Barlow Condensed', sans-serif;
  font-size:0.9375rem; font-weight:600; letter-spacing:0.0625rem;
  color:var(--blue2); white-space:nowrap;
}
.vt-act { text-align:right; white-space:nowrap; }
.vt-btn {
  display:inline-block;
  font-family:'Barlow Condensed', sans-serif;
  font-size:0.75rem; font-weight:600; letter-spacing:0.09375rem;
  text-transform:uppercase; text-decoration:none;
  padding:7px 16px; border-radius:3px;
  border:1.5px solid rgba(168,189,208,0.35);
  color:var(--white); background:transparent;
  transition:border-color 0.2s, background 0.2s;
}
.vt-btn:hover { border-color:var(--blue); background:rgba(27,117,188,0.12); color:var(--white); }
.vt-wa {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:3px; margin-left:6px;
  color:#25D366; border:1.5px solid rgba(37,211,102,0.3);
  text-decoration:none; font-size:0.9375rem; vertical-align:middle;
  transition:background 0.2s, border-color 0.2s;
}
.vt-wa:hover { background:rgba(37,211,102,0.12); border-color:#25D366; color:#25D366; }
.vt-empty {
  display:none; padding:40px 20px; text-align:center;
  color:var(--smoke); font-size:0.875rem;
}
.vt-note { margin-top:14px; font-size:0.75rem; color:var(--smoke); }
.vt-note i { color:var(--blue2); margin-right:6px; }

/* ── RESPONSIVE (new components) ── */
@media (max-width:991px) {
  .pd-stats { grid-template-columns:repeat(2,1fr); }
  .pd-supply-grid { grid-template-columns:1fr; gap:44px; }
}
@media (max-width:575px) {
  .pd-tagline { font-size:0.9375rem; }
  .pd-stat { padding:16px 14px; }
  .pd-stat-val { font-size:1.5rem; }
  .pd-supply-section { padding:3.75rem 0; }
  .pd-variants-section { padding:3.75rem 0; }
  .vt-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
  .vt-search { max-width:none; }
  .vt-count { text-align:right; }
  /* Let the page scroll the table on mobile instead of an inner
     scroll box — avoids a scroll trap above the bottom tab bar. */
  .vt-wrap { max-height:none; }
  .vt-table thead th { font-size:0.8125rem; padding:0.6875rem 0.75rem; }
  .vt-table td { padding:0.5rem 0.75rem; font-size:0.84375rem; }
  .vt-art { font-size:0.8125rem; }
  .vt-btn { padding:6px 10px; font-size:0.6875rem; letter-spacing:0.0625rem; }
  .vt-wa { width:44px; height:44px; font-size:0.9375rem; margin-left:0.375rem; }
  /* Clear the fixed mobile tab bar at the end of a long table. */
  .pd-variants-section .vt-note { margin-bottom:8px; }
}