/* Category Carousel Styling */
#categories-list-pos-2 {
    padding: 20px 0;
}

#categories-list-pos-2 .swiper-slide {
    transition: opacity 0.3s ease;
}

#categories-list-pos-2 .swiper-button-next,
#categories-list-pos-2 .swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.9);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

#categories-list-pos-2 .swiper-button-next i,
#categories-list-pos-2 .swiper-button-prev i {
    line-height: 1;
}

#categories-list-pos-2 .swiper-button-next:after,
#categories-list-pos-2 .swiper-button-prev:after {
    display: none !important;
}

#categories-list-pos-2 .swiper-button-next:hover,
#categories-list-pos-2 .swiper-button-prev:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

#categories-list-pos-2 .swiper-button-next {
    right: 10px;
}

#categories-list-pos-2 .swiper-button-prev {
    left: 10px;
}

#categories-list-pos-2 .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Hover effect on images */
#categories-list-pos-2 img {
    border: 2px solid transparent;
}

#categories-list-pos-2 a:hover img {
    border-color: #000;
}

/* Mobile: ocultar botões de navegação, habilitar scroll nativo */
@media (max-width: 991.98px) {

    #categories-list-pos-2 .swiper-button-next,
    #categories-list-pos-2 .swiper-button-prev {
        display: none !important;
    }

    /* Container no mobile: sem overflow oculto do Swiper */
    #categories-list-pos-2 {
        overflow: visible !important;
    }

    /* Lista com scroll nativo horizontal */
    .cats-scroll-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 0 8px 0;
        /* Esconder scrollbar visualmente */
        scrollbar-width: none;
        -ms-overflow-style: none;
        list-style: none;
        margin: 0;
    }

    .cats-scroll-list::-webkit-scrollbar {
        display: none;
    }

    .cats-scroll-list>li {
        flex: 0 0 auto !important;
        width: auto !important;
        scroll-snap-align: start;
    }
}