﻿.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: var(--default-color-3);
    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(2, minmax(0, 1fr));
    column-gap: -20px;
    row-gap: 23px;
    justify-items: center;
}

.t-home-product h3 {
    margin: 0;
    color: #464646;
    font-family: 'Kanit-Medium';
    font-size: 23px;
    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;
}

.cate-title-home-product section {
    color: #464646;
    text-align: center;
    font-family: 'Inter-Regular';
    font-size: 16px;
    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 #4AB414;
    border-bottom: unset;
    border-radius: 10px 10px 0 0;
}

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

.top-img-home-product img {
    width: 100%;
    height: 392px;
    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: 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; */
}

.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(--Linear, linear-gradient(195deg, #93D802 18.62%, #3DA608 88.39%));
}

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: #FFFf;
    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(195deg, #93D802 42.78%, #3DA608 106.14%);
    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: #464646;
}

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

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

.item-c-home-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

    .item-c-home-product:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

.top-img-home-product {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .top-img-home-product img {
        width: 85%;
        height: 433px;
        transition: transform 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

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

.top-img-home-product span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 47, 129, 0.85);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cate-title-home-product h3 {
    transition: color 0.3s ease;
}

.item-c-home-product:hover .cate-title-home-product h3 {
    color: var(--default-color-3); /* màu nhấn khi hover */
}


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: 739px) {
    .top-img-home-product img {
        height: 171px !important;
    }
}

@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;
        max-width: 100%;
    }

    li.item-c-home-product {
        width: 100%
    }

    .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: 335px;
    }

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