/* Product Carousels Styles */
.product-carousel {
    padding: 60px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.product-carousel:nth-child(even) {
    background: white;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-header h2 {
    font-size: 2rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -15px;
}

.product-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 0 15px;
}

.product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.product-overlay .btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.product-overlay .btn:hover {
    background: white;
    color: #007bff;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007bff;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ddd;
    font-size: 12px;
}

.stars i.filled {
    color: #ffc107;
}

.rating-count {
    font-size: 12px;
    color: #666;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.current-price {
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
}

/* Carousel specific styles */
.immanquables {
    background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
}

.immanquables .carousel-header h2 {
    color: #dc3545;
}

.immanquables .carousel-btn {
    background: #dc3545;
}

.immanquables .carousel-btn:hover {
    background: #c82333;
}

.meilleures-ventes {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
}

.meilleures-ventes .carousel-header h2 {
    color: #007bff;
}

.nouveautes {
    background: linear-gradient(135deg, #f0fff4 0%, #f8f9fa 100%);
}

.nouveautes .carousel-header h2 {
    color: #28a745;
}

.nouveautes .carousel-btn {
    background: #28a745;
}

.nouveautes .carousel-btn:hover {
    background: #1e7e34;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 250px;
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 220px;
    }
    
    .carousel-header h2 {
        font-size: 1.6rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .product-carousel {
        padding: 40px 0;
    }
    
    .carousel-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .product-card {
        flex: 0 0 200px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 13px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 180px;
    }
    
    .carousel-container {
        margin: 0 -10px;
    }
    
    .product-carousel-track {
        padding: 0 10px;
        gap: 15px;
    }
    
    .carousel-header h2 {
        font-size: 1.4rem;
    }
}

/* Touch support for mobile */
@media (hover: none) {
    .product-overlay {
        opacity: 0 !important;
    }
    
    .product-card:active .product-overlay {
        opacity: 1 !important;
    }
}

/* Loading states */
.product-card.loading {
    opacity: 0.6;
}

.product-card.loading .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility improvements */
.carousel-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.product-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth scrolling for touch devices */
.product-carousel-track {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}