/**
 * productdetailspro v2.1.10
 * Charte HTML Premium Auto Pro (référence officielle) :
 * navy #0F1923 · or bronze #9A7B0A · or champagne #CDC69C (sur navy uniquement)
 * gris texte #3D3D3D · bordures #E8E0D0 · zébrage #F9F9F9 · radius 3px
 * or hover #B99517 · vert tip #1E8449 · orange warn #C8860A · rouge rupture #C0392B
 *
 * v2.1.10 (CSS uniquement, pas de changement de TPL) :
 *  - #1 Onglets : échange strict actif/inactif (actif = crème/contour bronze,
 *    inactif = navy/champagne). Badge OEM inchangé (reste champagne sur actif).
 *  - #2 Interrupteur CSS sur l'effet de survol du bloc "Véhicules compatibles"
 *    (défaut ON) — voir le bloc INTERRUPTEUR plus bas.
 */

/* -----------------------------------------------------------------------
   Bandeau identification produit (Marque / Référence / Stock / État)
   v2.1.6 — variante A "champagne renforcé" : liseré gauche or 5px (pattern
   callout charte), bordure or, cellules séparées, label au-dessus de la
   valeur, valeurs 15px/700. À faire valider par Gaëlle (retouche du bandeau
   champagne v2.1.3).
   ----------------------------------------------------------------------- */
.pdp-idband {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    background: #CDC69C;
    border: 1px solid #9A7B0A;
    border-left: 5px solid #9A7B0A;
    border-radius: 3px;
    overflow: hidden;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 4px;
}

.pdp-idband-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 3px 6px;
    padding: 12px 16px;
    flex: 1 1 auto;
}

.pdp-idband-label {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9A7B0A;
}

.pdp-idband-value,
.pdp-idband-value a {
    color: #0F1923;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.pdp-idband-value a {
    text-decoration: underline;
    text-decoration-color: rgba(154, 123, 10, 0.6);
    text-underline-offset: 2px;
}

.pdp-idband-value a:hover {
    color: #9A7B0A;
    text-decoration: underline;
}

.pdp-idband-sep {
    width: 1px;
    height: auto;
    align-self: stretch;
    background: rgba(154, 123, 10, 0.35);
}

/* Pastille stock — 3 états */
.pdp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pdp-stock-in        { background: #1E8449; }
.pdp-stock-backorder { background: #C8860A; }
.pdp-stock-out       { background: #C0392B; }

/* -----------------------------------------------------------------------
   Mise en page 2 colonnes
   ----------------------------------------------------------------------- */
.pdp-details-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 20px;
    margin-top: 12px;
}

.pdp-features-col {
    flex: 1 1 52%;
    min-width: 0;
}

.pdp-oem-col {
    flex: 0 0 40%;
    min-width: 200px;
}

/* -----------------------------------------------------------------------
   Tableau fiche technique — style PAP
   ----------------------------------------------------------------------- */
.pdp-table-block {
    border: 1px solid #0F1923;
    border-radius: 3px;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.pdp-table-header {
    background: #0F1923;
    color: #CDC69C;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 14px;
}

.pdp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.pdp-table tr {
    border-bottom: 1px solid #E8E0D0;
}

.pdp-table tr:last-child {
    border-bottom: none;
}

.pdp-table tr:nth-child(even) {
    background: #F9F9F9;
}

.pdp-table-label {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0F1923;
    width: 45%;
    vertical-align: top;
    border-right: 1px solid #E8E0D0;
    font-family: 'Manrope', sans-serif;
}

.pdp-table-value {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3D3D3D;
    font-family: 'Manrope', sans-serif;
}

/* -----------------------------------------------------------------------
   Identifiants marketplaces — repliable discret
   ----------------------------------------------------------------------- */
.pdp-specrefs {
    margin-top: 10px;
    font-family: 'Manrope', sans-serif;
}

.pdp-specrefs summary {
    cursor: pointer;
    color: #AAAAAA;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 2px;
    list-style: none;
}

.pdp-specrefs summary::-webkit-details-marker {
    display: none;
}

.pdp-specrefs summary::before {
    content: '\25B8';
    color: #9A7B0A;
    display: inline-block;
    margin-right: 7px;
    transition: transform 0.2s ease;
}

.pdp-specrefs[open] summary::before {
    transform: rotate(90deg);
}

.pdp-specrefs summary:hover {
    color: #B99517;
}

.pdp-specrefs-table {
    border: 1px solid #E8E0D0;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.pdp-specrefs-row {
    display: flex;
    border-bottom: 1px solid #E8E0D0;
}

.pdp-specrefs-row:last-child {
    border-bottom: none;
}

.pdp-specrefs-row:nth-child(even) {
    background: #F9F9F9;
}

.pdp-specrefs-key {
    flex: 1;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #0F1923;
}

.pdp-specrefs-val {
    flex: 1.4;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #3D3D3D;
}

/* -----------------------------------------------------------------------
   Bloc OEM
   ----------------------------------------------------------------------- */
.pdp-oem-block {
    border: 1px solid #0F1923;
    border-radius: 3px;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.pdp-oem-header {
    background: #0F1923;
    color: #CDC69C;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 14px;
}

.pdp-oem-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.pdp-oem-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #E8E0D0;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    color: #3D3D3D;
}

.pdp-oem-list li:nth-child(even) {
    background: #F9F9F9;
}

.pdp-oem-list li:last-child {
    border-bottom: none;
}

.pdp-oem-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9A7B0A;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Bandeau GPSR — pattern .callout charte (bordure gauche or 5px)
   ----------------------------------------------------------------------- */
.pdp-gpsr-band {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: none;
    border-left: 5px solid #9A7B0A;
    border-radius: 3px;
    background: #FAF7EE;
    padding: 14px 18px;
    margin-top: 14px;
    font-family: 'Manrope', sans-serif;
}

.pdp-gpsr-icon {
    color: #9A7B0A;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

.pdp-gpsr-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F1923;
    margin-bottom: 4px;
}

.pdp-gpsr-text {
    font-size: 12px;
    font-weight: 500;
    color: #3D3D3D;
    line-height: 1.75;
    margin: 0;
}

/* -----------------------------------------------------------------------
   Onglets La description / Détails du produit
   (classes posées par productdetailspro.js sur la nav du thème)
   ----------------------------------------------------------------------- */
.pdp-tabs-nav .nav-link,
.pdp-tabs-nav a {
    font-family: 'Manrope', sans-serif;
    transition: box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
    border-radius: 3px 3px 0 0;
}

/* v2.1.8 — onglets : fond crème #FAF7EE + contour bronze (hybride A/B demandé
   par Steve) + espacement entre les onglets pour l'effet "boutons" */
.pdp-tabs-nav .nav-link,
.pdp-tabs-nav a,
.pdp-tabs-nav li {
    margin-right: 6px;
}

.pdp-tabs-nav .nav-link:not(.active),
.pdp-tabs-nav a:not(.active) {
    background: #0F1923 !important;
    border: 1px solid #0F1923 !important;
    border-bottom: none !important;
    color: #CDC69C !important;
    font-weight: 700;
}

.pdp-tabs-nav .nav-link:not(.active):hover,
.pdp-tabs-nav a:not(.active):hover {
    box-shadow: 0 0 12px rgba(185, 149, 23, 0.5);
    color: #B99517 !important;
    border-color: #B99517 !important;
}

.pdp-tabs-nav .nav-link.active,
.pdp-tabs-nav a.active {
    background: #FAF7EE !important;
    border: 1px solid #9A7B0A !important;
    border-bottom: none !important;
    color: #9A7B0A !important;
}

/* Badge compteur OEM sur l'onglet Détails */
.pdp-tab-badge {
    display: inline-block;
    background: #9A7B0A;
    color: #FAF7EE;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Manrope', sans-serif;
}

.pdp-tabs-nav .nav-link.active .pdp-tab-badge,
.pdp-tabs-nav a.active .pdp-tab-badge {
    background: #CDC69C;
    color: #0F1923;
}

/* -----------------------------------------------------------------------
   Teaser fin de description — pattern .callout charte (or, validé Gaëlle)
   ----------------------------------------------------------------------- */
.pdp-teaser {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 5px solid #9A7B0A;
    border-radius: 3px;
    background: #FAF7EE;
    padding: 14px 18px;
    margin: 20px 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #3D3D3D;
    line-height: 1.75;
}

.pdp-teaser-icon {
    color: #9A7B0A;
    flex-shrink: 0;
    margin-top: 1px;
}

.pdp-teaser-content {
    min-width: 0;
}

.pdp-teaser strong {
    color: #0F1923;
    font-weight: 700;
}

.pdp-teaser a {
    color: #9A7B0A;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.pdp-teaser a:hover {
    color: #0F1923;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------
   Responsive mobile
   ----------------------------------------------------------------------- */
@media (max-width: 767px) {
    .pdp-details-row {
        flex-direction: column;
        gap: 12px;
    }
    .pdp-oem-col {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
    }
    .pdp-idband-item {
        flex: 1 1 40%;
        padding: 10px 14px;
    }
    .pdp-idband-sep {
        display: none;
    }
    .pdp-veh-link {
        padding: 10px 12px;
    }
    .pdp-veh-path {
        font-size: 12px;
    }
}

/* -----------------------------------------------------------------------
   Bloc OEM — état vide (option C, v2.1.1)
   ----------------------------------------------------------------------- */
.pdp-oem-empty {
    background: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #3D3D3D;
    line-height: 1.75;
    font-family: 'Manrope', sans-serif;
}

.pdp-oem-empty-link {
    color: #9A7B0A;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.pdp-oem-empty-link:hover {
    color: #0F1923;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------
   v2.1.6 — Bloc Véhicules compatibles (pleine largeur, après les 2 colonnes)
   Habillage frère du bloc OEM : en-tête navy/champagne, zébrage, ligne
   entière cliquable vers la page de la génération, liseré or au survol.
   ----------------------------------------------------------------------- */
.pdp-veh-block {
    border: 1px solid #0F1923;
    border-radius: 3px;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    margin: 12px 0 0;
}

.pdp-veh-header {
    background: #0F1923;
    color: #CDC69C;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 14px;
}

.pdp-veh-intro {
    background: #fff;
    padding: 9px 14px;
    font-size: 12px;
    color: #3D3D3D;
    font-weight: 500;
    border-bottom: 1px solid #E8E0D0;
}

.pdp-veh-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.pdp-veh-list li {
    border-bottom: 1px solid #E8E0D0;
}

.pdp-veh-list li:nth-child(even) {
    background: #F9F9F9;
}

.pdp-veh-list li:last-child {
    border-bottom: none;
}

.pdp-veh-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    text-decoration: none;
    box-shadow: inset 0 0 0 0 transparent;
}

/* =======================================================================
   INTERRUPTEUR — Effet de survol des lignes "Véhicules compatibles" (#2)
   Effet = liseré or interne 2px + fond crème + cible éclaircie/soulignée.
   DÉFAUT : ON (effet actif, identique aux versions précédentes).

   >>> POUR DÉSACTIVER : dans la ligne "@media all {" juste en dessous,
       remplacer le mot  all  par  none.
   >>> POUR RÉACTIVER : remettre  all.
   Puis vider le cache PrestaShop + Ctrl+F5 navigateur.

   (Pourquoi ça marche : "@media none" n'est jamais appliqué par le
   navigateur, donc l'effet de survol disparaît proprement ; tout le reste
   du bloc véhicules — couleurs, zébrage, chevron — est intact.)
   ======================================================================= */
@media none {
    .pdp-veh-link:hover,
    .pdp-veh-link:focus-visible {
        box-shadow: inset 0 0 0 2px #B99517;
        background: #FAF7EE;
        text-decoration: none;
    }

    .pdp-veh-link:hover .pdp-veh-target {
        color: #B99517;
        text-decoration: underline;
    }
}

.pdp-veh-path {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.pdp-veh-seg {
    color: #3D3D3D;
}

.pdp-veh-sepchar {
    color: #9A7B0A;
}

.pdp-veh-target {
    color: #9A7B0A;
}

.pdp-veh-chevron {
    color: #9A7B0A;
    font-size: 13px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   v2.1.7 — lien éditable du bandeau GPSR
   ----------------------------------------------------------------------- */
.pdp-gpsr-link {
    display: inline-block;
    margin-top: 6px;
    color: #9A7B0A;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: 'Manrope', sans-serif;
}

.pdp-gpsr-link:hover {
    color: #B99517;
    text-decoration: underline;
}
