/* ============================================
   SECTION PRODUITS SIMILAIRES - AMÉLIORÉE
   Design moderne avec carousel et animations
   ============================================ */

/* Header de section amélioré */
.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.section-header-content {
    flex: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ff8c1f;
    border-radius: 9999px;
    color: #ea580c;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.2);
}

.section-title-enhanced {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-view-all:hover::before {
    left: 100%;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 31, 0.4);
    transform: translateY(-2px);
}

/* Container carousel */
.products-carousel-container {
    position: relative;
    padding: 0 3rem;
}

.products-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Navigation carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    color: white;
    border-color: #ff8c1f;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 31, 0.4);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carte produit améliorée */
.product-card-enhanced {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 31, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card-enhanced:hover {
    border-color: #ff8c1f;
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Image wrapper */
.product-card-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

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

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

.product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Badges sur la carte */
.product-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-shipping {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Actions rapides */
.product-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card-enhanced:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action:hover {
    background: white;
    color: #ff8c1f;
    border-color: #ff8c1f;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.3);
}

/* Contenu de la carte */
.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s;
}

.product-card-title:hover {
    color: #ff8c1f;
}

/* Rating */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars-small {
    display: flex;
    gap: 0.125rem;
}

.star-small {
    width: 1rem;
    height: 1rem;
}

.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: #d1d5db;
}

.rating-count {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Prix */
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ea580c;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1;
}

.price-currency {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9a3412;
}

/* Formulaire et bouton */
.product-card-form {
    margin-top: auto;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 31, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart:active::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 12px rgba(255, 140, 31, 0.4);
    transform: translateY(-2px);
}

/* Indicateurs de carousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff8c1f 0%, #ea580c 100%);
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title-enhanced {
        font-size: 2rem;
    }
    
    .products-carousel-container {
        padding: 0 2rem;
    }
    
    .product-carousel-item {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .section-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title-enhanced {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .btn-view-all {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .products-carousel-container {
        padding: 0 1rem;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
    
    .product-carousel-item {
        flex: 0 0 200px;
    }
    
    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-title-enhanced {
        font-size: 1.5rem;
    }
    
    .products-carousel-container {
        padding: 0 0.5rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .product-carousel-item {
        flex: 0 0 180px;
    }
    
    .product-card-content {
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
}

/* Effet de chargement skeleton */
.product-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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


