/* cexproductvariants — FO (pastilles variantes + popup fiche produit, vue rapide, badge listes) */

.cexpv-block { margin: 16px 0; border: 1px solid #e4e4e4; border-radius: 4px; }

.cexpv-toggle {
    display: flex; align-items: center; width: 100%; gap: 10px; padding: 10px 12px;
    background: #fff; border: 0; cursor: pointer; text-align: left; font: inherit;
}
.cexpv-toggle:focus { outline: 2px solid #0091c8; outline-offset: -2px; }

.cexpv-collapsed-thumbs { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.cexpv-mini-thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 3px; background: #f7f7f7; }
.cexpv-mini-more { font-size: 12px; color: #6c868e; padding: 0 4px; }

.cexpv-toggle-label { flex: 1 1 auto; font-weight: 600; font-size: 14px; }
.cexpv-chevron { transition: transform .2s; }
.cexpv-toggle[aria-expanded="true"] .cexpv-chevron { transform: rotate(180deg); }

.cexpv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e4e4e4; }
.cexpv-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #f0f0f0;
}
.cexpv-row:last-child { border-bottom: 0; }
.cexpv-row--current { background: #f4f8fb; }

.cexpv-row-thumb img { width: 48px; height: 48px; object-fit: contain; border-radius: 3px; background: #f7f7f7; }

.cexpv-row-info { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.cexpv-row-label.badge { background: #eef1f4; color: #363a41; font-weight: 600; margin-right: 6px; }
.cexpv-row-brand { color: #6c868e; margin-right: 6px; }
.cexpv-row-ref { color: #8a8a8a; }
.cexpv-row-name { display: inline-block; font-weight: 600; color: inherit; text-decoration: none; margin-top: 2px; }
.cexpv-row-name:hover { text-decoration: underline; }
.cexpv-row-current-label { display: inline-block; margin-left: 6px; font-size: 11px; color: #0091c8; font-weight: 600; }

.cexpv-row-availability { display: inline-block; margin-top: 2px; font-size: 12px; }
.cexpv-row-availability.cexpv-available { color: #2f8132; }
.cexpv-row-availability.cexpv-oos { color: #b02a2a; }

.cexpv-row-price { flex-shrink: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.cexpv-row-regular-price { display: block; font-weight: 400; font-size: 12px; color: #8a8a8a; text-decoration: line-through; }

.cexpv-row-view { flex-shrink: 0; font-size: 13px; white-space: nowrap; }

.cexpv-list-badge {
    display: inline-block; margin-top: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600;
    color: #363a41; background: #eef1f4; border-radius: 10px;
}

@media (max-width: 576px) {
    .cexpv-collapsed-thumbs { display: none; }
    .cexpv-row { flex-wrap: wrap; }
    .cexpv-row-price, .cexpv-row-view { flex-basis: 100%; text-align: left; margin-top: 4px; }
}

/* ---- Pastilles « variantes » style Thomann (fiche produit), plan §8.1 (refonte v2) ----
   Pas de carrousel : rangée de pastilles qui retourne à la ligne (flex-wrap), une seule
   popup partagée sous la rangée dont le panneau visible change selon la pastille active. */

.cexpv-swatches-wrap { margin: 16px 0; }

.cexpv-swatches-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #363a41; }

.cexpv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.cexpv-swatch {
    position: relative; width: 64px; height: 64px; flex-shrink: 0; padding: 3px;
    background: #fff; border: 1px solid #e0e4e7; border-radius: 4px; cursor: pointer;
}
.cexpv-swatch:hover, .cexpv-swatch:focus, .cexpv-swatch[aria-expanded="true"] {
    border-color: #0091c8; outline: 0;
}
.cexpv-swatch--oos { opacity: .5; }
.cexpv-swatch img { display: block; width: 100%; height: 100%; object-fit: contain; }

.cexpv-swatch-check {
    position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; line-height: 16px;
    text-align: center; font-size: 11px; font-weight: 700; color: #fff;
    background: #0091c8; border-radius: 50%;
}

.cexpv-popup {
    display: none; margin-top: 10px; padding: 16px; background: #fff; border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.cexpv-swatches-wrap.cexpv-popup-is-open .cexpv-popup { display: block; }

.cexpv-popup-panel { display: none; gap: 16px; }
.cexpv-popup-panel.cexpv-popup-panel--active { display: flex; }

.cexpv-popup-image { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }

.cexpv-popup-body { flex: 1 1 auto; min-width: 0; }
.cexpv-popup-name { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.cexpv-popup-label.badge { background: #eef1f4; color: #363a41; font-weight: 600; margin-right: 4px; }

.cexpv-popup-availability { margin: 0 0 6px; font-size: 12px; }
.cexpv-popup-availability.cexpv-available { color: #2f8132; }
.cexpv-popup-availability.cexpv-oos { color: #b02a2a; }

.cexpv-popup-footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-top: 6px;
}

.cexpv-popup-price { font-size: 17px; font-weight: 700; }
.cexpv-popup-price-before { font-size: 11px; font-weight: 400; color: #6c868e; margin-bottom: 2px; }
.cexpv-popup-price .regular-price { margin-left: 6px; font-size: 12px; font-weight: 400; color: #8a8a8a; text-decoration: line-through; }

.cexpv-popup-cta {
    display: inline-block; padding: 8px 18px; border: 1px solid #0091c8; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #0091c8; background: #fff; text-decoration: none;
    white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.cexpv-popup-cta:hover, .cexpv-popup-cta:focus {
    background: #0091c8; color: #fff;
}
.cexpv-popup-cta--current {
    padding: 8px 0; border: 0; font-size: 12px; font-weight: 600; color: #0091c8;
}

@media (max-width: 400px) {
    .cexpv-popup-panel.cexpv-popup-panel--active { flex-direction: column; }
    .cexpv-popup-image { width: 100%; height: 140px; }
}
