/* =====================================
   MYADVANCE PREMIUM HEADER V2
===================================== */

.ma2-header {
    --ma2-ink: var(--e-global-color-text, #171717);
    --ma2-accent: var(--mya-accent);
    --ma2-font: var(--e-global-typography-primary-font-family, inherit);
    --ma2-soft: color-mix(in srgb, var(--ma2-accent) 5%, white);
    --ma2-soft-hover: color-mix(in srgb, var(--ma2-accent) 9%, white);

    position: relative;
    isolation: isolate;
    z-index: 999;
    width: 100%;
    background: #fff;
    color: var(--ma2-ink);
    font-family: var(--ma2-font);
    border-bottom: 1px solid rgba(0,0,0,.055);
    transition: background .35s ease, box-shadow .35s ease;
}

.ma2-header *,
.ma2-header *::before,
.ma2-header *::after {
    box-sizing: border-box;
}

.ma2-header a {
    text-decoration: none !important;
}

.ma2-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    background: var(--ma2-bar, var(--ma2-accent));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    line-height: 1.4;
}

.ma2-bar:hover { color: #fff; }

.ma2-header.is-compact .ma2-bar { display: none; }

.ma2-inner {
    width: min(100%, 1600px);
    min-height: 100px;
    margin: auto;
    padding: 0 36px;
    display: grid;
    grid-template-columns: 220px minmax(0,1fr) auto;
    align-items: center;
    gap: 22px;
    transition: min-height .35s ease;
}

/* =====================================
   LOGO
===================================== */

.ma2-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    position: relative;
}

.ma2-logo img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.ma2-logo:hover img {
    transform: scale(1.045);
}

/* =====================================
   MAIN NAVIGATION
===================================== */

.ma2-desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.ma2-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ma2-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.ma2-desktop-nav .ma2-menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    padding: 0 17px;

    color: var(--ma2-ink);
    font-family: var(--ma2-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;

    background: transparent;
    border-radius: 9px;
    overflow: hidden;
    isolation: isolate;

    transition:
        color .35s ease,
        transform .35s ease,
        background .35s ease;
}

/* Solid pale background */

.ma2-desktop-nav .ma2-menu > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ma2-soft);
    border-radius: inherit;
    transform: scale(.82);
    opacity: 0;
    z-index: -1;
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        opacity .35s ease;
}

/* Animated accent underline */

.ma2-desktop-nav .ma2-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 5px;
    background: var(--ma2-accent);
    transform: translateX(-50%);
    transition: width .4s cubic-bezier(.2,.8,.2,1);
}

.ma2-desktop-nav .ma2-menu > li:hover > a,
.ma2-desktop-nav .ma2-menu > li:focus-within > a,
.ma2-desktop-nav .ma2-menu > li.current-menu-item > a,
.ma2-desktop-nav .ma2-menu > li.current-menu-ancestor > a {
    color: var(--ma2-accent);
}

.ma2-desktop-nav .ma2-menu > li:hover > a::before,
.ma2-desktop-nav .ma2-menu > li:focus-within > a::before,
.ma2-desktop-nav .ma2-menu > li.current-menu-item > a::before,
.ma2-desktop-nav .ma2-menu > li.current-menu-ancestor > a::before {
    opacity: 1;
    transform: scale(1);
}

.ma2-desktop-nav .ma2-menu > li:hover > a::after,
.ma2-desktop-nav .ma2-menu > li:focus-within > a::after,
.ma2-desktop-nav .ma2-menu > li.current-menu-item > a::after,
.ma2-desktop-nav .ma2-menu > li.current-menu-ancestor > a::after {
    width: calc(100% - 34px);
}

.ma2-desktop-nav .ma2-menu > li:hover > a {
    transform: translateY(-2px);
}

/* =====================================
   DROPDOWN
===================================== */

.ma2-desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    padding: 12px;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.055);
    border-radius: 12px;
    box-shadow: 0 22px 55px rgba(0,0,0,.12);
    list-style: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .3s ease;
    z-index: 30;
}

.ma2-desktop-nav li:hover > .sub-menu,
.ma2-desktop-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ma2-desktop-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.ma2-desktop-nav .sub-menu a {
    display: block;
    padding: 13px 15px;
    border-radius: 7px;
    font-family: var(--ma2-font);
    font-size: 13px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .025em;
    color: var(--ma2-ink);
    transition: all .25s ease;
}

.ma2-desktop-nav .sub-menu a:hover,
.ma2-desktop-nav .sub-menu .current-menu-item > a {
    background: var(--ma2-soft);
    color: var(--ma2-accent);
    padding-left: 20px;
}

/* =====================================
   CHECKOUT BUTTON
===================================== */

.ma2-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.ma2-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    background: #fff;
}

.ma2-lang a {
    min-width: 34px;
    padding: 7px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    color: inherit;
    line-height: 1;
}

.ma2-lang a.is-current {
    background: #171717;
    color: #fff;
}

.ma2-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 0 17px;
    border-radius: 10px;
    background: var(--ma2-soft);
    color: var(--ma2-ink);
    border: 1px solid transparent;

    font-family: var(--ma2-font);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .045em;

    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

.ma2-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ma2-cart-icon svg {
    width: 25px;
    height: 25px;
}

.ma2-count {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--ma2-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.ma2-arrow {
    width: 16px;
    height: 16px;
    transition: transform .35s ease;
}

.ma2-checkout:hover {
    background: var(--ma2-soft-hover);
    color: var(--ma2-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.055);
}

.ma2-checkout:hover .ma2-arrow {
    transform: translateX(5px);
}

/* =====================================
   MOBILE TOGGLE
===================================== */

.ma2-toggle {
    display: none;
    width: 45px;
    height: 45px;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: var(--ma2-soft);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background .3s;
}

.ma2-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--ma2-ink);
    border-radius: 3px;
    transition: transform .35s, opacity .25s, width .3s;
}

.ma2-toggle span:nth-child(2) {
    width: 16px;
}

.ma2-toggle:hover {
    background: var(--ma2-soft-hover);
}

.ma2-toggle:hover span:nth-child(2) {
    width: 23px;
}

.ma2-header.is-open .ma2-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.ma2-header.is-open .ma2-toggle span:nth-child(2) {
    opacity: 0;
}

.ma2-header.is-open .ma2-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================
   MOBILE PANEL
===================================== */

.ma2-mobile,
.ma2-overlay {
    display: none;
}

@media (max-width: 1370px) {

    .ma2-inner {
        grid-template-columns: 180px minmax(0,1fr) auto;
        gap: 12px;
        padding: 0 22px;
    }

    .ma2-logo img {
        width: 185px;
    }

    .ma2-menu {
        gap: 2px;
    }

    .ma2-desktop-nav .ma2-menu > li > a {
        font-size: 13px;
        padding: 0 11px;
    }

    .ma2-checkout {
        padding: 0 12px;
        gap: 10px;
    }
}

@media (max-width: 1100px) {

    .ma2-inner {
        display: flex;
        justify-content: space-between;
        min-height: 78px;
        padding: 0 23px;
    }

    .ma2-logo img {
        width: 185px;
    }

    .ma2-desktop-nav {
        display: none;
    }

    .ma2-toggle {
        display: flex;
    }

    .ma2-checkout {
        min-height: 45px;
    }

    .ma2-mobile {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: min(78vh, 750px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 25px 28px 30px;
        background: #fff;
        box-shadow: 0 30px 50px rgba(0,0,0,.12);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);

        transition:
            opacity .35s ease,
            visibility .35s ease,
            transform .4s cubic-bezier(.2,.8,.2,1);
        z-index: 20;
    }

    .ma2-header.is-open .ma2-mobile {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .ma2-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 19px;
        border-bottom: 1px solid rgba(0,0,0,.08);
        font-size: 11px;
        font-weight: 750;
        letter-spacing: .16em;
        color: var(--ma2-accent);
    }

    .ma2-mobile-decoration {
        width: 35px;
        height: 2px;
        background: var(--ma2-accent);
    }

    .ma2-mobile .ma2-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 22px 0;
    }

    .ma2-mobile .ma2-menu > li {
        width: 100%;
    }

    .ma2-mobile .ma2-menu > li > a {
        display: flex;
        align-items: center;
        min-height: 61px;
        padding: 15px 20px;
        border-radius: 10px;
        background: #f7f7f7;
        color: var(--ma2-ink);
        font-family: var(--ma2-font);
        font-size: 17px;
        font-weight: 750;
        letter-spacing: .045em;
        text-transform: uppercase;
        transition:
            background .3s ease,
            color .3s ease,
            padding .3s ease;
    }

    .ma2-mobile .ma2-menu > li > a:hover,
    .ma2-mobile .ma2-menu > li.current-menu-item > a {
        background: var(--ma2-soft-hover);
        color: var(--ma2-accent);
        padding-left: 28px;
    }

    .ma2-mobile .sub-menu {
        list-style: none;
        padding: 8px 0 8px 18px;
        margin: 0;
    }

    .ma2-mobile .sub-menu a {
        display: block;
        padding: 12px;
        color: var(--ma2-ink);
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .ma2-mobile .sub-menu a:hover {
        color: var(--ma2-accent);
    }

    .ma2-mobile-bottom {
        display: flex;
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid rgba(0,0,0,.07);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .1em;
        color: #999;
    }

    .ma2-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10,10,10,.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .35s, visibility .35s;
        z-index: -1;
    }

    .ma2-header.is-open .ma2-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 600px) {

    .ma2-inner {
        min-height: 72px;
        padding: 0 15px;
        gap: 10px;
    }

    .ma2-logo img {
        width: 151px;
    }

    .ma2-actions {
        gap: 10px;
    }

    .ma2-actions .ma2-lang a {
        min-width: 28px;
        padding: 6px;
    }

    .ma2-checkout {
        width: 45px;
        min-height: 45px;
        padding: 0;
        gap: 0;
    }

    .ma2-checkout-label,
    .ma2-arrow {
        display: none;
    }

    .ma2-cart-icon svg {
        width: 23px;
        height: 23px;
    }

    .ma2-mobile {
        padding: 20px 17px 26px;
    }

    .ma2-mobile .ma2-menu > li > a {
        min-height: 57px;
        font-size: 15px;
    }
}

@media (max-width: 370px) {

    .ma2-logo img {
        width: 128px;
    }

    .ma2-actions {
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma2-header *,
    .ma2-header *::before,
    .ma2-header *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Compact sticky state: the same accessible header, with its original layout space reserved. */
.ma2-header-slot{width:100%}
.ma2-header.is-compact{position:fixed;top:var(--ma2-sticky-top,0px);left:0;right:0;width:100%;z-index:999;background:#fffffff7;backdrop-filter:blur(12px);box-shadow:0 4px 22px #17171710;border-bottom:1px solid #e8e5e6}
.ma2-header.is-compact .ma2-inner{min-height:62px;grid-template-columns:160px minmax(0,1fr) auto;gap:16px;padding:0 25px;transition:none}
.ma2-header.is-compact .ma2-logo img{width:150px;max-height:44px}
.ma2-header.is-compact .ma2-menu{gap:1px}
.ma2-header.is-compact .ma2-desktop-nav .ma2-menu>li>a{min-height:40px;font-size:12px;padding:0 10px;border-radius:6px;letter-spacing:.015em}
.ma2-header.is-compact .ma2-checkout{min-height:40px;padding:0 13px;font-size:12px;gap:9px;border-radius:7px}
.ma2-header.is-compact .ma2-cart-icon svg{width:21px;height:21px}
.ma2-header.is-compact .ma2-actions{gap:12px}
.ma2-header.is-compact .ma2-lang a{padding:5px 7px;font-size:11px}
.ma2-header.is-compact .ma2-mobile{max-height:calc(100dvh - var(--ma2-sticky-top,0px) - 57px);overscroll-behavior:contain}
.ma2-header a:focus-visible,.ma2-header button:focus-visible{outline:2px solid var(--mya-accent);outline-offset:3px}
@media(max-width:1100px){.ma2-header.is-compact .ma2-inner{min-height:60px;padding:0 22px;gap:12px}.ma2-header.is-compact .ma2-toggle{width:42px;height:42px}.ma2-header.is-compact .ma2-logo img{width:150px}}
@media(max-width:600px){.ma2-header.is-compact .ma2-inner{min-height:56px;padding:0 15px;gap:9px}.ma2-header.is-compact .ma2-logo img{width:128px;max-height:36px}.ma2-header.is-compact .ma2-actions{gap:8px}.ma2-header.is-compact .ma2-checkout{width:40px;min-height:40px;padding:0;gap:0}.ma2-header.is-compact .ma2-toggle{width:40px;height:40px}.ma2-header.is-compact .ma2-lang a{min-width:25px;padding:5px;font-size:10px}}
@media(max-width:370px){.ma2-header.is-compact .ma2-logo img{width:112px}.ma2-header.is-compact .ma2-actions{gap:6px}}

.ma2-products-menu > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    color: var(--ma2-ink);
    font: 750 15px/1.2 var(--ma2-font);
    letter-spacing: .035em;
    text-transform: uppercase;
}
.ma2-products-menu > summary::-webkit-details-marker { display: none; }
.ma2-products-menu > summary span {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.ma2-products-menu[open] > summary { color: var(--ma2-accent); }
.ma2-products-menu[open] > summary span { margin-top: 3px; transform: rotate(225deg); }
.ma2-products-menu :is(summary,a):focus-visible { outline: 2px solid var(--ma2-accent); outline-offset: 2px; }
.ma2-desktop-nav .ma2-products-menu > summary {
    min-height: 53px;
    padding: 0 17px;
    border-radius: 9px;
    color: #fff;
    background: var(--ma2-accent);
    font: 700 15px/1.2 var(--ma2-font);
    letter-spacing: .035em;
    white-space: nowrap;
}
.ma2-desktop-nav .ma2-products-menu > summary span { border-color: #fff; }
.ma2-desktop-nav .ma2-products-menu[open] > summary,
.ma2-desktop-nav .ma2-products-menu > summary:hover {
    color: #fff;
    background: color-mix(in srgb, var(--ma2-accent) 84%, #000);
}
.ma2-header.is-compact .ma2-desktop-nav .ma2-products-menu > summary {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: .015em;
}
.ma2-products-panel {
    padding: 10px;
    border: 1px solid #e9e2de;
    border-radius: 14px;
    background: #fff;
}
.ma2-desktop-nav .ma2-products-panel {
    position: absolute;
    z-index: 25;
    top: 100%;
    left: 0;
    width: 410px;
    box-shadow: 0 18px 42px #211a1926;
}
.ma2-products-panel .ma2-products-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-bottom: 6px;
    padding: 6px 9px;
    border-bottom: 1px solid #eee6e2;
    color: var(--ma2-accent);
    font-weight: 800;
}
.ma2-products-all svg { width: 18px; height: 18px; }
.ma2-products-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ma2-products-panel li a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 5px;
    border-radius: 8px;
    color: var(--ma2-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}
.ma2-products-panel li a:hover, .ma2-products-panel li a[aria-current] { background: #f7eeec; color: var(--ma2-accent); }
.ma2-products-panel img {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}
@media (max-width: 1100px) {
    .ma2-mobile .ma2-products-menu > summary {
        justify-content: space-between;
        min-height: 51px;
        padding: 10px 17px;
        border-radius: 10px;
        background: #f7f7f7;
    }
    .ma2-mobile .ma2-products-panel { margin-top: 6px; }
}
@media (max-width: 370px) {
    .ma2-products-panel li a { font-size: 12px; gap: 6px; }
    .ma2-products-panel img { width: 36px; height: 36px; flex-basis: 36px; }
}
