﻿/* Màn hình từ 1200px đến 1235px */
@media (min-width: 1200px) and (max-width: 1265px) {
    .item-product-Cate {
        width: 20%;
    }

    .poster {
        display: none;
    }
}


@media (min-width: 1266px) and (max-width: 1557px) {
    .item-product-Cate {
        width: 20%;
    }

    .poster {
        display: none;
    }
    /*.item-product-Cate:nth-last-child(-n+2) {
        display:none;
    }*/
}

@media (min-width: 1558px) and (max-width: 1899px) {
    .item-product-Cate {
        width: 20%;
    }

    .poster {
        display: block;
    }
    /* .item-product-Cate:nth-last-child(-n+2) {
        display:none;
    }*/
}


@media (max-width:480px) {
    #containersfluids {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    #row-mb2 {
        display: flex;
        flex-wrap: wrap;
        margin-left: 20px;
        align-items: center;
        width: 34%;
    }
    .item-product-Cate {
         background-color: white; 
         border-radius: 0px; 
         margin-bottom: 0px; 
         margin-left: 0px; 
         margin-top: 0px; 
         margin-right: 0px; 
         width: 50%!important; 
    }
}
@media (min-width: 1900px) {
    .item-product-Cate {
        width: 20%;
        height:410px
    }
}

/* Màn hình tablet (768px đến dưới 1200px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .item-product-Cate {
        width: 33.33%;
    }

    .poster {
        display: none;
    }
}

/* Màn hình nhỏ (576px đến dưới 768px) */
@media (max-width: 767px) and (min-width: 576px) {
    .item-product-Cate {
        width: 33.33%;
    }

    .poster {
        display: none;
    }
}

/* Màn hình rất nhỏ (dưới 576px) */
@media (max-width: 480px) {
    .item-product-Cate {
        width: 50%!important; /* Chiếm toàn bộ chiều rộng */
        margin-right: 0;
        margin-bottom: 5px; /* Thêm khoảng cách giữa các sản phẩm */
    }

    .poster {
        display: none;
    }
}
