.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-menu > li {
    margin-right: 48px;
}

.main-menu > li.display-mobile-responsive-only{
    display:none !important;
}
.main-menu > li.no_img {
    position: relative;
}

.main-menu > li.no_img .inner-main {

}

.main-menu > li.no_img .content-middle-section {
    gap: 0;
    width: 100%;
}

.main-menu > li.no_img .level-3.level-4 {
    width: 100%;
}

.main-menu > li:last-child {
    margin-right: 0;
}

.main-menu > li a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #4C4C4C;
    line-height: 24px;
}

.main-menu > li img {
    flex-shrink: 0;
    margin-right: 8px;
}

.main-menu > li:hover .inner-main {
    visibility: visible;
    opacity: 1;
    transition: 0.4s;
}

.inner-main {   
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;   
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1270px;
    width: 100%;   
    z-index: 99;         
    padding: 25px;
    gap: 20px;
    max-height: 330px;
    overflow-y: auto;
    display: flex;
}        

.main-menu > li a.twolevel {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    Line height: 24px;
    margin-bottom: 10px;
} 

.main-menu > li .subCatList {
    font-size: 14px;
    font-weight: 500;
    color: #4C4C4C;
    margin-bottom: 25px;
}

.inner-main .col-md-2 .content-left-section {
    height: inherit;
    display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.inner-main .col-md-2 {
    width: 18%;
    border-right: 1px solid #E1E3DF;
    position: sticky;
    top: 0;
    display: flex;
  align-items: center;
  justify-content: center;
}

.inner-main .col-md-2 .content-left-section a {
    display: block;
}

.main-menu > li {
    margin-bottom: 4px;
}

.inner-main .col-md-2 .content-left-section a {            
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.inner-main .content-middle-section {
    width: 62%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.inner-main .content-right-section {
    width: 20%;
    position: sticky;
    top: 0;
}

.inner-main .content-right-section img {
    width: 100%;
}

.level-3.level-4 {
    width: 22%;
}

.main-menu > li.medium_img .inner-main .content-middle-section { width: 32%; }

.main-menu > li.medium_img .inner-main .content-right-section { width: 46%; }

.main-menu > li.medium_img .inner-main .content-right-section img { width: 100%; }

.main-menu > li.medium_img .level-3.level-4 { width: 47%; }


.main-menu > li.large_img .inner-main .content-middle-section { width: 17%; }

.main-menu > li.large_img .inner-main .content-right-section { width: 65%; }

.main-menu > li.large_img .inner-main .content-right-section img { width: 100%; }

.main-menu > li.large_img .level-3.level-4 { width: 100%; }


.main-menu > li.no_right_img .content-right-section { display: none; }
.main-menu > li.no_left_img .col-md-2 { display: none; }

.main-menu > li.no_img .content-right-section,
.main-menu > li.no_img .col-md-2 { display: none; }

.main-menu > li.no_right_img .content-middle-section,
.main-menu > li.no_left_img .content-middle-section { width: 80%; }

.main-menu > li.no_img .content-middle-section { width: 100%; }

.menuToggle,
.arw,
.closeButton {
    display: none;
}

.main-menu > li a.twolevel {
    font-weight: 700;
}

.main-menu > li.no_left_img .content-middle-section {
    width: 50%;
}

.main-menu > li.no_right_img .content-middle-section {
    width: 80%;
}

.main-menu > li.no_left_img .content-right-section {
    width: 50%;
}   

.main-menu > li.no_left_img .content-middle-section .level-3.level-4 { width: 32%; }

.main-menu > li.no_left_img .inner-main .col-md-2 .content-left-section a {
    display: none;
}

        .inner-main .content-right-section {
            display: flex;
            justify-content: flex-end;
        }
    
        .inner-main .content-right-section img {
            width: auto;
        }

        .inner-main {
            max-height: 450px;
        }

@media screen and (max-width: 1024px) {
    .mainMegaMenu {
        position: fixed;
        top: 0;
        left: -9999px;
        width: 300px;
        background-color: #fff;
        box-shadow: 0 0 5px rgba(0,0,0,0.4);
        padding: 0;
        z-index: 999;
        height: 100%;
        transition: 0.4s;
    }
    .main-menu > li.display-mobile-responsive-only{
        display:block !important;
    }
    .inner-main .col-md-2 .content-left-section a{
        display:none !important;
    }
    .main-menu > li.whishlist-link.display-mobile-responsive-only a:before {
        content: "";
        width: 24px;
        height: 24px;
        margin: 0 20px 0 0;
        display:block;
        background: url('https://cdn-static.kavtechnical.com/static/frontend/Magneto/kavalani/en_US/images/headerimg_css_sprites.png') -10px -54px;
    }
    
    .main-menu > li.no_right_img .content-middle-section {
        width: 100%;
    }

    .main-menu > li.no_left_img .content-middle-section {
        width: 100%;
    }

    .main-menu > li.no_left_img .content-right-section {
        width: 100%;
    }   

    .main-menu > li.no_left_img .content-middle-section .level-3.level-4 { width: 100%; }

    .menuToggle,
    .arw,
    .closeButton {
        display: block;
    }



    .header-leftside .nav-toggle {
        display: none;
    }

    .main-menu > li.large_img .inner-main .content-middle-section {
        width: 100%;
    }

    #main-megamenu-container {
        position: absolute;
        top: -6px;
        left: 15px;
        z-index: 9999;
    }

    .menuToggle {
        position: relative;
        font-size: 0;
        &:after {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-size: 28px;
            line-height: inherit;
            color: #757575;
            content: '\e609';
            font-family: 'luma-icons';
            vertical-align: middle;
            display: inline-block;
            font-weight: normal;
            overflow: hidden;
            speak: none;
            text-align: center;
            font-size: 24px;
            color: #fff;
        }
    }

    body.active {
        position: fixed;
        overflow: hidden;
    }

    .active .mainMegaMenu {
        left: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-menu {
        display: block;
        position: static;
        margin: 30px 0 0 0;
    }

    .inner-main .col-md-2 {
        width: 100%;
        position: static;
    }

    .main-menu > li {
        position: relative;
        margin: 0;
    }

    .main-menu > li > a {
        padding: 10px 50px 10px 20px;
        border-bottom: 1px solid #ccc;
    }
    
    .inner-main {
        display: none;
        visibility: visible;
        opacity: 1;
        position: static;
        padding: 0;
        width: 100%;
        gap: 0;                
        box-shadow: none;
        max-height: inherit;
        overflow-y: inherit;
        max-width: 100%;
        transition: inherit; 
        padding: 0 20px;
    }

    .main-menu > li .subCatList {
        margin-bottom: 15px;
    }

    .main-menu > li a.twolevel {
        margin-bottom: 5px;
    }

    .main-menu > li:hover .inner-main {
        transition: inherit; 
    }

    .arw {
        position: absolute;
        top: 0;
        right: 0;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;                
    }

    .main-menu > li img {
        display: none;
    }

    .level-3.level-4 {
        width: 100%;
    }

    .inner-main .content-middle-section {
        width: 100%;
    }

    .inner-main .content-middle-section {
        margin-top: 10px;
    }

    .closeButton {
        font-weight: 700;
        color: #000;
        font-size: 20px;
        position: absolute;
        top: 10px;
        right: 14px;
    }

    .inner-main .content-middle-section {
        gap: 0;
    }

    .inner-main .col-md-2,
    .inner-main .content-middle-section,
    .inner-main .content-right-section,
    .level-3.level-4,
    .main-menu > li.medium_img .inner-main .content-middle-section,
    .main-menu > li.medium_img .inner-main .content-right-section,
    .main-menu > li.medium_img .level-3.level-4,
    .main-menu > li.large_img .inner-main .content-middle-section,
    .main-menu > li.large_img .inner-main .content-right-section,
    .main-menu > li.no_right_img .content-middle-section,
    .main-menu > li.no_left_img .content-middle-section,
    .main-menu > li.no_left_img .content-middle-section,
    .main-menu > li.no_right_img .content-middle-section,
    .main-menu > li.no_left_img .content-right-section,
    .main-menu > li.no_left_img .content-middle-section .level-3.level-4 {
        width: 100%;
    }

    .mainMegaMenu {
        background-color: #e31119;
    }

    .main-menu > li a {
        color: #fff;
    }

    .arw {
        color: #fff;
    }
    
    .closeButton {
        color: #fff;
    } 

    .main-menu > li a.twolevel {
        color: #fff;
    }
    
    .inner-main {
        background: #e31119;
    }

}

.nav-sections + p {
    margin: 0;
}

@media (min-width: 1025px) {
    .main-menu > li {
        margin-bottom: 0;
        padding-top:11px;
        padding-bottom: 11px;
        border-bottom: 2px solid transparent;
    }

    .main-menu > li > a {
        text-decoration: none;
        
    }

    .main-menu > li:hover {
        border-color:#E31119;
    }

    .main-menu > li:hover > a {
        font-weight: 600;
    }
}
