{% sw_extends '@Storefront/storefront/element/cms-element-manufacturer-overview.html.twig' %}
{% block element_manufacturer_overview_upper_nav %}
<section class="brand-listing-navigation overflow-x-auto">
<ul class="brand-listing-nav-list flex divide-grey-400 justify-center w-max lg:w-full">
{% for key, value in manufacturers %}
<li class="brand-listing-nav-item nav-item_{{ key }}">
<a href="#brand_{{ key }}"
class="brand-listing-nav-trigger flex items-center justify-center uppercase text-base text-display text-grey-600 transition hover:text-grey-200 p-3"
id="trigger_{{ key }}">{{ key }}</a>
</li>
{% endfor %}
</ul>
</section>
{% endblock %}
{% block element_manufacturer_overview_main_container %}
<section data-element="{{ element.type }}" class="boxed-layout" id="brand-listing-container">
{% if manufacturers|length > 0 %}
<span id="brand-listing-count" class="hidden">{{ manufacturers|length }}</span>
<ul class="max-w-[1710px] w-full pl-6 lg:pb-10 mx-auto columns-1 sm:columns-2 md:columns-3 grid-gap-10 pb-5 lg:py-5">
{% for index, merken in manufacturers %}
{# {% for index, merken in alphabet %} #}
{% if merken %}
<li class="brand-listing-collection items-start grid-gap-6 mb-6 break-inside-avoid lg:grid-gap-4 md:mr-8">
<div class="relative h-full flex">
<div class="flex justify-center items-center w-6 h-6 scroll-mt-4 text-black absolute -left-[34px] top-[10px] text-2xl font-display"
id="brand_{{ index }}">
{{ index }}
</div>
<span class="w-full h-[1px] bg-grey-200 my-6"></span>
</div>
<ul class="brand-list grid">
{% if merken %}
{% for index, brand in merken %}
<li class="brand-listing-item py-2" data-id="{{ brand.id }}">
<a {% if brand.url %} href="{{ brand.url }}" {% endif %}
class="inline-block text-sm font-bold font-accent uppercase tracking-wider text-black{% if brand.url %} btn-underline{% endif %}"
title="{{ brand.name }}">
{{ brand.name }}
</a>
</li>
{% endfor %}
{% else %}
<li class="no-brands-found text-sm py-2">
{{ "pages.brands.notFound"|trans|sw_sanitize }}
</li>
{% endif %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
<span id="brand-listing-count" class="hidden">0</span>
<div class="text-lg text-center mx-auto my-20">{{ "pages.brands.notFound"|trans|sw_sanitize }}</div>
{% endif %}
</section>
{% endblock %}