Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;500;600;700&display=swap" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.5/typed.min.js"></script>
</head>
<body>


    <header class="header">
        <div class="container">
            <div class="row v-center">
                <div class="header-item item-left">
                    <div class="logo"><a href="#">Store.</a></div>
                </div>
                <div class="header-item item-center">
                    <div class="menu-overlay"></div>
                    <nav class="menu">
                        <div class="mobile-menu-head">
                            <div class="go-back"><i class="fas fa-angle-left"></i></div>
                            <div class="current-menu-title"></div>
                            <div class="mobile-menu-close">&times;</div>
                        </div>
                        <ul class="menu-main">
                            <li><a href="#">Home</a></li>
                            <li>
                                <a href="#">Shop</a>
                            </li>

                            <li class="menu-item-has-children">
                                <a href="#">Gallery <i class="fas fa-angle-down"></i></a>
                                <div class="sub-menu mega-menu mega-menu-column-4">
                                    <div class="list-item text-center">
                                        <a href="#">
                                            <img src="https://cdn.statically.io/img/goingzerowaste.com/wp-content/uploads/2020/06/Armedangels3-min-1-799x1024.jpg?f=auto" alt="">
                                            <h2 class="title">Men's</h2>
                                        </a>
                                    </div>

                                    <div class="list-item text-center">
                                        <a href="#">
                                            <img src="https://ecowarriorprincess.net/wp-content/uploads/2018/08/Annika-Deboer-Lauren-Dress-Steel-Blue-Ethical-and-Sustainable-Fashion-in-New-Zealand.jpg" alt="">
                                            <h2 class="title">Women's</h2>
                                        </a>
                                    </div>

                                    <div class="list-item text-center">
                                        <a href="#">
                                            <img src="https://www.skfk-ethical-fashion.com/cdnassets/images/products/f19/dress-recycled-polyester-lakha-skfk-wdr00836-2n-ffb.jpg" alt="">
                                            <h2 class="title">Kids'</h2>
                                        </a>
                                    </div>

                                    <div class="list-item text-center">
                                        <a href="#">
                                            <img src="https://images.squarespace-cdn.com/content/v1/5442b6cce4b0cf00d1a3bef2/1581452381291-COIIFX1G453K3GOIZCPP/ke17ZwdGBToddI8pDm48kFArOLL-JrphExIyKlUU2JFZw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZUJFbgE-7XRK3dMEBRBhUpzheQTriTsAekrCXGzx1_YDKd_v_e5OKe84jVwEuJ7LHQK5Xp-Xi2MgqmPG9kHvKeY/Ethical+Capsule+Wardrobe+For+The+Office+-+Vetta+Capsule" alt="">
                                            <h2 class="title">Parfumes</h2>
                                        </a>
                                    </div>

                                    <div class="list-item text-center">
                                        <a href="#">
                                            <img src="https://i.pinimg.com/236x/70/73/3d/70733d6424eeb28d4f2df3fd46e6cae5.jpg" alt="">
                                            <h2 class="title">Beauty</h2>
                                        </a>
                                    </div>
                                </div>
                            </li>

                            <li class="menu-item-has-children">
                                <a href="#">Products <i class="fas fa-angle-down"></i></a>
                                <div class="sub-menu mega-menu mega-menu-column-4">
                                    <div class="list-item">
                                        <h2 class="title">Men's Fashion</h2>
                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                        </ul>

                                        <h2 class="title">Beauty</h2>
                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            
                                        </ul>
                                    </div>
                                    <div class="list-item">
                                        <h2 class="title">Women's Fashion</h2>
                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            
                                        </ul>

                                        <h2 class="title">Caps & Bags</h2>
                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            
                                        </ul>
                                    </div>
                                    <div class="list-item">
                                        <h2 class="title">Make Ups</h2>

                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            
                                        </ul>

                                        <h2 class="title">Kids' Fashion</h2>

                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                           
                                            
                                        </ul>
                                    </div>

                                    <div class="list-item">
                                        <h2 class="title">Home Equipments</h2>

                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            
                                            
                                        </ul>

                                        <h2 class="title">Parfumes</h2>

                                        <ul>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                            <li><a href="#">Product One</a></li>
                                           
                                            
                                        </ul>
                                    </div>

                                    <div class="list-item">
                                        <img src="https://www.skfk-ethical-fashion.com/cdnassets/images/products/f19/dress-recycled-polyester-lakha-skfk-wdr00836-g8-ofm.jpg" alt="">
                                    </div>
                                </div>
                            </li>
                            <li>
                                <a href="#">Support</a>
                            </li>

                            <li>
                                <a href="#">Discover</a>
                            </li>
                        </ul>
                    </nav>
                </div>
                <div class="header-item item-right">
                    <a href="#"><i class="fas fa-search"></i></a>
                    <a href="#"><i class="fas fa-shopping-cart"></i></a>
                    <a href="#"><i class="fas fa-heart"></i></a>

                    <div class="mobile-menu-trigger">
                        <span></span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <section class="banner-section"></section>


<section class="product-list">
    <div class="container">
        <h2 class="product-title">Featured Products</h2>
        <div class="row">
            <!--STRT ITEM-->
            <div class="item">
                <div class="product">
                    <div class="product-thumb">
                        <img src="https://cdn.shopify.com/s/files/1/0413/4325/products/MG_8060.jpg?v=1597202946" class="pro-thumb-img">

                        <div class="product-styles">
                            <span class="active-style" data-image="" style="background-color: tomato;"></span>

                            <span class="" data-image="" style="background-color: royalblue;"></span>

                            <span class="" data-image="" style="background-color: seagreen;"></span>

                        </div>

                        <div class="product-button">
                            <a href="#" title="Quick View">
                                <i class="fas fa-eye"></i>
                            </a>

                            <a href="#" title="Add To Cart">
                                <i class="fas fa-shopping-cart"></i>
                            </a>

                            <a href="#" title="Wishlist">
                                <i class="far fa-heart"></i>
                            </a>
                        </div>

                    </div>

                    <div class="product-info">
                        <div class="rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                        </div>
                        <h3 class="product-name">Sugar Baby Dress</h3>
                        <p class="product-price first">$50.00</p>
                        <p class="product-price">$30.00</p>

                        <div class="off-info">
                            <h2 class="sm-title">50% OFF</h2>
                        </div>
                    </div>
                </div>
            </div>
            <!--END ITEM-->

              <!--STRT ITEM-->
              <div class="item">
                <div class="product">
                    <div class="product-thumb">
                        <img src="https://i.pinimg.com/originals/80/18/79/801879a1d7831f9de451999fc6fb4bfd.jpg" class="pro-thumb-img">

                        <div class="product-styles">
                            <span class="active-style" data-image="" style="background-color: tomato;"></span>

                            <span class="" data-image="" style="background-color: royalblue;"></span>

                            <span class="" data-image="" style="background-color: seagreen;"></span>

                        </div>

                        <div class="product-button">
                            <a href="#" title="Quick View">
                                <i class="fas fa-eye"></i>
                            </a>

                            <a href="#" title="Add To Cart">
                                <i class="fas fa-shopping-cart"></i>
                            </a>

                            <a href="#" title="Wishlist">
                                <i class="far fa-heart"></i>
                            </a>
                        </div>

                    </div>

                    <div class="product-info">
                        <div class="rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                        </div>
                        <h3 class="product-name">Sugar Baby Dress</h3>
                        <p class="product-price first">$50.00</p>
                        <p class="product-price">$30.00</p>

                    </div>
                </div>
            </div>
            <!--END ITEM-->

             <!--STRT ITEM-->
             <div class="item">
                <div class="product">
                    <div class="product-thumb">
                        <img src="https://cdn.tobi.com/product_images/lg/1/wine-jaycie-cap-sleeve-skater-dress.jpg" class="pro-thumb-img">

                        <div class="product-styles">
                            <span class="active-style" data-image="" style="background-color: tomato;"></span>

                            <span class="" data-image="" style="background-color: royalblue;"></span>

                            <span class="" data-image="" style="background-color: seagreen;"></span>

                        </div>

                        <div class="product-button">
                            <a href="#" title="Quick View">
                                <i class="fas fa-eye"></i>
                            </a>

                            <a href="#" title="Add To Cart">
                                <i class="fas fa-shopping-cart"></i>
                            </a>

                            <a href="#" title="Wishlist">
                                <i class="far fa-heart"></i>
                            </a>
                        </div>

                    </div>

                    <div class="product-info">
                        <div class="rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                        </div>
                        <h3 class="product-name">Sugar Baby Dress</h3>
                        <p class="product-price first">$50.00</p>
                        <p class="product-price">$30.00</p>

                        <div class="off-info">
                            <h2 class="sm-title">25% OFF</h2>
                        </div>

                    </div>
                </div>
            </div>
            <!--END ITEM-->

             <!--STRT ITEM-->
             <div class="item">
                <div class="product">
                    <div class="product-thumb">
                        <img src="https://www.backdoor.co.nz/user/images/28078.jpg?t=1907221529" class="pro-thumb-img">

                        <div class="product-styles">
                            <span class="active-style" data-image="" style="background-color: tomato;"></span>

                            <span class="" data-image="" style="background-color: royalblue;"></span>

                            <span class="" data-image="" style="background-color: seagreen;"></span>

                        </div>

                        <div class="product-button">
                            <a href="#" title="Quick View">
                                <i class="fas fa-eye"></i>
                            </a>

                            <a href="#" title="Add To Cart">
                                <i class="fas fa-shopping-cart"></i>
                            </a>

                            <a href="#" title="Wishlist">
                                <i class="far fa-heart"></i>
                            </a>
                        </div>

                    </div>

                    <div class="product-info">
                        <div class="rating">
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="fas fa-star"></i>
                            <i class="far fa-star"></i>
                        </div>
                        <h3 class="product-name">Sugar Baby Dress</h3>
                        <p class="product-price first">$50.00</p>
                        <p class="product-price">$30.00</p>

                    </div>
                </div>
            </div>
            <!--END ITEM-->

        </div>
    </div>
</section>


<script>

    const menu = document.querySelector(".menu");
    const menuMain = menu.querySelector(".menu-main");
    const menuTrigger = document.querySelector(".mobile-menu-trigger");
    const goBack = menu.querySelector(".go-back");
    const closeMenu = menu.querySelector(".mobile-menu-close");



    let subMenu;
    menuMain.addEventListener("click", (e)=> {
        if(e.target.closest(".menu-item-has-children")){
            const hasChildren = e.target.closest(".menu-item-has-children");
            showSubMenu(hasChildren)
        }
    });


goBack.addEventListener("click", ()=>{
    hideSubMenu();
})

menuTrigger.addEventListener("click", ()=>{
    toggleMenu();
})

closeMenu.addEventListener("click", ()=> {
    toggleMenu();
})

document.querySelector(".menu-overlay").addEventListener("click", () =>{
    toggleMenu();
})

    function toggleMenu(){
        menu.classList.toggle("active");
        document.querySelector(".menu-overlay").classList.toggle("active");
    }

    function showSubMenu (hasChildren){
        subMenu = hasChildren.querySelector(".sub-menu");
        subMenu.classList.add("active");
        subMenu.style.animation ="slideLeft 0.5s ease forwards";
        const menuTitle = hasChildren.querySelector("i").parentNode.childNodes[0].textContent;
        menu.querySelector(".current-menu-title").innerHTML = menuTitle;
        menu.querySelector(".mobile-menu-head").classList.add("active");
    }

    function hideSubMenu(){
        subMenu.style.animation= "slideRight 0.5s ease forwards";
        setTimeout(()=>{
            subMenu.classList.remove("active");
        },300);
        menu.querySelector(".current-menu-title").innerHTML = "";
        menu.querySelector(".mobile-menu-head").classList.remove("active");
    }
    
    window.onresize = function(){
        if(this.innerwidth > 991){
            if(menu.classList.containes("active")){
                toggleMenu();
            }
        }
    }


</script>

</body>
</html>
              
            
!

CSS

              
                *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body{
    overflow-x: hidden;
}

.container{
    max-width: 1200px;
    margin: auto;
}


.row{
    display: flex;
    flex-wrap: wrap;
}

.v-center{
    align-items: center;
}


.header{
    position: relative;
    width: 100%;
    padding: 15px;
    display: block;
}

.header .item-left{flex: 0 0 17%;}
.header .item-center{flex: 0 0 66%;}
.header .item-right{flex: 0 0 17%; display: flex; justify-content: flex-end;}


.header .item-right a{
    display: inline-block;
    margin-left: 17px;
    color: black;
    font-size: 15px;
}


.header .logo a{
    font-size: 25px;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
    font-style: italic;
}


.header .menu > ul > li{
    display: inline-block;
    margin-left: 20px;
}



.header .menu > ul > li > a{
    font-size: 15px;
    color: black;
    position: relative;
    font-weight: 500;
}


.header .menu > ul > li .sub-menu{
    position: absolute;
    z-index: 500;
    background-color: white;
    box-shadow: -2px 2px 0px 25px white;
    margin-top: 25px;
    padding: 20px 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

@media (min-width:992px){
.header .menu > ul > li.menu-item-has-children:hover .sub-menu{
    opacity: 1;
    visibility: visible;
}
}


.header .menu > ul > li .sub-menu.mega-menu{
    left: 50%;
    transform: translateX(-50%);
}

.header .menu > ul > li .sub-menu.mega-menu-column-4{
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}


.header .menu > ul > li .sub-menu.mega-menu > .list-item{
    flex: 0 0 20%;
    padding: 0px 15px;
}



.header .menu > ul > li .sub-menu.mega-menu > .list-item .title{
    font-size: 18.5px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: rgb(17, 153, 139);
}


.header .menu > ul > li .sub-menu.mega-menu > .list-item.text-center .title{
    text-align: center;
    margin: 5px 0;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li{
    display: block;
    margin: 0;
    line-height: 30px; 
}


.header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a{
    font-size: 15px;  
    color: #555;
}

.header .menu > ul > li .sub-menu.mega-menu > .list-item img{
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}


.banner-section{
    display: block;
    background-image:linear-gradient(to bottom, rgba(0,0,0,0.3),rgba(0,0,0,0.9)), url('https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/190423-institute-sustanable-clothing-1556057761.png');
    background-size: cover;
    width: 100%;
    height: 700px;
}

.mobile-menu-head,
.mobile-menu-tigger{
    display: none;
}


/**/
.product-list{
    padding: 100px 15px;
    min-width: 100px;
}


.product-title{
    position: relative;
    text-align: center;
    margin: 0 auto 80px;
    line-height: 60px;
    color: rgb(212, 56, 39);
    font-size: 30px;
}

.product-title:after{
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(212, 56, 39);
    width: 50px;
    height: 10px;
}


.product-list .item{
    position: relative;
    flex-basis: 25%;
    max-width: 25%;
    margin-bottom: 50px;
    padding: 0px 15px;
}


.product-list .product .product-thumb img{
    max-width: 100%;
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
}


.product-list .product .product-info{
    text-align: center;
}


.product-list .product .product-info .product-name{
    font-size: 15px;
    margin: 5px 0;
    text-transform: uppercase;
    font-weight: normal;
}

.product-list .product .product-info .product-price{
    font-weight: 900;
    display: inline-block;
    margin: 0px 5px;
}

.product-list .product .product-info .first{
    color: rgb(212, 56, 39);
    font-size: 15px;
    text-decoration: line-through;
}


.product-list .product .rating{
    color: rgb(212, 56, 39);
}


.product-list .product .off-info .sm-title{
    position: absolute;
    top: 0;
    left: 15px;
    background-color: rgb(212, 56, 39);
    color: white;
    padding: 5px 0;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 17px;
    cursor: pointer;
    z-index: 1;
}


.product-list .product .product-thumb{
    position: relative;
} 

.product-list .product .product-thumb .product-button{
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-list .product:hover .product-thumb .product-button{
    opacity: 1;
    transform: translateY(0%);
}


.product-list .product .product-thumb .product-button a{
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgb(195, 34, 16);
    color: white;
}

.product-list .product .product-thumb .product-button a .fas,
.product-list .product .product-thumb .product-button a .far{
    line-height: 38px;
}



.product-list .product .product-thumb .product-styles{
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    z-index: 10;
    transform: opacity 0.3s ease;
}

.product-list .product:hover .product-thumb .product-styles{
    opacity: 1;
}


.product-list .product .product-thumb .product-styles span{
    position: relative;
    width: 10px;
    height: 10px;
    display: block;
    margin-bottom: 9px;
    border-radius: 50%;
    cursor: pointer;
}

.product-list .product .product-thumb .product-styles span.active-style:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid black;
    margin-top: -3px;
    margin-left: -3px;
    border-radius: 50%;
    box-sizing: border-box;
}


/**/

@media (max-width:991px){
    .header .item-center{
        order: 3;
        flex: 0 0 100%;
    }

    .header .item-right,
    .header .item-left{
        flex:  0 0 auto;
    }

    .v-center{
        justify-content: space-between;
    }

    .header .mobile-menu-trigger{
        display: flex;
        width: 30px;
        height: 30px;
        margin-left: 15px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .header .mobile-menu-trigger span{
        position: relative;
        display: block;
        width: 24px;
        height: 2px;
        background-color: black;
    }

    .header .mobile-menu-trigger span:before,
    .header .mobile-menu-trigger span:after{
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: black;
    }

    .header .mobile-menu-trigger span:before{
        top: -6px;
    }

    .header .mobile-menu-trigger span:after{
        top: 6px;
    }

    .header .item-right{
        align-items: center;
    }

    .header .menu{
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100%;
        background-color: white;
        z-index: 1099;
        overflow: hidden;
        transform: translate(-100%);
    }

    .header .menu.active{
        transform: translate(0%);
    }

    .header .menu > ul > li{
        display: block;
        margin: 0;
        line-height: 1;
    }

    .header .menu > ul > li > a{
        display: block;
        height: 60px;
        font-size: 17px;
        line-height: 60px;
        border-bottom: 1px solid rgba(0,0,0,0.3);
        padding: 0px 50px 0px 15px;
    }

    .header .menu > ul > li > a i{
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        transform: rotate(-90deg);
    }

    .header .menu .mobile-menu-head{
        display: flex;
        height: 60px;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        border-bottom: 1px solid rgba(0,0,0,0.5);
        z-index: 5012;
        position: sticky;
        top: 0;
    }

    .header .menu .mobile-menu-head .go-back{
        width: 50px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 16px;
        font-weight: 900;
        border-right: 1px solid rgba(0,0,0,0.3);
        cursor: pointer;
        display: none;
    }

    .header .menu .mobile-menu-head.active .go-back{
        display: block;
    }

    .header .menu .mobile-menu-head .current-menu-title{
        font-size: 18px;
        font-weight:900 ;
        color: black;
    }

    .header .menu .mobile-menu-head .mobile-menu-close{
        width: 50px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 17px;
        font-weight: 900;
        border-left: 1px solid rgba(0,0,0,0.3);
        cursor: pointer;
    }

    .header .menu .menu-main{
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .header .menu > ul > li .sub-menu,
    .header .menu > ul > li .sub-menu.mega-menu{
        opacity: 1;
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: none;
        overflow-x: auto;
        max-width: none;
        min-width: auto;
        padding-top: 65px;
        transform: translateX(0%);
        display: none;
    }

    .header .menu > ul > li .sub-menu.active{
        display: block;
    }

    @keyframes slideLeft{
        0%{
            opacity: 0;
            transform: translateX(100%);
        }

        100%{
            opacity: 1;
            transform: translateX(0%);
        }
    }

    @keyframes slideRight{
        0%{
            opacity: 1;
            transform: translateX(0%);
        }

        100%{
            opacity: 0;
            transform: translateX(100%);
        }
    }

    .header .menu > ul > li .sub-menu.mega-menu > .list-item{
        flex: 0 0 100%;
    }

    .header .menu > ul > li .sub-menu.mega-menu > .list-item .title{
        margin: 20px 0;
    }

    .header .menu > ul > li .sub-menu.mega-menu > .list-item.text-center .title{
        margin: 20px 0;
    }

    .header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li{
        line-height: 30px;
    }

    .header .menu > ul > li .sub-menu > ul > li > a,
    .header .menu > ul > li .sub-menu.mega-menu > .list-item > ul > li > a {
        display: block;
    }

    .menu-overlay{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1098;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active{
        opacity: 1;
        visibility: visible;
    }

}

@media (max-width:990px){
    .product-list .item{
        flex-basis: 50%;
        max-width: 50%;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console