/* ==========================================
   ÜRÜN SEÇİCİ — Frontend CSS  v1.1.2
   Posenda | posenda.com
   ========================================== */

.urun-secici-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px; margin: 0 auto;
}

/* FİLTRE BAR — çerçevesiz, şeffaf */
.us-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    flex-wrap: wrap;
}

/* FİLTRE GRUP */
.us-filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.us-filter-group.us-hidden { display: none; }

/* LABEL */
.us-filter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #111827;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}
.us-required { color: #ef4444; font-size: 13px; line-height: 1; }

/* SELECT WRAPPER — sadece sarmalayıcı, ok yok */
.us-select-wrapper { position: relative; }

/* SELECT — ok CSS background-image ile, span YOK */
.us-filter-select {
    width: 100%;
    padding: 11px 38px 11px 14px;
    font-size: 14px;
    color: #6b7280;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;

    /* Tarayıcı okunu tamamen kapat */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Tek sağa-bakan chevron ok — SVG inline */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}
/* IE */
.us-filter-select::-ms-expand { display: none; }

.us-filter-select:focus {
    outline: none;
    border-color: #7abf1a;
    box-shadow: 0 0 0 3px rgba(122,191,26,.15);
    color: #111827;
}
.us-filter-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    /* Disabled'da da ok göster ama soluk */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
}

/* BUTONLAR */
.us-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.us-btn-go {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #fff;
    background: #7abf1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
    min-width: 120px;
    height: 44px;
}
.us-btn-go:hover:not(:disabled) { background: #68a516; transform: translateY(-1px); }
.us-btn-go:active:not(:disabled) { transform: translateY(0); }
.us-btn-go:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }

.us-btn-reset {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6b7280;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.us-btn-reset:hover { color: #ef4444; border-color: #ef4444; }

/* YÜKLENİYOR */
.us-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}
.us-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e5e7eb;
    border-top-color: #7abf1a;
    border-radius: 50%;
    animation: us-spin .7s linear infinite;
}
@keyframes us-spin { to { transform: rotate(360deg); } }

/* RESPONSİF */
@media (max-width: 768px) {
    .us-filter-bar { flex-direction: column; gap: 12px; }
    .us-filter-group { width: 100%; }
    .us-filter-actions { width: 100%; }
    .us-btn-go { flex: 1; }
}
