/* ============================================================
   Really Reliable — Product Detail Page Styles
   ============================================================ */

/* ── Product Hero ─────────────────────────────────────────── */
.product-hero {
  position: relative;
  background: #0d1f3c;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.product-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  pointer-events: none;
}

/* Use contain for diagram/technical images */
.product-hero-img.contain {
  object-fit: contain;
  opacity: 0.45;
  padding: 20px;
}

.product-hero-body {
  position: relative;
  z-index: 1;
  padding: 48px 0 52px;
  color: #fff;
  width: 100%;
}

.product-num-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 10px;
}

.product-hero-body h1 {
  color: #fff;
  margin-bottom: 14px;
  max-width: 700px;
}

.product-hero-body .back-link {
  color: #93c5fd;
  margin-bottom: 20px;
}
.product-hero-body .back-link:hover { color: #bfdbfe; border-bottom-color: #bfdbfe; }

/* ── Page Layout ──────────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}

.prod-grid.reverse { grid-template-columns: 0.9fr 1.1fr; }

/* ── Overview ─────────────────────────────────────────────── */
.prod-overview p { color: #3d4f6a; }

/* ── Feature List ─────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 6px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e8edf5;
  font-size: 0.95rem;
  color: #1a2333;
  align-items: flex-start;
  line-height: 1.55;
}

.feature-list li:last-child { border-bottom: none; }

.feat-bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #2563eb;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Highlight Boxes ──────────────────────────────────────── */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-box {
  background: #0d1f3c;
  color: #fff;
  border-radius: 8px;
  padding: 20px 22px;
}

.highlight-box .hl-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 6px;
}

.highlight-box .hl-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.highlight-box.alt {
  background: #f4f7fb;
  border: 1px solid #dde4ef;
  color: #0d1f3c;
}

.highlight-box.alt .hl-num  { color: #2563eb; }
.highlight-box.alt .hl-label { color: #3d4f6a; }

/* ── Sub-section heading ──────────────────────────────────── */
.prod-sub-heading {
  font-size: 1.1rem;
  color: #0d1f3c;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dde4ef;
}

/* ── Compatibility table ──────────────────────────────────── */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.compat-card {
  background: #f4f7fb;
  border: 1px solid #dde4ef;
  border-radius: 6px;
  padding: 14px 16px;
}

.compat-card .cc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.compat-card ul {
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: #3d4f6a;
}

.compat-card li { padding: 3px 0; }

/* ── Image gallery ────────────────────────────────────────── */
.prod-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.prod-gallery.three-col { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf5;
  border: 1px solid #dde4ef;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 12px;
  background: #e8edf5;
}

.gallery-item.photo img {
  object-fit: cover;
  padding: 0;
  background: #0d1f3c;
}

.gallery-item figcaption {
  font-size: 0.78rem;
  color: #64748b;
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #dde4ef;
  line-height: 1.4;
}

/* ── Full-width image ─────────────────────────────────────── */
.prod-full-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde4ef;
  margin-top: 8px;
}

.prod-full-img img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f4f7fb;
  padding: 16px;
}

.prod-full-img.photo img {
  object-fit: cover;
  padding: 0;
  background: #0d1f3c;
}

/* ── Variant cards (TG-S / TG-A / TG-T etc.) ─────────────── */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.variant-card {
  background: #fff;
  border: 1px solid #dde4ef;
  border-radius: 8px;
  padding: 20px 18px;
  text-align: center;
}

.variant-card .vc-code {
  font-size: 1.3rem;
  font-weight: bold;
  color: #0d1f3c;
  font-family: "Times New Roman", Times, Georgia, serif;
  margin-bottom: 6px;
}

.variant-card .vc-name {
  font-size: 0.88rem;
  color: #3d4f6a;
  line-height: 1.4;
}

/* ── Bottom CTA ───────────────────────────────────────────── */
.prod-bottom-cta {
  background: #f4f7fb;
  border-top: 1px solid #dde4ef;
  padding: 36px 0;
}

.prod-bottom-cta .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d1f3c;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: background 0.2s;
}

.back-btn:hover { background: #1e3a5f; color: #fff; }

.contact-cta-text {
  font-size: 0.9rem;
  color: #64748b;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .prod-grid,
  .prod-grid.reverse { grid-template-columns: 1fr; gap: 32px; }
  .compat-grid        { grid-template-columns: 1fr; }
  .variant-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .product-hero { min-height: 280px; }
  .prod-gallery { grid-template-columns: 1fr; }
  .prod-gallery.three-col { grid-template-columns: 1fr 1fr; }
  .variant-grid { grid-template-columns: 1fr; }
}
