/* =========================================================
   Techpro — single Family/product page (single-product_family.php)
   Namespaced under .pf- to avoid colliding with the homepage's own
   classes; reuses techpro_style.css's shared tokens/buttons/section
   utilities (loaded alongside this file), not duplicated here.
   ========================================================= */

.pf-breadcrumb{ font-size:13px; color: var(--grey-500); padding:18px 0; }
.pf-breadcrumb a{ color: var(--grey-500); }
.pf-breadcrumb a:hover{ color: var(--green); }
.pf-breadcrumb span{ margin:0 6px; }

/* .pf-hero is now the full-width <section> (background/padding only) --
   the grid itself lives on .pf-hero-inner, the .container-width div nested
   inside it, so .pf-hero-media/.pf-thumbs/.pf-hero-copy stay direct grid
   children exactly as before, just one level deeper in the DOM. */
.pf-hero{ padding:24px 0 56px; }
.pf-hero-inner{ display:grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: auto auto; gap:48px; align-items:start; }
/* .pf-hero-inner has 3 direct children (media, thumbs, copy) but only 2 grid
   columns are defined -- without explicit placement, grid auto-flow fills
   row 1 across BOTH columns first (media in col 1, thumbs wrongly landing
   in col 2 beside it) and pushes copy down into row 2, full-width, instead
   of beside the media. Media+thumbs are pinned to column 1 (media on row 1,
   thumbs on row 2 below it) and copy explicitly spans both rows of column 2. */
.pf-hero-media{ grid-column: 1; grid-row: 1; position:relative; border-radius: var(--radius-lg); overflow:hidden; background: var(--grey-50); box-shadow: var(--shadow-card); cursor: zoom-in; }
.pf-hero-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4 / 3; transition: transform .2s ease; transform-origin: center center; }
.pf-hero-media.is-zoomed img{ transform: scale(2); }
@media (hover: none){ .pf-hero-media{ cursor: default; } }

.pf-thumbs{ grid-column: 1; grid-row: 2; display:flex; gap:10px; margin-top:12px; }
.pf-hero-copy{ grid-column: 2; grid-row: 1 / span 2; }
.pf-thumb{ flex: 0 0 84px; width:84px; padding:0; border:2px solid var(--grey-300); border-radius: var(--radius-md); overflow:hidden; background:#fff; cursor:pointer; aspect-ratio: 1; line-height:0; transition: border-color .15s; }
.pf-thumb:hover{ border-color: var(--green); }
.pf-thumb.is-active{ border-color: var(--green); }
.pf-thumb img{ width:100%; height:100%; object-fit:cover; }

.pf-badge{ display:inline-block; padding:4px 12px; border-radius:999px; background:#e6f7ee; color: var(--green-dark); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; margin-bottom:12px; }

.pf-hero-copy .eyebrow{ margin-bottom:10px; }
.pf-hero-copy h1{ font-size:34px; line-height:1.15; margin-bottom:10px; }
.pf-hero-subtitle{ font-size:16px; color: var(--grey-500); margin-bottom:18px; }

.pf-id-row{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--grey-100); }
.pf-id-row div{ display:flex; flex-direction:column; gap:2px; }
.pf-id-row span{ font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; color: var(--grey-500); }
.pf-id-row strong{ font-size:14px; color: var(--ink); font-weight:600; }

.pf-hero-about{ margin-bottom:18px; }
.pf-hero-about h2{ font-size:14px; text-transform:uppercase; letter-spacing:.03em; color: var(--grey-500); margin-bottom:8px; }
.pf-hero-about .pf-hero-subtitle{ margin-bottom:0; }
.pf-hero-subtitle p{ margin:0 0 1em; }
.pf-hero-subtitle p:last-child{ margin-bottom:0; }

.pf-hero-meta{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-bottom:22px; }
.pf-hero-meta div{ font-size:13px; color: var(--grey-500); }
.pf-hero-meta strong{ color: var(--ink); font-weight:600; }
.pf-hero-actions{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.pf-hero-actions .btn-outline{ display:inline-flex; align-items:center; gap:5px; }
.pf-hero-actions svg{ width:12px; height:12px; flex-shrink:0; }
/* Download buttons show the real document_type as their label (varies in
   length per document) -- kept compact so "Enquiry About This Product" +
   2 download buttons fit on one line within the copy column's width,
   matching the reference design (whose own placeholder labels were short). */
.pf-doc-btn{ padding:10px 9px; font-size:10px; letter-spacing:.01em; white-space:nowrap; }
.pf-hero-actions .btn-primary{ padding:11px 13px; font-size:11px; letter-spacing:.01em; }
.pf-add-to-cart-form{ display:inline-flex; align-items:center; gap:10px; margin:0; }
.pf-add-to-cart-form .btn{ cursor:pointer; }

.pf-cart-notice{ margin:14px 0 0; font-size:13.5px; }
.pf-cart-notice a{ margin-left:6px; font-weight:600; }
.pf-cart-notice-success{ color: var(--green-dark); }
.pf-cart-notice-error{ color:#b3261e; }

.pf-section-heading{ font-size:24px; margin-bottom:18px; }

/* --- Description / Technical Information / Technical Illustration tabs --- */
.pf-tabs{ display:flex; gap:32px; border-bottom:1px solid var(--grey-300); margin-bottom:24px; }
.pf-tab-btn{ background:none; border:none; padding:0 0 14px; font-size:15px; font-weight:600; color: var(--grey-500); cursor:pointer; position:relative; }
.pf-tab-btn:hover{ color: var(--ink); }
.pf-tab-btn.is-active{ color: var(--ink); }
.pf-tab-btn.is-active::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background: var(--green); }
.pf-tab-panel{ display:none; }
.pf-tab-panel.is-active{ display:block; }

.pf-description{ font-size:15.5px; color: var(--grey-700); max-width:820px; line-height:1.7; }
.pf-description p{ margin:0 0 1em; }
.pf-description p:last-child{ margin-bottom:0; }

.pf-features{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:12px 28px; margin-top:8px; }
.pf-features li{ display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color: var(--grey-700); }
.pf-features li .pf-check{ flex-shrink:0; width:18px; height:18px; border-radius:50%; background: var(--green); color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; margin-top:1px; }

.pf-table-wrap{ overflow-x:auto; border:1px solid var(--grey-300); border-radius: var(--radius-md); }
.pf-spec-table, .pf-sc-table, .pf-variant-table{ width:100%; border-collapse: collapse; font-size:13.5px; white-space:nowrap; }
.pf-spec-table{ white-space:normal; }
.pf-spec-table th, .pf-spec-table td,
.pf-sc-table th, .pf-sc-table td,
.pf-variant-table th, .pf-variant-table td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--grey-100); }
.pf-spec-table th{ width:280px; color: var(--grey-500); font-weight:600; background: var(--grey-50); }
.pf-sc-table thead th, .pf-variant-table thead th{ background:#e6f7ee; color: var(--green-dark); font-weight:600; text-transform:uppercase; font-size:11.5px; letter-spacing:.03em; }
.pf-spec-table tr:last-child td, .pf-spec-table tr:last-child th,
.pf-sc-table tbody tr:last-child td, .pf-variant-table tbody tr:last-child td{ border-bottom:none; }
.pf-variant-table tbody tr:hover{ background: var(--grey-50); }

.pf-test-info-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:20px; }
.pf-test-info-card{ margin:0; }
.pf-test-info-card .pf-sc-table{ white-space:normal; }
.pf-sc-table-transposed th{ text-align:center; white-space:normal; }
.pf-sc-table-transposed td{ text-align:center; font-weight:600; color: var(--ink); }

.pf-drawing{ text-align:center; }
.pf-drawing img{ max-width:520px; margin:0 auto; }

/* --- Product Selection Table: spanning Dimensions header + Metric label --- */
.pf-selection-heading-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.pf-selection-heading-row .pf-section-heading{ margin-bottom:0; }
.pf-metric-label{ font-size:12.5px; color: var(--grey-500); font-weight:600; }
.pf-variant-table thead tr:first-child th{ text-align:center; }
.pf-variant-table thead tr:last-child th{ text-align:center; background: var(--grey-50); color: var(--grey-500); text-transform:none; font-size:12px; }

/* --- Similar Products --- */
.pf-similar-heading-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.pf-similar-heading-row .pf-section-heading{ margin-bottom:0; }
.pf-similar-arrows{ display:flex; gap:8px; }
.pf-similar-arrow{ width:36px; height:36px; border-radius:50%; border:1px solid var(--grey-300); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--ink); transition: border-color .15s, color .15s; }
.pf-similar-arrow:hover{ border-color: var(--green); color: var(--green); }
.pf-similar-track{ display:flex; gap:20px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:4px; }
.pf-similar-card{ flex: 0 0 240px; display:block; text-decoration:none; color:inherit; border:1px solid var(--grey-300); border-radius: var(--radius-md); padding:16px; transition: box-shadow .15s, border-color .15s; }
.pf-similar-card:hover{ border-color: var(--green); box-shadow: var(--shadow-card); }
.pf-similar-card-media{ border-radius: var(--radius-md); overflow:hidden; background: var(--grey-50); margin-bottom:12px; }
.pf-similar-card-media img{ width:100%; height:150px; object-fit:cover; display:block; }
.pf-similar-card .pf-badge{ margin-bottom:8px; }
.pf-similar-card-title{ font-size:15px; margin:0 0 4px; color: var(--ink); }
.pf-similar-card-ref{ font-size:12.5px; color: var(--grey-500); margin:0; }

@media (max-width: 900px){
  .pf-hero{ grid-template-columns: 1fr; gap:28px; }
  .pf-hero-media, .pf-thumbs, .pf-hero-copy{ grid-column: 1; grid-row: auto; }
  .pf-tabs{ gap:20px; overflow-x:auto; }
  .pf-tab-btn{ white-space:nowrap; }
  .pf-similar-card{ flex-basis:200px; }
}
