{% set currentUrl = app.request.pathInfo %}
<li class="nav-item align-items-center col-md-2 {% if not is_mobile() %}{% if path(baseLink) in currentUrl %}fixed-pull-right{% else %}pull-right{% endif %}{% endif %}{% if is_mobile() %} li-mobile {% endif %}">
<a {% if baseLink|default(0) %}data-base-url="{{ path(baseLink) }}"{% endif %} aria-expanded="false" aria-haspopup="true" class="nav-link p-0 h-100 d-flex {% if is_mobile() %}justify-content-start{% else %}
justify-content-center{% endif %} align-items-center" {% if not link|default(0) %}data-toggle="dropdown"{% endif %} href="{% if link|default(0) %}{{ path(link) }}{% else %}#{% endif %}" id="navbarDropdown" role="button">
<h6 class="ct-blue ff-os-regular m-0 text-center nav-item-title fs-14 {% if name == 'online_store' and not is_mobile() %}w-50{% endif %}">{{ ("bundles.sylius_shop.homepage.index.sections." ~ name ~ ".label")|trans|upper }}</h6>
</a>
{% if subSections|default(0) %}
<div aria-labelledby="navbarDropdown" class="dropdown-menu border-0 mt-2">
{% for section in subSections %}
{% if section.type is not defined %}
<a class="dropdown-item ct-blue ff-os-regular fs-14 drop-item parent-p" href="{{ path(subSectionsRoute, {'sectionSlug': section.slug}) }}">{{ section.title|raw }}</a>
{% else %}
<a class="dropdown-item ct-blue ff-os-regular fs-14 drop-item" href="{{ path(subSectionsRoute, {'productId': section.id}) }}">{{ section.variants.first }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</li>