/* Fix pour Font Awesome - Badge du panier */

/* S'assurer que le header-icon est en position relative pour le badge */
.header-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Badge du panier - visible au-dessus de l'icône */
.header-icon .badge,
.header-icon .cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background-color: var(--secondary-color, #e74c3c) !important;
    color: white !important;
    font-size: 0.70rem !important;
    font-weight: bold !important;
    padding: 2px 6px !important;
    border-radius: 50% !important;
    min-width: 18px !important;
    height: 18px !important;
    text-align: center !important;
    line-height: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Animation du badge quand il change */
.header-icon .badge.updated {
    animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Dark mode */
[data-theme="dark"] .header-icon .badge,
[data-theme="dark"] .header-icon .cart-badge {
    background-color: var(--secondary-color, #ff6b6b) !important;
    border-color: var(--bg-white, #161b22) !important;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5) !important;
}
