body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.car-top-row {
    display: flex;
    gap: 2rem;
}

.gallery {
    flex: 3;
    max-width: 650px;
}

.gallery-main {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 28px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 5;
}

.nav.left { left: 10px; }
.nav.right { right: 10px; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #007BFF;
}

.car-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 480px;
}

.car-page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.7rem;
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 1rem;
}

.car-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #f9f9f9;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow-y: auto;
}

.car-details-row p {
    margin: 0;
    flex: 1 1 45%;
    line-height: 1.3;
}

.vin-lock {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    flex: 1 1 45%;
    margin: 0;
}

.car-description {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.5;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .car-top-row {
        flex-direction: column;
    }
    .gallery, .car-header-info {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .car-header-info {
        text-align: left;
        margin-top: 1rem;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .car-equipments ul li {
        flex: 1 1 45%;
        padding: 0.4rem 0.8rem;
    }
}

.car-equipments {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.car-equipments h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 4px;
}

.car-equipments ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.car-equipments ul li {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.car-equipments ul li:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-overlay .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.fullscreen-overlay .left {
    left: 30px;
}

.fullscreen-overlay .right {
    right: 30px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover {
    transform: scale(1.2);
}