/* Product Slider CSS */
.section-product-slider {
    padding: 40px 0;
    background-color: #fff;
}

.slider-container {
    position: relative;
    padding: 0 20px;
}

.slider-heading {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.product-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.product-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.slider-item {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.slider-item:hover {
    transform: translateY(-5px);
}

.slider-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-info {
    padding: 10px 0;
    text-align: center;
}

.slider-title {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
}

.slider-price span {
    font-weight: 400;
    color: #666;
    font-size: 0.85rem;
}

/* Navigation Buttons (Optional - can be added if needed) */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

@media (max-width: 768px) {
    .slider-item {
        width: 160px;
    }

    .slider-img-wrap {
        height: 140px;
    }
}