/* ======================================================================
   Productscategory thumbs scroll (bxSlider replacement)
   ====================================================================== */

.category-thumbs-wrapper {
    position: relative;
    overflow: hidden;
}

/* Horizontaal scrollbare lijst (native, touch-safe) */
.category-thumbs-wrapper .thumbs_list {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Flex container voor producten */
.category-thumbs-wrapper .thumbs_list_frame {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 6px 0 10px;
}

/* Individuele product box */
.category-thumbs-wrapper li.product-box {
    flex: 0 0 auto;
    width: 160px;
    position: relative;
}

/* Mobile sizing */
@media (max-width: 768px) {
    .category-thumbs-wrapper li.product-box {
        width: 140px;
    }
}

/* ======================================================================
   Product container styling (gelijk aan grid)
   ====================================================================== */

#productscategory_list li .product-container,
#productscategory_list li.product-box {
    background: #fff;
    padding: 10px;
    border-radius: 14px;
    transition: all 0.3s ease-in-out;
}

/* Afbeeldingscontainer */
#productscategory_list .product-image-container {
    border: 1px solid #dadce0;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    border-radius: 14px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Producttitel – voorkomt overlap */
#productscategory_list h3.product-title {
    min-height: 48px;
    margin-bottom: 6px;
    line-height: 1.25;
}

/* ======================================================================
   Hover effecten – DESKTOP ONLY (zoals product grid)
   ====================================================================== */

@media (min-width: 1200px) {

    #productscategory_list li.hovered {
        z-index: 10;
    }

    #productscategory_list li.hovered .product-container,
    #productscategory_list li.hovered.product-box {
        box-shadow: 0 0 13px rgba(0, 0, 0, 0.17);
        transform: translateY(-2px);
    }

    #productscategory_list li.hovered .product-image-container {
        border-color: #c0c4cc;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    #productscategory_list li.hovered .quick-view,
    #productscategory_list li.hovered .functional-buttons,
    #productscategory_list li.hovered .button-container,
    #productscategory_list li.hovered .comments_note,
    #productscategory_list li.hovered .content_price {
        display: block;
    }
}

/* ======================================================================
   View scroll spacer – mobile fix (geen ghost touch / freeze)
   ====================================================================== */

@media (max-width: 768px) {
    span.view_scroll_spacer {
        float: none;
        width: auto;
        padding-left: 0;
        margin-top: 0;

        position: absolute;
        top: 50%;
        left: 6px;
        transform: translateY(-50%) translateZ(0);
        z-index: 5;

        pointer-events: auto;
        will-change: transform;
    }
}

/* Parent container vereist voor absolute positioning */
#views_block {
    position: relative;
}

/* Accessibility & performance improvement */
@media (prefers-reduced-motion: no-preference) {
    .category-thumbs-wrapper .thumbs_list {
        scroll-behavior: smooth;
    }
}

.category-thumbs-wrapper li.product-box {
    min-height: 260px;
}
