/* =====================================
   STYLE BADGE PANIER - Plus esthétique
   ==================================== */

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5);
    border: 2px solid white;
    line-height: 1;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Position alternative : en haut à droite à l'intérieur du bouton */
.btn-cart {
    overflow: visible !important;
}

.btn-cart .cart-badge {
    top: 4px;
    right: 4px;
}

.cart-badge:not([style*="display: none"]) {
    display: flex !important;
}

.cart-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.6);
}

/* Style pour le badge rouge */
.btn-cart .cart-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5);
    border: 2px solid white;
}

/* Pour les nombres à 2 chiffres */
.cart-badge[data-count]:not([data-count="0"]):not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]):not([data-count="7"]):not([data-count="8"]):not([data-count="9"]) {
    min-width: 24px;
    font-size: 10px;
    padding: 0 5px;
}

/* Animation d'apparition */
@keyframes badgePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-badge.show {
    animation: badgePop 0.3s ease-out;
}

/* Version mobile */
@media (max-width: 767px) {
    .slicknav_nav .btn-cart .cart-badge,
    .slicknav_nav .cart-badge {
        top: 4px;
        right: 4px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        border-width: 1.5px;
    }
}

