﻿.product {
    background: url(/Design/img/BeThuiCauMong/DacSan/decorBack.png) no-repeat;
    background-size: cover;
    padding: 20px 0;
}

    .product .container {
        padding: 20px 0;
    }

    .product .item-product-home {
        margin-bottom: 15px;
    }

h3.title-service-home a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

h5.title-product-home {
    margin: 0;
    padding: 10px;
    background: #df1d25;
    font-size: 20px;
    color: #ffffff;
    font-family: 'lober';
    font-weight: 500;
    border-radius: 0 0 8px 8px;
}

h3.title-service-home a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

span.price-product-home {
    display: block;
    font-family: 'AsapR';
    font-size: 16px;
    color: #ed1c24;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.item-product-home {
    border-radius: 8px;
    border: 1px solid #cecece;
}

.decor-product-right-home {
    position: absolute;
    right: 14px;
    top: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33px;
    height: 33px;
    background: #131313;
    border-radius: 50px;
    border: 2px solid #fff;
}

.bottom-product-home {
    position: relative;
}

.decor-product-right-home a i {
    color: #fff;
}

.top-img-product-home a {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

    .top-img-product-home a img {
        height: 270px;
        width: 100%;
        object-fit: cover;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        transition: all .3s;
    }

.item-product-home:hover .top-img-product-home a img {
    transform: scale(1.1);
}



/*Fix*/

.home-product {
    background: url(/Design/img/BeThuiCauMong/DacSan/decorBack.png) no-repeat;
    background-size: cover;
}

    .home-product .grid.wide {
        max-width: 1300px;
    }

.home-product-container {
    padding: 60px 0;
}

.home-product-filter {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    margin-top: 25px;
}

.home-product-wrap {
    margin-top: 60px;
}

    .home-product-wrap .pager {
        margin: 0 auto;
        margin-top: 40px;
    }

        .home-product-wrap .pager span,
        .home-product-wrap .pager a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border-width: 2px;
            font-family: 'RobotoB';
            user-select: none;
        }

        .home-product-wrap .pager span {
        }

        .home-product-wrap .pager a {
            color: #fff;
        }

.home-product-filter .item:hover,
.home-product-filter .item.active {
    background-color: var(--default-color-3);
}

.home-product-filter .item {
    margin: 6px;
    border: 2px solid var(--default-color-3);
    color: #fff;
    border-radius: 55px;
    font-family: 'AsapB';
    padding: 9px 16px;
    cursor: pointer;
    user-select: none;
    text-transform: capitalize;
    font-size: 16px;
    transition: all ease .3s;
}

.home-product-list .list-wrap {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 20px;
}

.home-product-list {
    /* display: none; */
}

    .home-product-list.show {
        display: block;
    }

.home-product-item:hover {
    background-color: var(--default-color-3);
}

.home-product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px 0 #ffffff4a;
    padding: 5px;
    cursor: pointer;
    transition: all ease .3s;
}


    .home-product-item.show {
        display: block;
        pointer-events: all;
    }

.home-product-img {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

    .home-product-img img {
    }

.home-product-content {
    padding: 20px 6px;
}

.home-product-item:hover .home-product-name {
    color: #fff;
}

.home-product-name {
    text-align: center;
    margin: 0;
    font-family: 'AsapB';
    color: var(--default-color-3);
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    transition: all ease .3s;
}

.home-product-item:hover .home-product-price {
    color: #fff;
    opacity: 1;
}

.home-product-price {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-align: center;
    margin-top: 15px;
    font-family: 'RobotoB';
    color: #333;
    font-size: 16px;
    opacity: .8;
    transition: all ease .3s;
}


/*RS*/






@media(max-width:1023px) {
    .home-product-list .list-wrap {
        column-gap: 10px;
        row-gap: 10px;
        height: auto;
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .home-product-img {
        height: 150px;
    }

    .home-product-content {
        padding: 14px 4px;
    }

    .home-product-name {
        font-size: 14px;
    }

    .home-product-price {
        margin-top: 10px;
        font-size: 13px;
        opacity: 1;
    }

    .home-product-container {
        padding: 50px 0;
    }

    .home-product-wrap {
        margin-top: 45px;
    }

        .home-product-wrap .pager {
            margin-top: 20px;
        }
}

@media(max-width:739px) {
    .home-product-container {
        padding: 30px 0;
    }

    .home-product-filter .item {
        margin: 4px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .home-product-wrap {
        margin-top: 35px;
    }

    .home-product-list .list-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
        height: auto;
        width: 100%;
    }

    .home-product-img {
        height: 140px;
    }

    .home-product-content {
        padding: 10px 0;
    }

    .home-product-name {
        font-size: 15px;
    }

    .home-product-price {
        margin-top: 10px;
        color: #333;
        font-size: 12px;
        opacity: 1;
    }

    .home-product-wrap .pager {
        margin-top: 25px;
    }
}
