{% if filters is not empty %}
<section id="filters" class="unselectble">
	<section class="unselectable" data-type="select" tabindex="4">
		{% set buffer_brand = session.buffer.catalog.filters.brand ?? account.buffer.catalog.filters.brand %}
		<input name="brand" type="radio" id="brand_title" {% if buffer_brand is empty %}checked{% endif %}>
		<label for="brand_title" type="button">{{ language.name == 'ru' ? 'Бренд' : 'Brand' }}</label>
		<!-- <input name="brand" type="radio" id="brand_all" oninput="core.catalog.parameters.set('brand', null); core.catalog.search(event)">
		<label for="brand_all" type="button">
			{{ language.name == 'ru' ? 'Все бренды' : 'All brands' }}
		</label> -->
		{% for brand in filters.brands %}
		<input name="brand" type="radio" id="brand_{{ loop.index }}"
			oninput="core.catalog.parameters.set('brand', '{{ brand }}'); core.catalog.search(event)" {% if
			brand==buffer_brand %}checked{% endif %}>
		<label for="brand_{{ loop.index }}" type="button">
			{{ brand }}
		</label>
		{% endfor %}
		<button onclick="core.catalog.parameters.set('brand', null); core.catalog.search(event)"><i
				class="icon small close"></i></button>
	</section>
</section>
{% endif %}
