/* Scroll container */
.category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    padding: 0.5rem 2.5rem; /* space for arrows */
}

/* Hide scrollbar (clean UI) */
.category-scroll::-webkit-scrollbar {
    display: none;
}
.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Items */
.category-item {
    flex: 0 0 auto;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* Arrows */
.scroll-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,1);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* Hide arrows on small screens (touch is enough) */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}