{% block layout_header %}
{% set extraMenuData = page.header.extensions.additional_menus.get("HeaderBottomQuickMenu").elements %}
{% block layout_top_bar %}
{% sw_include '@Storefront/storefront/layout/header/top-bar.html.twig' %}
{% endblock %}
{% block layout_header_navigation %}
<div class="header-container relative grid grid-cols-3 md:grid-cols-10 grid-gap-2 items-center p-2 pt-3 boxed-layout md:mb-0 md:px-0">
{% block header_navigation_control_container %}
<div class="header-navigation flex grid-gap-3 overflow-hidden items-center md:col-span-4">
{% block layout_header_navigation_toggle %}
<div class="header-menu-toggle shrink-0">
<div class="ml-6 menu-button">
{% block layout_header_navigation_toggle_button %}
<button class="btn-toggle flex grid-gap-2 items-center md:pl-0"
type="button"
data-offcanvas-menu="true"
aria-label="{{ "general.menuLink"|trans|striptags }}">
{% block layout_header_navigation_toggle_button_icon %}
{% sw_icon 'menu' style { 'pack': 'theme-icons', 'class': ' w-6 h-6' } %}
{% endblock %}
</button>
{% endblock %}
</div>
</div>
{% endblock %}
</div>
{% endblock %}
{% block layout_header_logo %}
{% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
{% endblock %}
{% block layout_header_actions_container %}
<div class="header-actions flex justify-center gap-2 items-center md:col-span-2 md:order-2">
{% block layout_header_actions_account %}
<div class="account-menu relative md:flex group"
>
<a class="btn-toggle flex items-center grid-gap-2 text-xs"
href="{{ path('frontend.account.login.page') }}"
title="{{ "account.orRegisterLink"|trans|striptags }}">
{% sw_icon 'account' style { 'pack': 'theme-icons', 'class': ' w-6 h-6' } %}
{{ context.customer.firstName }} {% if context.customer.guest %}({{ "themeGlobal.guestAccount"|trans|sw_sanitize }}){% endif %}
</a>
{% if context.customer.firstName|length > 0 %}
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'firstname': '{{ context.customer.firstName }}',
'lastname': '{{ context.customer.lastName }}',
'address1': '{{ context.customer.defaultBillingAddress.street }}',
'address2': '{{ context.customer.defaultBillingAddress.additionalAddressLine1 }}',
'city': '{{ context.customer.defaultBillingAddress.city }}',
'zip': '{{ context.customer.defaultBillingAddress.zipcode }}',
'country': '{{ context.customer.defaultBillingAddress.country.iso }}',
'email': '{{ context.customer.email }}',
'phone': '{{ context.customer.phone }}'
});
</script>
{% endif %}
{% if context.customer.guest %}
<div class="account-guest-abort group-hover:block absolute top-16 left-0 w-full bg-white p-4 border border-current z-50 shadow-sm caret-up text-sm grid grid-gap-3">
{% block page_account_sidebar_guest_abort %}
<a href="{{ path('frontend.account.logout.page') }}"
data-account-guest-abort-button="true"
class="btn w-full">
{% sw_icon 'menu' style { 'pack': 'theme-icons', 'class': ' w-6 h-6' } %}
{{ "account.guestAbort"|trans|sw_sanitize }}
</a>
{% endblock %}
</div>
{% endif %}
</div>
{% endblock %}
{% if config('core.cart.wishlistEnabled') %}
{% block layout_header_actions_wishlist %}
<div class="header-wishlist flex"
data-offcanvas-wishlist="true">
<a class="btn-toggle header-wishlist-btn header-actions-btn"
href="{{ path('frontend.wishlist.page') }}"
title="{{ 'header.wishlist'|trans|striptags }}"
aria-label="{{ 'header.wishlist'|trans|striptags }}">
{% sw_include '@Storefront/storefront/layout/header/actions/wishlist-widget.html.twig' %}
</a>
</div>
{% endblock %}
{% endif %}
{% block layout_header_actions_cart %}
<div class="header-cart flex"
data-offcanvas-cart="true">
<a class="btn-toggle header-cart-btn header-actions-btn overflow-visible"
href="{{ path('frontend.checkout.cart.page') }}"
data-cart-widget="true"
title="{{ 'checkout.cartTitle'|trans|striptags }}"
aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
{% sw_include '@Storefront/storefront/layout/header/actions/cart-widget.html.twig' %}
</a>
</div>
{% endblock %}
</div>
{% block layout_header_actions %}
{% block layout_header_search_toggle %}
<div class="search col-span-3 md:col-span-2">
<div class="search">
{% block layout_header_search %}
<div class="search-container">
{% sw_include '@Storefront/storefront/layout/header/search.html.twig' %}
</div>
{% endblock %}
</div>
</div>
{% endblock %}
{% endblock %}
</div>
{% endblock %}
{% block header_extra_menu_data %}
{% if extraMenuData|length > 0 %}
<div class="extraMenuContainer w-full pt-0 p-2 flex grid-gap-4 overflow-x-scroll hide-scrollbar boxed-layout">
{% for menuItemData in extraMenuData %}
<a href="{{ seoUrl('frontend.navigation.page', {'navigationId': menuItemData.id}) }}"
class="flex-shrink-0 text-md">
{{ menuItemData.name }}
</a>
{% endfor %}
</div>
{% endif %}
{% endblock %}
{% endblock %}
{% endblock %}