/* Product navigation only. Compact menus and other dropdowns remain untouched. */
.mle-product-mega-menu[hidden],.mle-product-mega-toggle[hidden]{display:none!important}
.mle-product-mega-menu,.mle-product-mega-toggle{display:none}
@media(min-width:1181px){
    .mle-header .mle-has-product-mega.mle-product-mega-ready>.sub-menu{display:none!important}
    .mle-header .mle-has-product-mega.mle-product-mega-ready>a{padding-right:22px}
    .mle-header .mle-has-product-mega.mle-product-mega-ready>a::after{display:none}
    body:not(.wp-admin) .mle-header .mle-product-mega-toggle{
        position:absolute;display:block;inset:0 0 0 auto;width:22px;min-width:0;height:100%;
        margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;
    }
    .mle-product-mega-toggle::before{content:"";position:absolute;top:calc(50% - 5px);left:6px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
    .mle-product-mega-toggle[aria-expanded="true"]::before{top:calc(50% - 1px);transform:rotate(225deg)}
    .mle-header.mle-product-mega-open{z-index:1200;background:#fff;color:var(--mle-ink,#101820);border-bottom-color:var(--mle-line,#e4e9f0);box-shadow:0 2px 14px rgba(10,25,45,.08)}
    body:not(.wp-admin) .mle-header.mle-product-mega-open .mle-primary-nav>.mle-nav-list>li>a{color:var(--mle-ink,#101820)}
    body:not(.wp-admin) .mle-header.mle-product-mega-open .mle-primary-nav>.mle-nav-list>li>a:hover{color:var(--mle-blue)}
    body:not(.wp-admin) .mle-header.mle-product-mega-open .mle-brand img.mle-brand-logo-color{display:block}
    body:not(.wp-admin) .mle-header.mle-product-mega-open .mle-brand img.mle-brand-logo-white{display:none}
    .mle-header .mle-product-mega-menu{
        position:fixed;inset:var(--mle-product-mega-top,70px) 0 auto;display:block;
        height:500px;max-height:calc(100dvh - var(--mle-product-mega-top,70px));
        box-sizing:border-box;padding:36px 0 28px;background:#fff;color:var(--mle-ink,#101820);
        box-shadow:0 16px 24px rgba(10,25,45,.10);border-top:1px solid var(--mle-line,#e4e9f0);
        text-align:left;white-space:normal;font-family:var(--mle-font-family);cursor:auto;
    }
    .mle-product-mega-menu .mle-product-mega-inner{
        display:grid;grid-template-columns:minmax(230px,28%) minmax(0,1fr);gap:48px;
        width:var(--mle-page-width,min(1440px,calc(100% - 48px)));
        max-width:var(--mle-container);height:100%;min-height:0;margin-inline:auto;
    }
    .mle-product-mega-sidebar,.mle-product-mega-panel{display:flex;flex-direction:column;min-height:0;min-width:0}
    .mle-product-mega-caption{flex:none;margin:0 0 18px;padding:0 16px;color:var(--mle-muted,#617085);font-size:13px;font-weight:600;line-height:1.5;text-transform:uppercase;letter-spacing:.03em}
    .mle-product-mega-categories{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-right:10px;scrollbar-width:auto;scrollbar-color:auto}
    .mle-product-mega-categories::-webkit-scrollbar,.mle-product-mega-scroll::-webkit-scrollbar{width:4px;height:4px}
    .mle-product-mega-categories::-webkit-scrollbar-track,.mle-product-mega-scroll::-webkit-scrollbar-track{background:#dce1e5;border-radius:999px}
    .mle-product-mega-categories::-webkit-scrollbar-thumb,.mle-product-mega-scroll::-webkit-scrollbar-thumb{background:var(--mle-blue,#204b96);border:0;border-radius:999px;min-height:40px}
    .mle-product-mega-categories::-webkit-scrollbar-button,.mle-product-mega-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}

    body:not(.wp-admin) .mle-header .mle-product-mega-category{
        position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;box-sizing:border-box;
        width:100%;min-height:58px;height:auto;margin:0 0 4px;padding:14px 14px 14px calc(16px + var(--mle-category-depth,0)*14px);
        border:0;border-radius:6px;background:transparent;color:var(--mle-ink,#101820);box-shadow:none;
        font:500 14px/1.55 var(--mle-font-family);text-transform:none;letter-spacing:normal;text-align:left;text-decoration:none;white-space:normal;cursor:pointer;
        transition:background-color .2s,color .2s;
    }
    .mle-product-mega-category>span{min-width:0;overflow-wrap:anywhere}
    .mle-product-mega-category>svg{flex:none;color:#6f7c8d}
    body:not(.wp-admin) .mle-header .mle-product-mega-category:is([data-mle-preview-active="true"],:hover){background:#f0f4f9;color:var(--mle-blue)}
    .mle-product-mega-category[data-mle-preview-active="true"]>svg{color:var(--mle-blue)}
    .mle-product-mega-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;min-height:30px;margin-bottom:22px}
    .mle-product-mega-heading .mle-product-mega-title{margin:0;color:var(--mle-ink,#101820);font:600 23px/1.4 var(--mle-font-family);letter-spacing:normal}
    .mle-header .mle-product-mega-menu .mle-product-mega-all{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;box-sizing:border-box;min-height:40px;padding:10px 22px;font:600 13px/1.5 var(--mle-font-family);white-space:nowrap;text-decoration:none}
    .mle-header .mle-product-mega-menu .mle-product-mega-all:is(:hover,:focus-visible){text-decoration:none}
    .mle-product-mega-results{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
    .mle-product-mega-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:auto;padding-right:10px}
    @supports not selector(::-webkit-scrollbar){.mle-product-mega-categories,.mle-product-mega-scroll{scrollbar-width:thin;scrollbar-color:var(--mle-blue,#204b96) #dce1e5}}

    .mle-product-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:26px 22px}
    .mle-header .mle-product-mega-menu .mle-product-mega-card{display:flex;flex-direction:column;gap:14px;min-width:0;margin:0;padding:0;color:var(--mle-ink,#101820);font:500 13px/1.55 var(--mle-font-family);text-decoration:none;white-space:normal}
    .mle-product-mega-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1.1;overflow:hidden;background:#fff}
    .mle-product-mega-image img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;transition:transform .35s ease}
    .mle-product-mega-name{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;min-height:3.1em;overflow-wrap:anywhere}
    .mle-header .mle-product-mega-menu .mle-product-mega-card:hover{color:var(--mle-blue)}
    .mle-product-mega-card:hover img{transform:scale(1.035)}
    .mle-product-mega-empty{margin:20px 0;padding:18px 0;color:var(--mle-muted,#617085);font-size:14px;line-height:1.7}
    .mle-product-mega-results[aria-busy="true"]{cursor:progress}
    .mle-header :is(.mle-product-mega-toggle,.mle-product-mega-category,.mle-product-mega-card,.mle-product-mega-all):focus-visible{outline:2px solid var(--mle-blue);outline-offset:-2px}
    .mle-product-mega-panel:focus{outline:none}
}
@media(min-width:1181px) and (max-width:1400px){
    .mle-product-mega-menu .mle-product-mega-inner{grid-template-columns:260px minmax(0,1fr);gap:34px}
    .mle-product-mega-grid{gap:22px 18px}
}
@media(prefers-reduced-motion:reduce){.mle-product-mega-menu *,.mle-product-mega-toggle::before{transition:none!important}}
@media(min-width:1181px){
    body:not(.wp-admin) .mle-header.mle-product-mega-open .mle-primary-nav>.mle-nav-list>li:is(.current-menu-item,.mle-menu-active)>a{color:var(--mle-blue)!important}
}
