/* Container principal */
.fd-flash-deals-container {
    padding: 1rem;
    background: #f8f9fa;
}

.fd-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.fd-section-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.fd-section-header p {
    color: #666;
    font-size: 1rem;
}

/* Grille des offres */
.fd-flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

/* Message d'erreur et pas d'offres */
.fd-error-message, .fd-no-deals {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #666;
}

.fd-error-message i {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.fd-no-deals {
    font-size: 1.2rem;
    color: #666;
}

/* Carte de produit */
.fd-flash-deal-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.fd-flash-deal-card.fd-visible {
    opacity: 1;
    transform: translateY(0);
}

.fd-flash-deal-card:hover {
    transform: translateY(-3px);
}

/* Image du produit */
.fd-deal-image {
    position: relative;
    padding-top: 66.67%; /* Ratio 3:2 */
    background: #f8f9fa;
    overflow: hidden;
}

.fd-deal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fd-flash-deal-card:hover .fd-deal-image img {
    transform: scale(1.05);
}

/* Badges */
.fd-countdown-badge, .fd-discount-badge {
    position: absolute;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.fd-countdown-badge {
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255,255,255,0.9);
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fd-countdown-badge.fd-countdown-urgent {
    background: #dc3545;
    color: #fff;
    animation: pulse 1s infinite;
}

.fd-discount-badge {
    top: 0.5rem;
    right: 0.5rem;
    background: #28a745;
    color: #fff;
}

/* Informations du produit */
.fd-deal-info {
    padding: 0.75rem;
}

.fd-deal-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

.fd-deal-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
}

/* Prix */
.fd-deal-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.fd-price-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

.fd-price-old {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Barre de stock */
.fd-stock-info {
    margin-bottom: 0.5rem;
}

.fd-stock-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.fd-stock-progress {
    height: 100%;
    background: #007bff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fd-stock-info span {
    font-size: 0.8rem;
    color: #666;
}

/* Boutons d'action */
.fd-deal-action {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fd-btn-add-cart, .fd-btn-wishlist {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.fd-btn-add-cart {
    background: #218838;
    color: #fff;
    flex: 1;
}

.fd-btn-add-cart:hover {
    background: #1e7e34;
}

.fd-btn-add-cart.adding {
    background: #666;
    pointer-events: none;
}

.fd-btn-add-cart.added {
    background: #28a745;
}

.fd-btn-add-cart.error {
    background: #dc3545;
}

.fd-btn-wishlist {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem;
}

.fd-btn-wishlist:hover {
    background: #e2e6ea;
    color: #dc3545;
}

.fd-btn-wishlist.active {
    color: #dc3545;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.pulse {
    animation: pulse 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .fd-flash-deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .fd-deal-title {
        font-size: 0.9rem;
    }

    .fd-price-new {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fd-section-header h1 {
        font-size: 1.8rem;
    }

    .fd-flash-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .fd-deal-action {
        flex-direction: column;
        gap: 0.25rem;
    }

    .fd-btn-wishlist {
        width: 100%;
        justify-content: center;
    }
}
