/* ==========================================================================
   PRODUCT DETAIL PAGE — Dark technical datasheet
   Matches the site's near-black / amber theme (see about.html, style.css).
   ========================================================================== */

/* style.css sets `overflow-x: hidden` on html AND body. That makes BODY the
   scroll container, so `position: sticky` resolves against the body box
   instead of the viewport and never engages. `clip` still prevents sideways
   scrolling but does NOT create a scroll container, so sticky works.
   Scoped to these pages via :has(). */
html:has(> .pd-body) {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.pd-body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.pd-body {
    /* Dark palette, aligned with style.css :root tokens */
    --pd-bg: #03080E;
    --pd-surface: rgba(255, 255, 255, 0.025);
    --pd-surface-2: rgba(255, 255, 255, 0.045);
    --pd-line: rgba(255, 255, 255, 0.09);
    --pd-line-strong: rgba(255, 255, 255, 0.16);
    --pd-amber: #FF9E1B;
    --pd-amber-dim: rgba(255, 158, 27, 0.14);
    --pd-text: #f5f5f7;
    --pd-text-soft: rgba(255, 255, 255, 0.72);
    --pd-text-mute: #86868b;

    background-color: var(--pd-bg) !important;
    color: var(--pd-text) !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* The global sheet paints bare `main` with --section-bg; keep it dark here. */
.pd-body .pd-main {
    background-color: var(--pd-bg);
    padding: 140px 0 90px;
    position: relative;
}

/* Soft amber glow behind the hero area, like the rest of the site */
.pd-body .pd-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 100%);
    height: 620px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 158, 27, 0.10), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.pd-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--pd-text-mute);
    margin-bottom: 34px;
}

.pd-breadcrumb a {
    color: var(--pd-text-mute);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-breadcrumb a:hover { color: var(--pd-amber); }
.pd-breadcrumb i { font-size: 0.6rem; opacity: 0.4; }
.pd-breadcrumb span { color: var(--pd-text); font-weight: 600; }

/* ---------- Two column layout ---------- */
.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: start;
}

/* Grid items default to min-width:auto, so a wide child can stretch the
   track past the container. Pin both columns to the track width. */
.pd-gallery,
.pd-details {
    min-width: 0;
    max-width: 100%;
}

/* Mounting pages carry no gallery — the three material rows below the intro
   ARE the imagery, so the column runs full width and the intro gets a
   readable measure instead of stretching across the whole page. */
.pd-layout.is-single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.pd-layout.is-single .pd-title {
    max-width: 30ch;
}

.pd-layout.is-single .pd-tagline,
.pd-layout.is-single .pd-intro {
    max-width: 78ch;
}

/* ---------- Gallery ---------- */
/* Sticky so the imagery stays in view while the much longer right-hand column
   scrolls, instead of leaving a tall empty gutter. `sticky` still establishes
   the containing block the absolute zoom panel needs.
   No overflow here — a scroll container would clip that panel, which
   deliberately overhangs into the right-hand column. The column is instead
   kept short enough to fit the viewport so sticking actually engages. */
.pd-gallery {
    position: sticky;
    /* A sticky box taller than the viewport never engages. Clamp the offset so
       that when the column is tall (e.g. 6 thumbnails + material panel) it
       still pins, sliding up to a smaller top offset instead of scrolling away. */
    top: clamp(12px, calc(100vh - 904px), 88px);
    align-self: start;
}

/* Product photography is shot on white. Rather than letting that read as a
   glitch against the dark page, the stage and thumbs use a light panel so the
   product sits on a deliberate studio surface. */
.pd-stage {
    position: relative;
    background: #f2f4f7;
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pd-stage-img {
    width: 100%;
    height: 100%;
    /* contain, never cover — cropping a technical product shot could hide
       part of the clamp. The light stage hides the letterbox instead. */
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

.pd-zoom-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(3, 8, 14, 0.82);
    border: 1px solid var(--pd-line-strong);
    color: var(--pd-amber);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 999px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease;
}

.pd-stage.is-zooming .pd-zoom-hint { opacity: 0; }

/* Lens that follows the cursor */
.pd-lens {
    position: absolute;
    width: 170px;
    height: 170px;
    /* border-box so offsetWidth/left match the region actually magnified —
       otherwise the 2px border offsets the mapping by ~2.6px. */
    box-sizing: border-box;
    border: 2px solid var(--pd-amber);
    background: rgba(255, 158, 27, 0.14);
    border-radius: 8px;
    pointer-events: none;
    display: none;
    z-index: 4;
    box-shadow: 0 0 24px rgba(255, 158, 27, 0.3);
}

.pd-stage.is-zooming .pd-lens { display: block; }

/* Magnified panel — sits over the right-hand column, Amazon style */
/* Height is set from the image's own aspect ratio in JS so the magnified
   view is never stretched; this is just the fallback before that runs. */
.pd-zoom-result {
    position: absolute;
    z-index: 60;
    width: 540px;
    height: 405px;
    border: 1px solid var(--pd-line-strong);
    border-radius: 14px;
    background-color: #f2f4f7;
    background-repeat: no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
    display: none;
    pointer-events: none;
}

.pd-zoom-result.is-visible { display: block; }

/* ---------- Thumbnails ---------- */
/* Auto-fit so any number of photos wraps neatly (products ship 4–9 views). */
.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 9px;
    margin-top: 12px;
    align-items: stretch;
}

.pd-thumb {
    position: relative;
    background: #f2f4f7;
    border: 1px solid var(--pd-line);
    border-radius: 11px;
    padding: 0;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Global `img { object-fit: cover }` would crop the clamp render — contain it. */
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pd-thumb:hover {
    border-color: rgba(255, 158, 27, 0.55);
    transform: translateY(-2px);
}

.pd-thumb.is-active {
    border-color: var(--pd-amber);
    box-shadow: 0 0 0 1px var(--pd-amber), 0 0 22px rgba(255, 158, 27, 0.25);
}

/* ---------- Material showcase (mounting pages) ----------
   One stacked row per material: clamp image on the LEFT, keyword H2 and copy
   on the RIGHT. Rows stack image-over-text on mobile. */
.pd-matshow {
    margin-top: 66px;
}

.pd-ms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
}

.pd-ms-item {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.9fr);
    align-items: stretch;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.pd-ms-item:hover {
    border-color: rgba(255, 158, 27, 0.35);
}

/* ---- media (left) ---- */
.pd-ms-media {
    /* The photos are shot on white or near-white, but not all on the same
       white. A soft gradient reads as studio lighting rather than a flat
       panel, so no single shot shows a hard letterbox seam. */
    background: linear-gradient(160deg, #ffffff 0%, #f7f8fa 55%, #eef0f3 100%);
    border-right: 1px solid var(--pd-line);
    /* Fill the row height without forcing it: the text column sets the
       height, the picture is centred inside whatever it gets. */
    display: grid;
    place-items: center;
    overflow: hidden;
}

.pd-ms-img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

/* ---- body (right) ---- */
.pd-ms-body {
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
    min-width: 0;
}

/* Keyword heading. style.css forces h2 sizing with !important at 0,2,1
   specificity, so out-specify it here. */
.pd-body h2.pd-ms-h2 {
    font-size: 1.12rem !important;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--pd-text);
    margin: 0 0 10px;
}

.pd-ms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pd-ms-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-amber);
    background: var(--pd-amber-dim);
    border: 1px solid rgba(255, 158, 27, 0.3);
    border-radius: 999px;
    padding: 3px 10px;
}

.pd-ms-blurb {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--pd-text-soft);
    max-width: 62ch;
}

.pd-ms-traits {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.pd-ms-traits li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--pd-text-soft);
}

.pd-ms-traits i {
    color: var(--pd-amber);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.pd-ms-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--pd-line);
    border: 1px solid var(--pd-line);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pd-ms-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 14px;
    background: var(--pd-bg);
    flex: 1 1 auto;
}

.pd-ms-row small {
    font-size: 0.73rem;
    color: var(--pd-text-mute);
    flex-shrink: 0;
}

.pd-ms-row span {
    font-size: 0.82rem;
    color: var(--pd-text);
}

.pd-ms-row b {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pd-amber);
    background: rgba(255, 158, 27, 0.1);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
}

.pd-ms-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pd-amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 158, 27, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.pd-ms-link i { font-size: 0.7rem; }
.pd-ms-link:hover { border-color: var(--pd-amber); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .pd-ms-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .pd-ms-body { padding: 20px; }
    .pd-ms-img { max-height: 240px; }
}

/* Stack: image on top, text below. */
@media (max-width: 680px) {
    .pd-matshow { margin-top: 46px; }
    .pd-ms-grid { gap: 14px; }
    .pd-ms-item { grid-template-columns: 1fr; }
    .pd-ms-media {
        border-right: 0;
        border-bottom: 1px solid var(--pd-line);
    }
    .pd-ms-img {
        max-height: none;
        aspect-ratio: 4 / 3;
        height: auto;
    }
    .pd-ms-body { padding: 18px 16px; }
    .pd-body h2.pd-ms-h2 { font-size: 1.02rem !important; }
    .pd-ms-blurb { font-size: 0.85rem; line-height: 1.65; }
    .pd-ms-traits { flex-direction: column; gap: 7px; }
    .pd-ms-rows { flex-direction: column; }
    .pd-ms-row { justify-content: space-between; }
}

/* ---------- Trust strip (gallery column) ---------- */
.pd-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.pd-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 11px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.pd-trust-item:hover {
    border-color: rgba(255, 158, 27, 0.38);
    background: var(--pd-surface-2);
}

.pd-trust-item i {
    color: var(--pd-amber);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.pd-trust-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-trust-text strong { font-size: 0.86rem; font-weight: 600; color: var(--pd-text); }
.pd-trust-text small { font-size: 0.75rem; color: var(--pd-text-mute); line-height: 1.4; }

/* Mounting pages show the trust strip as a full-width band after the CTA
   rather than a 2x2 block in a narrow gallery column. */
.pd-trust.is-band {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
}

@media (max-width: 900px) {
    .pd-trust.is-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pd-trust.is-band { grid-template-columns: 1fr; }
}

/* ---------- Enquiry nudge ---------- */
.pd-enquiry {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 158, 27, 0.26);
    border-radius: 13px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 158, 27, 0.10), transparent 62%),
        var(--pd-surface);
}

.pd-enquiry > i {
    color: var(--pd-amber);
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.pd-enquiry strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pd-text);
    margin-bottom: 5px;
}

.pd-enquiry p {
    margin: 0 0 8px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--pd-text-soft);
}

.pd-enquiry a {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pd-amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 158, 27, 0.4);
    transition: border-color 0.2s ease;
}

.pd-enquiry a:hover { border-color: var(--pd-amber); }

/* ---------- Details column ---------- */
.pd-eyebrow {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pd-amber);
    margin-bottom: 18px;
}

.pd-body .pd-title {
    font-size: clamp(2.2rem, 4.2vw, 3.3rem) !important;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--pd-text);
    margin: 0 0 12px;
}

.pd-title-sub {
    display: block;
    font-size: 0.4em;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--pd-amber);
    margin-top: 10px;
}

.pd-tagline {
    font-size: 1.1rem;
    color: var(--pd-text-soft);
    margin: 0 0 26px;
    font-weight: 400;
}

.pd-intro {
    font-size: 0.98rem;
    line-height: 1.78;
    color: var(--pd-text-soft);
    margin: 0 0 34px;
}

/* ---------- Spec table ---------- */
/* style.css sets a global `table { display:block; white-space:nowrap;
   max-width:fit-content }`. Left as-is its intrinsic width blows out the
   grid column on narrow screens — restore real table behaviour here. */
.pd-body table.pd-spec-table {
    display: table;
    table-layout: fixed;
    white-space: normal;
    max-width: 100%;
    overflow: hidden;
    margin: 0 0 44px;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    background: var(--pd-surface);
    font-size: 0.92rem;
}

.pd-spec-table tr:nth-child(odd) { background: rgba(255, 255, 255, 0.022); }

.pd-spec-table th,
.pd-spec-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--pd-line);
    vertical-align: top;
}

.pd-spec-table tr:last-child th,
.pd-spec-table tr:last-child td { border-bottom: none; }

.pd-spec-table th {
    width: 38%;
    font-weight: 600;
    color: var(--pd-text);
    white-space: normal;
    overflow-wrap: anywhere;
}

.pd-spec-table td { color: var(--pd-text-soft); }

/* ---------- Icon grids (features / applications) ---------- */
/* style.css has `h2:not(.about-seo-subtitle):not(.sc-feat-heading)` at 0,2,1
   with !important. Out-specify it rather than fight it. */
.pd-body h2.pd-section-heading,
.pd-body h2.pd-highlights-heading {
    font-size: 1.3rem !important;
    line-height: 1.3;
    font-weight: 700;
    color: var(--pd-text);
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Small amber rule before each section heading */
.pd-body h2.pd-section-heading::before,
.pd-body h2.pd-highlights-heading::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--pd-amber);
    flex-shrink: 0;
}

.pd-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 42px;
}

.pd-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 10px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pd-icon-item:hover {
    border-color: rgba(255, 158, 27, 0.45);
    background: var(--pd-surface-2);
    transform: translateY(-3px);
}

.pd-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pd-amber-dim);
    border: 1px solid rgba(255, 158, 27, 0.3);
    color: var(--pd-amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: box-shadow 0.25s ease;
}

.pd-icon-item:hover .pd-icon-circle {
    box-shadow: 0 0 20px rgba(255, 158, 27, 0.28);
}

.pd-icon-label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--pd-text-soft);
    font-weight: 500;
}

/* ---------- CTA row ---------- */
.pd-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pd-btn-primary {
    background: var(--pd-amber);
    color: #0a0a0a;
    box-shadow: 0 10px 28px rgba(255, 158, 27, 0.26);
}

.pd-btn-primary:hover {
    background: #e88d15;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 158, 27, 0.36);
}

.pd-btn-ghost {
    background: var(--pd-surface);
    color: var(--pd-text);
    border: 1px solid var(--pd-line-strong);
}

.pd-btn-ghost:hover {
    border-color: var(--pd-amber);
    color: var(--pd-amber);
    transform: translateY(-2px);
}

/* ---------- Engineering highlights ---------- */
.pd-highlights {
    margin-top: 80px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 158, 27, 0.07), transparent 58%),
        var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    padding: 44px;
}

.pd-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.pd-highlights-list li {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--pd-text-soft);
}

.pd-highlights-list i {
    color: var(--pd-amber);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   LONG-FORM CONTENT (specs, sizes, comparison, installation, FAQ)
   H2s here are intentionally body-text sized — they structure the page for
   search without shouting. style.css forces h2 sizing with !important at
   0,2,1 specificity, so these selectors out-specify it.
   ========================================================================== */
.pd-body h2.pd-seo-h2 {
    font-size: 1rem !important;
    line-height: 1.5;
    font-weight: 600;
    color: var(--pd-text);
    letter-spacing: 0;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.pd-body h2.pd-seo-h2::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--pd-amber);
    flex-shrink: 0;
}

.pd-seo-sec {
    margin-top: 58px;
}

.pd-seo-lead {
    margin: 0 0 22px;
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--pd-text-soft);
    max-width: 90ch;
}

/* ---------- "To be confirmed" marker ---------- */
/* Deliberately visible: these values must come from the catalogue and must
   not be guessed. Remove the marker by filling the value in the data file. */
.pd-tbc {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffc266;
    background: rgba(255, 158, 27, 0.1);
    border: 1px dashed rgba(255, 158, 27, 0.45);
    border-radius: 999px;
    padding: 2px 10px;
    /* must wrap: the longer labels overflow a 390px viewport otherwise */
    white-space: normal;
    max-width: 100%;
}

/* ---------- Feature cards (title + description) ---------- */
.pd-feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 42px;
}

.pd-feat-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 17px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.pd-feat-card:hover {
    border-color: rgba(255, 158, 27, 0.4);
    background: var(--pd-surface-2);
}

.pd-feat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pd-amber-dim);
    border: 1px solid rgba(255, 158, 27, 0.3);
    color: var(--pd-amber);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.pd-feat-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-feat-text strong { font-size: 0.88rem; font-weight: 600; color: var(--pd-text); }
.pd-feat-text span { font-size: 0.82rem; line-height: 1.55; color: var(--pd-text-soft); }

/* ---------- Application chips ---------- */
.pd-app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 42px;
}

.pd-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    font-size: 0.84rem;
    color: var(--pd-text-soft);
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    transition: border-color 0.22s ease, color 0.22s ease;
}

.pd-app-chip i { color: var(--pd-amber); font-size: 0.82rem; }
.pd-app-chip:hover { border-color: rgba(255, 158, 27, 0.4); color: var(--pd-text); }
.pd-app-chip.is-pending { border-style: dashed; }

/* ---------- Series cards (H3) ---------- */
.pd-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.pd-series-card {
    padding: 20px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 13px;
}

.pd-body h3.pd-series-h3 {
    font-size: 0.92rem !important;
    line-height: 1.45;
    font-weight: 600;
    color: var(--pd-amber);
    margin: 0 0 9px;
}

.pd-series-card p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--pd-text-soft);
}

/* ---------- Data tables (sizes, comparison) ---------- */
.pd-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--pd-line);
    border-radius: 13px;
    background: var(--pd-surface);
}

.pd-body table.pd-data-table {
    display: table;
    width: 100%;
    min-width: 580px;
    max-width: none;
    table-layout: auto;
    white-space: normal;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.86rem;
    overflow: visible;
}

.pd-data-table thead th {
    text-align: left;
    padding: 13px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-amber);
    background: rgba(255, 158, 27, 0.06);
    border-bottom: 1px solid var(--pd-line);
    white-space: nowrap;
}

.pd-data-table td,
.pd-data-table tbody th {
    padding: 11px 16px;
    text-align: left;
    font-weight: 400;
    color: var(--pd-text-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pd-data-table tbody tr:last-child td,
.pd-data-table tbody tr:last-child th { border-bottom: none; }
.pd-data-table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }

.pd-size-series { color: var(--pd-text-mute); font-size: 0.8rem; white-space: nowrap; }

.pd-cmp-table .pd-cmp-prop { color: var(--pd-text); font-weight: 600; white-space: nowrap; }
.pd-cmp-table .pd-cmp-pa { color: var(--pd-amber); font-weight: 600; }

.pd-table-note {
    margin: 12px 2px 0;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--pd-text-mute);
}

.pd-table-note a { color: var(--pd-amber); text-decoration: none; border-bottom: 1px solid rgba(255,158,27,0.4); }
.pd-table-note a:hover { border-color: var(--pd-amber); }

/* ---------- Installation steps ---------- */
.pd-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pd-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 11px;
    font-size: 0.89rem;
    line-height: 1.65;
    color: var(--pd-text-soft);
}

.pd-step-n {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pd-amber-dim);
    border: 1px solid rgba(255, 158, 27, 0.35);
    color: var(--pd-amber);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Why us ---------- */
.pd-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px 28px;
}

.pd-why-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.89rem;
    line-height: 1.65;
    color: var(--pd-text-soft);
}

.pd-why-list i { color: var(--pd-amber); margin-top: 4px; flex-shrink: 0; font-size: 0.85rem; }

/* ---------- Ordering facts ---------- */
.pd-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.pd-fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 17px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 11px;
}

.pd-fact small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-text-mute);
}

.pd-fact strong { font-size: 0.88rem; font-weight: 600; color: var(--pd-text); }

.pd-order-code {
    padding: 18px 20px;
    border: 1px solid rgba(255, 158, 27, 0.26);
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 158, 27, 0.09), transparent 60%),
        var(--pd-surface);
}

.pd-order-code > strong {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pd-amber);
    margin-bottom: 8px;
}

.pd-order-code p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.75;
    color: var(--pd-text-soft);
}

.pd-order-code code {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--pd-amber);
    background: rgba(255, 158, 27, 0.1);
    border-radius: 5px;
    padding: 2px 7px;
}

/* ---------- FAQ ---------- */
.pd-faq { margin-top: 58px; }

.pd-faq-list { display: flex; flex-direction: column; gap: 10px; }

.pd-faq-item {
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.pd-faq-item[open],
.pd-faq-item:hover { border-color: rgba(255, 158, 27, 0.32); }

.pd-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
}

.pd-faq-q::-webkit-details-marker { display: none; }

/* H3 for SEO, but sized like normal body text */
.pd-body h3.pd-faq-h3 {
    margin: 0 !important;
    font-size: 0.91rem !important;
    line-height: 1.5;
    font-weight: 600;
    color: var(--pd-text);
}

.pd-faq-icon {
    color: var(--pd-amber);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.pd-faq-item[open] .pd-faq-icon { transform: rotate(180deg); }

.pd-faq-a { padding: 0 20px 17px; }

.pd-faq-a p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--pd-text-soft);
}

/* ---------- CTA band ---------- */
.pd-cta-band {
    margin-top: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 30px 32px;
    border: 1px solid rgba(255, 158, 27, 0.26);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 158, 27, 0.11), transparent 62%),
        var(--pd-surface);
}

.pd-cta-band-text { min-width: 0; }
.pd-cta-band-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--pd-text-soft);
}

.pd-cta-band-btns { display: flex; flex-wrap: wrap; gap: 11px; }

/* ---------- Related products ---------- */
.pd-related { margin-top: 58px; }

.pd-rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.pd-rel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--pd-text-soft);
    text-decoration: none;
    transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.pd-rel-link i { color: var(--pd-amber); font-size: 0.75rem; opacity: 0; transform: translateX(-5px); transition: opacity 0.22s ease, transform 0.22s ease; }
.pd-rel-link:hover { border-color: rgba(255, 158, 27, 0.4); color: var(--pd-text); transform: translateY(-2px); }
.pd-rel-link:hover i { opacity: 1; transform: translateX(0); }

/* ---------- Prev / next pager ---------- */
.pd-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
    margin-top: 60px;
}

.pd-pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 13px;
    padding: 19px 22px;
    text-decoration: none;
    color: var(--pd-text);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pd-pager-link:hover {
    border-color: rgba(255, 158, 27, 0.45);
    background: var(--pd-surface-2);
    transform: translateY(-2px);
}

.pd-pager-next { justify-content: flex-end; text-align: right; }

.pd-pager-link i { color: var(--pd-amber); }

.pd-pager-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-pager-text small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-text-mute);
}
.pd-pager-text strong { font-size: 0.95rem; font-weight: 600; }

.pd-pager-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    border-radius: 13px;
    color: var(--pd-amber);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pd-pager-all:hover {
    border-color: var(--pd-amber);
    background: var(--pd-amber-dim);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .pd-layout { gap: 40px; }
    .pd-zoom-result { width: 420px; height: 380px; }
}

@media (max-width: 960px) {
    .pd-main { padding: 110px 0 70px; }
    .pd-layout { grid-template-columns: 1fr; gap: 40px; }
    /* Clear the desktop sticky offset too — a leftover `top` still shifts the
       column if anything makes it positioned again. */
    .pd-gallery { position: static; top: auto; }
    /* Magnifier is a pointer interaction — disable on narrow/touch layouts */
    .pd-zoom-result { display: none !important; }
    .pd-lens { display: none !important; }
    .pd-stage { cursor: default; }
    .pd-highlights-list { grid-template-columns: 1fr; }
    .pd-feat-grid { grid-template-columns: 1fr; }
    .pd-series-grid { grid-template-columns: 1fr; }
    .pd-why-list { grid-template-columns: 1fr; }
    .pd-rel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .pd-shell { padding-inline: 16px; }
    .pd-thumbs { gap: 10px; }
    .pd-thumb { padding: 5px; }
    .pd-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pd-trust { grid-template-columns: 1fr; }
    .pd-highlights { padding: 28px 20px; }
    .pd-seo-sec, .pd-faq, .pd-cta-band, .pd-related { margin-top: 44px; }
    .pd-facts { grid-template-columns: 1fr; }
    .pd-rel-grid { grid-template-columns: 1fr; }
    .pd-cta-band { padding: 24px 20px; }
    .pd-cta-band-btns { width: 100%; }
    .pd-cta-band-btns .pd-btn { flex: 1 1 100%; justify-content: center; }
    .pd-faq-q { padding: 14px 16px; }
    .pd-faq-a { padding: 0 16px 16px; }
    .pd-spec-table { font-size: 0.86rem; }
    .pd-spec-table th, .pd-spec-table td { padding: 12px 14px; }
    .pd-spec-table th { width: 42%; }
    .pd-cta-row .pd-btn { flex: 1 1 100%; justify-content: center; }
    .pd-pager { grid-template-columns: 1fr; }
    .pd-pager-all { width: 100%; height: 48px; order: 3; }
    .pd-pager-next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
}


/* ==========================================================================
   PRODUCT DETAIL STRICT TYPOGRAPHY OVERRIDES
   ========================================================================== */
body.pd-body .pd-title,
body.pd-body h1.pd-title,
.pd-body .pd-title {
    font-size: clamp(1.65rem, 2.2vw, 2.25rem) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin-bottom: 0.85rem !important;
}

body.pd-body h2.pd-section-heading,
body.pd-body h2.pd-highlights-heading,
.pd-body h2.pd-section-heading,
.pd-body h2.pd-highlights-heading {
    font-size: clamp(1.2rem, 1.5vw, 1.4rem) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: var(--pd-text) !important;
    margin: 2.25rem 0 1rem !important;
}

body.pd-body h2.pd-seo-h2,
.pd-body h2.pd-seo-h2 {
    font-size: clamp(1.15rem, 1.4vw, 1.3rem) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--pd-text) !important;
    margin: 2rem 0 0.85rem !important;
}

body.pd-body h2.pd-ms-h2,
.pd-body h2.pd-ms-h2 {
    font-size: 1.12rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

body.pd-body h3.pd-series-h3,
body.pd-body h3.pd-faq-h3,
.pd-body h3.pd-series-h3,
.pd-body h3.pd-faq-h3 {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}
