<div class="site-block site-block_gray catalog">
<div class="container">
<h1 class="site-heading">{{ title|default|raw }}</h1>
</div>
{% if is_show_children_category is defined and is_show_children_category %}
<div class="container">
<div class="catalog__categories-list">
{% for children in page.childrens|filter(v => v.isActive) %}
<a href="{{ children.uri }}" class="item {{ children.lft <= page.lft and children.rgt >= page.rgt ? 'current' }}">{{ children.name }}</a>
{% endfor %}
</div>
</div>
{% endif %}
{% if product_item_list %}
<div class="container catalog-products">
{% for product_item in product_item_list %}
<a href="{{ path('mldev-front-product-show', { 'id': product_item.id }) }}" class="catalog__item catalog__item_product">
<div class="item__image">
{% if product_item.product.images|length %}
<img src="{{ asset(product_item.product.images.first.uri) }}" title="{{ product_item.product.images.first.title|default(product_item.name) }}" alt="{{ product_item.product.images.first.alt|default(product_item.name) }}">
{% endif %}
</div>
<div class="item__name">{{ product_item.name }}</div>
<div class="item__more">
<span>подробнее</span>
<svg>
<use xlink:href="/images/sprite..svg#arrow-diagonal" />
</svg>
</div>
</a>
{% endfor %}
</div>
{% else %}
<div class="container">
<p>К сожалению, нет товаров, удовлетворяющих выбранным условиям.<br>Попробуйте изменить критерии поиска.</p>
</div>
{% endif %}
<div class="catalog__bg">
<img src="{{ asset('images/products..svg') }}" alt="">
</div>
</div>