/* Native WordPress menu entries receive these two icon variables from their topic. */
html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation :is(.primary-navigation,.handheld-navigation) > ul.menu > li[class*="aznl-thema-"] > a {
    display:flex;
    align-items:center;
    gap:14px !important;
    position:relative;
    isolation:isolate;
    box-sizing:border-box;
    padding:12px !important;
    border-radius:12px;
    color:#203e35;
    font:600 16px/1.3 Arial,Helvetica,sans-serif;
    text-decoration:none;
}
html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation :is(.primary-navigation,.handheld-navigation) > ul.menu > li[class*="aznl-thema-"] > a::before {
    content:"";
    display:block;
    position:relative;
    z-index:1;
    flex:0 0 24px;
    width:24px;
    height:24px;
    margin:0;
    background:currentColor;
    -webkit-mask:var(--az-nav-icon) center/contain no-repeat;
    mask:var(--az-nav-icon) center/contain no-repeat;
}
html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation :is(.primary-navigation,.handheld-navigation) > ul.menu > li[class*="aznl-thema-"] > a::after {
    content:"";
    position:absolute;
    z-index:-1;
    inset-inline-start:6px;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border-radius:11px;
    background:var(--az-topic-tint,#e4efdf);
}

/* Storefront's original logo, language link, navigation, search and mini-cart.
   Their common row determines alignment also when a translated label wraps. */
@media (min-width:768px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead {
        padding-top:34px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full {
        display:grid !important;
        grid-template-columns:203px minmax(0,1fr) 250px 180px !important;
        grid-template-rows:minmax(76px,auto) 26px;
        grid-template-areas:"logo utility search basket" "language . . .";
        align-items:center;
        gap:0 16px !important;
        min-height:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full::before,
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full::after {
        display:none;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding {
        display:contents !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .custom-logo-link {
        grid-area:logo;
        display:block;
        width:100%;
        margin:0;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .custom-logo-link .custom-logo {
        display:block;
        width:100% !important;
        height:auto !important;
        max-width:203px !important;
        aspect-ratio:203 / 76;
        object-fit:contain;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .az-de-language-link {
        grid-area:language;
        justify-self:start;
        min-height:26px;
        margin:0;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > .secondary-navigation {
        grid-area:utility !important;
        min-width:0;
        align-self:center;
        margin:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .secondary-navigation .menu {
        display:flex;
        align-items:center;
        justify-content:flex-end;
        flex-wrap:wrap;
        gap:2px 12px !important;
        padding:0;
        margin:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > .site-search {
        grid-area:search !important;
        width:100% !important;
        min-width:0;
        align-self:center;
        margin:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > .site-search .aws-search-form {
        min-height:48px;
        height:48px;
        margin:0;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > #site-header-cart {
        grid-area:basket;
        align-self:center;
        position:relative !important;
        inset:auto !important;
        float:none !important;
        width:100% !important;
        min-width:0;
        margin:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > #site-header-cart .cart-contents {
        box-sizing:border-box;
        display:flex;
        align-items:center;
        gap:7px;
        min-height:48px;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full > #site-header-cart .cart-contents::after {
        margin-left:auto;
        flex:none;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .storefront-primary-navigation {
        margin-top:4px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu {
        display:grid !important;
        grid-template-columns:repeat(5,minmax(0,1fr)) !important;
        gap:6px 10px !important;
        margin:0 !important;
        padding:6px 0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu::before,
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu::after {
        display:none;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu > li {
        width:auto;
        min-width:0;
        margin:0;
        padding:0;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu > li > a {
        box-sizing:border-box;
        display:flex;
        align-items:center;
        width:100%;
        min-width:0;
        min-height:68px;
        height:auto !important;
        overflow-wrap:break-word;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu > li.current-menu-item > a,
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu > li > a[aria-current="page"] {
        background:#fff !important;
        box-shadow:inset 0 0 0 1px #d2ddcc;
    }
}

@media (min-width:1101px) and (max-width:1199px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full {
        grid-template-columns:174px minmax(0,1fr) 216px 148px !important;
        column-gap:12px !important;
    }
}
@media (min-width:768px) and (max-width:1100px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead {
        padding-top:24px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full {
        grid-template-columns:180px minmax(0,1fr) 160px !important;
        grid-template-rows:minmax(67px,auto) minmax(48px,auto);
        grid-template-areas:"logo utility basket" "language search search";
        gap:12px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .storefront-primary-navigation {
        margin-top:20px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead #site-navigation .primary-navigation > ul.menu {
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media (min-width:768px) and (max-width:900px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full {
        grid-template-columns:150px minmax(0,1fr) 145px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .secondary-navigation a {
        font-size:13px !important;
    }
}

/* The native mobile menu and Storefront's account/search/cart bar retain their toggles. */
@media (max-width:767px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead > .col-full {
        display:flex;
        align-items:center;
        min-height:46px;
        margin-bottom:14px !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding {
        display:flex !important;
        align-items:center;
        gap:8px;
        float:none !important;
        width:max-content !important;
        margin:0 !important;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .custom-logo-link {
        display:block;
        width:122px;
        flex:0 0 122px;
        margin:0;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .custom-logo-link .custom-logo {
        display:block;
        width:100% !important;
        height:auto !important;
        max-width:122px !important;
        aspect-ratio:203 / 76;
        object-fit:contain;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .az-de-language-link {
        flex:none;
        min-height:44px;
        padding:0 3px;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .az-deals-mobile {
        top:19px !important;
        min-height:44px;
    }
}
@media (max-width:359px) {
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding {
        gap:4px;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .custom-logo-link {
        width:96px;
        flex-basis:96px;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .site-branding > .az-de-language-link {
        font-size:12px;
        gap:4px;
        padding-inline:2px;
    }
    html:lang(nl) body.az-nl-kop:not(.woocommerce-checkout) #masthead .az-deals-mobile {
        padding-inline:6px !important;
    }
}

/* Match the content width of the corresponding German topic landing pages. */
html:lang(nl) body.az-nl-kop.tax-product_cat #content > .col-full,
html:lang(nl) body.az-nl-kop.tax-product_cat .storefront-breadcrumb > .col-full {
    box-sizing:border-box;
    width:calc(100% - 48px) !important;
    max-width:1200px !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
}
@media (max-width:600px) {
    html:lang(nl) body.az-nl-kop.tax-product_cat #content > .col-full,
    html:lang(nl) body.az-nl-kop.tax-product_cat .storefront-breadcrumb > .col-full {
        width:calc(100% - 32px) !important;
    }
}

/* The desktop theme draws the visible mobile captions with pseudo-elements. */
@media (max-width: 767px) {
    html:lang(nl) body.az-nl-kop :is(.storefront-handheld-footer-bar, #az-evo-mobile-nav) li.my-account > a::after {
        content: "Mijn account" !important;
    }
    html:lang(nl) body.az-nl-kop :is(.storefront-handheld-footer-bar, #az-evo-mobile-nav) li.search > a::after {
        content: "Zoeken" !important;
    }
    html:lang(nl) body.az-nl-kop :is(.storefront-handheld-footer-bar, #az-evo-mobile-nav) li.cart > a::after {
        content: "Winkelwagen" !important;
    }
}
