
.megamenu {
    border-top: 1px solid #eee;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 3rem;
    background: #fff;
    z-index: 100;
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    display: grid;
    display: none;
    box-shadow: 0px 5px 20px 4px rgba(0,0,0,0.1);
    overflow: scroll !important;
}

@media (max-width: 1240px) {
    .megamenu {
        padding-top: 0px;
    }
}

@media (max-width: 960px) {
    .megamenu {
        display: none !important;
    }
}

.megamenu .product_categories {
    max-height: 600px;
    overflow: scroll;
}

.megamenu .product_categories .product_category {
    padding-right: 4rem;
    height: 60px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: all .3s ease-in-out;
    overflow: hidden;
}

.megamenu .product_categories .product_category.active {
    background-color: #eee;
}

.megamenu .product_categories .product_category:hover {
    background-color: #eee;
}

.megamenu .product_categories .product_category a {
    text-decoration: none !important;
}

.megamenu .product_categories .product_category .product_category_container {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: .5rem;
}

.megamenu .product_categories .product_category .product_category_container .product_category_image {
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    overflow: hidden;
    flex-shrink: 0;
    background-color: white;
}

.megamenu .product_categories .product_category .product_category_container .product_category_name {
    font-size: 14px;
    font-family: "Exo", Arial, serif;
    font-weight: 500;
    color: black;
    padding-block: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.megamenu .product_categories .product_category .product_category_container .product_category_name:hover {
    text-decoration: underline;
}

.megamenu .product_category_products {
    max-height: 600px;
    overflow: scroll;
    grid-column: span 2 / span 2;
}

.megamenu .product_category_products .products {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

.megamenu .products .product {
    padding-inline: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: all .3s ease-in-out;
    text-decoration: none !important;
}

.megamenu .products .product:hover {
    background-color: #eee;
}

.megamenu .products .product .product_name {
    font-family: "Exo", Arial, serif;
    font-weight: 500;
    color: black;
        font-size: 14px;
    /* overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; */
}

.megamenu .products .product .product_name:hover {
    text-decoration: underline;
}

.megamenu .option:hover {
    cursor: pointer;
}