.popular-products-section {
    padding: 4rem 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.popular-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.popular-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.products-grid {
    display: grid;
    gap: 2rem;
    max-width: 100%;
}

.products-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.products-grid-category {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.product-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(221, 190, 88, 0.2);
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0) 0%, rgba(52, 152, 219, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.voucher-card-large {
    min-height: 280px;
}

.voucher-card-category {
    min-height: 120px;
    border-radius: 12px;
}

.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.product-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 4px;
    border-radius: 16px;
}

.product-image-wrapper {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(40, 40, 40, 0.9) 100%);
    position: relative;
}

.voucher-card-category .product-image-wrapper {
    padding: 1rem;
}

/* Images produit */
.product-image {
    width: 100%;
    height: auto;
    max-height: 140px;
    max-width: 140px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.voucher-card-category .product-image {
    max-height: 60px;
    max-width: 60px;
    border-radius: 8px;
}

.product-title {
    padding: 1.5rem 2rem 2rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #DDBE58;
    text-align: center;
    line-height: 1.4;
    background: transparent;
    position: relative;
    text-shadow: 0 0 5px rgba(221, 190, 88, 0.3);
}

.product-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #DDBE58, #C4A84A);
    border-radius: 1px;
}

.voucher-card-category .product-title {
    padding: 0.75rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .products-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .products-grid-category {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .voucher-card-large {
        min-height: 250px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .popular-products-section {
        padding: 3rem 0;
    }

    .popular-products-section .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .products-grid-category {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .voucher-card-large {
        min-height: 220px;
    }

    .product-image-wrapper {
        padding: 1.5rem;
    }

    .voucher-card-category .product-image-wrapper {
        padding: 0.75rem;
    }

    .product-image {
        max-height: 100px;
        max-width: 100px;
    }

    .voucher-card-category .product-image {
        max-height: 50px;
        max-width: 50px;
    }

    .product-title {
        font-size: 1.1rem;
        padding: 1rem 1.5rem 1.5rem;
    }

    .voucher-card-category .product-title {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .popular-products-section {
        padding: 2rem 0;
    }

    .popular-products-section .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-grid-large {
        gap: 1rem;
    }

    .products-grid-category {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .voucher-card-large {
        min-height: 200px;
        border-radius: 12px;
    }

    .voucher-card-category {
        min-height: 100px;
        border-radius: 8px;
    }

    .product-image-wrapper {
        padding: 1rem;
    }

    .voucher-card-category .product-image-wrapper {
        padding: 0.5rem;
    }

    .product-image {
        max-height: 80px;
        max-width: 80px;
    }

    .voucher-card-category .product-image {
        max-height: 40px;
        max-width: 40px;
    }

    .product-title {
        font-size: 1rem;
        padding: 0.75rem 1rem 1rem;
    }

    .voucher-card-category .product-title {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem 0.75rem;
    }
}

@media (prefers-color-scheme: dark) {
    .popular-products-section {
        background: #1a1a1a !important;
    }

    .section-title {
        color: #f8f9fa;
    }

    .product-card {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .product-image-wrapper {
        background: #3d3d3d;
    }

    .product-title {
        color: #f8f9fa;
        background: #2d2d2d;
    }
}