/* --- CÀI ĐẶT CHUNG --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: 3px; }
.logo span { color: #d4af37; }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 35px; }
nav ul li a { text-decoration: none; color: #aaa; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }
nav ul li a:hover { color: #d4af37; }

/* --- HERO --- */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.3), #050505), 
                url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; letter-spacing: 5px; margin-bottom: 10px; }

/* --- SHOWROOM --- */
.showroom { padding: 60px 8%; }
.section-title { text-align: center; margin-bottom: 50px; color: #d4af37; letter-spacing: 3px; }

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* --- CAR CARD --- */
.car-card {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #222;
}

.car-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

/* Link ảnh các hãng xe */
.bg-merc { background-image: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?q=80&w=800'); }
.bg-bmw  { background-image: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?q=80&w=800'); }
.bg-audi { background-image: url('https://images.unsplash.com/photo-1606152421802-db97b9c7a11b?q=80&w=800'); }
.bg-pos  { background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=800'); }
.bg-cadi { background-image: url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?q=80&w=800'); }
.bg-ferr { background-image: url('https://images.unsplash.com/photo-1592198084033-aade902d1aae?q=80&w=800'); }

.car-info {
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    width: 100%;
}

.car-info h3 { font-size: 1.8rem; margin-bottom: 5px; }

/* --- GIÁ TIỀN --- */
.car-price {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- NÚT MUA NGAY --- */
.btn {
    padding: 14px 40px;
    background: linear-gradient(45deg, #d4af37, #f2d06b);
    border: none;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover {
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Đổi sang đỏ khi hover */
    color: #fff;
    transform: scale(1.15); /* Phóng to */
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.6);
}

.btn:active { transform: scale(0.9); }

footer { text-align: center; padding: 50px; color: #444; border-top: 1px solid #111; }