﻿/*

     1. Product Container Div
     2. Mega Menu
     3. Filter button

 */


/********************* 1. Product Container Div - Start **********************/
.product-grid4, .product-grid4 .product-image4 {
    position: relative
}

.product-grid4 {
    /*font-family: Poppins,sans-serif;*/
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
    transition: all .3s ease 0s;
    border: 1px solid rgba(0,0,0,.1);
    margin-bottom: 30px;
}

    .product-grid4:hover {
        box-shadow: 0 0 10px rgba(0,0,0,.8)
    }

    .product-grid4 .product-image4 a {
        display: block
    }

    .product-grid4 .product-image4 img {
        width: 100%;
        height: auto
    }

    .product-grid4 .pic-1 {
        opacity: 1;
        transition: all .5s ease-out 0s
    }

    /*.product-grid4:hover .pic-1 {
        opacity: 0
    }*/

    .product-grid4 .pic-2 {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: all .5s ease-out 0s
    }

    .product-grid4:hover .pic-2 {
        opacity: 1
    }

    .product-grid4 .social {
        width: 180px;
        padding: 0;
        margin: 0 auto;
        list-style: none;
        position: absolute;
        right: 0;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: all .3s ease 0s
    }

        .product-grid4 .social li {
            display: inline-block;
            opacity: 0;
            transition: all .7s
        }

            .product-grid4 .social li:nth-child(1) {
                transition-delay: .15s
            }

            .product-grid4 .social li:nth-child(2) {
                transition-delay: .3s
            }

            .product-grid4 .social li:nth-child(3) {
                transition-delay: .45s
            }

    .product-grid4:hover .social li {
        opacity: 1
    }

    .product-grid4 .social li a {
        color: #222;
        background: #fff;
        font-size: 17px;
        line-height: 36px;
        width: 40px;
        height: 36px;
        border-radius: 2px;
        margin: 0 5px;
        display: block;
        transition: all .3s ease 0s
    }

        .product-grid4 .social li a:hover {
            color: #fff;
            background: #16a085
        }

        .product-grid4 .social li a:after, .product-grid4 .social li a:before {
            content: attr(data-tip);
            color: #fff;
            background-color: #000;
            font-size: 12px;
            line-height: 20px;
            border-radius: 3px;
            padding: 0 5px;
            white-space: nowrap;
            opacity: 0;
            transform: translateX(-50%);
            position: absolute;
            left: 50%;
            top: -30px
        }

        .product-grid4 .social li a:after {
            content: '';
            height: 15px;
            width: 15px;
            border-radius: 0;
            transform: translateX(-50%) rotate(45deg);
            top: -22px;
            z-index: -1
        }

        .product-grid4 .social li a:hover:after, .product-grid4 .social li a:hover:before {
            opacity: 1
        }

    .product-grid4 .product-discount-label, .product-grid4 .product-new-label {
        color: #fff;
        background-color: #ef5777;
        font-size: 12px;
        text-transform: uppercase;
        padding: 2px 7px;
        display: block;
        position: absolute;
        top: 10px;
        left: 0
    }

    .product-grid4 .product-discount-label {
        background-color: #333;
        left: auto;
        right: 0
    }

    .product-grid4:hover .product-new-label {
        opacity: 0
    }

    .product-grid4 .product-content {
        padding: 25px
    }

    .product-grid4 .title {
        font-size: 15px;
        font-weight: 400;
        text-transform: capitalize;
        margin: 0 0 7px;
        transition: all .3s ease 0s;
        min-height: 38px;
        max-height: 38px;
        /*Overflow*/
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* number of lines to show */
        -webkit-box-orient: vertical;
    }

        .product-grid4 .title a {
            /*color: #222*/
        }

            .product-grid4 .title a:hover {
                /*color: #16a085*/
            }

    .product-grid4 .price {
        /*color: #16a085;*/
        font-size: 17px;
        font-weight: 700;
        margin: 0 2px 15px 0;
        display: block
    }

        .product-grid4 .price span {
            /*color: #909090;*/
            font-size: 13px;
            font-weight: 400;
            letter-spacing: 0;
            text-decoration: line-through;
            text-align: left;
            vertical-align: middle;
            display: inline-block
        }

    .product-grid4 .add-to-cart {
        border: 1px solid #e5e5e5;
        display: inline-block;
        padding: 10px 20px;
        color: #888;
        font-weight: 600;
        font-size: 14px;
        border-radius: 4px;
        transition: all .3s
    }

    .product-grid4:hover .add-to-cart {
        border: 1px solid transparent;
        /*background: #16a085;*/
        background: var(--theme-dark-element-color);
        color: #fff
    }

    .product-grid4 .add-to-cart:hover {
        /*background-color: #505050;*/
        box-shadow: 0 0 10px rgba(0,0,0,.5)
    }

/*Product + and - button border styles -- Start*/
.btn-number {
    border: solid 0.5px;
}

.input-number {
    border: solid 0.5px;
}
/*Product + and - button border styles -- End*/

@media only screen and (max-width:990px) {
    .product-grid4 {
        margin-bottom: 30px
    }
}

/********************* 1. Product Container Div - End **********************/





/********************* 2. Mega Menu - Start **********************/
/*https://www.w3schools.com/howto/howto_css_menu_horizontal_scroll.asp*/
/*https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_mobile_navbar_hor*/

/*Scrollable mega menu div - Start*/
div.scrollmenu {
    background-color: #333;
    overflow: auto;
    /*overflow-x:scroll;*/
    white-space: nowrap;
    background-color:var(--theme-primary-color);
}

    div.scrollmenu a {
        display: inline-block;
        color: white;
        text-align: center;
        padding: 13px;
        text-decoration: none;
        background-color:transparent;
    }

        div.scrollmenu a:hover {
            background-color: #777;
        }
/*Scrollable mega menu div - End*/



/*Mega menu styles - Start*/


.menu-large {
    position: static !important;
}

.megamenu {
    padding: 20px 20px;
    width: 100%;
}

    .megamenu > div > li > ul {
        padding: 0;
        margin: 0;
    }

        .megamenu > div > li > ul > li {
            list-style: none;
        }

    .megamenu .card {
        outline: none;
    }

        .megamenu .card:hover,
        .megamenu .card:focus {
            outline: 1px solid #000;
        }

    .megamenu > div > li > ul > li > a {
        display: block;
        padding: 3px 20px;
        clear: both;
        font-weight: normal;
        line-height: 1.428571429;
        color: #333333;
        white-space: normal;
    }

        .megamenu > div > li > ul > li > a:hover,
        .megamenu > div > li > ul > li > a:focus {
            text-decoration: none;
            color: #262626;
            background-color: #f5f5f5;
        }

    .megamenu.disabled > a,
    .megamenu.disabled > a:hover,
    .megamenu.disabled > a:focus {
        color: #999999;
    }

        .megamenu.disabled > a:hover,
        .megamenu.disabled > a:focus {
            text-decoration: none;
            background-color: transparent;
            background-image: none;
            filter: progid: DXImageTransform.Microsoft.gradient(enabled=false);
            cursor: not-allowed;
        }

    .megamenu.dropdown-header {
        color: #428bca;
        font-size: 18px;
    }

@media (max-width: 768px) {
    .megamenu {
        margin-left: 0;
        margin-right: 0;
    }

        .megamenu > li {
            margin-bottom: 30px;
        }

            .megamenu > li:last-child {
                margin-bottom: 0;
            }

        .megamenu.dropdown-header {
            padding: 3px 15px !important;
        }

    .navbar-nav .open .dropdown-menu .dropdown-header {
        color: #fff;
    }
}
/*Mega menu styles - Start*/







/* Filter button - Start */

@media(min-width: 900px) {
    .button-menu-mobile {
        display: none;
    }
}
/* Filter button - End */

/* Sort by button styles - Start */
.dropdown-item{
    font-size:12px;
}
/* Sort by button styles - Start */