/* Luxury Bestseller Section - Single Horizontal Row with Snap */

/* Override previous grid layout - make it horizontal scroll */
.products-scroll {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    gap: 24px;
    padding: 30px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4A2812 #f0f0f0;
}

/* Hide scrollbar on desktop for cleaner look */
.products-scroll::-webkit-scrollbar {
    height: 6px;
}

.products-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: #4A2812;
    border-radius: 10px;
}

.products-scroll::-webkit-scrollbar-thumb:hover {
    background: #3D2817;
}

/* Product Cards - Fixed width for horizontal scroll */
.product-card-scroll {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initial hidden state for luxury animation */
.product-card-scroll.luxury-hidden {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

/* In-view state - luxury animation */
.product-card-scroll.luxury-in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.45s ease-out,
                transform 0.45s ease-out;
}

/* Hover effect - subtle lift (only after animation completes) */
.product-card-scroll.luxury-in-view:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 12px 40px rgba(74, 40, 18, 0.15);
    z-index: 10;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .product-card-scroll.luxury-hidden {
        opacity: 1;
        transform: none;
    }
    
    .product-card-scroll.luxury-in-view {
        transition: none;
    }
    
    .product-card-scroll:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(74, 40, 18, 0.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .products-scroll {
        gap: 16px;
        padding: 20px 16px;
    }

    .product-card-scroll {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .product-card-scroll {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

/* Bestseller controls - Update to brown */
.bestsellers-control {
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4A2812;
}

.bestsellers-control:hover:not(.disabled) {
    background: #4A2812;
    border-color: #4A2812;
    color: white;
    transform: scale(1.05);
}

.bestsellers-control.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Smooth scroll behavior when using controls */
.products-scroll.scrolling {
    scroll-behavior: smooth;
}
