.mp-header {
    --mp-blue: #075a95;
    --mp-navy: #073f6b;
    --mp-sand: #f5dba7;
    color: #fff;
    background: var(--mp-blue);
    position: relative;
    z-index: 50;
}
.mp-header *, .mp-header *::before, .mp-header *::after { box-sizing: border-box; }
.mp-header .mp-shell { width: 100%; max-width: var(--content-width); margin-inline: auto; padding-inline: 15px; }
.mp-header a { text-decoration: none; }
.mp-header a:focus-visible, .mp-header button:focus-visible, .mp-header summary:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.mp-benefits { background: var(--mp-sand); color: #00558f; }
.mp-benefits__inner { display: flex; justify-content: center; gap: 56px; padding-block: 8px; font-size: 12px; line-height: 17px; }
.mp-benefits__inner > span { display: inline-flex; align-items: center; gap: 4px; }
.mp-benefits i { margin-right: 8px; }
.mp-header__main { display: grid; grid-template-columns: 200px minmax(200px, 1fr) auto; gap: 56px; align-items: center; min-height: 99px; padding-block: 22px; }
.mp-brand { display: flex; align-items: center; color: #fff; min-width: 0; }
.mp-brand img { display: block; width: 194px; max-width: 100%; height: 56px; object-fit: contain; }
.mp-brand > span { font-size: 25px; font-weight: 800; color: #fff; }
.mp-search { display: flex; align-items: center; min-width: 0; margin: 0; padding: 4px 7px 4px 24px; background: #fff; border-radius: 50px; height: 49px; }
.mp-search input[type="search"] { width: 100%; min-width: 0; border: 0; padding: 0 12px 0 0; background: transparent; color: #123f61; font: inherit; font-size: 16px; outline: none; }
.mp-search:focus-within { box-shadow: 0 0 0 3px var(--mp-sand); }
.mp-search button { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mp-blue); color: #fff; cursor: pointer; }
.mp-actions { display: flex; align-items: center; gap: 8px; }
.mp-account, .mp-cart { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 10px 22px; border-radius: 50px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.mp-account { color: #fff; border: 1px solid #5795bd; background: #ffffff14; }
.mp-account:hover { color: #fff; background: #ffffff26; }
.mp-cart { background: var(--mp-sand); color: #004d83; }
.mp-cart:hover { color: #003e69; background: #ffe7bb; }
.mp-account > i, .mp-cart__icon > i { font-size: 22px; }
.mp-cart__icon { position: relative; display: inline-flex; }
.mp-cart__count { position: absolute; top: -10px; right: -10px; min-width: 20px; height: 20px; padding-inline: 4px; border-radius: 20px; background: var(--mp-navy); color: #fff; font: 700 11px/20px Arial, sans-serif; text-align: center; }
.mp-nav-bar { background: var(--mp-navy); }
.mp-navigation > .mp-menu-toggle { display: none; }
.mp-header .mp-navigation > nav { display: block; }
.mp-header .mp-menu, .mp-header .sub-menu { list-style: none; padding: 0; margin: 0; }
.mp-header .mp-menu { display: flex; flex-wrap: wrap; }
.mp-header .mp-menu > li { position: relative; border-right: 1px solid #ffffff20; }
.mp-header .mp-menu a { display: block; padding: 18px 34px; color: #fff; font-size: 16px; line-height: 23px; font-weight: 700; }
.mp-header .mp-menu a:hover, .mp-header .mp-menu .current-menu-item > a { background: #ffffff12; }
.mp-header .mp-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; max-width: min(300px, 90vw); background: var(--mp-navy); box-shadow: 0 8px 18px #0003; }
.mp-header .mp-menu li:hover > .sub-menu, .mp-header .mp-menu li:focus-within > .sub-menu { display: block; }
.mp-header .mp-menu .sub-menu li { position: relative; }
.mp-header .mp-menu .sub-menu a { padding: 12px 20px; }
.mp-header .mp-menu .sub-menu .sub-menu { position: static; margin-left: 14px; box-shadow: none; }
.mp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1199px) {
    .mp-header__main { gap: 24px; grid-template-columns: 180px minmax(160px, 1fr) auto; }
    .mp-account, .mp-cart { padding-inline: 15px; gap: 10px; }
    .mp-header .mp-menu a { padding-inline: 24px; }
    .mp-benefits__inner { gap: 24px; }
}
@media (max-width: 991px) {
    .mp-header__main { grid-template-columns: 1fr auto; gap: 18px; padding-block: 18px; }
    .mp-search { grid-row: 2; grid-column: 1 / -1; }
    .mp-benefits__inner { flex-wrap: wrap; gap: 6px 20px; }
    .mp-navigation > .mp-menu-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 50px; font-size: 16px; font-weight: 700; list-style: none; }
    .mp-navigation > .mp-menu-toggle::-webkit-details-marker { display: none; }
    .mp-navigation > nav:not(.show) { display: none; }
    .mp-navigation > nav.show { display: block; padding-bottom: 12px; }
    .mp-header .mp-menu { display: block; }
    .mp-header .mp-menu > li { border-right: 0; border-top: 1px solid #ffffff20; }
    .mp-header .mp-menu a { padding: 13px 10px; }
    .mp-header .mp-menu .sub-menu { display: block; position: static; min-width: 0; max-width: none; padding-left: 16px; box-shadow: none; }
    .mp-header .mp-menu .sub-menu a { font-weight: 500; padding-block: 10px; }
}
@media (max-width: 575px) {
    .mp-header .mp-shell { padding-inline: 15px; }
    .mp-benefits__inner > span { font-size: 10px; }
    .mp-benefits__inner > span:not(:first-child) { display: none; }
    .mp-header__main { column-gap: 12px; }
    .mp-brand img { width: 155px; height: 48px; }
    .mp-brand > span { font-size: 20px; }
    .mp-account, .mp-cart { width: 44px; min-height: 44px; padding: 8px; }
    .mp-account > span, .mp-cart__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .mp-actions { gap: 7px; }
    .mp-search { padding-left: 16px; }
    .mp-search input[type="search"] { font-size: 14px; }
}

.mp-menu-toggle { border: 0; background: transparent; color: #fff; padding: 0; width: 100%; text-align: left; }

/* Sticky header en mobiele winkelnavigatie. */
.mp-header { position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s ease; }
body.admin-bar .mp-header { top: 32px; }
.mp-benefits { max-height: 70px; overflow: hidden; opacity: 1; transition: max-height .3s ease, opacity .2s ease; }
.mp-header__main { transition: padding .3s ease; }
.mp-brand img { transition: height .3s ease; }
.mp-header--compact { box-shadow: 0 8px 28px #00263f35; }
.mp-header--compact .mp-benefits { max-height: 0; opacity: 0; }
.mp-header--compact .mp-header__main { padding-block: 12px; min-height: 0; }
.mp-header--compact .mp-brand img { height: 44px; }
.mp-search--mobile, .mp-actions > .mp-menu-toggle, .mp-submenu-toggle,
.mp-menu-panel__heading, .mp-header .mp-menu-panel__account { display: none; }
.mp-header .mp-navigation > .mp-menu-panel { display: block; }
@media (max-width: 991px) {
    .mp-header .mp-header__main { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 16px; min-height: 0; }
    .mp-header .mp-search--desktop { display: none; }
    .mp-header .mp-search--mobile { display: flex; width: 100%; height: 46px; }
    .mp-header .mp-navigation { padding-block: 12px; }
    .mp-actions > .mp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 10px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff12; color: #fff; cursor: pointer; flex-shrink: 0; }
    .mp-menu-toggle__lines, .mp-menu-toggle__lines::before, .mp-menu-toggle__lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, background .25s ease; }
    .mp-menu-toggle__lines { position: relative; }
    .mp-menu-toggle__lines::before, .mp-menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
    .mp-menu-toggle__lines::before { transform: translateY(-6px); }
    .mp-menu-toggle__lines::after { transform: translateY(6px); }
    .mp-menu-open .mp-menu-toggle__lines { background: transparent; }
    .mp-menu-open .mp-menu-toggle__lines::before { transform: rotate(45deg); }
    .mp-menu-open .mp-menu-toggle__lines::after { transform: rotate(-45deg); }
    .mp-header.mp-menu-enhanced:not(.mp-menu-open) .mp-navigation > .mp-menu-panel { display: none; }
    .mp-header .mp-navigation > .mp-menu-panel { padding: 18px 8px 8px; max-height: calc(100dvh - 195px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .mp-menu-open .mp-menu-panel { animation: mp-menu-reveal .25s ease both; }
    .mp-menu-panel__heading { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 18px; }
    .mp-menu-panel__heading strong { font-size: 20px; color: #fff; }
    .mp-menu-panel__heading small { color: #c4d8e7; font-size: 13px; }
    .mp-header .mp-menu li { position: relative; }
    .mp-header .mp-menu a { padding: 16px 54px 16px 12px; border-radius: 8px; }
    .mp-header .mp-menu .sub-menu { display: block; margin: 0; padding-left: 12px; background: #ffffff08; border-radius: 8px; }
    .mp-header.mp-menu-enhanced .mp-menu li:not(.mp-submenu-open) > .sub-menu { display: none; }
    .mp-header .mp-menu .sub-menu a { font-size: 15px; padding-block: 12px; }
    .mp-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 4px; top: 6px; width: 44px; height: 44px; border: 0; border-radius: 8px; color: var(--mp-sand); background: #ffffff0c; font-size: 24px; cursor: pointer; }
    .mp-header .mp-menu-panel__account { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; color: #fff; background: #ffffff12; border: 1px solid #ffffff25; border-radius: 12px; font-size: 15px; }
    .mp-actions > .mp-account, .mp-actions > .mp-cart { width: 46px; min-height: 46px; padding: 8px; }
    .mp-actions > .mp-account > span, .mp-cart__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .mp-header--compact .mp-header__main { padding-block: 10px; }
}
@media (max-width: 782px) { body.admin-bar .mp-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .mp-header { top: 0; } }
@media (max-width: 575px) {
    .mp-actions > .mp-account, .mp-actions > .mp-cart, .mp-actions > .mp-menu-toggle { width: 42px; height: 44px; min-height: 44px; }
    .mp-brand img { width: 150px; height: 46px; }
    .mp-header .mp-search input[type="search"] { font-size: 16px; }
}
@media (max-width: 359px) {
    .mp-header .mp-shell { padding-inline: 15px; }
    .mp-header .mp-header__main { gap: 8px; }
    .mp-actions { gap: 4px; }
    .mp-brand img { width: 125px; }
    .mp-actions > .mp-account { display: none; }
}
@keyframes mp-menu-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .mp-header, .mp-header *, .mp-header *::before, .mp-header *::after { transition: none !important; animation: none !important; }
}
