﻿.product {
    background-color: #eaf4e5;
    padding: 20px 0;
    overflow: hidden;
    background: url(/Design/img/QueenFarmPlus/ab.png) no-repeat;
    background-size: cover;
}

.footer {
    background-color: #e2f1f4;
}

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

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

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

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

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

@media (max-width: 1023px) {
    .container.list-product-child-d {
        padding-top: 0;
    }

    .product .top-img-home-product img {
        height: 121px;
    }
}
/* RESET CƠ BẢN */
.p-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    /* GRID RESPONSIVE */
    .p-product-list.rs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

@media (max-width: 1024px) {
    .p-product-list.rs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .p-product-list.rs {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .p-product-list.rs {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}

/* ITEM */
.item-c-home-product a {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
    position: relative;
    border: 1px solid #eee;
}

    .item-c-home-product a:hover {
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        transform: translateY(-4px);
        border-color: #ddd;
    }

/* TOP IMAGE ZONE */
.top-img-home-product {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f1f1;
}

    .top-img-home-product img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform .4s ease;
    }

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

/* Badge “Xem chi tiết” trên ảnh */
.top-img-home-product span {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: max-content;
    padding: 7px 14px;
    font-size: 14px;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.item-c-home-product a:hover .top-img-home-product span {
    opacity: 1;
    visibility: visible;
    bottom: 18px;
}

/* CONTENT BELOW */
.cate-title-home-product {
    padding: 18px 15px;
}

    .cate-title-home-product h6 {
        font-size: 15px;
        color: #888;
        margin: 0 0 6px;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        font-weight: normal;
    }

    .cate-title-home-product h3 {
        margin: 0;
        color: #238E44;
        font-family: 'Inter_24pt-SemiBold';
        font-size: 21px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        text-transform: capitalize;
    }

/* LINK “xem chi tiết” dưới */
.detail-link-pro-home {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 15px;
    padding-left: 15px;
    color: #555;
    border-top: 1px solid #f1f1f1;
    transition: .3s ease;
}

.item-c-home-product a:hover .detail-link-pro-home {
    color: #000;
    gap: 5px;
}

/* Icon chuyển động */
.detail-link-pro-home svg {
    margin-left: 6px;
    transition: transform .3s ease;
}

.item-c-home-product a:hover .detail-link-pro-home svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .cate-title-home-product h3 {
        font-size: 17px;
    }
}