{# This element is used in both the offcanvas navigation AND the flyout navigation on desktop. #}
{% set categoryName = category.name ?? category.translated.name %}
{% set additionalMenuId = categoryName|lower %}
{% if page.header.extensions.additional_menus.get('inspiration-'~additionalMenuId) %}
<div class="navigation-offcanvas-inspiration {% if location == 'offcanvas' %}{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationInspiration"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('inspiration-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% else %}py-1{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('department-'~additionalMenuId) %}
<div class="navigation-offcanvas-department {% if location == 'offcanvas' %}py-6{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationDepartment"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('department-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% else %}py-1{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('brands-'~additionalMenuId) %}
<div class="navigation-offcanvas-brands {% if location == 'offcanvas' %}py-4{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-lg mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationBrands"|trans|sw_sanitize }}</h4>
{% if location == 'offcanvas' %}
<ul class="flex flex-wrap grid-gap-2 max-w-[600px]">
{% else %}
{% endif %}
{% for item in page.header.extensions.additional_menus.get('brands-'~additionalMenuId).elements %}
{% set url = category_url(item) %}
{% if location == 'offcanvas' %}<li class="navigation-offcanvas-list-item">{% endif %}
<a class="navigation-offcanvas-link nav-item nav-link {% if location == 'offcanvas' %}flex items-center grid-gap-4{% else %}leading-9{% endif %}"
href="{{ url }}"
itemprop="url"
title="{{ item.translated.name }}">
<span class="hover:text-black" itemprop="brand">{{ item.translated.name }}</span>
{% if location == 'offcanvas' %}
{% if not loop.last %}
<span class="seperator inline-block mx-1">•</span>
{% endif %}
{% else %}
<span class="seperator inline-block mx-1">•</span>
{% endif %}
</a>
{% if location == 'offcanvas' %}</li>{% endif %}
{% endfor %}
{% if location == 'offcanvas' %}</ul>{% endif %}
<a class="text-black underline mt-2 {% if location == 'offcanvas' %}font-medium block{% else %}{% endif %}"
href="/merken/"
title="{{ "themeGlobal.showAllBrands"|trans|sw_sanitize }}">
{{ "themeGlobal.showAllBrands"|trans|sw_sanitize }}
</a>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('ladies-'~additionalMenuId) %}
<div class="navigation-offcanvas-ladies {% if location == 'offcanvas' %}{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationLadies"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('ladies-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('gentlemen-'~additionalMenuId) %}
<div class="navigation-offcanvas-gentlemen {% if location == 'offcanvas' %}{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationGentlemen"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('gentlemen-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('kids-'~additionalMenuId) %}
<div class="navigation-offcanvas-kids {% if location == 'offcanvas' %}{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationKids"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('kids-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if page.header.extensions.additional_menus.get('sport-'~additionalMenuId) %}
<div class="navigation-offcanvas-sport {% if location == 'offcanvas' %}{% else %}flyout{% endif %}">
<h4 class="navigation-title {% if location == 'offcanvas' %}text-xl mb-2{% else %}h2 mb-4 uppercase{% endif %}">{{ "themeGlobal.navigationSport"|trans|sw_sanitize }}</h4>
<ul class="{% if location == 'offcanvas' %}divide-y divide-grey-400{% endif %}">
{% for item in page.header.extensions.additional_menus.get('sport-'~additionalMenuId).elements %}
{% set isActive = item.id == activeId %}
{% set hasChildren = item.visibleChildCount > 0 %}
{% set url = category_url(item) %}
{% set name = item.translated.name %}
{% set img = item.media %}
{% set isRoot = activeId == context.salesChannel.navigationCategoryId %}
<li class="navigation-offcanvas-list-item">
<a class="navigation-offcanvas-link flex items-center grid-gap-4 nav-item nav-link hover:text-black{% if isActive %} active{% endif %}{% if location == 'flyout' %} py-2{% endif %}"
href="{{ url }}"
itemprop="url"
{% if category_linknewtab(item) %}target="_blank"{% endif %}
title="{{ name }}">
<div class="flex justify-between w-full items-center {% if location == 'offcanvas' %}py-4{% endif %}">
<span itemprop="name">{{ name }}</span>
<span class="navigation-offcanvas-link-icon js-navigation-offcanvas-loading-icon text-black">
{% sw_icon 'chevron-right' style { 'pack':'theme-icons', 'size': '12' } %}
</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}