/* Badges de promotion pour les éléments du menu */
.menu-item-container {
    position: relative;
    overflow: visible;
}

.promotion-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    border: 2px solid white;
    min-width: 40px;
    text-align: center;
    animation: pulse-badge 2s infinite;
}

.promotion-badge.category-promotion {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.promotion-badge.item-promotion {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Animation du badge */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Badge avec icône */
.promotion-badge i {
    margin-right: 3px;
    font-size: 10px;
}

/* Styles pour différents types de promotions */
.promotion-badge.discount {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
}

.promotion-badge.new {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

.promotion-badge.special {
    background: linear-gradient(135deg, #9c27b0 0%, #6a1b9a 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-badge {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 10px;
        top: -6px;
        right: -6px;
    }
}

/* Badge sur l'image du produit */
.b-img {
    position: relative;
    overflow: visible;
}

.b-img .promotion-badge {
    top: 8px;
    right: 8px;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Effet hover sur le badge */
.promotion-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Badge avec texte long */
.promotion-badge.long-text {
    font-size: 9px;
    padding: 3px 6px;
    max-width: 60px;
    line-height: 1.2;
}