/* SÜPER KOMPAKT DROPDOWN - GÜÇLÜ OVERRIDE */

/* Ana container - çok daha küçük - GÜÇLÜ */
div.sort-options,
.sort-options,
[class*="sort-options"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    min-height: auto !important;
    max-width: none !important;
    width: auto !important;
}

/* Label - net ve küçük */
.sort-options .sort-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    white-space: nowrap !important;
    margin-right: 0.25rem !important;
}

/* Süper kompakt select container - GÜÇLÜ */
div.sort-options .custom-select,
.sort-options .custom-select,
.sort-options div.custom-select {
    position: relative !important;
    width: 110px !important;
    max-width: 110px !important;
    min-width: 110px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Dropdown - çok küçük - GÜÇLÜ OVERRIDE */
div.sort-options #sortSelect,
.sort-options #sortSelect,
.sort-options select#sortSelect,
#sortSelect {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #f9fafb !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.375rem 1.5rem 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 32px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Hover efekti */
.sort-options #sortSelect:hover {
    border-color: #9ca3af !important;
    background: #f3f4f6 !important;
}

/* Focus efekti */
.sort-options #sortSelect:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2) !important;
}

/* Küçük ok işareti - GÜÇLÜ OVERRIDE */
div.sort-options .custom-select::after,
.sort-options .custom-select::after,
.sort-options div.custom-select::after {
    content: '' !important;
    position: absolute !important;
    right: 0.375rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 4px solid #6b7280 !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
    z-index: 999 !important;
    display: block !important;
}

/* Ok hover efekti */
.sort-options .custom-select:hover::after {
    border-top-color: #374151 !important;
}

/* Ok focus efekti */
.sort-options #sortSelect:focus + .custom-select::after,
.sort-options .custom-select:focus-within::after {
    transform: translateY(-50%) rotate(180deg) !important;
    border-top-color: #8b5cf6 !important;
}

/* Option stilleri */
.sort-options #sortSelect option {
    background: #ffffff !important;
    color: #374151 !important;
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.sort-options #sortSelect option:checked,
.sort-options #sortSelect option:selected {
    background: #8b5cf6 !important;
    color: #ffffff !important;
}

/* Mobil optimizasyon */
@media (max-width: 768px) {
    .sort-options {
        padding: 0.5rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    .sort-options .sort-label {
        font-size: 0.7rem !important;
    }
    
    .sort-options .custom-select {
        width: 100px !important;
    }
    
    .sort-options #sortSelect {
        font-size: 0.7rem !important;
        padding: 0.25rem 1.25rem 0.25rem 0.375rem !important;
        height: 28px !important;
    }
    
    .sort-options .custom-select::after {
        right: 0.25rem !important;
        border-left: 2.5px solid transparent !important;
        border-right: 2.5px solid transparent !important;
        border-top: 3.5px solid #6b7280 !important;
    }
}

@media (max-width: 480px) {
    .sort-options {
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.5rem !important;
    }
    
    .sort-options .sort-label {
        font-size: 0.65rem !important;
        margin-right: 0 !important;
    }
    
    .sort-options .custom-select {
        width: 90px !important;
    }
}
