* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

html, body {
    height: 100%;
    min-height: 100%;
}

.preview-container {
    position: relative;
    width: auto;
    margin: 0 auto;
    padding: 0;
    line-height: 0;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease;
    display: block;
}

.color-controls {
    position: absolute;
    bottom: 32px;
    left: 18%;
    transform: translateX(-50%);
    display: flex;
    gap: 3.2rem;
    z-index: 10;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-option:hover {
    transform: translateY(-4px);
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}



.color-option.active .color-swatch {
    border-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.3);
}


@media (max-width: 768px) {
    .preview-container {
        width: 100vw;
        padding: 0 !important;
        margin: 0 !important;
    }

    .color-controls {
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        gap: 1.8rem;
        background: rgba(0,0,0,0.6);
        padding: 8px 12px;
        border-radius: 24px;
    }

    .color-swatch {
        width: 14px;
        height: 14px;
    }

    .color-name {
        font-size: 0.75rem;
    }

}


@media (max-width: 480px) {
    .preview-container {
        height: auto;
    }
    .car-image {
        max-height: 50vh;
    }
    .color-controls {
        gap: 1.4rem;
        padding: 8px 12px;
    }
}