.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: badge-appear 0.5s ease;
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-bestseller {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.badge-bestseller::before {
    content: '🔥 ';
}

.badge-new {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.badge-new::before {
    content: '✨ ';
}

.badge-sale {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(244, 67, 54, 0.5);
    }
}

.badge-sale::before {
    content: '⚡ ';
}

.badge-stock-low {
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
    color: white;
    top: auto;
    bottom: 10px;
    left: 10px;
    font-size: 11px;
}

.badge-stock-low::before {
    content: '⚠️ ';
}

.product-miniature .product-thumbnail {
    position: relative;
}

.product-badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-badges-container .product-badge {
    position: static;
}

@media (max-width: 768px) {
    .product-badge {
        font-size: 10px;
        padding: 6px 10px;
        top: 5px;
        left: 5px;
    }

    .badge-stock-low {
        bottom: 5px;
        left: 5px;
    }
}
