/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.mcm-wrapper{
    position:relative;
    width:100%;
    z-index:999;
}

/*
|--------------------------------------------------------------------------
| NAVBAR
|--------------------------------------------------------------------------
*/

.mcm-nav{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:56px;
    position:relative;
}

.mcm-items{
    display:flex;
    align-items:center;
    gap:8px;
    flex:1;
    overflow:visible;
    min-width:0;
}

.mcm-home,
.mcm-link,
.mcm-more{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:var(--mcm-desktop-color,#222);
    white-space:nowrap;
    transition:.2s;
}

.mcm-home:hover,
.mcm-link:hover,
.mcm-more:hover{
    opacity:1;
}

.mcm-home{
    flex-shrink:0;
    font-weight:600;
}

.mcm-home-icon{
    font-size:22px;
}

.mcm-more{
    flex-shrink:0;
    font-weight:600;
    background: none !important;
}

/*
|--------------------------------------------------------------------------
| CATEGORY ITEM
|--------------------------------------------------------------------------
*/

.mcm-item{
    position:relative;
    flex-shrink:0;
}

.mcm-link{
    position:relative;
    padding:8px 10px;
    border-radius:8px;
}

.mcm-link::after{content:"";position:absolute;left:10px;right:10px;bottom:2px;height:2px;border-radius:3px;background:currentColor;opacity:0;transform:scaleX(.35);transition:.2s}
.mcm-link:hover,.mcm-link:focus-visible{background:color-mix(in srgb,var(--mcm-desktop-color,#222) 14%,transparent);outline:none}.mcm-link:hover::after,.mcm-link:focus-visible::after{opacity:.65;transform:scaleX(1)}
.mcm-item.mcm-current>.mcm-link,.mcm-item.mcm-current-ancestor>.mcm-link{background:color-mix(in srgb,var(--mcm-desktop-color,#222) 22%,transparent);font-weight:800}.mcm-item.mcm-current>.mcm-link::after,.mcm-item.mcm-current-ancestor>.mcm-link::after{height:3px;opacity:1;transform:scaleX(1)}.mcm-item.mcm-current>.mcm-link img,.mcm-item.mcm-current-ancestor>.mcm-link img{box-shadow:0 0 0 2px currentColor}

.mcm-link img{
    width:28px;
    height:28px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}

.mcm-link span{
    white-space:nowrap;
}

/*
|--------------------------------------------------------------------------
| MEGA MENU
|--------------------------------------------------------------------------
*/

.mcm-mega{
    position:absolute;
    left:0;
    top:100%;
    min-width:850px;
    background:#fff;
    border:1px solid #e8edf3;
    border-radius:14px;
    padding:15px;
    box-shadow:
    0 18px 48px rgba(15,23,42,.18);
    display:none;
    z-index:9999;
}

.mcm-item:hover .mcm-mega{
    display:block;
}

.mcm-mega-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-2px -2px 13px;padding:4px 4px 12px;border-bottom:1px solid #edf0f4}.mcm-mega-head>div{display:flex;flex-direction:column}.mcm-mega-head span{color:#f97316;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.mcm-mega-head strong{margin-top:2px;color:#172033;font-size:18px;line-height:1.25}.mcm-mega-head>a{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 11px;border-radius:8px;background:#fff3ea;color:#d9570d;font-size:11px;font-weight:800;text-decoration:none}.mcm-mega-head>a:hover{background:#f97316;color:#fff}

.mcm-mega.mcm-portal-open{
    position:fixed;
    display:block;
    z-index:1000000;
    overflow:auto;
    animation:mcmMegaOpen .16s ease-out;
    transform-origin:var(--mcm-origin-x,30px) top;
    overscroll-behavior:contain;
    scrollbar-width:thin;
}
.mcm-mega.mcm-portal-open.mcm-open-above{transform-origin:var(--mcm-origin-x,30px) bottom}
.mcm-mega.mcm-portal-open::before{content:"";position:absolute;top:-7px;left:calc(var(--mcm-origin-x,30px) - 8px);width:16px;height:16px;border-left:1px solid #e8edf3;border-top:1px solid #e8edf3;background:#fff;transform:rotate(45deg);z-index:-1}
.mcm-mega.mcm-portal-open.mcm-open-above::before{top:auto;bottom:-7px;transform:rotate(225deg)}

.mcm-item.mcm-is-open>.mcm-link{
    background:color-mix(in srgb,var(--mcm-desktop-color,#222) 20%,transparent);
}

@keyframes mcmMegaOpen{
    from{opacity:0;transform:translateY(4px) scale(.992)}
    to{opacity:1;transform:translateY(0)}
}


.mcm-mega-grid{
    display:grid;
    grid-template-columns:
    repeat(4,minmax(180px,1fr));
    gap:8px;
}

.mcm-subcat{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#222;
    min-width:0;
    min-height:68px;
    padding:8px;
    border:1px solid transparent;
    border-radius:10px;
    transition:.2s;
}

.mcm-subcat:hover{
    border-color:#fed7aa;
    background:#fff7ed;
    transform:translateY(-1px);
}

.mcm-subcat img{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:8px;
    flex-shrink:0;
}

.mcm-subcat strong{
    display:block;
    font-size:14px;
    line-height:1.3;
}

/*
|--------------------------------------------------------------------------
| MOBILE TOGGLE
|--------------------------------------------------------------------------
*/

.mcm-mobile-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:20px;
    color:var(--mcm-toggle-color,#222);
}
.mcm-mobile-toggle:hover{
    background:transparent;
}
/*
|--------------------------------------------------------------------------
| MOBILE DRAWER
|--------------------------------------------------------------------------
*/

.mcm-mobile-drawer{
    position:fixed;
    top:0;
    left:-320px;
    width:300px;
    height:100vh;
    background:#fff;
    z-index:99999;
    transition:.3s;
    overflow:auto;
    box-shadow:
    0 0 30px rgba(0,0,0,.12);
}

.mcm-mobile-drawer.active{
    left:0;
}

.mcm-mobile-inner{
    padding:20px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.mcm-mobile-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
    padding-bottom:5px;
    border-bottom:1px solid #eee;
}
.mcm-mobile-home{
    display:block;
    text-decoration:none;
    color:#222;
    font-weight:600;
    margin-bottom:15px;
}

.mcm-mobile-item{
    border-bottom:
    1px solid rgba(0,0,0,.12);
}

.mcm-mobile-parent{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 0;
}

.mcm-mobile-parent-link{
    flex:1;
    text-decoration:none;
    color:#222;
    font-weight:600;
}

.mcm-mobile-toggle-sub{
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
    padding:5px 10px;
}

.mcm-mobile-sub{
    display:none;
    padding-bottom:12px;
}

.mcm-mobile-sub.active{
    display:block;
}

.mcm-mobile-sub a{
    display:block;
    text-decoration:none;
    color:#555;
    padding:6px 0;
    font-size:13px;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media(max-width:1024px){

    .mcm-mega{
        min-width:700px;
    }

    .mcm-mega-grid{
        grid-template-columns:
        repeat(3,minmax(180px,1fr));
    }

}

@media(max-width:767px){

    .mcm-nav{
        display:none;
    }

    .mcm-mobile-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

}

@media(max-width:480px){

    .mcm-mobile-drawer{
        width:250px;
    }

}

.mcm-subcat.mcm-subcat-current{border-color:#f97316;background:#fff7ed;box-shadow:inset 3px 0 0 #f97316}.mcm-subcat.mcm-subcat-current strong{color:#c2410c}

.mcm-subcat div{min-width:0}.mcm-subcat small{display:block;margin-top:4px;color:#7b8493;font-size:10px;line-height:1.2}.mcm-mega .mcm-preview-product strong{display:-webkit-box!important;overflow:hidden!important;max-height:2.6em;line-height:1.3!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;text-overflow:ellipsis}.mcm-preview-product small{color:#e11d48;font-size:12px;font-weight:700}.mcm-preview-product small del{margin-right:4px;color:#9ca3af;font-size:10px;font-weight:500}.mcm-preview-product small ins{text-decoration:none}
.mcm-grid-label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:3px;padding:8px 3px 2px;border-top:1px solid #edf0f4}.mcm-grid-label span{color:#172033;font-size:12px;font-weight:800}.mcm-grid-label small{color:#8a94a4;font-size:9px}
