/**
 * Codex, 12.11.2026.
 * На экранах уже штатного брейкпоинта шаблона (< 744px) карточки товаров
 * в сетках каталога — по одной в ряд на всю ширину контейнера.
 * Слайдеры главной и блока «С этим товаром» / «Ранее вы смотрели» не затрагиваются.
 */
@media (max-width: 743px) {
    .category__main-products-items,
    .search_result,
    .collection-items__wrapper {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .category__main-products-items > *,
    .search_result > *,
    .collection-items__wrapper > * {
        min-width: 0;
        max-width: 100%;
    }

    .category__main-products-items .product-card,
    .search_result .product-card,
    .collection-items__wrapper .product-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .category__main-products-items .product-card__images .product-card__image img,
    .search_result .product-card__images .product-card__image img,
    .collection-items__wrapper .product-card__images .product-card__image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    /* Длинный H1 + счётчик: счётчик переносится на следующую строку, без разрыва слов. */
    .category__top {
        flex-wrap: wrap;
        max-width: 100%;
        min-width: 0;
    }

    .category__top h1 {
        min-width: 0;
        flex: 0 1 auto;
        overflow-wrap: normal;
        word-break: normal;
    }

    .category__top .product-count {
        margin-left: auto;
    }
}
