﻿body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- BANNER --- */
.page-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ================== DANH SÁCH SẢN PHẨM ================== */
.dongxe {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 10px;
}

.tieudexe {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* --- TABS --- */
.dongxe-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

    .dongxe-tabs .tab {
        background: #f8f8f8;
        padding: 10px 30px;
        border-radius: 30px;
        cursor: pointer;
        font-weight: 600;
        color: #555;
        transition: 0.3s ease-in-out;
        text-decoration: none;
        border: 1px solid #ddd;
        user-select: none;
    }

        .dongxe-tabs .tab:hover {
            background: #e0e0e0;
            color: #333;
        }

        .dongxe-tabs .tab.active {
            background: #cc0000; /* Màu đỏ nổi bật */
            color: white;
            border-color: #cc0000;
            box-shadow: 0 4px 8px rgba(204, 0, 0, 0.2);
        }

/* --- GRID SẢN PHẨM (Đã sửa tên class khớp với View) --- */
.xe-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    padding: 0 20px;
    margin-bottom: 60px;
}

/* ===== CARD SẢN PHẨM (Đã sửa tên class khớp với View) ===== */
.xecard {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 15px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: 0.4s;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .xecard:hover {
        border-color: #cc0000;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        transform: translateY(-5px);
    }

/* Ảnh xe */
.xe {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    display: block;
    margin: 0 auto 15px auto;
}

.xecard:hover .xe {
    transform: scale(1.08);
}

.tenxe-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.tenxe {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #cc0000;
}

.phan-khuc-tag {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gia {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===== BUTTONS TRONG CARD ===== */
.btn-group-card {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Nút Hẹn lái thử (Đỏ) */
.btn-red {
    background-color: #cc0000;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: 1px solid #cc0000;
}

    .btn-red:hover {
        background: #a30000;
        color: white;
        text-decoration: none;
    }

/* Nút Đặt hàng (Đen) */
.btn-black {
    background: #333;
    color: #fff;
    border-color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: 1px solid #333;
}

    .btn-black:hover {
        background: white;
        color: #333;
        border-color: #333;
    }

.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- MEDIA QUERIES (Responsive) --- */
@media screen and (max-width: 1200px) {
    .xe-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .xe-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .xe-list {
        grid-template-columns: 1fr;
    }

    .dongxe-tabs {
        flex-wrap: wrap;
    }

        .dongxe-tabs .tab {
            flex: 1 1 auto;
            text-align: center;
            font-size: 14px;
            padding: 8px 15px;
        }
}
