 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --auto-orange: #FFA500;
            --auto-orange-light: #FFD700;
            --auto-orange-dark: #FF8C00;
            --auto-black: #1a1a1a;
            --auto-gray: #666666;
            --auto-gray-light: #f5f5f5;
            --white: #ffffff;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--auto-black);
            background-color: var(--white);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        .header {
            background: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--auto-black);
        }

        .logo-icon {
            background: linear-gradient(135deg, var(--auto-orange), var(--auto-orange-dark));
            padding: 0.5rem;
            border-radius: 8px;
            color: var(--white);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .logo-accent {
            color: var(--auto-orange);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--auto-gray);
            font-weight: 500;
            transition: var(--transition);
            padding: 0.5rem 1rem;
            border-radius: 4px;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--auto-orange);
        }

        .nav-cta {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: var(--auto-orange);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--auto-orange-dark);
            transform: translateY(-2px);
        }

        .btn-outline {
            border: 2px solid var(--auto-orange);
            color: var(--auto-orange);
            background: transparent;
        }

        .btn-outline:hover {
            background: var(--auto-orange);
            color: var(--white);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--auto-black);
        }

        .dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  min-width: 180px;
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Style for dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* Nested dropdown (opens to the right) */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

.heroic {
  background: #2a2a2a;
  color: white;
  padding: 3rem 1rem;
}

.heroic h1 {
  font-size: 2.5rem;
}

.heroic .highlight {
  color: orange;
}


.page-header {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 3rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 32rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.filters-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.mobile-filter-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.apply-filters-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Cars Section */
.cars-section {
    flex: 1;
}

.cars-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.cars-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cars-info p {
    color: #6b7280;
}

.sort-wrapper {
    min-width: 12rem;
}

.sort-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.car-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.car-image-wrapper {
    position: relative;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: white;
    color: #ff6b35;
}

.condition-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.featured-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.car-content {
    padding: 1rem;
}

.car-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.car-card:hover .car-title {
    color: #ff6b35;
}

.car-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.75rem;
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.car-detail svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.car-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.dealer-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.car-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.car-actions .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.load-more-section {
    text-align: center;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.footer {
            background: var(--auto-black);
            color: var(--white);
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: var(--white);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: #ccc;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-section ul li a:hover {
            color: var(--auto-orange);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        .footer .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
        }
        .social-link {
            width: 40px;
            height: 40px;
            background: rgba(255, 165, 0, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ccc;
            text-decoration: none;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--auto-orange);
            color: var(--white);
        }

        .newsletter {
            margin-top: 1rem;
        }

        .newsletter-form {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .newsletter-input {
            flex: 1;
            padding: 0.8rem;
            border: none;
            border-radius: 6px;
            background: rgba(255,255,255,0.1);
            color: var(--white);
        }

        .newsletter-input::placeholder {
            color: #ccc;
        }

        .newsletter-btn {
            padding: 0.8rem 1.5rem;
            background: var(--auto-orange);
            color: var(--white);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
        }

        .newsletter-btn:hover {
            background: var(--auto-orange-dark);
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding-top: 1rem;
            text-align: center;
            color: #ccc;
        }
        @media (max-width: 768px) {
            .nav-links,
            .nav-cta {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .search-form {
                flex-direction: column;
            }

            .search-input {
                min-width: auto;
            }}
            /* Sidebar Styles for Mobile */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Mobile - Sidebar */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 4rem 2rem;
        gap: 1.5rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.show {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 2rem;
        z-index: 1000;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
}
