:root {
    /* Reseller Palette */
    --primary: #004085;
    /* Trusty Navy */
    --secondary: #ffc107;
    /* Deal Yellow */
    --accent: #cce5ff;
    /* Light Blue */
    --bg-body: #f8f9fa;
    /* Light Grey */
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --price-text: #212529;

    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --container-width: 1140px;
    --header-height: 80px;

    /* UI */
    --radius: 4px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="garage-red"] {
    --primary: #c82333;
    /* Mechanic Red */
    --secondary: #c82333;
    /* Red background for CTAs/prices */
    --accent: #f8d7da;
    /* Light Red */
    --price-text: #ffffff;
}

[data-theme="eco-green"] {
    --primary: #218838;
    /* Eco Green */
    --secondary: #e0a800;
    /* Sun Yellow */
    --accent: #d4edda;
    /* Light Green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    min-width: 150px;
}

.btn-search {
    background: var(--secondary);
    color: var(--price-text);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* Inventory */
.inventory {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--bg-card);
    border: 1px solid #dee2e6;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.car-img-container {
    position: relative;
    height: 200px;
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--price-text);
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    font-size: 1.1rem;
}

.car-details {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.car-specs {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.btn-view {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

.btn-view:hover {
    background: #003065;
}

/* Features */
.features {
    background: var(--accent);
    padding: 4rem 0;
    text-align: center;
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-item {
    flex: 1;
    min-width: 250px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #212529;
    color: #adb5bd;
    padding: 3rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}