/**
 * DEV-16 V2 — Modern BTP Product Detail Page Stylesheet (`pdp-modern.css`)
 * Benchmarked against Chausson Matériaux, Point.P & Leroy Merlin.
 * Calibrated for CMESMAT's `html { font-size: 62.5%; }` (`1rem = 10px`).
 */

/* Prevent legacy `sharers.js` window.resize fade flicker on `.product-main` */
.catalog-product-view .pdp-hero.fade-out,
.catalog-product-view .pdp-hero.fade-in {
    opacity: 1 !important;
    animation: none !important;
}

/* Expand container cleanly to 1280px on PDP for comfortable 3-zone breathing room */
.catalog-product-view .breadcrumbs {
    max-width: 128rem;
    margin: 0 auto;
    padding: 1.4rem 2rem 0.8rem;
}

.catalog-product-view .pdp-hero {
    padding: 1.2rem 0 2.8rem;
}

.catalog-product-view .pdp-hero__grid {
    max-width: 128rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(28rem, 34%) minmax(30rem, 1fr) 35rem;
    gap: 2.8rem;
    align-items: start;
    box-sizing: border-box;
}

@media (min-width: 70em) {
    .catalog-product-view .pdp-hero__grid > .product.media {
        grid-column: 1;
        grid-row: 1;
    }

    .catalog-product-view .pdp-hero__grid > .product-info-main {
        grid-column: 2;
        grid-row: 1;
    }

    .catalog-product-view .pdp-hero__grid > .pdp-hero__buybox {
        grid-column: 3;
        grid-row: 1;
    }
}

/* Tablet layout (`832px` to `1119px`) */
@media (max-width: 69.99em) and (min-width: 52em) {
    .catalog-product-view .pdp-hero__grid {
        grid-template-columns: 44% 1fr;
        gap: 2.4rem;
    }

    .catalog-product-view .pdp-hero__grid .product.media {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .catalog-product-view .pdp-hero__grid .product-info-main {
        grid-column: 2;
        grid-row: 1;
    }

    .catalog-product-view .pdp-hero__grid .pdp-hero__buybox {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Mobile layout (`< 832px`) */
@media (max-width: 51.99em) {
    .catalog-product-view .breadcrumbs {
        padding: 1rem 1.4rem 0.6rem;
    }

    .catalog-product-view .pdp-hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.4rem;
    }
}

/* ==========================================================================
   Zone 1: Media Gallery Clean Containment (Horizontal Thumbnails, Zero Overlap)
   ========================================================================== */
.catalog-product-view .pdp-hero__grid .product.media {
    width: 100% !important;
    min-width: 0;
    margin: 0;
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.catalog-product-view .pdp-hero__grid .product.media .gallery-placeholder {
    display: block !important;
    width: 100% !important;
    min-height: 0;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama-item,
.catalog-product-view .pdp-hero__grid .product.media .fotorama__wrap {
    width: 100% !important;
    max-width: 100% !important;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__wrap--css3 .fotorama__stage {
    left: 0 !important;
    width: 100% !important;
    border: 0 !important;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__wrap--css3 .fotorama__stage__shaft {
    max-width: 100% !important;
    width: 100% !important;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__nav-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 1.2rem !important;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__nav {
    height: auto !important;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__thumb {
    width: 6.8rem !important;
    height: 6.8rem !important;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.catalog-product-view .pdp-hero__grid .product.media .fotorama__thumb-border {
    border: 2px solid #16a34a !important;
    border-radius: 0.6rem;
    background-image: none !important;
}

/* Compare Checkbox: preserve `.remove-tocompare { display: none }` so only 1 checkbox renders */
.catalog-product-view .pdp-hero__grid .product.media .tocompare {
    float: none;
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: #475569;
}

.catalog-product-view .pdp-hero__grid .product.media .tocompare.add-tocompare {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.catalog-product-view .pdp-hero__grid .product.media .tocompare.remove-tocompare {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.pdp-gallery-video-cta {
    margin-top: 1.2rem;
}

.pdp-gallery-video-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pdp-gallery-video-cta__link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    text-decoration: none;
}

.pdp-gallery-video-cta__link svg {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Zone 2: Product Identity, Pro Identifiers & Technical Synthesis
   ========================================================================== */
.catalog-product-view .pdp-hero__grid .product-info-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0;
    padding: 0;
}

.pdp-hero__top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.pdp-brand-badge__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pdp-brand-badge__logo {
    max-height: 3.6rem;
    max-width: 14rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pdp-brand-badge__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: 0.6rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pdp-brand-badge__link:hover .pdp-brand-badge__pill {
    border-color: #16a34a;
    color: #166534;
}

.pdp-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #fefce8;
    border: 1px solid #fde047;
    color: #713f12;
    font-size: 1.25rem;
    text-decoration: none;
}

.pdp-rating-chip__stars {
    color: #eab308;
    font-size: 1.4rem;
}

/* Unique H1 */
.catalog-product-view .pdp-hero__grid .product-info-main .title-page,
.catalog-product-view .pdp-hero__grid .product-info-main .page-title-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.8rem !important;
}

.catalog-product-view .pdp-hero__grid .product-info-main .page-title-wrapper .page-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    text-transform: none !important;
}

/* Pro Identifiers Bar & Accessible 1-Click Copy Button */
.pdp-identifiers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    color: #475569;
}

.pdp-identifiers__sep {
    color: #cbd5e1;
}

.pdp-identifiers__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pdp-identifiers__label {
    color: #64748b;
    font-weight: 500;
}

.pdp-identifiers__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: 0.4rem;
}

.pdp-copy {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pdp-copy__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 26px;
    min-block-size: 26px;
    padding: 0.3rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.pdp-copy__btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pdp-copy__btn:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 1px;
}

.pdp-copy__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.pdp-copy__icon--check {
    display: none;
    color: #16a34a;
}

.pdp-copy__btn[data-copied] {
    color: #16a34a;
    background: #dcfce7;
    border-color: #86efac;
}

.pdp-copy__btn[data-copied] .pdp-copy__icon--clipboard {
    display: none;
}

.pdp-copy__btn[data-copied] .pdp-copy__icon--check {
    display: block;
}

/* Show/hide confirmation bubble via opacity ONLY so role="status" stays in accessibility tree */
.pdp-copy__tip {
    position: absolute;
    inset-block-end: calc(100% + 0.5rem);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.7rem;
    border-radius: 0.4rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 20;
}

.pdp-copy__btn[data-copied] + .pdp-copy__tip,
.pdp-copy__btn[data-failed] + .pdp-copy__tip {
    opacity: 1;
}

/* Key Dimensional Chips + Bullets + Norm Badges */
.pdp-hero-summary {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 0.4rem;
}

.pdp-key-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
}

.pdp-key-specs__chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
    font-size: 1.3rem;
}

.pdp-key-specs__dt {
    color: #64748b;
    font-weight: 500;
}

.pdp-key-specs__dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.pdp-hero-summary__dest {
    margin: 0;
    font-size: 1.35rem;
    color: #334155;
    line-height: 1.45;
}

.pdp-hero-summary__bullets {
    margin: 0;
    padding: 0 0 0 1.8rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #334155;
}

.pdp-hero-summary__bullets li::marker {
    color: #65a30d;
}

.pdp-hero-summary__overview {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.55;
    color: #334155;
}

.pdp-norm-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.pdp-norm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.pdp-norm-badge--ce {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.pdp-norm-badge--nf {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1e40af;
}

.pdp-norm-badge--fire {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.pdp-norm-badge--thermal,
.pdp-norm-badge--lambda,
.pdp-norm-badge--acermi {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.pdp-norm-badge--cov {
    background: #ecfeff;
    border-color: #67e8f9;
    color: #155e75;
}

.pdp-hero-summary__anchor {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #166534;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdp-hero-summary__anchor:hover {
    color: #14532d;
}

/* ==========================================================================
   Zone 3: Sticky BTP Buy Box Card
   ========================================================================== */
@media (min-width: 70em) {
    .catalog-product-view .pdp-hero__buybox {
        position: sticky;
        top: 2rem;
    }
}

.pdp-buybox {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    box-sizing: border-box;
}

.pdp-buybox__header {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.6rem;
}

.pdp-buybox__top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pdp-buybox__avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.pdp-buybox__avail-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #16a34a;
}

/* TTC | HT Toggle */
.pdp-tax-switch {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    padding: 0.2rem;
}

.pdp-tax-switch__btn {
    min-inline-size: 4rem;
    min-block-size: 2.6rem;
    padding: 0.2rem 0.8rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #475569;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pdp-tax-switch__btn.is-active {
    background: #0f172a;
    color: #ffffff;
}

.pdp-tax-switch__btn:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 1px;
}

.pdp-buybox__primary-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pdp-buybox__amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pdp-buybox__unit-suffix {
    font-size: 1.45rem;
    font-weight: 600;
    color: #475569;
}

.pdp-buybox__secondary-price {
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
    color: #475569;
}

.pdp-buybox__secondary-price strong {
    color: #1e293b;
    font-weight: 700;
}

.pdp-buybox__quote-banner {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pdp-buybox__quote-tag {
    align-self: flex-start;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

.pdp-buybox__quote-desc {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.45;
    color: #475569;
}

/* Bidirectional Quantity & Surface (m²) Calculator */
.pdp-qty-module {
    margin-bottom: 1.6rem;
}

.pdp-qty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pdp-qty-field,
.pdp-qty-single {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pdp-qty-field__label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
}

.pdp-stepper {
    display: flex;
    align-items: stretch;
    height: 4.4rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #ffffff;
}

.pdp-stepper:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.pdp-stepper__btn {
    min-inline-size: 3.8rem;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease;
}

.pdp-stepper__btn:hover {
    background: #e2e8f0;
}

.pdp-stepper__input {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    border-inline: 1px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 0.4rem !important;
    background: #ffffff !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.pdp-stepper__input::-webkit-outer-spin-button,
.pdp-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-qty-conversion-note[hidden] {
    display: none !important;
}

.pdp-qty-conversion-note {
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    font-size: 1.2rem;
    color: #475569;
}

.pdp-qty-conversion-note strong {
    color: #0f172a;
    font-weight: 700;
}

.pdp-pallet-helper {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

.pdp-pallet-helper__btn {
    min-block-size: 2.8rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px dashed #65a30d;
    background: #f7fee7;
    color: #365314;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.pdp-pallet-helper__btn:hover {
    background: #ecfccb;
    border-style: solid;
}

/* Primary Action Buttons (Cart + Quote — strictly proportioned icons & heights) */
.pdp-buybox__actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0 !important;
}

.pdp-buybox__actions .box-tocart,
.pdp-buybox__actions .quote-button,
.pdp-buybox__actions .actions {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

.pdp-buybox__actions .pdp-btn-cart,
.pdp-buybox__actions .quote-button .actions .toquote {
    width: 100% !important;
    min-height: 4.8rem;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.9rem;
    padding: 1rem 1.8rem !important;
    border-radius: 0.9rem !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    text-align: center !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pdp-buybox__actions .pdp-btn-cart {
    background: #8ac545 !important;
    color: #ffffff !important;
    border: 0 !important;
}

.pdp-buybox__actions .pdp-btn-cart:hover {
    background: #76b032 !important;
}

.pdp-buybox__actions .pdp-btn-cart svg,
.pdp-buybox__actions .quote-button .actions .toquote svg {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem !important;
    max-height: 2rem !important;
    margin: 0 !important;
    flex-shrink: 0;
    fill: currentColor;
}

.pdp-buybox__actions .quote-button .actions .toquote {
    min-height: 4.4rem;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    text-decoration: none !important;
}

.pdp-buybox__actions .quote-button .actions .toquote:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* When product is Quote-Only, elevate "Ajouter au devis" as primary prominent action */
.pdp-buybox.is-quote-only .pdp-buybox__actions .quote-button .actions .toquote {
    min-height: 4.8rem;
    background: #8ac545 !important;
    color: #ffffff !important;
    border: 0 !important;
}

.pdp-buybox.is-quote-only .pdp-buybox__actions .quote-button .actions .toquote:hover {
    background: #76b032 !important;
}

/* Localization & Fulfillment Card */
.pdp-buybox__fulfillment {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pdp-buybox__loc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pdp-buybox__loc-card:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    text-decoration: none;
}

.pdp-buybox__loc-icon {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdp-buybox__loc-icon svg {
    width: 1.9rem;
    height: 1.9rem;
}

.pdp-buybox__loc-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.pdp-buybox__loc-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.pdp-buybox__loc-sub {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.3;
}

.pdp-buybox__loc-arrow {
    font-size: 2rem;
    font-weight: 700;
    color: #64748b;
}

.pdp-buybox__modes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pdp-buybox__mode {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #475569;
}

.pdp-buybox__mode svg {
    width: 1.9rem;
    height: 1.9rem;
    color: #65a30d;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pdp-buybox__mode strong {
    display: block;
    color: #1e293b;
    font-weight: 700;
}

/* ==========================================================================
   Below the Fold: Open 2-Column Technical Layout (Chausson & Point.P Style)
   ========================================================================== */
.pdp-details-modern {
    padding: 3.2rem 0 2.4rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.pdp-details-modern .block__container {
    max-width: 128rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: block;
    box-sizing: border-box;
}

.pdp-details-modern__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.8rem;
    align-items: start;
}

.pdp-details-modern__grid--single {
    grid-template-columns: 1fr;
}

@media (max-width: 61.99em) {
    .pdp-details-modern .block__container {
        padding: 0 1.4rem;
    }

    .pdp-details-modern__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.pdp-details-modern__col {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    min-width: 0;
}

.pdp-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    padding: 2.4rem;
    box-sizing: border-box;
}

.pdp-panel__title {
    margin: 0 0 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f172a;
}

.pdp-panel__title--flush {
    margin-bottom: 0.2rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.pdp-panel__subtitle {
    margin: 1.6rem 0 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.pdp-panel__bullets {
    margin: 0 0 1.4rem;
    padding: 0 0 0 2rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 1.45rem;
    line-height: 1.55;
    color: #334155;
}

.pdp-panel__bullets li::marker {
    color: #65a30d;
}

.pdp-panel__prose {
    margin: 0 0 1.2rem;
    font-size: 1.45rem;
    line-height: 1.6;
    color: #334155;
}

.pdp-panel__usage-box {
    margin-top: 1.2rem;
    padding: 1.2rem 1.4rem;
    border-left: 4px solid #8ac545;
    background: #f8fafc;
    border-radius: 0 0.8rem 0.8rem 0;
    font-size: 1.4rem;
    color: #334155;
}

.pdp-panel__usage-box p {
    margin: 0.3rem 0;
}

/* Video Embed */
.pdp-videos-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.pdp-video-item {
    margin: 0;
}

.pdp-video-embed .table-caption {
    display: none;
}

.pdp-video-embed iframe,
.pdp-video-embed video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0.8rem;
    background: #0f172a;
}

.pdp-video-item__caption {
    margin-top: 0.7rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #475569;
}

/* Clean PDF Document Cards (`FDES`, `DoP`, `FDS`, `Fiche PDF`) */
.pdp-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
    gap: 1.2rem;
}

.pdp-doc-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-doc-card:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pdp-doc-card__badge {
    padding: 0.45rem 0.8rem;
    border-radius: 0.6rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pdp-doc-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.pdp-doc-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pdp-doc-card__type {
    font-size: 1.15rem;
    color: #64748b;
}

.pdp-doc-card__dl {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    flex-shrink: 0;
}

.pdp-doc-card__dl svg {
    width: 1.7rem;
    height: 1.7rem;
}

/* RE2020 Carbon Index Gauge (`FDES / INIES`) */
.pdp-panel--carbon {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.pdp-carbon__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.pdp-carbon__sub {
    margin: 0;
    font-size: 1.25rem;
    color: #64748b;
}

.pdp-carbon__pill {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
}

.pdp-carbon__pill--low {
    background: #dcfce7;
    color: #166534;
}

.pdp-carbon__pill--medium {
    background: #fef9c3;
    color: #854d0e;
}

.pdp-carbon__pill--high {
    background: #ffedd5;
    color: #9a3412;
}

.pdp-carbon__score-row {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.pdp-carbon__value {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.pdp-carbon__unit {
    font-size: 1.4rem;
    font-weight: 600;
    color: #334155;
}

.pdp-carbon__gauge {
    margin-bottom: 1.4rem;
}

.pdp-carbon__bar {
    position: relative;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #f97316 80%, #ef4444 100%);
    margin: 0.8rem 0 0.6rem;
}

.pdp-carbon__marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #0f172a;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.pdp-carbon__scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 600;
}

.pdp-carbon__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid #dcfce7;
    font-size: 1.25rem;
}

.pdp-carbon__inies-id {
    color: #475569;
    font-weight: 600;
}

.pdp-carbon__inies-link {
    font-weight: 700;
    color: #166534;
    text-decoration: underline;
}

/* Right Column: Grouped Technical Specifications */
.pdp-spec-group + .pdp-spec-group {
    margin-top: 2rem;
}

.pdp-spec-group__heading {
    margin: 0 0 0.8rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pdp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.35rem;
}

.pdp-spec-table tr:nth-child(odd) {
    background: #f8fafc;
}

.pdp-spec-table th,
.pdp-spec-table td {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    text-align: left;
}

.pdp-spec-table th {
    width: 48%;
    color: #475569;
    font-weight: 500;
}

.pdp-spec-table td {
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Customer Reviews Panel (when approved reviews > 0) */
.pdp-panel--reviews {
    margin-top: 2.8rem;
}

.pdp-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 1.6rem;
}

.pdp-review-card {
    padding: 1.6rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pdp-review-card__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.pdp-review-card__score {
    color: #b45309;
    font-weight: 700;
}

.pdp-review-card__head time {
    margin-left: auto;
    color: #64748b;
    font-size: 1.2rem;
}

.pdp-review-card__title,
.pdp-review-card__body {
    margin: 0.4rem 0 0;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #334155;
}
