/* =========================================================
   Soins (Massages / Pressothérapie)
   ========================================================= */

.escv-extras {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---- Bouton retour ---- */
.escv-back-btn-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 6px;
}

.escv-back-btn {
    background: #f3f4f6;
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.escv-back-btn:hover {
    background: #e9eaee;
}

/* ---- Titre & texte d’intro ---- */
.escv-extras-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 10px 0 4px;
    text-align: center;
}

.escv-extras-note {
    color: rgb(150, 44, 44);
    text-align: center;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   Cartes de soins
   ========================================================= */

.escv-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 36px;
}

.escv-extra-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 18px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.08s ease;
}

.escv-extra-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.escv-extra-card[aria-pressed="true"] {
    border-color: #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

/* Bandeau haut (ex : “PACK 1”) */
.escv-extra-top {
    height: 56px;
    border: 2px solid #111;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    margin-bottom: 12px;
}

.escv-extra-chip {
    background: #111;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    letter-spacing: 0.3px;
}

/* Corps de carte */
.escv-extra-body {
    display: grid;
    gap: 8px;
    text-align: center;
}

.escv-extra-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-decoration: underline;
    color: #0f172a;
}

.escv-extra-price {
    font-size: 15px;
    color: #111;
    opacity: 0.9;
}

.escv-extra-toggle {
    justify-self: center;
    appearance: none;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.escv-extra-toggle:hover {
    transform: translateY(-1px);
    background: #1e293b;
}

.escv-extra-card[aria-pressed="true"] .escv-extra-toggle {
    background: #374151;
}


/* Centrer la grille quand il n'y a qu'une carte (massage indisponible) */
.escv-extras-grid.is-single {
    grid-template-columns: minmax(280px, 760px);
    justify-content: center;
}

/* Corps horizontal : image à gauche, infos à droite */
.escv-extra-body.is-horizontal {
    display: grid;
    grid-template-columns: 160px 1fr;
    column-gap: 16px;
    align-items: center;
    text-align: left;
    /* au lieu de center */
}

/* Média pressothérapie */
.escv-extra-media img,
.escv-extra-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #f5f7fa;
}

/* Colonne droite (titre, description, bas) */
.escv-extra-info {
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* titre / description / bas */
    row-gap: 8px;
}

/* Description */
.escv-extra-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
}

.escv-extra-desc p {
    margin: 0 0 8px;
}

.escv-extra-desc .escv-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

/* Ligne du bas (prix + bouton) */
.escv-extra-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Responsive */
@media (max-width: 780px) {
    .escv-extras-grid {
        grid-template-columns: 1fr;
        /* 1 carte par ligne en petit écran */
    }

    .escv-extra-body.is-horizontal {
        grid-template-columns: 1fr;
        /* on empile */
        row-gap: 10px;
    }

    .escv-extra-media img {
        height: 160px;
        /* un peu plus haute pour mobile */
        object-fit: contain;
        /* éviter de couper les visuels étroits */
        background: #fff;
        /* fond neutre autour si letterboxed */
    }

    .escv-extra-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .escv-extra-toggle {
        width: 100%;
    }
}


/* =========================================================
   Bouton Continuer
   ========================================================= */

.escv-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.escv-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #0f172a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    transition: background 0.2s;
}

.escv-continue:hover {
    filter: brightness(1.08);
}

/* =========================================================
   Responsive Design
   ========================================================= */

@media (max-width: 1080px) {
    .escv-extras-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .escv-extra-card {
        padding: 16px;
    }

    .escv-extra-name {
        font-size: 19px;
    }

    .escv-extra-top {
        height: 52px;
    }
}

@media (max-width: 700px) {
    .escv-extras {
        padding: 0 12px;
    }

    .escv-extras-title {
        font-size: 20px;
    }

    .escv-extra-name {
        font-size: 18px;
    }

    .escv-extra-toggle {
        padding: 7px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .escv-extra-card {
        border-radius: 14px;
        padding: 14px;
    }

    .escv-extra-media+.escv-extra-name {
        margin-top: 6px;
    }

    .escv-extra-top {
        height: 48px;
        padding: 0 10px;
    }

    .escv-extra-chip {
        font-size: 11px;
        padding: 3px 7px;
    }

    .escv-extra-card.is-disabled {
        opacity: .45;
        filter: grayscale(1);
        pointer-events: none;
    }

    .escv-extra-note {
        color: orange;
        font-size: 14px;

    }

    .escv-extra-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .escv-extra-media {
        width: 100%;
        height: 140px;
        border-radius: 12px;
        overflow: hidden;
        background: #f5f7fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}