.custom-variants-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* espace réduit entre les lignes */
    overflow: hidden;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 16px; /* padding plus petit */
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-height: 65px; /* moins haut */
    cursor: pointer;
    transition: box-shadow 0.2s ease; /* uniquement ombre, pas de scale */
    max-width: 100%;
}

.variant-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12); /* léger effet hover sans zoom */
}

.variant-left {
    display: flex;
    align-items: center;
    gap: 12px; /* réduit */
}

.variant-img {
    width: 55px; /* taille image réduite */
    height: 55px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* pas d’effet de zoom sur hover */
.variant-item:hover .variant-img {
    transform: none;
}

.variant-name {
    font-weight: 600;
    font-size: 15px; /* un peu plus compact */
    color: #111;
}

/* Pastille stock */
.variant-stock {
    background-color: #28c76f;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Prix */
.variant-price {
    background-color: #f3f4f6;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Actions */
.variant-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Boutons +/- */
.variant-actions button.qty-minus,
.variant-actions button.qty-plus {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #f7f7f7;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background-color 0.25s ease;
}

.variant-actions button.qty-minus:hover,
.variant-actions button.qty-plus:hover {
    background-color: #e0e0e0;
}

/* Input quantité */
.variant-actions input[type="number"] {
    width: 48px;
    height: 34px;
    text-align: center;
    font-size: 14px;
    padding: 2px;
    border: 1px solid #bbb;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.variant-actions input[type="number"]:focus {
    border-color: #28c76f;
    outline: none;
}

/* Bouton panier */
.variant-actions .add-to-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: #d62828;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.variant-actions .add-to-cart:hover {
    background-color: green;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Toast */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.toast.show {
    opacity: 1;
}


@media (max-width: 992px) {
.variant-item {
    display: block;
  }
  .variant-left {
    display: flex;
    padding-bottom: 5%;
}
}
