﻿.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 {
    background: #E6E6E7;
    padding-top: 109px;
    padding-bottom: 94px;
    position: relative;
}

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

.title-t-home-product h3 {
    margin: 0;
    color: #212F81;
    font-family: 'Kanit-Medium';
    font-size: 42px;
    font-style: normal;
    font-weight: 500;
    line-height: 56px; /* 133.333% */
    text-transform: uppercase;
}

.title-tab-menu-home-product {
    display: flex;
    justify-content: space-between;
    margin-bottom: 39px;
}

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;
}

.top-home-product section {
    color: #526375;
    font-family: 'Inter-Regular';
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 188%; /* 33.84px */
    text-transform: capitalize;
}

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

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

    .title-t-home-product:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -16px;
        width: 274px;
        height: 5px;
        border-radius: 1px 0px 0px 1px;
        background: linear-gradient(90deg, #3DA608 2.35%, rgba(61, 166, 8, 0.00) 81.86%);
    }

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;
}

.t-home-product h3 {
    margin: 0;
    color: #464646;
    font-family: 'Kanit-Medium';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

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

.cate-title-home-product section {
    color: #464646;
    text-align: center;
    font-family: 'Inter-Regular';
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 151.023%; /* 18.123px */
    text-transform: capitalize;
    margin-top: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -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 var(--default-color-1);
    border-bottom: unset;
    border-radius: 10px 10px 0 0;
}

li.item-c-home-product:hover .top-b-pro-home-item {
    border-color: var(--default-color-1);
}

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

.top-img-home-product img {
    width: 100%;
    height: 245px;
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
}

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: 7px 20px 13px 20px;
    color: #FFF;
    border-radius: 7px;
    border: 1px solid #3DA608;
    background: #3DA608;
    font-family: 'NEUEPLAKTEXT-REGULAR';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    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;
    padding: 3px 12px 7px 12px;
    font-size: 12px;
    display: none;
}

.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: "NEUEPLAKTEXT-REGULAR";
    font-size: 15px;
    padding: 5px 0;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
    border-radius: 0px 0px 10px 10px;
    background: var(--default-color-3);
}

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

span.price-pro-home strong {
    color: #FFF;
    font-family: "NEUEPLAKTEXT-BOLD";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    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: "";
    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 * {
    color: var(--default-color-3);
}

li.item-c-home-product:hover .t-home-product {
    border-bottom: 1px dashed var(--default-color-3);
}

li.item-c-home-product:hover span.price-pro-home {
    border-radius: 0px 0px 10px 10px;
    background: var(--default-color-3);
}

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;
    }

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

@media (max-width: 1023px) {
    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: 17px;
        row-gap: 23px;
    }

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

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

    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: 49px;
        padding-bottom: 49px;
    }

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

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

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

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

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

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