.mega-main-wrap {
    background: #fff;
    border-radius: 0px 0px 7px 7px;
    box-shadow: 0px 0px 10px 2px #ddd;
    padding: 15px 20px;
    min-height: 430px;
    margin-bottom: 20px;
}
.category-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-menu>ul>li {
    border: 1px solid #e2e2e2;
    padding: 15px 28px;
    border-radius: 5px;
    margin-bottom: 8px;
    line-height: 1;
    height: 53px;
    cursor: pointer;
    transition: all ease-in-out .3s;
}
.category-menu>ul>li:hover,.category-menu>ul>li.ative {
    background: #16212F;
    border: 1px solid #16212F;
}
.sub-list li img {
    max-width: 25px;
}

.r-menu-block {
    text-align: left;
    display: none;
    /* opacity: 0; */
    transition: all ease-in-out .3s;
}
.category-menu {
    width: 25%;
    padding-right: 15px;
}
.category-menu {
    width: 25%;
    padding-right: 15px;
    position: relative;
}

.category-menu>ul>li>a,.category-menu>ul>li>span {
    color: #16212F;
    transition: all ease-in-out .3s;
    font-size: 17px;
    line-height: 1.2;
}
.category-menu>ul>li:hover>a,.category-menu>ul>li.ative a,
.category-menu>ul>li:hover>span,.category-menu>ul>li.ative span{
    color: #fff;
}

.parent-product-category .r-menu-block {
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: absolute;
    background: #16212f;
    color: #fff;
    width: calc(100% * 3);
    border-radius: 5px;
    top: 0px;
    padding: 40px 50px 0;
    left: calc(100% - 0px);
    display: flex;
     z-index: -1;
}

/* left: calc(100% + 0px); */


/* .parent-product-category>.r-menu-block>.row{
    opacity: 0;
    transition: all ease-in-out .3s;
}
.parent-product-category.ative>.r-menu-block>.row{
    opacity: 1;
} */
.parent-product-category.ative .r-menu-block {
    left: flex;
}
.menu-bottom-line {
    margin: 0;
    background: #1e2a3a;
    color: #fff;
    padding: inherit;
    text-align: center;
    font-size: 18px;
}
.parent-product-category .r-menu-block a{
    color: #f5f5f5;
}

/* .category-menu>ul>li.ative>a::before,
.category-menu>ul>li.ative>span::before {
    content: "";
    width: 22px;
    height: 53px;
    background: #16212f;
    position: absolute;
    left: calc(100% + 25px);
    top: -16px;
} */
.category-menu>ul>li.ative>a,
.category-menu>ul>li.ative>span {
    position: relative;
    width: 100%;
    display: block;
}
.mega-menu-list {
    background-color: #B99E5D;
    position: relative;
}
.mega-menu-list .container {
    position: relative;
    padding: 0;
}
.mega-menu-list>ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
ul.mega-menu-popup {
    padding: 0;
    margin: 0;
    display: none;
    list-style: none;
    position: absolute;
    top: 54px;
    left: 0;
    z-index: 5;
}
.mega-menu-list>.container>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


.mega-menu-list>.container>ul>li {
    color: #fff;
    line-height: 54px;
    padding: 0 20px;
    cursor: pointer;
}
.mega-menu-list>.container>ul li:hover>.mega-menu-popup {
    display: block;
    width: 100%;
    background: #16212f;
}
.sub-list-title {
    color: #b99e5d;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.sub-list li {
    margin-bottom: 10px;
}

.sub-list li a {
    font-size: 14px;
}
.page-template-menu-template main {
    min-height:500px;
}
.mega-menu-list>.container>ul:hover>li {
    opacity: 0.5;
}

.mega-menu-list>.container>ul>li:hover {
    opacity: 1;
}

.back-btn img {
    width: 28px;
}

/******/

/* menu test */


.side-menu
{
  position:absolute !important;
  color:white;
  width: 299px;
  height:350px;
}
.show-menu
{
  margin-left:0 !important;
}

.mega-menu-list.clicked .container {
    position: relative;
}
.back-btn {
    position: absolute;
    top: 15px;
}

.mega-menu-list .toggle-menu {
    right: 0;
    margin: 0px !important;
    right: 15px;
    position: absolute;
    top: 15px;
    z-index: 1;
}
.mega-menu-list .toggle-menu img {
    width: 30px;
    right: 15px;
    top: 15px;
}
.back-btn img {
    height: 30px;
}
.sub-list-title>img {
    width: 20px;
    float: right;
}
/***********************************/
.menu-bottom-line {
    background: #1d2a3a;
    padding: 15px;
    text-align: center;
    margin: 0px;
    border-radius: 5px;
    position: absolute;
    width: calc(100% - 30px);
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
}

.parent-product-category.ative .r-menu-block a.shop-all {
    font-family: 'Gilroy';
}

.sub-list li a:hover {
    color: #b99e5d !important;
}

.category-menu .col-md-4:last-child .sub-list ul img {
    vertical-align: sub;
}



@media (min-width: 1600px) {
    .mega-menu-list>.container>ul>li {
        color: #fff;
        line-height: 54px;
        padding: 0 30px;
        cursor: pointer;
    }


}

@media (min-width: 992px) {

    .mega-menu-list>.container>ul>li.my_account {
        display: none;
    }
}

@media (min-width: 991px) {

    .back-btn {
        display: none;
    }
    .mega-menu-list>.container>ul li:hover>.mega-menu-popup {
        margin: 0px !important;
    }
    .mega-menu-list .toggle-menu {
        display: none;
    }
    .sub-list-title>img {
        display: none;
    }
    .mega-menu-list>.container>ul>li.menu-active {
        font-weight: 800;
    }
    .mega-menu-list>.container>ul>li>a {
        color: #fff;
    }

}
@media (max-width: 991px) {
    .sub-list li {
        padding: 0 20px;
    }
    .menu-bottom-line {
        display: none;
    }

    .sub-list-title {
        padding: 0 20px;
    }
    .mega-menu-list {
        background-color: #16212f;
        max-width: 320px;
        margin-left: auto;
    }
    
    .mega-menu-list>.container>ul>li {
        width: 100%;
        line-height: 36px;
    }
        

    ul.mega-menu-popup {
        position: relative;
        top: 0;
        background: none;
    }
    
    .mega-main-wrap {
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .mega-menu-list {
        background-color: transparent !important;
        right: 0;
        margin-left: auto;
        height: 100Vh;
        overflow: hidden;
        right: -400px;
        margin-top: 1px;
        width: 0;
        position: absolute;
        transition: all ease-in-out .3s;
    }
    .mega-menu-list>.container>ul>li {
        width: 100%;
        line-height: 36px;
    }
    
    ul.mega-menu-popup {
        position: relative;
        top: 0;
        background: none;
    }
    
    .mega-main-wrap {
        padding: 0;
        background: none;
        box-shadow: none;
    }
    
    .category-menu {
        width: 100%;
        padding: 0;
    }
    
    .parent-product-category.ative .r-menu-block {
        position: relative;
        width: 100%;
        left: 0;
        padding: 0;
    }
    
    .parent-product-category.ative .r-menu-block .col-md-4 {
        max-width: 100% !important;
        width: 100% !important;
        flex: 100%;
    }
    .category-menu>ul>li {
        padding: 0;
        border: none;
    }
    .category-menu>ul>li.ative>a::before {
        display: none;
    }
    .category-menu>ul>li>a,.category-menu>ul>li>span {
        color: #fff;
        text-align: left;
        width: 100%;
        display: block;
        padding: 0 20px;
    }
    .mega-menu-list>.container {
        /* position: absolute; */
        display: block;
        top: 0;
        z-index: 10;
        background: #16212f;
        right: -100%;
        transition: all ease-in-out .3s;
        height: 100vh;
        overflow: auto;
        /* width: 0px; */
    }
    .mega-menu-list.clicked .container {
        right: 0;
        width: 320px;
        position: relative;
    }
    .mega-menu-list.clicked {
        right: 0;
        width: 320px;
    }
    .mega-menu-list.clicked .container {
        padding-top: 70px;
    }
    .back-btn {
        position: absolute;
        top: 0px;
        z-index: 2;
    }
    .sub-list-wrap .sub-list {
        display: none;
    }
    .hide {
        margin-left: 320px !important;
        transition: all 0.8s ease;
    }
    .hide.show-menu {
        margin-left: 0px !important;
    }
    .mega-menu-list>.container>ul>li:hover{
        color: #b99e5d !important;
    }
    .mega-menu-list>.container>ul:hover>li,
    .category-menu>ul>li>a {
        opacity: 1;
    }
    .category-menu>ul>li {
        margin: 0px !important;
        height: auto;
    }
    .category-menu>ul>li>a,.category-menu>ul>li>span {
        line-height: 36px;
        padding: 0px 20px;
    
    }
    .mega-menu-list>.container>ul>li>a {
        color: #fff
    }
    
    
}

/*** CSS Added on 27 Jan 2022 ***/

    .mega-main-wrap .brands_list .brand_item {
        text-align: center;
    }

    .mega-main-wrap .brands_list .brand_item h5 {
        text-transform: uppercase;
        font-size: 1rem;
        margin-top: 10px;
    }

/*** CSS Added on 27 Jan 2022 Ends here ***/


@media (max-width: 576px) {
    .mega-menu-list.clicked .container,.mega-menu-list.clicked {
        width: 100%;
    }
    .hide {
        margin-left: 100% !important;
    }
    .mega-menu-list {
        max-width: 100%;
    }
}

/*5-1-2022*/
.category-menu .sub-list ul img {
    display: none;
}
.category-menu .sub-list ul li {
    margin: 20px 0;
}
.category-menu .col-md-4:last-child .sub-list ul img {
    display: inline-block;
}

.category-menu .sub-list ul img {
    max-width: 20px;
    margin-right: 4px;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.soft a {
    color: #a5cc78;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.soft-medium a {
    color: #7dc17e;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.medium a {
    color: #39a096;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.medium-firm a {
    color: #f7cc4b;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.firm a {
    color: #e9663c;
}

.mega-menu-list .container ul .category-menu .sub-list ul li.extra-firm a {
    color: #f06883;
}
.category-menu .col-md-4:last-child .sub-list ul li:last-child {
    display: none;
}
/*ends 5-1-2022*/


@media (max-width: 991px) {
    .mega-main-wrap .brand_image_container {
        display: none;
    }
    
    .mega-main-wrap .brands_list .brand_item h5 {
        color: #fff;
    }
    .mega-menu-list>.container>ul>li.menu-active {
        background: #b89d5c;
    }
    .mega-main-wrap .brands_list .brand_item{
        flex: 0 0 100%;
        max-width: 100%;
    }
}




/******* animation meaga menu css start*****/
@media only screen and (min-device-width: 992px) {
    .mega-main-wrap {
       padding: 15px 20px 15px 0px;
       overflow: hidden;
    }  
    .category-menu{
        z-index: 0;
        min-height: inherit;
        height: 100%;
        padding-left: 20px;
        z-index: 0;
    }
    .parent-product-category.ative .r-menu-block {
        left: calc(100% + 0px);
    }
    .category-menu:after{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        content: "";
        background-color: #fff;
        z-index: -1;
    }
    .parent-product-category .r-menu-block {
        left: -1085px;
        display: flex;
    }
    .r-menu-block{
        transition: .7s;
    }
}
@media(max-width: 991px){
    .parent-product-category.ative .r-menu-block {
        background-color: #16212f;
        z-index: 0;
    }
}
/******* animation meaga menu css start*****/


