:root {
    --primary: #d1d0d0;
    --primary-dark: #a8a7a7;
    --accent: #ff6b35;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --light: #f8f9fa;
    --gray: #6c757d;
}

/* Fix for navbar overlap */
body {
    padding-top: 80px;
    /* Adjust based on your navbar height */
}

.cars-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80")
            no-repeat center center;
    background-size: cover;
    padding: 60px 0 40px;
}

.cars-hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cars-hero-section p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--primary-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Cars Grid Section */
.cars-grid-section {
    background-color: var(--dark);
}

.section-header {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Car Cards */
.car-card {
    background: var(--dark-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #333 !important;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(209, 208, 208, 0.2) !important;
    border-color: var(--accent) !important;
}

.car-image {
    height: 220px;
    overflow: hidden;
}

.car-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.car-price {
    color: var(--accent) !important;
    font-size: 1.4rem;
}

.text-accent {
    color: var(--accent) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--primary-dark) !important;
}

.car-details .row {
    margin: 0 -0.5rem;
}

.car-details .col-6 {
    padding: 0 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .cars-hero-section {
        padding: 40px 0 30px;
    }

    .section-header {
        font-size: 2rem;
    }

    .car-image {
        height: 180px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .cars-hero-section {
        padding: 30px 0 20px;
    }

    .section-header {
        font-size: 1.8rem;
    }

    .card-body {
        padding: 1rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}
