{% extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_top_bar %} {# moved the top bar into the menu #}
{% endblock %}
{% block layout_header_logo %}
<div class="col-4 col-sm-3 header-logo-col">
<div class="header-logo-wrapper">
{% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
</div>
</div>
{% endblock %}
{% block layout_header_search %}
<div class="col-12 order-2 col-sm order-md-1 header-search-col collapse" id="searchCollapse">
<div class="col">
{% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
</div>
</div>
{% endblock %}
{% block layout_header_actions %}
<div class="col-8 col-sm-9 order-1 order-md-2 header-actions-col pr-1 pl-1 pr-sm-5">
<div class="row {{ gridNoGuttersClass }} header-actions-row">
{% set quickNavigation = page.header.navigation.tree|filter(n =>
n.category.translated.name == 'Quick Navigation')|first %}
{% if quickNavigation %}
{% for item in quickNavigation.children %}
<div class="quick-navigation col-auto">
<a class="quick-navigation-link{% if navigationTree.id == page.header.navigation.active.id or navigationTree.id in activePath %} active{% endif %}"
href="{{ category_url(item.category) }}"
itemprop="url"
title="{{ item.category.translated.name }}">
{{ item.category.translated.name }}
</a>
</div>
{% endfor %}
{% endif %}
{% block layout_header_search_toggle %}
<div class="col-auto ml-auto"> <!-- removed d-sm-none from parent -->
<div class="search-toggle">
<button class="btn header-actions-btn search-toggle-btn js-search-toggle-btn collapsed"
type="button"
{{ dataBsToggleAttr }}="collapse"
{{ dataBsTargetAttr }}="#searchCollapse"
aria-expanded="false"
aria-controls="searchCollapse"
aria-label="{{ "header.searchButton"|trans|striptags }}">
{% sw_icon 'magnifier' style { namespace: 'IabTheme' } %}
</button>
</div>
</div>
{% endblock %}
{% if config('core.cart.wishlistEnabled') and context.customer %}
{{ block('layout_header_actions_wishlist') }}
{% endif %}
{{ block('layout_header_actions_account') }}
{{ block('layout_header_actions_cart') }}
{% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
{% sw_include '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
{% block layout_header_navigation_toggle %}
<div class="col d-lg-none flex-grow-0">
<div class="menu-button">
{% block layout_header_navigation_toggle_button %}
<button class="btn nav-main-toggle-btn header-actions-btn"
type="button"
data-offcanvas-menu="true"
aria-label="{{ "general.menuLink"|trans|striptags }}">
{% block layout_header_navigation_toggle_button_icon %}
{% sw_icon 'stack' %}
{% endblock %}
</button>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endblock %}