/* ── Variation Cards ──────────────────────────────────────────────────────── */

.eva-var-cards {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .4rem;
    width: 100%;
}

.eva-var-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    border: 2px solid #e0eaf5;
    border-radius: 8px;
    padding: .6rem .85rem;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    background: #fff;
    position: relative;
}
.eva-var-card:hover {
    border-color: #00a6fe;
    background: #f5fbff;
}
.eva-var-card--selected {
    border-color: #00a6fe !important;
    background: #f0f9ff !important;
    box-shadow: 0 0 0 3px rgba(0,166,254,.15);
}
.eva-var-card--out {
    opacity: .55;
    cursor: not-allowed;
}

/* Radio caché */
.eva-var-card input[type=radio] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #00a6fe;
    cursor: pointer;
}

/* Image */
.eva-var-card__img {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f9fc;
}
.eva-var-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}
.eva-var-card__no-img {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8f0f8;
}

/* Badge rupture */
.eva-var-card__stock-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .6rem;
    font-weight: 700;
    background: rgba(200,0,0,.75);
    color: #fff;
    border-radius: 3px;
    padding: 1px 4px;
    white-space: nowrap;
}

/* Texte — tout sur une ligne */
.eva-var-card__info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    flex: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}
.eva-var-card__name {
    font-size: .82rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.eva-var-card__name::after {
    content: '–';
    margin-left: .4rem;
    color: #bbb;
    font-weight: 400;
}
.eva-var-card__attr {
    font-size: .9rem;
    font-weight: 700;
    color: #1c5bb2;
    white-space: nowrap;
    flex-shrink: 0;
}
.eva-var-card__price {
    font-size: .95rem;
    font-weight: 700;
    color: #00a6fe;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Masque tout le bloc variations par défaut */
.single-product table.variations,
.single-product .variations_button .reset_variations,
.single-product .woocommerce-variation-add-to-cart .woocommerce-variation-description { display: none !important; }

@media (max-width: 600px) {
    .eva-var-card__name { display: none; }
    .eva-var-card__img  { width: 50px; height: 50px; }
}
