﻿.product {
    background-color: #F6F6F6;
    padding: 20px 0;
    overflow: hidden;
}

    .product .list-pro {
        margin-top: 45px;
    }

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

    .product .product-list {
        display: grid;
        grid-auto-rows: minmax(min-content,max-content);
        grid-template-columns: repeat(4,minmax(0,1fr));
        column-gap: 20px;
        row-gap: 20px;
        margin-top: 45px;
        width: 100%;
    }

/*SanPham*/
.c-home-product {
    padding-top: 54px;
    padding-bottom: 55px;
    position: relative;
}

li.item-c-cate-product {
    list-style: none;
    margin: 12px;
    border: 1px solid #089745;
    border-radius: 12px;
    transition: 0.5s;
}

ul.list-cate-pro-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

li.item-c-cate-product:hover {
    background: linear-gradient(180deg, #16da6c 0%, #007632 100%);
}

    li.item-c-cate-product:hover a {
        color: #fff;
    }

li.item-c-cate-product a {
    display: block;
    font-family: 'BeVietnamPro-SemiBold';
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    color: #007632;
    width: 100%;
    height: 100%;
    padding: 12px;
    transition: 0.5s;
}

.c-home-product:before {
    content: "";
    position: absolute;
    background: url(/Design/img/NamTrungBo/Product/la.png) no-repeat;
    background-size: cover;
    left: 0;
    top: -149px;
    width: 250px;
    height: 540px;
}

img.decor-pro-home-b {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.link-pro-home .p-btn-link {
    text-align: center;
    margin: auto;
    margin-top: 41px;
}

.title-t-home-product h3 {
    margin: 0;
    text-transform: capitalize;
    font-family: 'BeVietnamPro-Medium';
    font-size: 42px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: linear-gradient(180deg, #18BFF0 0%, #1C3984 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-tab-menu-home-product {
    display: flex;
    justify-content: center;
    margin-bottom: 17px;
}

li.item-menu-pro-home {
    list-style: none;
    margin-left: 9px;
}

ul.list-tab-home-product {
    display: flex;
    align-items: center;
}

li.item-menu-pro-home a {
    display: flex;
    height: 55px;
    padding: 12px 18px;
    justify-content: center;
    align-items: center;
    color: #5A5A5A;
    font-family: 'Kanit-Regular';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 100% */
    text-transform: capitalize;
    border-radius: 10px;
    border: 1px solid #628DFB;
    background: #FFF;
    transition: all .3s;
}

.c-home-product .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #18B6E9;
    border-radius: 56px;
    top: 50%;
    right: -60px;
    z-index: 0;
    font-size: 20px;
}

.c-home-product .swiper-button-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #18B6E9;
    border-radius: 56px;
    top: 50%;
    left: -60px;
    z-index: 0;
    font-size: 20px;
}

.top-home-product section {
    width: 950px;
    text-transform: capitalize;
    color: #6C6C6C;
    font-family: 'Inter-Medium';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 23px; /* 143.75% */
    text-align: center;
    margin: auto;
}

.c-home-product .grid.wide {
    padding: 0;
    position: relative;
    z-index: 1;
}

.title-t-home-product {
    position: relative;
}

li.item-menu-pro-home a:hover {
    background: #212F81;
    border: 1px solid #212F81;
    color: #fff;
}

.top-home-product {
    margin-bottom: 40px;
}

li.item-c-home-product {
    list-style: none;
    border-radius: 10px;
    transition: all .3s;
    position: relative;
}

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

.bottom-home-product {
    overflow: hidden;
}

.t-home-product h3 {
    margin: 0;
    color: #464646;
    font-family: 'BeVietnamPro-SemiBold';
    font-size: 20px;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    background: linear-gradient(180deg, #16da6c 0%, #007632 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cate-title-home-product h6 {
    margin: 0;
    color: #da261d;
    text-align: center;
    font-family: 'Inter-Medium';
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 151.023%; /* 18.123px */
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

li.item-c-home-product:hover .cate-title-home-product h6 {
    color: #fff;
}

li.item-c-home-product:hover .cate-title-home-product section {
    color: #fff;
}

.cate-title-home-product section {
    color: #464646;
    text-align: center;
    font-family: 'Inter-Regular';
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 151.023%; /* 18.123px */
    margin-top: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

li.item-c-home-product:hover:before {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    opacity: 1;
}

.top-b-pro-home-item {
    border: 1px solid #0caa50;
    border-bottom: unset;
    border-radius: 10px 10px 0 0;
}

li.item-c-home-product:hover .top-b-pro-home-item {
    border-color: transparent;
}

.top-img-home-product img {
    width: 100%;
    height: 274px;
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;
    background: #fff;
}

li.item-c-home-product:hover .cate-title-home-product {
    background: transparent;
}

.top-img-home-product span {
    position: absolute;
    width: max-content;
    height: max-content;
    left: 0;
    top: 50px;
    bottom: 0;
    right: 0;
    margin: auto;
    padding: 10px 13px;
    border-radius: 7px;
    border: 1px solid #D11627;
    background: #D11627;
    color: #FFF;
    font-family: 'BeVietnamPro-Medium';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    text-transform: capitalize;
    opacity: 0;
    visibility: hidden;
    transition: all ease .4s;
}

li.item-c-home-product:hover .top-img-home-product span {
    opacity: 1;
    visibility: visible;
    top: 0;
}

.t-home-product {
    text-align: center;
    border-bottom: 1px dashed #AEAEAE;
    padding-bottom: 5px;
}

span.price-pro-home {
    display: block;
    text-align: center;
    color: #FFF;
    font-family: 'BeVietnamPro-Medium';
    font-size: 15px;
    padding: 5px 0;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
    border-radius: 0px 0px 10px 10px;
    background: linear-gradient(180deg, #16da6c 0%, #007632 100%);
}

li.item-menu-pro-home a h5 {
    margin: 0;
}

span.price-pro-home strong {
    color: #FFF;
    font-family: 'BeVietnamPro-Medium';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
}

.cate-title-home-product {
    padding: 14px 20px 11px 20px;
    background: #fff;
    transition: 0.5s;
}

.top-img-home-product {
    overflow: hidden;
    padding: 5px 6px 0 7px;
    border-radius: 10px 10px 0px 0px;
    background: #fff;
    transition: 0.5s;
    position: relative;
}

li.item-c-home-product:before {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 20%;
    top: 20%;
    content: "";
    background: linear-gradient(180deg, #16da6c 0%, #007632 100%);
    z-index: 0;
    transition: 0.5s;
    opacity: 0;
    border-radius: 10px;
}

li.item-c-home-product a {
    position: relative;
    border-radius: 10px;
}

li.item-c-home-product:hover .cate-title-home-product h3 {
    color: #fff !important;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

li.item-c-home-product:hover .t-home-product {
    border-bottom: 1px dashed #fff;
}

li.item-c-home-product:hover span.price-pro-home {
    border-radius: 0px 0px 10px 10px;
    background: #d11627;
}

li.item-c-home-product:hover .top-img-home-product {
    background: transparent;
}

/*RS*/
@media (max-width: 1150px) {
    .title-t-home-product h3 {
        font-size: 30px;
    }

    li.item-menu-pro-home a {
        height: 46px;
        padding: 10px 10px;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .c-home-product .grid.wide {
        padding: 0 10px;
    }

    .top-home-product section {
        font-size: 14px;
        width: 100%;
    }

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

@media (max-width: 1023px) {
    .c-home-product:before {
        width: 87px;
        height: 190px;
        top: -122px;
    }

    li.item-c-cate-product a {
        font-size: 13px;
        padding: 10px;
    }

    ul.list-cate-pro-child {
        margin-top: 25px;
    }

    li.item-c-cate-product {
        margin: 5px;
    }

    .product .list-pro {
        margin-top: 25px;
    }

    .title-tab-menu-home-product {
        display: block;
        margin-bottom: 15px;
        text-align: center;
    }

    .title-t-home-product h3 {
        font-size: 24px;
        line-height: normal;
    }

    .c-home-product .swiper-button-next {
        right: 1px;
        z-index: 1;
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 57%;
    }

    .c-home-product .swiper-button-prev {
        left: 1px;
        z-index: 1;
        width: 40px;
        height: 40px;
        font-size: 14px;
        top: 57%;
    }

    ul.list-tab-home-product {
        display: inline-block;
    }

    li.item-menu-pro-home {
        display: inline-block;
        margin: 0;
        margin-bottom: 5px;
    }

    .c-home-product {
        padding-top: 0;
        padding-bottom: 49px;
    }

    .title-t-home-product {
        margin-bottom: 0;
    }

    .top-img-home-product img {
        height: 175px;
    }

    .t-home-product h3 {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .cate-title-home-product {
        padding: 14px 6px 11px 6px;
    }

    span.price-pro-home strong {
        font-size: 13px;
    }

    .cate-title-home-product h6 {
        font-size: 11px;
    }

    img.decor-pro-home-b {
        height: auto;
    }
}