/* Product detail page styles. Extracted from the duplicated per-page
   <style> blocks (see site.css header comment). Loaded on /products/:slug. */

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px;
  padding: 20px 0 64px;
}
.gallery-main {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.gallery-main .placeholder-text { font-family: 'Fraunces', serif; color: var(--sage); font-size: 18px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumb-row { display: flex; gap: 10px; }
.thumb-row .thumb {
  width: 70px; height: 70px; background: var(--light-bg);
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; padding: 0; cursor: default;
}
.thumb-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-row .thumb.clickable { cursor: pointer; }
.thumb-row .thumb.clickable:hover { border-color: var(--trust-teal); }
.pd-model { font-size: 14px; color: var(--muted); margin: 6px 0 18px; font-weight: 600; }
.pd-title { font-size: 32px; margin: 0 0 4px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pd-price .sale { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; color: var(--navy); }
.pd-price .msrp { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pd-price .pending { font-family: 'Fraunces', serif; font-size: 20px; color: var(--trust-teal); }
.pd-desc { color: var(--ink); font-size: 15.5px; margin-bottom: 26px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 11px 4px; }
.spec-table td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.pd-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0; }
.pd-trust .badge { font-size: 13.5px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.pd-trust .badge:before { content: "\2713"; color: var(--trust-teal); font-weight: 700; }
.resources { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.resources h3 { font-size: 17px; margin: 0 0 12px; }
.resources a { color: var(--trust-teal); font-weight: 600; font-size: 14.5px; display: inline-block; margin-right: 22px; }
.crosslink { margin-top: 20px; font-size: 14px; color: var(--muted); }
.crosslink a { color: var(--trust-teal); font-weight: 600; }
.key-features { font-size: 14.5px; color: var(--ink); margin-bottom: 22px; padding-left: 20px; }
.key-features li { margin-bottom: 6px; }
.pd-shipping-note { font-size: 14.5px; font-weight: 600; color: var(--trust-teal); margin: -8px 0 20px; }
.pd-shipping-note.freight { color: var(--clay); }
.price-context { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }

/* "Complete package" positioning (Part 25) -- every heater SKU is a
   heater+controls+stones package, never sold heater-only. */
.whats-included {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.whats-included h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.whats-included ul { list-style: none; padding: 0; margin: 0 0 12px; }
.whats-included li { font-size: 14.5px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.whats-included li:before { content: "\2713"; color: var(--trust-teal); font-weight: 700; }
.whats-included .note { font-size: 13px; color: var(--muted); margin: 0; }

/* Four expandable sections under the gallery -- INCLUDES / MANUALS /
   SHIPPING / ELECTRICAL REQUIREMENTS (Part 30). Collapsed by default
   (native <details>), grouped into one bordered stack rather than four
   separate boxes so it reads as one custom component, not a stock
   Bootstrap-style accordion. Block-level text throughout, no fixed-width
   elements, so bullets/notes/manual links wrap naturally at any viewport
   width without a separate mobile breakpoint. */
.pd-accordions {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0 0;
}
.pd-accordion { border-bottom: 1px solid var(--border); }
.pd-accordion:last-child { border-bottom: none; }
.pd-accordion summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  background: var(--light-bg);
  list-style: none;
}
.pd-accordion summary::-webkit-details-marker { display: none; }
.pd-accordion summary::after { content: "+"; float: right; font-weight: 700; color: var(--trust-teal); }
.pd-accordion[open] summary::after { content: "\2212"; }
.pd-accordion[open] summary { border-bottom: 1px solid var(--border); }
.pd-accordion-content { padding: 18px; }
.pd-accordion-content h4 { font-size: 15px; margin: 0 0 8px; }
.pd-accordion-content p { font-size: 14px; color: var(--ink); margin: 0 0 10px; line-height: 1.6; }
.pd-accordion-content p:last-child { margin-bottom: 0; }

.includes-group { margin-bottom: 22px; }
.includes-group:last-child { margin-bottom: 0; }
.includes-group h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin: 0 0 10px; }
.includes-group ul { list-style: none; padding: 0; margin: 0; }
.includes-group li { font-size: 14px; color: var(--ink); padding: 7px 0; border-bottom: 1px solid var(--border); }
.includes-group li:last-child { border-bottom: none; }
.component-note { display: block; font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 3px; }

.manuals-list { list-style: none; padding: 0; margin: 0; }
.manuals-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.manuals-list li:last-child { border-bottom: none; }
.manuals-list a { color: var(--trust-teal); font-weight: 600; font-size: 14px; }
.manuals-list .doc-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.electrical-list { list-style: none; padding: 0; margin: 0 0 14px; }
.electrical-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.electrical-list li:last-child { border-bottom: none; }
.electrical-list .e-key { color: var(--muted); font-weight: 600; }
.electrical-list .e-value { color: var(--ink); text-align: right; }
.electrical-disclaimer { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Specifications accordion (SaunaLife kits) reuses .spec-table but sits
   inside a compact accordion box, not the page's main content flow --
   drop the 30px vertical margin that assumes full-page context. */
.pd-accordion-content .spec-table { margin: 0; }

/* "Complete Your Sauna" heater recommendations (SEO round 2026-08-19,
   Part 38-41) -- sits directly below the primary Add to Cart area, using
   the same card/badge/button visual language as the rest of the catalog
   rather than a new pattern. */
.complete-your-sauna {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 20px;
  margin: 24px 0;
}
.complete-your-sauna h3 { font-size: 17px; margin: 0 0 6px; }
.cys-intro { font-size: 14px; color: var(--desc); margin: 0 0 16px; }
.cys-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--trust-teal); margin-bottom: 12px;
}
.cys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.heater-rec-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.heater-rec-card .img-box { aspect-ratio: 4/3; }
.heater-rec-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.heater-rec-card .rec-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 3px; }
.heater-rec-card h4 { font-size: 13.5px; line-height: 1.3; margin: 0 0 6px; }
.heater-rec-card h4 a { color: var(--navy); }
.heater-rec-card .package-contents { font-size: 11.5px; margin: 0 0 8px; }
.heater-rec-card .price-row { margin-bottom: 10px; }
.heater-rec-card .price-row .sale { font-size: 16px; }
.heater-rec-card .btn-full { font-size: 12.5px; padding: 10px 12px; margin-top: auto; }
.heater-rec-card .rec-view-link { font-size: 12.5px; font-weight: 600; color: var(--trust-teal); text-align: center; margin-top: 8px; }
.cys-disclaimer { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }
.cys-disclaimer a { color: var(--trust-teal); font-weight: 600; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .pd-title { font-size: 26px; }
  .pd-accordion-content { padding: 14px; }
  .electrical-list li { flex-direction: column; gap: 2px; }
  .electrical-list .e-value { text-align: left; }
  .cys-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Variant selector (new in Phase 4) -- styled to match spec-table/badge
   visual language rather than introducing a new UI pattern. */
.variant-selector { margin: 22px 0; }
.variant-selector .variant-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 10px; display: block;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option {
  font-family: 'Public Sans', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--navy); background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 9px 16px; cursor: pointer;
}
.variant-option:hover { border-color: var(--trust-teal); }
.variant-option.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.variant-option[aria-disabled="true"] { color: var(--muted); text-decoration: line-through; cursor: not-allowed; opacity: 0.6; }

.cart-note {
  font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px;
}

/* Payment methods + Trustpilot trust element (Part 27), shared across
   every product detail page via purchaseTrustHtml() in render.js. Flex-
   wrap (not a fixed-width row) so this stays readable and never causes
   horizontal scrolling at any viewport width, phone included -- no
   separate mobile breakpoint needed for that. Compact by design so it
   doesn't compete with Add to Cart for visual weight. */
.purchase-trust { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.payment-badge {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 5px 10px; background: #fff; white-space: nowrap;
}
/* Teal accent (Phase 5, client instruction 2026-08-19) -- a soft teal-
   tinted chip, not Trustpilot's own brand green. Still "Excellent" + 5
   stars only, no numeric score or review count -- the color change must
   never make this read as verified dynamic Trustpilot data (see the
   pre-production requirement documented above purchaseTrustHtml() in
   render.js, which this does not touch). */
.trustpilot-badge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px;
  background: rgba(60, 110, 113, 0.08);
  border-left: 3px solid var(--trust-teal);
  border-radius: 4px;
  padding: 8px 12px;
}
.trustpilot-badge .tp-stars { color: var(--trust-teal); letter-spacing: 2px; font-size: 14px; }
.trustpilot-badge .tp-label { font-weight: 700; color: var(--trust-teal); }
.trustpilot-badge .tp-brand { color: var(--muted); font-weight: 600; }
