/* scrolling.css - Horizontal scrolling styles */

.product-scroll-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 15px;
    margin: 0 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container .product-list {
    display: flex;
    flex-wrap: nowrap;   /* Prevent wrapping to enable horizontal scroll */
    gap: 15px;
    padding: 0;
    margin: 0;
}

.scroll-container .product-card {
    flex: 0 0 auto;  /* Don't grow or shrink */
    width: 180px;
}

/* Scroll buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* ✅ Merged disabled state + hover disabled */
.scroll-button:disabled,
.scroll-button:disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-button {
        display: none;
    }
    
    .scroll-container {
        margin: 0 20px;
        padding: 10px;
    }
    
    .product-scroll-wrapper {
        margin: 10px 0;
    }
}
