/* =====================================================================
   QR Menü / Adisyon müşteri menüsü - ortak eklentiler (06.10.2026)
   Klasik ve AURA tasarımları birlikte kullanır (bkz. static/js/qr-menu-plus.js).
   Renkler tasarım sisteminin değişkenlerinden: işletmenin seçtiği tema
   (--brand) her şeye kendiliğinden yansır.
   ===================================================================== */

/* ---- Marka: logo + işletme adı ---- */
.qrm-marka { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qrm-marka h1 { min-width: 0; }
.qrm-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: contain; flex-shrink: 0;
  background: #fff; padding: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.qrm-logo[hidden] { display: none; }

/* ---- Bilgi / Wi-Fi rozetleri ---- */
.qrm-pill {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 700; line-height: 1;
  padding: 6px 11px; border-radius: var(--radius-full, 999px);
  border: 1px solid var(--line, #e8eaf1); background: var(--surface, #fff); color: var(--text, #131829);
}
.qrm-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.qrm-pill:active { transform: scale(0.96); }

/* ---- Arama + filtre çubuğu ---- */
.qrm-arac { display: flex; gap: 8px; padding: 10px 16px 2px; align-items: center; }
.qrm-ara {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 0 12px; height: 42px; border-radius: var(--radius-full, 999px);
  border: 1.5px solid var(--line, #e8eaf1); background: var(--surface, #fff);
  transition: border-color .15s var(--ease, ease), box-shadow .15s var(--ease, ease);
}
.qrm-ara:focus-within { border-color: var(--brand, #4f46e5); box-shadow: 0 0 0 4px var(--brand-glow, rgba(79,70,229,.2)); }
.qrm-ara svg { width: 18px; height: 18px; color: var(--muted, #6b7280); flex-shrink: 0; }
.qrm-ara input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 0.92rem; color: var(--text, #131829);
}
.qrm-ara input::-webkit-search-cancel-button { cursor: pointer; }
.qrm-filtre-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 42px; padding: 0 14px; border-radius: var(--radius-full, 999px);
  border: 1.5px solid var(--line, #e8eaf1); background: var(--surface, #fff); color: var(--text, #131829);
  font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
}
.qrm-filtre-btn svg { width: 17px; height: 17px; }
.qrm-filtre-btn.aktif { border-color: var(--brand, #4f46e5); color: var(--brand-dark, #4338ca); }
.qrm-filtre-btn[hidden] { display: none; }
.qrm-sayac {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand, #4f46e5); color: #fff; font-size: 0.7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.qrm-sayac[hidden] { display: none; }

/* Süzülen ürün/kategori */
.urun.qrm-gizli { display: none !important; }
.kategori-blok.qrm-blok-gizli { display: none !important; }
.qrm-bos {
  margin: 24px 16px; padding: 22px 18px; text-align: center; color: var(--muted, #6b7280);
  border: 1.5px dashed var(--line, #e8eaf1); border-radius: var(--radius-md, 16px);
  font-size: 0.9rem; font-weight: 600;
}
.qrm-bos[hidden] { display: none; }

/* ---- Ürün rozetleri ---- */
.qrm-rozetler { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.qrm-rozet {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px;
  border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1.5;
  background: #f1f5f9; color: #334155; letter-spacing: 0.01em; white-space: nowrap;
}
.qrm-rozet.r-yeni { background: #eef2ff; color: #4338ca; }
.qrm-rozet.r-sef { background: #fff7ed; color: #c2410c; }
.qrm-rozet.r-aci { background: #fef2f2; color: #b91c1c; }
.qrm-rozet.r-vejetaryen { background: #f0fdf4; color: #15803d; }
.qrm-rozet.r-vegan { background: #ecfdf5; color: #047857; }
.qrm-rozet.r-glutensiz { background: #fefce8; color: #a16207; }
.detay-panel .qrm-rozetler { margin: 2px 0 10px; }

/* ---- Alttan açılan paneller (filtre, işletme bilgisi) ---- */
.qrm-perde {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, 0.46);
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease, ease);
}
.qrm-perde.acik { opacity: 1; pointer-events: auto; }
.qrm-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 84vh; overflow-y: auto;
  background: var(--surface, #fff); color: var(--text, #131829);
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s var(--ease-spring, ease);
  box-shadow: 0 -20px 60px rgba(19, 24, 41, 0.3);
}
.qrm-perde.acik .qrm-panel { transform: translateY(0); }
@media (min-width: 640px) {
  .qrm-panel { left: 50%; right: auto; width: 520px; margin-left: -260px; }
}
.qrm-panel-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qrm-panel-ust h3 { margin: 0; font-size: 1.08rem; font-weight: 800; }
.qrm-x, .qrm-detay-x {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: var(--bg, #f5f6fb); color: var(--text, #131829); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.qrm-detay-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
[dir="rtl"] .qrm-detay-x { right: auto; left: 14px; }
.detay-panel { position: fixed; }
.qrm-blok { margin-bottom: 16px; }
.qrm-blok-baslik {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted, #6b7280); margin-bottom: 8px;
}
.qrm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.qrm-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--line, #e8eaf1); background: var(--surface, #fff);
  color: var(--text, #131829); font: inherit; font-size: 0.83rem; font-weight: 700;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
}
.qrm-chip[aria-pressed="true"] { background: var(--brand, #4f46e5); border-color: var(--brand, #4f46e5); color: #fff; }
.qrm-chip.haric[aria-pressed="true"] { background: #dc2626; border-color: #dc2626; }
.qrm-chip.haric[aria-pressed="true"]::before { content: '✕'; font-size: 0.7rem; }
.qrm-panel-alt { display: flex; gap: 10px; position: sticky; bottom: -18px; background: var(--surface, #fff); padding-top: 8px; }
.qrm-panel-alt button {
  flex: 1; height: 48px; border-radius: 14px; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer;
}
.qrm-temizle { border: 1.5px solid var(--line, #e8eaf1); background: var(--surface, #fff); color: var(--text, #131829); }
.qrm-goster { border: none; background: var(--brand, #4f46e5); color: #fff; box-shadow: var(--shadow-glow, none); }

/* İşletme bilgisi satırları */
.qrm-bilgi-marka { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qrm-bilgi-marka img { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line, #e8eaf1); }
.qrm-bilgi-marka strong { font-size: 1.05rem; }
.qrm-satir {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line, #e8eaf1);
}
.qrm-satir-ikon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg, #f5f6fb); color: var(--brand-dark, #4338ca);
}
.qrm-satir-ikon svg { width: 20px; height: 20px; }
.qrm-satir-metin { flex: 1; min-width: 0; }
.qrm-satir-metin small { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted, #6b7280); }
.qrm-satir-metin span { display: block; font-size: 0.95rem; font-weight: 700; overflow-wrap: anywhere; }
.qrm-satir-btn {
  flex-shrink: 0; padding: 9px 14px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none;
  background: var(--brand, #4f46e5); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 800;
}
.qrm-satir-btn.ghost { background: var(--bg, #f5f6fb); color: var(--text, #131829); }

@media (prefers-reduced-motion: reduce) {
  .qrm-perde, .qrm-panel { transition: none; }
}
