{% block element_manufacturer_overview %}
{% set manufacturers = element.data.get('manufacturersSorted') %}
{% block element_manufacturer_overview_upper_nav %}
<section class="brand-listing-navigation lg:hidden">
<ul class="brand-listing-nav-list flex overflow-x-auto divide-x divide-grey-400">
{% for key, value in manufacturers %}
<li class="brand-listing-nav-item nav-item_{{ key }} flex border-y border-y-grey-400 first:border-l first:border-l-grey-400 last:!border-r last:border-r-grey-400 first:ml-box last:mr-box">
<a href="#brand_{{ key }}"
class="brand-listing-nav-trigger flex items-center justify-center uppercase font-medium text-black w-12 h-12 transition hover:bg-blue-500 hover:text-white"
id="trigger_{{ key }}">{{ key }}</a>
</li>
{% endfor %}
</ul>
</section>
{% endblock %}
{% block element_manufacturer_overview_main_container %}
<section data-element="{{ element.type }}" class="boxed-layout section-p-y">
<ul class="max-w-[1710px] w-full lg:px-10 mx-auto columns-1 sm:columns-2 md:columns-3 lg:columns-4 grid-gap-10 pb-5 lg:py-5">
{% for index, merken in manufacturers %}
{# {% for index, merken in alphabet %} #}
{% if merken %}
<li class="grid grid-cols-[max-content_1fr] items-start grid-gap-6 mb-6 break-inside-avoid lg:grid-gap-4">
<div class="w-8 relative h-full">
<div class="flex justify-center items-center w-8 h-8 bg-grey-200 font-medium scroll-mt-4 text-black"
id="brand_{{ index }}">
{{ index }}
</div>
<span class="w-[2px] h-[calc(100%_-_32px)] bg-grey-200 inline-block absolute top-8 left-1/2 transform -translate-x-1/2"></span>
</div>
<ul class="brand-list grid grid-gap-y-6">
{% if merken %}
{% for index, brand in merken %}
<li class="brand-listing-item first:pt-2" data-id="{{ brand.id }}">
<a {% if brand.url %} href="{{ brand.url }}" {% endif %}
class="inline-block text-base font-light leading-none 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>
</section>
{% endblock %}
{% endblock %}