/* ============================================
   menu v2 — CANLI ARAMA (suggest) PANELI
   2026-07-29 (Naci(RS))

   NEDEN AYRI DOSYA:
   Layout merchant'a gore TEK tema dosyasi yukler (themes/{MID}.css VARSA default.css YUKLENMEZ,
   bkz. Utility/ThemeHelper.cs:38). Panel CSS'i default.css'e konsaydi kendi temasi olan
   merchant'larda (or. 3595 = Saatli Firin) HIC CALISMAZDI. Bu dosya tema dosyasindan SONRA,
   kosulsuz yuklenir.

   Renkler tema degiskenlerinden okunur (--brand-*), boylece her merchant kendi rengiyle uyumludur.
   Fallback degerler default.css tonlaridir.

   NOT: Tailwind statik build'dir (tailwind.min.css). JS ile uretilen HTML'de Tailwind sinifina
   guvenilmez — panel tamamen bu dosyadaki kendi siniflarini kullanir.
   ============================================ */

.qs-wrap { position: relative; }

.qs-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    z-index: 300;
    overflow: hidden;
    display: none;
}

.qs-panel.qs-open { display: block; }

.qs-list {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---- Satir ---- */
.qs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.qs-item:last-child { border-bottom: 0; }

.qs-item:hover,
.qs-item.qs-active {
    background: var(--brand-50, #f0f5f5);
}

.qs-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: var(--brand-50, #f0f5f5);
}

.qs-thumb-empty {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--brand-100, #dce9ea);
}

.qs-body {
    flex: 1;
    min-width: 0;
}

.qs-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Eslesen bolum vurgusu — JS <mark> uretir */
.qs-title mark {
    background: transparent;
    color: var(--brand-700, #195458);
    font-weight: 700;
    padding: 0;
}

.qs-meta {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.qs-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-700, #195458);
    white-space: nowrap;
}

/* Kapak fiyati 0 combo — fiyat gosterilmez, 0,00 YAZILMAZ (spec §4.2) */
.qs-price:empty { display: none; }

/* ---- Durum satirlari ---- */
.qs-state {
    padding: 16px 14px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.qs-foot {
    display: block;
    padding: 11px 14px;
    background: var(--brand-50, #f0f5f5);
    color: var(--brand-700, #195458);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}

.qs-foot:hover {
    background: var(--brand-100, #dce9ea);
    color: var(--brand-800, #144548);
}

/* ---- Mobil overlay icindeki panel ---- */
/* Overlay zaten tam ekran; panel akis icinde dursun, absolute konumlanmasin */
#searchOverlay .qs-panel {
    position: static;
    margin-top: 12px;
    box-shadow: none;
    border-radius: 12px;
}

#searchOverlay .qs-list {
    max-height: calc(100vh - 160px);
}
