/* ============================================
   SECTION PRODUITS VUS - SLIDER HORIZONTAL
   ============================================ */

.rv-panier-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    margin-top: 50px;
    border-top: 3px solid #ff6600;
}

.rv-panier-section .rv-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-panier-section .rv-title i {
    color: #ff6600;
}

/* ✅ CONTENEUR SLIDER - Une seule ligne défilable */
.rv-slider-container {
    position: relative;
    overflow: hidden;
}

/* ✅ PISTE SLIDER - Flex horizontal */
.rv-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #e9ecef;
    padding-bottom: 15px;
    scroll-behavior: smooth;
}

/* Scrollbar personnalisée */
.rv-slider-track::-webkit-scrollbar {
    height: 8px;
}

.rv-slider-track::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.rv-slider-track::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 4px;
}

.rv-slider-track::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* ✅ CARTE PRODUIT - Taille fixe pour slider */
.rv-panier-card {
    flex: 0 0 180px; /* Taille fixe, ne pas rétrécir */
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.rv-panier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.rv-panier-image {
    height: 140px;
    overflow: hidden;
    position: relative;
}

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

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

.rv-badge-vu {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rv-panier-info {
    padding: 15px;
}

.rv-panier-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.rv-panier-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 12px;
}

.rv-panier-actions {
    display: flex;
    gap: 8px;
}

.rv-btn-voir {
    flex: 1;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.rv-btn-voir:hover {
    background: #e9ecef;
    color: #ff6600;
    border-color: #ff6600;
}

.rv-btn-ajouter {
    flex: 1;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rv-btn-ajouter:hover {
    background: #e55a00;
    transform: scale(1.02);
}

/* ✅ BOUTONS DE NAVIGATION (optionnels) */
.rv-slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.rv-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff6600;
    background: white;
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.rv-slider-btn:hover {
    background: #ff6600;
    color: white;
}

/* ✅ INDICATEURS (dots) */
.rv-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.rv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}

.rv-dot.active {
    background: #ff6600;
    width: 24px;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .rv-panier-section {
        padding: 25px 0;
    }
    
    .rv-panier-card {
        flex: 0 0 150px;
    }
    
    .rv-panier-image {
        height: 120px;
    }
    
    .rv-panier-info {
        padding: 12px;
    }
}