.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Đảm bảo các card có chiều cao đồng nhất */
.card {
    transition: transform 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/* Đảm bảo phần nội dung card có chiều cao linh hoạt */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Đảm bảo hình ảnh có kích thước đồng nhất */
.card-img-top {
    width: 100%;
    height: 200px;
    /* Chiều cao cố định cho tất cả hình ảnh */
    object-fit: contain;
    /* Giữ tỷ lệ khung hình, không bị cắt xén */
    background-color: #f8f9fa;
    /* Màu nền nhẹ cho phần hình ảnh */
    padding: 10px;
}

/* Tiêu đề card cố định chiều cao */
.card-title {
    height: 48px;
    /* Đủ cho 2 dòng text với font-size mặc định */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

/* Đảm bảo phần giá và các thông tin khác có vị trí cố định ở dưới cùng */
.card-price {
    margin-top: auto;
    font-weight: bold;
    color: #dc3545;
}

/* Đảm bảo các nút và điều khiển khác có vị trí nhất quán */
.card-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Responsive cho các thiết bị nhỏ hơn */
@media (max-width: 767px) {
    .card-img-top {
        height: 150px;
    }

    .card-title {
        height: 40px;
        font-size: 14px;
    }
}

/* Đảm bảo các swiper-slide có kích thước đồng nhất */
.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-slide .card {
    width: 100%;
}

/* Đảm bảo tag hiển thị tình trạng có vị trí và màu sắc nhất quán */
.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.status-new {
    background-color: #28a745;
    color: white;
}

.status-used {
    background-color: #ffc107;
    color: #212529;
}

.status-refurbished {
    background-color: #17a2b8;
    color: white;
}

/* Đảm bảo grid row có khoảng cách nhất quán */
.row {
    row-gap: 20px;
}

#radioBrand lable {
    height: 35px;
    width: 105px;
}

#radioBrand img {
    height: 30px;
}

@media (max-width: 480px) {
    .form-select {
        font-size: 13px;
        height: 30px;
    }

    #radioBrand lable {
        height: 20px;
        width: 60px;
    }

    #radioBrand img {
        height: 18px;
    }
}