/* === Кастомные селекты БЕЗ ИЗМЕНЕНИЯ РАЗМЕРА === */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.custom-select-display {
    width: 100%;
    padding: 14px 45px 14px 14px;
    border: 2px solid #3f444e;
    border-radius: 10px;
    background: #23272f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    position: relative;
    box-sizing: border-box;
    line-height: 1;
    height: 50px;
}

/* Стили для иконок в селекте производителя GPU */
.gpu-select .select-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

/* Стили для иконок в селекте вендора */
.vendor-select .select-icon {
    width: 32px; /* Делаем такие же иконки как у производителей */
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* УБИРАЕМ скрытие текста для вендор-селекта */
.vendor-select .select-text {
    display: block !important; /* Показываем текст */
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #60a5fa;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.custom-select-display.open .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown стили - УМЕНЬШАЕМ ВЫСОТУ ДЛЯ ВСЕХ */
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #23272f;
    border: 2px solid #3f444e;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

/* Уменьшаем высоту элементов выпадающего списка ДЛЯ ВСЕХ */
.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #3f444e;
    box-sizing: border-box;
    line-height: 1.2;
    margin: 0;
    min-height: 40px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #3f444e;
}

.dropdown-item.selected {
    background: #3b82f6;
    color: white;
}

.dropdown-item.disabled {
    color: #718096;
    cursor: not-allowed;
    background: transparent;
}

/* Стили для иконок в dropdown производителя GPU */
.gpu-select .dropdown-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

/* Стили для иконок в dropdown вендора */
.vendor-select .dropdown-icon {
    width: 32px; /* Такие же иконки как у производителей */
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.dropdown-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* УБИРАЕМ скрытие текста для вендор-селекта */
.vendor-select .dropdown-text {
    display: block !important; /* Показываем текст */
}

/* Вендор-селект - ВОЗВРАЩАЕМ ОБЫЧНОЕ ВЫРАВНИВАНИЕ */
.vendor-select .custom-select-display {
    justify-content: flex-start; /* Текст и иконка слева */
    padding: 14px 45px 14px 14px;
}

.vendor-select .dropdown-item {
    justify-content: flex-start; /* Текст и иконка слева */
    padding: 8px 16px;
}

/* Состояние disabled */
.custom-select-display.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #2a2e38;
}

/* Кастомный скроллбар */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #23272f;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gpu-select .select-icon,
    .gpu-select .dropdown-icon,
    .vendor-select .select-icon,
    .vendor-select .dropdown-icon {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-item {
        padding: 6px 14px;
        min-height: 36px;
    }
    
    .vendor-select .custom-select-display {
        padding: 12px 40px 12px 14px;
    }
}

@media (max-width: 480px) {
    .gpu-select .select-icon,
    .gpu-select .dropdown-icon,
    .vendor-select .select-icon,
    .vendor-select .dropdown-icon {
        width: 24px;
        height: 24px;
    }
    
    .vendor-select .custom-select-display {
        padding: 10px 35px 10px 12px;
    }
    
    .dropdown-item {
        padding: 5px 12px;
        min-height: 34px;
    }
    
    .custom-select-dropdown {
        max-height: 220px;
    }
}