.tbl-declinaisons {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
}

.tbl-declinaisons thead th {
    border-bottom: 2px solid #ccc;
    text-align: left;
    padding: 8px;
    background-color: #f8f8f8;
}

.tbl-declinaisons tbody td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

.stock-bar {
    height: 6px;
    width: 100%;
    border-radius: 3px;
    margin-top: 4px;
}

.stock-vert {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.stock-rouge {
    background: linear-gradient(90deg, #e53935, #ef9a9a);
}

/* Quantité: input et boutons compacts, sans chevrons */
.qty-input {
    width: 32px;
    height: 22px;
    font-size: 13px;
    text-align: center;
    margin: 0 2px;
    padding: 2px;
    border-radius: 3px;
    border: 1px solid #ccc;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}
/* Boutons + et - compacts */
.qty-increase,
.qty-decrease {
    background-color: #eee;
    border: 1px solid #ccc;
    color: #444;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    border-radius: 3px;
    user-select: none;
    min-width: 22px;
    min-height: 22px;
    transition: background-color 0.2s;
}
.qty-increase:hover,
.qty-decrease:hover {
    background-color: #ddd;
}
/* Bouton ajouter au panier : rouge, survol noir/rouge */
.ajouter-panier {
    cursor: pointer;
    padding: 4px 12px;
    background-color: #e53935!important;
    color: #fff!important;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}
.ajouter-panier:hover {
    background-color: #000!important;
    color: #e53935;
}
/* Cercle nombre panier : fond noir, texte blanc */
.quantite-panier-cercle {
    display: inline-block;
    width: 32px;       /* agrandi le diamètre */
    height: 32px;      /* agrandi le diamètre */
    font-size: 18px;   /* taille de police plus grande */
    font-weight: bold;
    color: #fff;
    background-color: #000;
    border-radius: 50%; 
    text-align: center;
    line-height: 32px; /* doit correspondre à la hauteur pour centrer verticalement */
    margin: 0 auto;
    vertical-align: middle;
}


.declinaison-sku {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.declinaison-sku-text {
    font-weight: 400;
     font-size:12px;
}

.declinaison-ean {
    margin-left: 10px;
    color: #000;
    font-weight:400;
    font-size:12px;
}

@media screen and (max-width: 700px) {
    .tbl-declinaisons {
        font-size: 13px;
    }
    .qty-input,
    .qty-increase,
    .qty-decrease {
        font-size: 12px;
        min-width: 18px;
        min-height: 18px;
        padding: 1px 4px;
    }
    .ajouter-panier {
        font-size: 13px;
        padding: 3px 6px;
    }
    .quantite-panier-cercle {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 11px;
    }
}
/* Pour avoir une largeur minimale à la colonne Stock */
.tbl-declinaisons td[data-label="Stock"] {
    min-width: 80px; /* Ajuste selon besoin */
    text-align: center; /* Centrer horizontalement */
    vertical-align: middle; /* Centrer verticalement */
    font-weight: 600;
    font-size: 18px; /* augmentation de la taille du chiffre */
    color: #222; /* couleur pour meilleure lisibilité */
}

/* Centrer aussi le texte et la barre de stock */
.tbl-declinaisons td[data-label="Stock"] .stock-bar {
    margin-left: auto;
    margin-right: auto;
    width: 60px; /* ou autre largeur adaptée */
}

/* Animation pulse pour le cercle panier */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        background-color: #28a745;
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.6s ease-in-out;
}

/* Style amélioré pour le bouton Ajouter */
.ajouter-panier {
    transition: all 0.3s ease;
}

.ajouter-panier:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}