/* Corner Ribbons - Rubans d'angle pour produits */

.product-ribbon-container {
    position: relative;
    overflow: hidden; /* Important pour que le ruban ne déborde pas */
}

.corner-ribbon {
    position: absolute;
    top: 10px;
    right: -35px;
    z-index: 10;
    padding: 5px 40px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Style pour chaque type de ruban */
.ribbon-nouveau {
    background: linear-gradient(135deg, #28a745 0%, #20893a 100%);
}

.ribbon-promo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: pulse-ribbon 2s ease-in-out infinite;
}

.ribbon-solde {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: pulse-ribbon 2s ease-in-out infinite;
}

.ribbon-super-affaire {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    animation: pulse-ribbon 2s ease-in-out infinite;
}

.ribbon-derniere-piece {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.ribbon-serie-speciale {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Animation de pulsation pour les promotions */
@keyframes pulse-ribbon {
    0%, 100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: rotate(45deg) scale(1.02);
    }
}

/* Responsive - ajustement pour mobile */
@media (max-width: 600px) {
    .corner-ribbon {
        font-size: 9px;
        padding: 4px 35px;
        top: 8px;
        right: -38px;
    }
}

/* Variante pour les grandes images (page produit) */
.product-image-large .corner-ribbon {
    font-size: 14px;
    padding: 8px 50px;
    top: 15px;
    right: -40px;
}
