/* ============================================================
    MUNDO FESTA DESKTOP NAV (Refactored)
   ============================================================ */
 /* Desktop Nav - Hidden by default on small screens */
.mf-nav {
    display: none !important;
}

@media (min-width: 769px) {
    .mf-nav {
        position: relative !important;
        z-index: 500 !important;
        display: block !important;
        width: 100% !important;
    }
}

 .mf-nav-wrap {
     max-width: 1200px !important;
     margin: 0 auto !important;
     display: flex !important;
     flex-direction: row !important;
     align-items: stretch !important;
     list-style: none !important;
     padding: 0 !important;
 }
 
 .mf-ni { 
     position: relative !important;
     display: block !important;
     flex: 0 0 auto !important;
 }
 
 .mf-ni > a {
     display: flex !important;
     align-items: center !important;
     gap: 5px !important;
     padding: 0 14px !important;
     height: 46px !important;
     font-size: 13.5px !important;
     font-weight: 500 !important;
     white-space: nowrap !important;
     text-decoration: none !important;
     border-right: 1px solid rgba(255,255,255,0.12) !important;
     transition: all 0.2s ease !important;
     cursor: pointer !important;
 }
 
 .mf-arr { font-size: 9px !important; opacity: 0.75 !important; margin-top: 1px !important; }
 
 .mf-more {
     margin-left: auto !important;
 }
 .mf-more > a {
     background: rgba(255,255,255,0.1) !important;
     border-left: 1px solid rgba(255,255,255,0.15) !important;
     border-right: none !important;
     font-weight: 600 !important;
     gap: 6px !important;
 }
 
 .mf-drop {
     display: none !important;
     position: absolute !important;
     top: 100% !important;
     left: 0 !important;
     z-index: 600 !important;
     border-radius: 0 0 8px 8px !important;
     border: 1px solid #e0e0e0 !important;
     box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
     min-width: 200px !important;
     padding: 6px 0 !important;
     margin: 0 !important;
     list-style: none !important;
 }
 .mf-ni.mf-open > .mf-drop { display: block !important; }
 
 .mf-drop a {
     display: block !important;
     padding: 9px 18px !important;
     font-size: 13.5px !important;
     text-decoration: none !important;
     white-space: nowrap !important;
     transition: background 0.1s, color 0.1s !important;
     border: none !important;
 }
 
 .mf-drop.mf-cols {
     columns: 2 !important;
     column-gap: 0 !important;
     min-width: 400px !important;
 }
 .mf-drop.mf-cols a { break-inside: avoid !important; }
 
 .mf-more .mf-drop {
     left: auto !important;
     right: 0 !important;
     min-width: 550px !important;
     padding: 0 !important;
     columns: unset !important;
 }
 .mf-more.mf-open .mf-drop { display: flex !important; }
 
 .mf-mega-col {
     flex: 1 !important;
     padding: 10px 0 !important;
     border-right: 1px solid #eee !important;
     display: block !important;
 }
 .mf-mega-col:last-child { border-right: none !important; }
 
 .mf-section-label {
     display: block !important;
     padding: 8px 18px 5px !important;
     font-size: 11px !important;
     font-weight: 700 !important;
     text-transform: uppercase !important;
     letter-spacing: 0.07em !important;
     border-bottom: 1px solid #f0f0f0 !important;
     margin-bottom: 3px !important;
 }
 
 /* Hide old legacy desktop nav if any */
 .csl-desktop-nav .csl-menu-root { display: none !important; }

/* ================= Mobile Menu ================= */

/* Toggle Button (Hidden on Desktop) */
.csl-menu-toggle {
    display: none !important;
    background: transparent;
    border: none;
    color: #333;
    /* Fallback */
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.csl-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Helper to lock body scroll */
body.csl-menu-lock {
    overflow: hidden;
}

@media (max-width: 480px) {
    .csl-menu-toggle {
        display: block;
    }

    .csl-menu-container {
        /* Reset margin logic for header */
        margin-bottom: 0;
    }

    /* Off-Canvas Nav */
    .csl-menu-nav {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden Left */
        width: 80%;
        /* Width of drawer */
        max-width: 350px;
        height: 100%;
        background: #fff;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-x: hidden;
        /* Important for sliding panels */
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Open State */
    .csl-menu-container.csl-mobile-open .csl-menu-nav {
        left: 0;
    }

    .csl-menu-container.csl-mobile-open .csl-mobile-overlay {
        display: block;
        opacity: 1;
    }

    /* Root List - Vertical */
    .csl-menu-root {
        display: block !important;
        width: 100%;
        position: relative;
        /* Sliding Container Base */
    }

    .csl-menu-root>li>a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    /* Sub Menus - Slide Logic */
    .csl-menu-root .sub-menu {
        display: block;
        /* Always block for transform */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Full height */
        min-height: 100%;
        background: #fff;
        transform: translateX(100%);
        /* Hidden Right */
        transition: transform 0.3s ease;
        z-index: 1001;
        /* Above parent */
        visibility: hidden;
        /* Hide when not active to prevent focus/clicks */
        box-shadow: none;
        /* Reset shadow */
        border-radius: 0;
        /* Reset radius */
    }

    .csl-menu-root .sub-menu.is-active-level {
        transform: translateX(0);
        visibility: visible;
        overflow-y: auto;
    }

    /* Nested Sub Menus need to be relative to screen/viewport logic 
       Because we are using absolute positioning, deep nesting works 
       if the parent UL becomes the view context? 
       Actually, standard sliding menu logic usually just stacks transforms.
    */

    /* When a sub-menu is active, the parent UL slides LEFT */
    ul.slide-out-left {
        /* transform: translateX(-30%);  Optional parallax */
        /* opacity: 0.5; */
    }

    /* Back Button */
    li.csl-menu-back {
        display: block;
        background: #f9f9f9;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
    }

    li.csl-menu-back a {
        color: #555 !important;
        font-size: 13px;
    }
}