/* ===== COLOR SWITCHER ===== */
.iyeg-color-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.iyeg-color-section[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.iyeg-vehicle-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iyeg-vehicle-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    opacity: 0;
    filter: brightness(50%);
    transition: opacity 0.8s ease, filter 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.iyeg-vehicle-image.active {
    opacity: 1;
    filter: brightness(100%);
    z-index: 2;
}

/* ===== COLOR PICKER - VERTICAL ON LEFT ===== */
.iyeg-color-picker-wrapper {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.iyeg-color-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.iyeg-color-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iyeg-color-btn.active {
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.iyeg-color-btn:not(.active) {
    border-color: transparent;
    opacity: 0.7;
}

.iyeg-color-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* ===== CAPTION - BOTTOM CENTER WITH CONTAINED BG ===== */
.iyeg-color-caption-wrapper {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.iyeg-color-caption {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: var(--iyeg-font-size-md);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .iyeg-color-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .iyeg-vehicle-image {
        max-width: 85%;
        max-height: 70%;
    }
    
    /* Mobile: Color picker at bottom, horizontal */
    .iyeg-color-picker-wrapper {
        position: absolute;
        left: 50%;
        top: auto;
        bottom: 6rem;
        transform: translateX(-50%);
    }
    
    .iyeg-color-picker {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .iyeg-color-btn {
        width: 2.2rem;
        height: 2.2rem;
    }
    
    .iyeg-color-caption-wrapper {
        bottom: 2.5rem;
    }
    
    .iyeg-color-caption {
        font-size: var(--iyeg-font-size-sm);
        padding: 0.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .iyeg-color-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .iyeg-color-btn {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .iyeg-color-picker {
        gap: 0.5rem;
    }
    
    .iyeg-color-caption-wrapper {
        bottom: 2rem;
    }
    
    .iyeg-color-caption {
        font-size: var(--iyeg-font-size-xs);
        padding: 0.4rem 1rem;
    }
}