/* Searchable Select — native <select> uzerine giydirililen aranabilir arayuz.
   Renkler .ss-wrap[data-brand] uzerinden marka bazli: yunige (lacivert/mor).
   data-brand, searchable-select.js tarafindan localStorage.selectedBrand'e gore atanir. */

.ss-wrap {
  position: relative;
  width: 100%;
  /* Varsayilan (yunige) tema degiskenleri */
  --ss-accent:      #27206f;
  --ss-accent-glow: rgba(39, 32, 111, 0.14);
  --ss-hover-bg:    #eaf3ff;
  --ss-selected-bg: #27206f;
  --ss-border:      #d7dde8;
  --ss-text:        #22304a;
}

.ss-wrap[data-brand="yunige"] {
  --ss-accent:      #27206f;
  --ss-accent-glow: rgba(39, 32, 111, 0.14);
  --ss-hover-bg:    #eaf3ff;
  --ss-selected-bg: #27206f;
  --ss-border:      #d7dde8;
  --ss-text:        #22304a;
}


.ss-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 34px 10px 12px;
  font-size: 14px;
  color: var(--ss-text);
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  outline: none;
  cursor: text;
}

.ss-input::placeholder { color: #94a3b8; }

.ss-input:focus {
  border-color: var(--ss-accent);
  box-shadow: 0 0 0 3px var(--ss-accent-glow);
}

.ss-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ss-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 4px;
  display: none;
}

.ss-wrap.open .ss-list { display: block; }

.ss-item {
  padding: 9px 12px;
  font-size: 14px;
  color: var(--ss-text);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-item:hover      { background: var(--ss-hover-bg); }
.ss-item.ss-active  { background: var(--ss-hover-bg); }
.ss-item.ss-selected { background: var(--ss-selected-bg); color: #ffffff; }

.ss-empty {
  padding: 12px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}
