/*
 * ===================================================================
 * === СТИЛИ ДЛЯ ПЛАГИНА AB PRODUCT RECOMMENDATIONS                ===
 * ===================================================================
 */

/* 1. Внешний вид секции */
.related.products {
    margin: 40px auto;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.related.products h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
   /* font-weight: 600; */
}

/* 2. Стилизация скроллера */
.related-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 0;
}

.related-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.related-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.related-scroll-item {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
}

.related-scroll-item .product {
    width: 100% !important;
    margin: 0 !important;
}

/* 3. Унификация внешнего вида карточек (ВАЖНО!) */

/* Скрываем кнопку "В корзину" и ее псевдо-элементы (серую полосу) */
.related-scroll-container .product .add_to_cart_button,
.related-scroll-container .product a.button {
    display: none !important;
}

/* Убираем лишние отступы, которые тема могла добавить под кнопку */
.related-scroll-container .product {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 4. Адаптивность */
@media (max-width: 768px) {
    .related-scroll-item {
        width: 190px;
    }
}

@media (max-width: 576px) {
    .related.products h2 {
        font-size: 18px;
    }
    .related-scroll-item {
        width: 170px;
    }
}