/**
 * Product detail — editorial split-screen layout
 * public/product_detail.php
 */

/* ── Theme tokens ── */
.pd-editorial-page {
    --pd-neutral-900: #171717;
    --pd-neutral-700: #404040;
    --pd-neutral-500: #737373;
    --pd-neutral-200: #e5e5e5;
    --pd-neutral-100: #f5f5f5;
    font-family: var(--fx-font-body, "Inter", system-ui, -apple-system, sans-serif);
    background: transparent;
    color: var(--pd-neutral-900);
}

/* Dark futuristic — remap tokens + inherit site ambient bg */
body.genpro-futuristic .pd-editorial-page {
    --pd-neutral-900: var(--fx-text);
    --pd-neutral-700: var(--fx-text-muted);
    --pd-neutral-500: var(--fx-text-dim);
    --pd-neutral-200: var(--fx-border);
    --pd-neutral-100: var(--fx-surface);
    color: var(--fx-text);
    background: transparent;
}

.pd-editorial-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.pd-editorial-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-neutral-500);
}

.pd-editorial-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-editorial-breadcrumb a:hover,
.pd-editorial-breadcrumb a:focus-visible {
    color: var(--pd-neutral-900);
}

.pd-editorial-breadcrumb span[aria-current="page"] {
    color: var(--pd-neutral-900);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-breadcrumb a:hover,
body.genpro-futuristic .pd-editorial-page .pd-editorial-breadcrumb a:focus-visible {
    color: var(--fx-accent-bright);
}

/* ── Split grid ── */
.pd-editorial-split {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    position: relative;
}

/* Floating image index (desktop) */
.pd-editorial-index {
    display: none;
    position: fixed;
    left: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1.25rem, 3vw, 2rem);
    z-index: 40;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.1);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #111;
    pointer-events: none;
}

.pd-editorial-index__sep {
    margin: 0 0.25rem;
    opacity: 0.35;
}

.pd-editorial-index.is-visible {
    display: flex;
    align-items: center;
}

.pd-editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

/* ── Mobile carousel ── */
.pd-editorial-carousel {
    display: block;
    position: relative;
}

.pd-editorial-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 2px;
    background: #eeecea;
}

.pd-editorial-carousel__track::-webkit-scrollbar {
    display: none;
}

.pd-editorial-carousel__track:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.pd-editorial-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin: 0;
}

.pd-editorial-visual__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.pd-editorial-carousel__img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eeecea;
}

.pd-editorial-carousel {
    margin-bottom: 0;
}

.pd-editorial-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.85rem;
}

.pd-editorial-carousel__controls--dots {
    gap: 0;
}

.pd-editorial-carousel__btn {
    display: none;
}

.pd-editorial-carousel__dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pd-editorial-carousel__dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pd-editorial-carousel__dot.is-active,
.pd-editorial-carousel__dot[aria-selected="true"] {
    background: #111;
    transform: scale(1.2);
}

/* ── Desktop gallery (Vibex: main + vertical thumbs) ── */
.pd-editorial-gallery {
    display: none;
}

.pd-editorial-gallery__main {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    background: #eeecea;
    overflow: hidden;
    position: relative;
}

.pd-editorial-gallery__slide {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pd-editorial-gallery__slide[hidden] {
    display: none;
}

.pd-editorial-gallery__trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.pd-editorial-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease-out;
}

.pd-editorial-gallery__trigger:hover .pd-editorial-gallery__img,
.pd-editorial-gallery__trigger:focus-visible .pd-editorial-gallery__img {
    transform: scale(1.04);
}

.pd-editorial-gallery__expand {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #111;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.pd-editorial-gallery__trigger:hover .pd-editorial-gallery__expand,
.pd-editorial-gallery__trigger:focus-visible .pd-editorial-gallery__expand {
    opacity: 1;
    transform: translateY(0);
}

.pd-editorial-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 4.5rem;
    flex-shrink: 0;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.pd-editorial-gallery__thumb {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 2px solid transparent;
    background: #eeecea;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.72;
}

.pd-editorial-gallery__thumb:hover,
.pd-editorial-gallery__thumb:focus-visible {
    opacity: 1;
    border-color: rgba(17, 17, 17, 0.25);
}

.pd-editorial-gallery__thumb.is-active,
.pd-editorial-gallery__thumb[aria-selected="true"] {
    opacity: 1;
    border-color: #111;
}

.pd-editorial-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy stack — kept for reference, hidden everywhere */
.pd-editorial-visuals {
    display: none;
}

/* ── Sticky info panel ── */
.pd-editorial-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pd-neutral-200);
    border-radius: var(--fx-radius-md, 0);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-panel {
    background: var(--fx-bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-glass);
}

.pd-editorial-panel__inner {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.pd-editorial-panel__badge {
    margin: 0 0 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.5);
}

.pd-editorial-panel__header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-panel__title {
    margin: 0 0 0.75rem;
    font-family: var(--fx-font-display, "Plus Jakarta Sans", "Inter", system-ui, sans-serif);
    font-size: clamp(1.5rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pd-neutral-900);
}

.pd-editorial-panel__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--pd-neutral-700);
}

.pd-editorial-panel__price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pd-neutral-900);
}

.pd-editorial-panel__price-currency {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pd-editorial-panel__price--quote {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(17, 17, 17, 0.55);
}

.pd-editorial-panel__desc {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-panel__desc p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(17, 17, 17, 0.72);
}

/* Variant chips */
.pd-editorial-variants {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-variants__group {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    min-width: 0;
}

.pd-editorial-variants__group:last-child {
    margin-bottom: 0;
}

.pd-editorial-variants__label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.45);
}

.pd-editorial-variants__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pd-editorial-chip {
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: #fff;
    color: #111;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pd-editorial-chip:hover,
.pd-editorial-chip:focus-visible {
    border-color: #111;
    transform: translateY(-1px);
}

.pd-editorial-chip.is-active,
.pd-editorial-chip[aria-pressed="true"] {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Editorial specs — compact 2-column card grid */
.pd-editorial-specs-menu {
    padding: 1.15rem 0;
    border-top: 1px solid var(--pd-neutral-200);
    border-bottom: 1px solid var(--pd-neutral-200);
}

.pd-editorial-specs-menu__title {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-neutral-500);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-specs-menu__title {
    color: var(--fx-accent-bright);
}

.pd-editorial-specs-menu__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pd-editorial-specs-menu__row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem;
    margin: 0;
    border: 1px solid var(--pd-neutral-200);
    border-radius: var(--fx-radius-sm, 6px);
    background: var(--pd-neutral-100);
    min-width: 0;
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-specs-menu__row {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--fx-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-specs-menu__row:hover {
    border-color: var(--fx-border-accent);
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.08);
}

.pd-editorial-specs-menu__row dt {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pd-neutral-500);
    line-height: 1.3;
}

.pd-editorial-specs-menu__row dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pd-neutral-900);
    word-break: break-word;
}

.pd-editorial-accordions--secondary {
    margin-top: 0.5rem;
    border-bottom: none;
}

.pd-editorial-accordions--secondary .pd-accordion:first-child {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-accordion {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-accordion:first-child {
    border-top: none;
}

.pd-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pd-neutral-900);
    cursor: pointer;
}

.pd-accordion__trigger > span:first-child {
    flex: 1;
    min-width: 0;
}

.pd-accordion__icon {
    position: relative;
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    margin-left: auto;
}

.pd-accordion__icon::before,
.pd-accordion__icon::after {
    content: "";
    position: absolute;
    background: #111;
    transition: transform 0.3s ease;
}

.pd-accordion__icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.pd-accordion__icon::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.pd-accordion.is-open .pd-accordion__icon::after {
    transform: translateX(-50%) scaleY(0);
}

.pd-accordion__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.pd-accordion.is-open .pd-accordion__body {
    grid-template-rows: 1fr;
}

.pd-accordion__inner {
    overflow: hidden;
    min-height: 0;
}

.pd-accordion.is-open .pd-accordion__inner {
    padding-bottom: 1rem;
}

.pd-accordion__inner p,
.pd-accordion__inner ul {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(17, 17, 17, 0.72);
}

.pd-accordion__inner ul {
    padding-left: 1.1rem;
}

.pd-accordion__inner a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-accordion__empty {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(17, 17, 17, 0.55);
}

.pd-editorial-panel__meta--accordion {
    border-bottom: none;
}

.pd-editorial-panel__meta--accordion .pd-editorial-panel__meta-row:first-child {
    padding-top: 0;
}

.pd-editorial-panel__meta {
    margin: 0;
    padding: 0;
}

.pd-editorial-panel__meta-row {
    display: grid;
    grid-template-columns: minmax(90px, 38%) 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.pd-editorial-panel__meta-row:last-child {
    border-bottom: none;
}

.pd-editorial-panel__meta-row dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.45);
}

.pd-editorial-panel__meta-row dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    color: #111;
    word-break: break-word;
}

/* Action buttons — 2-column grid on desktop */
.pd-editorial-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding-top: 1.35rem;
}

.pd-editorial-panel__actions .pd-editorial-btn--secondary {
    grid-column: span 1;
}

.pd-editorial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
}

.pd-editorial-btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--primary {
    background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-bright));
    border-color: transparent;
    border-radius: var(--fx-radius-pill);
    box-shadow: 0 4px 18px rgba(255, 102, 0, 0.28);
}

.pd-editorial-btn--primary:hover,
.pd-editorial-btn--primary:focus-visible {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--primary:hover,
body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--primary:focus-visible {
    background: linear-gradient(135deg, var(--fx-accent-bright), #ff9a4d);
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(255, 102, 0, 0.38);
}

.pd-editorial-btn--secondary {
    background: #fff;
    color: #111;
    border-color: rgba(17, 17, 17, 0.18);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--secondary {
    background: var(--fx-surface);
    color: var(--fx-text);
    border-color: var(--fx-border);
    border-radius: var(--fx-radius-pill);
}

.pd-editorial-btn--secondary:hover,
.pd-editorial-btn--secondary:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--secondary:hover,
body.genpro-futuristic .pd-editorial-page .pd-editorial-btn--secondary:focus-visible {
    background: rgba(255, 102, 0, 0.12);
    color: var(--fx-accent-bright);
    border-color: var(--fx-border-accent);
}

.pd-editorial-btn--ghost {
    background: transparent;
    color: rgba(17, 17, 17, 0.55);
    border-color: transparent;
    min-height: 2.25rem;
    font-size: 0.72rem;
}

.pd-editorial-btn--ghost:hover,
.pd-editorial-btn--ghost:focus-visible {
    color: #111;
    background: rgba(17, 17, 17, 0.04);
}

/* ── Content section (overview + specs) ── */
.pd-editorial-content {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pd-editorial-content__inner {
    max-width: min(1200px, 100%);
    margin: 0 auto;
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-content__inner {
    padding: clamp(1rem, 2.5vw, 1.75rem);
    background: var(--fx-bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-lg);
    box-shadow: var(--fx-shadow-glass);
}

.pd-editorial-content__heading {
    margin: 0 0 1.25rem;
    font-family: var(--fx-font-display, "Segoe UI", system-ui, sans-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
}

.pd-editorial-prose {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-prose__body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--pd-neutral-700);
}

.pd-editorial-prose__body h1,
.pd-editorial-prose__body h2,
.pd-editorial-prose__body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #111;
}

.pd-editorial-prose__body p {
    margin-bottom: 1.25rem;
}

.pd-editorial-prose__body ul,
.pd-editorial-prose__body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.pd-editorial-prose__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.pd-editorial-prose__body th,
.pd-editorial-prose__body td {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--pd-neutral-200);
    text-align: left;
    vertical-align: top;
}

.pd-editorial-prose__body th {
    background: var(--pd-neutral-100);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-neutral-700);
}

/* Extended datasheet — responsive grid */
.pd-tech-datasheet {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 768px) {
    .pd-tech-datasheet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .pd-tech-section:has(.pd-feature-grid),
    .pd-tech-section:has(.pd-tech-list),
    .pd-tech-section:has(.pd-tech-section__html),
    .pd-tech-section:has(.pd-editorial-prose__body) {
        grid-column: 1 / -1;
    }
}

.pd-tech-section {
    padding: clamp(0.85rem, 2vw, 1.15rem);
    border: 1px solid var(--pd-neutral-200);
    border-radius: var(--fx-radius-md, 8px);
    background: rgba(255, 255, 255, 0.5);
}

body.genpro-futuristic .pd-editorial-page .pd-tech-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--fx-border);
}

.pd-tech-section__title {
    margin: 0 0 1.15rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pd-neutral-900);
}

.pd-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-feature-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5.5rem;
    padding: 0.75rem 0.55rem;
    background: var(--pd-neutral-100);
    border: 1px solid var(--pd-neutral-200);
    border-radius: var(--fx-radius-sm, 6px);
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

body.genpro-futuristic .pd-editorial-page .pd-feature-grid__item {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-feature-grid__item:hover {
    border-color: var(--fx-border-accent);
    transform: translateY(-2px);
}

.pd-feature-grid__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--pd-neutral-100);
    color: var(--pd-neutral-900);
    font-size: 0.95rem;
}

body.genpro-futuristic .pd-editorial-page .pd-feature-grid__icon {
    background: rgba(255, 102, 0, 0.15);
    color: var(--fx-accent-bright);
}

.pd-feature-grid__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pd-neutral-700);
}

.pd-spec-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pd-spec-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.pd-spec-table th,
.pd-spec-table td {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--pd-neutral-200);
    text-align: left;
    vertical-align: top;
}

.pd-spec-table thead th {
    background: var(--pd-neutral-100);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-neutral-700);
}

.pd-spec-table tbody tr:nth-child(even) {
    background: rgba(245, 245, 245, 0.65);
}

body.genpro-futuristic .pd-editorial-page .pd-spec-table thead th {
    background: rgba(255, 102, 0, 0.1);
    color: var(--fx-accent-bright);
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-spec-table th,
body.genpro-futuristic .pd-editorial-page .pd-spec-table td {
    border-color: var(--fx-border);
    color: var(--fx-text-muted);
}

body.genpro-futuristic .pd-editorial-page .pd-spec-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

body.genpro-futuristic .pd-editorial-page .pd-spec-table tbody td:first-child {
    color: var(--fx-text);
    font-weight: 600;
}

.pd-tech-list {
    margin: 0;
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 2rem;
}

.pd-tech-list li {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--pd-neutral-700);
    break-inside: avoid;
}

@media (max-width: 640px) {
    .pd-tech-list {
        columns: 1;
    }

    .pd-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-editorial-specs-menu__list {
        grid-template-columns: 1fr;
    }

    .pd-tech-datasheet {
        grid-template-columns: 1fr;
    }
}

.pd-editorial-specs__grid {
    margin: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-specs__row {
    display: grid;
    grid-template-columns: minmax(120px, 40%) 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.pd-editorial-specs__row:last-child {
    border-bottom: none;
}

.pd-editorial-specs__row dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.45);
}

.pd-editorial-specs__row dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #111;
}

/* ── Related products ── */
.pd-editorial-related {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.pd-editorial-related__title {
    margin: 0 0 1.5rem;
    font-family: var(--fx-font-display, "Segoe UI", system-ui, sans-serif);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
}

.pd-editorial-related__grid {
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.pd-editorial-related__grid.products-grid-page-enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Lightbox */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.pd-lightbox[hidden] {
    display: none !important;
}

.pd-lightbox.is-open {
    animation: pd-lightbox-in 0.25s ease;
}

@keyframes pd-lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pd-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.pd-lightbox__frame {
    position: relative;
    z-index: 1;
    max-width: min(1200px, 96vw);
    max-height: 92vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.pd-lightbox__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pd-lightbox__close:hover,
.pd-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.pd-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pd-lightbox__nav:hover,
.pd-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.pd-lightbox__nav--prev { left: -3.25rem; }
.pd-lightbox__nav--next { right: -3.25rem; }

.pd-lightbox__counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
}

body.pd-lightbox-open {
    overflow: hidden;
}

/* Mobile sticky CTA */
.pd-mobile-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--pd-neutral-200);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12), 0 -1px 0 rgba(0, 0, 0, 0.06);
    padding: 0;
}

body.genpro-futuristic .pd-editorial-page .pd-mobile-cta {
    background: var(--fx-bg-glass-strong);
    border-top-color: var(--fx-border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.pd-mobile-cta__inner {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.pd-mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pd-mobile-cta__btn--full {
    width: 100%;
}

.pd-mobile-cta__btn:hover,
.pd-mobile-cta__btn:focus-visible {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Desktop: two-column split + sticky panel (lg breakpoint) ── */
@media (min-width: 1024px) {
    .pd-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3rem;
        row-gap: clamp(1.5rem, 3vw, 2.5rem);
    }

    .pd-editorial-carousel {
        display: none;
    }

    .pd-editorial-gallery {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        grid-column: 1;
        grid-row: 1;
    }

    .pd-editorial-visuals {
        display: none;
    }

    .pd-editorial-panel {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: calc(var(--fx-header-h, 72px) + var(--fx-topbar-h, 36px) + 1rem);
        height: fit-content;
        align-self: start;
        overflow: visible;
    }

    .pd-editorial-panel__inner {
        padding: clamp(1.25rem, 2vw, 1.75rem);
    }

    .pd-editorial-index.is-visible {
        display: none;
    }

    .pd-mobile-cta {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .pd-editorial-wrap {
        padding-inline: 1rem;
    }

    .pd-editorial-page {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .pd-editorial-grid {
        gap: 0;
    }

    .pd-editorial-carousel {
        margin-bottom: 1.5rem;
    }

    .pd-editorial-panel {
        border-top: none;
        position: relative;
        z-index: 1;
        isolation: isolate;
    }

    .pd-editorial-panel__inner {
        padding: 1.5rem 1rem 1rem;
    }

    .pd-editorial-panel__header {
        padding-bottom: 1rem;
    }

    .pd-editorial-panel__title {
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .pd-mobile-cta {
        display: block;
    }

    .pd-editorial-panel__actions {
        display: none !important;
    }

    .pd-editorial-index {
        display: flex;
        position: static;
        width: fit-content;
        margin-bottom: 0.75rem;
        pointer-events: auto;
    }

    .pd-editorial-related__grid.products-grid-page-enhanced {
        grid-template-columns: 1fr;
    }

    .pd-lightbox__nav--prev { left: 0.5rem; }
    .pd-lightbox__nav--next { right: 0.5rem; }
    .pd-lightbox__close { top: 0.5rem; right: 0.5rem; }
}

@media (min-width: 1100px) {
    .pd-editorial-grid {
        column-gap: clamp(2rem, 4vw, 4rem);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .pd-editorial-visual__img,
    .pd-editorial-btn,
    .pd-editorial-carousel__btn,
    .pd-editorial-carousel__dot,
    .pd-accordion__body,
    .pd-accordion__icon::after,
    .pd-editorial-chip {
        transition: none;
    }

    .pd-editorial-visual__trigger:hover .pd-editorial-visual__img,
    .pd-editorial-visual__trigger:focus-visible .pd-editorial-visual__img {
        transform: none;
    }
}

/* ── Override legacy product-hero styles if cascade leaks ── */
body.genpro-futuristic .pd-editorial-page .product-hero {
    display: none;
}

body.genpro-futuristic main.pd-editorial-page > section:not(.kb-hero) {
    padding-block: 0;
}

/* ── Futuristic theme — gallery, chips, accordions, prose ── */
body.genpro-futuristic .pd-editorial-page .pd-editorial-carousel__track,
body.genpro-futuristic .pd-editorial-page .pd-editorial-gallery__main,
body.genpro-futuristic .pd-editorial-page .pd-editorial-gallery__thumb {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-gallery__thumb.is-active,
body.genpro-futuristic .pd-editorial-page .pd-editorial-gallery__thumb[aria-selected="true"] {
    border-color: var(--fx-accent);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-index {
    background: var(--fx-bg-glass);
    border-color: var(--fx-border);
    color: var(--fx-text);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-chip {
    background: var(--fx-surface);
    border-color: var(--fx-border);
    color: var(--fx-text);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-chip.is-active,
body.genpro-futuristic .pd-editorial-page .pd-editorial-chip[aria-pressed="true"] {
    background: rgba(255, 102, 0, 0.2);
    border-color: var(--fx-border-accent);
    color: var(--fx-accent-bright);
}

body.genpro-futuristic .pd-editorial-page .pd-accordion__icon::before,
body.genpro-futuristic .pd-editorial-page .pd-accordion__icon::after {
    background: var(--fx-text-muted);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-prose {
    border-bottom-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-content__heading,
body.genpro-futuristic .pd-editorial-page .pd-tech-section__title,
body.genpro-futuristic .pd-editorial-page .pd-editorial-related__title {
    color: var(--fx-text);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-panel__badge {
    color: var(--fx-accent-bright);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-related {
    border-top-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-carousel__dot.is-active,
body.genpro-futuristic .pd-editorial-page .pd-editorial-carousel__dot[aria-selected="true"] {
    background: var(--fx-accent);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-prose__body th {
    background: rgba(255, 102, 0, 0.1);
    color: var(--fx-accent-bright);
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-prose__body th,
body.genpro-futuristic .pd-editorial-page .pd-editorial-prose__body td {
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-panel__header,
body.genpro-futuristic .pd-editorial-page .pd-editorial-panel__desc,
body.genpro-futuristic .pd-editorial-page .pd-editorial-variants,
body.genpro-futuristic .pd-editorial-page .pd-accordion,
body.genpro-futuristic .pd-editorial-page .pd-editorial-accordions--secondary .pd-accordion:first-child {
    border-color: var(--fx-border);
}

body.genpro-futuristic .pd-editorial-page .pd-accordion__inner a {
    color: var(--fx-accent-bright);
}

body.genpro-futuristic.fx-motion-ready .pd-editorial-page .pd-editorial-content[data-reveal]:not(.fx-revealed) {
    opacity: 1 !important;
    transform: none !important;
}

body.genpro-futuristic .pd-editorial-page .pd-editorial-visual,
body.genpro-futuristic .pd-editorial-page .pd-editorial-visual__trigger {
    contain: layout style;
}
