/* sản phẩm */
.allproduct {
    padding-right: 120px;
}
.product-list {
    
    gap: 20px;
    padding: 30px;
    padding-right: 50px;
    position: relative;
}

.product-list a{
   background-color: white;
}
.product-list a:hover{
    background-color: white;
    transition: none;
}

.product-list .card {
    background: white;
    padding: 15px;
    border-radius: 0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}

.product-list .card-body .card-text {
    font-size: 18px;
    color: red;
    font-weight: bold;
}

.product-list .card-body .cardtext {
    font-size: 16px;
}
.product-list img {
    max-width: 100%;
    height: 20px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.product-list:hover img {
    transform: scale(1.05);
}

.product-list h5 {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

.product-list p {
    font-size: 16px;
    color: #777;
    margin-bottom: 10px;
}

.product-list .card-body .btn-primary {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    color: white;
    background: #1E4162; /* Thay đổi: Navy Blue */
    border: none;
    border-radius: 30px;
    transition: background 0.3s ease;
    margin-top: 5px;
}

.product-list .card-body .btn-primary:hover {
    background-color: #2A9D8F; /* Thay đổi: Xanh Mòng Két */
    border-color: #2A9D8F; /* Thay đổi: Xanh Mòng Két */
    transform: scale(1.05);
}

.ban {
    padding: 30px 0; 
    text-align: center; 
}

.ban h1 {
    font-size: 2em; 
    margin-bottom: 5px; 
}

.ban p {
    font-size: 1em;
    margin-bottom: 0;
}
/* BẮT ĐẦU: CSS ĐỂ SẢN PHẨM THẲNG HÀNG VÀ CÓ CHIỀU CAO ĐỒNG ĐỀU */

/* 1. Đảm bảo thẻ liên kết và thẻ card chiếm 100% chiều cao của column */
.row > [class*="col-"] > a.chitiet,
.row > [class*="col-"] > a.chitiet > .card {
    height: 100%;
}

/* 2. Sử dụng Flexbox trên thẻ Card để sắp xếp nội dung */
.product-list .card {
    display: flex;
    flex-direction: column; /* Xếp chồng nội dung */
}

/* 3. Ép phần Card Body giãn nở để đẩy nút "Đặt hàng" xuống cuối */
.product-list .card-body {
    flex-grow: 1; /* Cho phép giãn nở để chiếm khoảng trống */
    display: flex;
    flex-direction: column;
}

/* 4. Đảm bảo nút "Đặt hàng" luôn nằm sát đáy Card */
.product-list .card-body .add-to-cart {
    margin-top: auto; /* Đẩy nút xuống đáy */
}

/* KẾT THÚC: CSS ĐỂ SẢN PHẨM THẲNG HÀNG VÀ CÓ CHIỀU CAO ĐỒNG ĐỀU */