/* ===== CARS PAGE ===== */
body.cars-page {
    background: #000000;
    color: #e8e8e8;
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-align: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}
.cars-page .cars-header {
    background: linear-gradient(to right, #002244, #69be28);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.cars-page .main-page-link {
    text-align: center;
    margin-bottom: 20px;
}
.cars-page .main-page-link a {
    color: #8b7cf6;
    text-decoration: none;
    font-weight: 600;
}
.cars-page .main-page-link a:hover {
    color: #6c5ce7;
    text-decoration: underline;
}

.cars-tab-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}
.cars-tab {
    background: #555;
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cars-tab:hover {
    transform: translateY(-2px);
}
.cars-tab.active {
    background: linear-gradient(to right, #002244, #69be28);
}

.cars-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0 20px 40px;
}

.car-card {
    position: relative;
    background-color: #b8bac6;
    color: #1a1a2e;
    width: 260px;
    border-radius: 14px;
    text-decoration: none;
    display: block;
    border: 4px solid transparent;
    background-image: linear-gradient(#b8bac6, #b8bac6), linear-gradient(135deg, #FFB733, #A0522D 50%, #FFB733);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}
.car-card:hover {
    transform: translateY(-4px);
}

.car-photo-wrap {
    width: 100%;
    height: 160px;
    background: #8b8d97;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.car-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-info {
    padding: 12px 14px;
}
.car-info h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.car-specs {
    font-size: 0.82rem;
    color: #33334d;
    margin: 0;
}

.cars-footer {
    text-align: center;
    padding: 16px;
    color: #8888a8;
    font-size: 0.8rem;
    border-top: 1px solid rgba(108,92,231,0.3);
    margin-top: 20px;
}

.bookmark-btn {
    display: block;
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    background: #555;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.bookmark-btn:hover {
    background: #6c5ce7;
}
.bookmark-btn.bookmarked {
    background: #6c5ce7;
}

.car-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}