﻿.home-product {
    background: #EEEEEE;
    padding: 45px 0;
}

    .home-product .grid.wide {
    }

.home-product-container {
}

.home-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-product-top-left {
}

.hp-top-left {
    padding: 8px 16px;
    border-left: 4px solid #33b480;
}

    .hp-top-left h2 {
        margin: 0;
        color: var(--default-color-2);
        font-size: 35px;
        font-family: 'monB';
        text-transform: uppercase;
    }

    .hp-top-left .hp-span {
        color: #5d5d5d;
        font-family: monM;
    }

.home-product-top-right {
    padding: 8px 19px;
    border: 1px solid #5d5d5d;
    border-radius: 33px;
    font-size: 16px;
    font-family: 'monM';
    color: #5d5d5d;
    transition: all 0.3s ease;
}

    .home-product-top-right:hover {
        border-color: #f3872d;
        color: #f3872d;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.btn-pro-top-r {
}

.home-product-bottom {
    padding-top: 31px;
}

.home-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;
}

.product-item {
    background: #EEEEEE;
    /* border-radius: 12px; */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .product-item .product-img {
        /* width: 287px; */
        height: auto;
        border-radius: 10px;
        overflow: hidden;
    }

        .product-item .product-img img {
            width: 100%;
            transition: transform 0.4s ease;
            overflow: hidden;
            height: 271px;
        }

.product-title {
    padding: 14px 0;
}

.product-item:hover {
    transform: translateY(-8px);
}

    .product-item:hover .product-img img {
        transform: scale(1.05);
    }

    .product-item:hover .product-title span {
        color: #f3872d; /* màu cam nhấn */
    }

.product-title span {
    display: inline-block;
    color: #333;
    font-family: 'monM';
    font-size: 16px;
    transition: color 0.3s ease;
}

/* ===================== TABLET ===================== */
@media (min-width: 740px) and (max-width: 1023px) {

    .home-product {
        padding: 40px 0;
    }

    .home-product-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hp-top-left h2 {
        font-size: 28px;
    }

    .hp-top-left .hp-span {
        font-size: 15px;
    }

    .home-product-top-right {
        font-size: 15px;
        padding: 6px 16px;
        margin-top: 10px;
    }

    .home-product-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 16px;
        row-gap: 20px;
    }

    .product-item .product-img {
        width: 100%;
        height: auto;
    }

    .product-title span {
        font-size: 15px;
    }
}

/* ===================== MOBILE ===================== */
@media (max-width: 739px) {

    .home-product {
        padding: 30px 0;
    }

    .home-product-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hp-top-left {
        border-left: 3px solid #33b480;
    }

        .hp-top-left h2 {
            font-size: 22px;
        }

        .hp-top-left .hp-span {
            font-size: 14px;
            color: #666;
        }

    .home-product-top-right {
        padding: 6px 14px;
        font-size: 14px;
        border-radius: 25px;
    }

    .home-product-list {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
        row-gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
    }

    .product-item {
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        padding: 8px;
    }

        .product-item .product-img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

    .product-title {
        padding: 10px 0 0;
        text-align: left;
    }

        .product-title span {
            font-size: 15px;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            display: -webkit-box;
        }

    .product-item .product-img img {
        height: 137px;
    }
}
