/* ═══════════════════════════════════════════════════════════════════
   QR MENU ZON — Ek Stiller (additions.css)
   Bu dosyayı functions.php üzerinden enqueue edin.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Rozet ──────────────────────────────────────────────────────── */
.qrmz-badge {
    display: inline-block;
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    z-index: 2;
    letter-spacing: .03em;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Popup içi rozet */
.single-post-icerik .qrmz-badge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
}

/* ── Tükendi overlay ─────────────────────────────────────────────── */
.qrmz-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 3;
}
.qrmz-stock-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    background: #c0392b;
    padding: 4px 14px;
    border-radius: 99px;
}
.out-of-stock .image { position: relative; }
.out-of-stock .fiyat { opacity: .5; text-decoration: line-through; }

/* ── Allerjen ikonları (kart) ───────────────────────────────────── */
.qrmz-allergen-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 8px 2px;
}
.qrmz-allergen-icon {
    font-size: 14px;
    line-height: 1;
    cursor: default;
}

/* ── Fiyat satırı ─────────────────────────────────────────────── */
.fiyat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-weight: 700;
    font-size: 15px;
}
.qrmz-calories {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

/* ── Popup detay alanları ─────────────────────────────────────── */
.qrmz-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}
.qrmz-price-tag {
    font-size: 22px;
    font-weight: 700;
    color: #008080;
}
.qrmz-calories-tag {
    font-size: 13px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 99px;
}
.qrmz-ingredients {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 6px 0;
}
.qrmz-allergens-detail {
    margin-top: 10px;
    font-size: 13px;
}
.qrmz-allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}
.qrmz-allergen-tag {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 99px;
    padding: 2px 9px;
    font-size: 12px;
    color: #856404;
}

/* ── WhatsApp butonu ──────────────────────────────────────────── */
.qrmz-whatsapp-btn {
    position: fixed;
    bottom: 72px;
    left: 16px;
    z-index: 9990;
    background: #25d366;
    color: #fff !important;
    border-radius: 99px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 12px rgba(37,211,102,.4);
    transition: transform .2s, box-shadow .2s;
}
.qrmz-whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(37,211,102,.5);
}
.qrmz-whatsapp-btn svg { flex-shrink: 0; }

/* ── Google Yorum butonu ─────────────────────────────────────── */
.qrmz-google-review-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    transform: none;
    z-index: 9990;
    background: #fff;
    color: #444 !important;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    white-space: nowrap;
}
.qrmz-google-review-btn:hover { box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* ── Yol Tarifi butonu ───────────────────────────────────────── */
.qrmz-directions-btn {
    position: fixed;
    bottom: 64px;
    right: 16px;
    left: auto;
    transform: none;
    z-index: 9990;
    background: #4285f4;
    color: #fff !important;
    border-radius: 99px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(66,133,244,.35);
    white-space: nowrap;
}
.qrmz-directions-btn:hover { box-shadow: 0 4px 14px rgba(66,133,244,.5); }

/* Tüm butonlar sabit konumda — çakışmasın */
body.has-whatsapp .qrmz-google-review-btn { right: 16px; }
body.has-whatsapp .qrmz-directions-btn    { right: 16px; }

/* ── Dil seçici ──────────────────────────────────────────────── */
.qrmz-lang-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
}
.qrmz-lang-btn {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: background .2s;
    line-height: 1.4;
}
.qrmz-lang-btn:hover,
.qrmz-lang-btn.active {
    background: rgba(255,255,255,.35);
    border-color: rgba(255,255,255,.6);
}
.qrmz-lang-btn span { font-size: 10px; font-weight: 700; letter-spacing: .05em; }

/* RTL desteği */
body.qrmz-rtl { direction: rtl; text-align: right; }
body.qrmz-rtl .site-header .header-content { flex-direction: row-reverse; }
body.qrmz-rtl .qrmz-badge { left: auto; right: 8px; }

/* ── Çalışma saatleri (footer) ───────────────────────────────── */
.qrmz-working-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 8px 0 4px;
    font-size: 13px;
    color: #aaa;
}
.qrmz-hours-label {
    background: rgba(255,255,255,.1);
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 11px;
}

/* ── Sosyal medya linkleri ───────────────────────────────────── */
.qrmz-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}
.qrmz-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    color: #fff;
}
.qrmz-social-btn:hover { transform: scale(1.15); opacity: .9; }
.qrmz-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.qrmz-facebook  { background: #1877f2; }
.qrmz-tiktok    { background: #010101; }

/* ── Garson çağır buton konumu — sol alt ────────────────────── */
.waiter-call-button {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: auto;
    z-index: 9991;
}

/* ── Arama çubuğu ────────────────────────────────────────────── */
.qrmz-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 99px;
    padding: 8px 14px;
    margin: 12px 0 16px;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}
.qrmz-search-bar:focus-within {
    border-color: var(--qrmz-primary, #008080);
    box-shadow: 0 0 0 3px rgba(0,128,128,.12);
}
.qrmz-search-icon { color: #aaa; display: flex; align-items: center; flex-shrink: 0; }
.qrmz-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}
.qrmz-search-input::placeholder { color: #bbb; }
.qrmz-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 50%;
    transition: color .2s, background .2s;
}
.qrmz-search-clear:hover { color: #555; background: #f0f0f0; }
.qrmz-no-results {
    text-align: center;
    padding: 32px 16px;
    color: #999;
    font-size: 14px;
}

/* ── Instagram CTA butonu ────────────────────────────────────── */
.qrmz-social-links {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.qrmz-instagram-cta {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 99px !important;
    padding: 9px 16px !important;
    gap: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
}
.qrmz-instagram-label {
    display: inline !important;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* ── Ana sayfa arama çubuğu ──────────────────────────────────── */
.qrmz-home-search {
    margin: 0 16px 16px;
}

/* ── FAB (Floating Action Button) Menü ──────────────────────────── */
/* Eski fixed butonları gizle — FAB hallediyor */
.qrmz-google-review-btn,
.qrmz-directions-btn { display: none !important; }

/* Overlay */
#qrmz-fab-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9980;
    backdrop-filter: blur(2px);
}
#qrmz-fab-overlay.active { display: block; }

/* Ana FAB butonu */
#qrmz-fab-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #008080;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform .2s, background .2s;
}
#qrmz-fab-btn:hover { background: #006666; transform: scale(1.08); }
#qrmz-fab-btn:active { transform: scale(0.95); }

/* FAB Menü items container */
#qrmz-fab-menu {
    position: fixed;
    bottom: 88px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease;
}
#qrmz-fab-menu.open {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0);
}

/* Her bir FAB item */
.qrmz-fab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}
.qrmz-fab-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.3);
}
.qrmz-fab-item svg { flex-shrink: 0; }
.qrmz-fab-label { font-size: 14px; font-weight: 600; }

/* Animasyon: her item biraz gecikmeli */
#qrmz-fab-menu .qrmz-fab-item:nth-child(1) { transition-delay: .0s; }
#qrmz-fab-menu .qrmz-fab-item:nth-child(2) { transition-delay: .04s; }
#qrmz-fab-menu .qrmz-fab-item:nth-child(3) { transition-delay: .08s; }

/* ── WhatsApp — sadece ikon ──────────────────────────────────────── */
.qrmz-wa-icon-only {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    bottom: 20px !important;
    left: 20px !important;
    top: auto !important;
    transform: none !important;
}

/* Alt nav menüsünü gizle */
.scolling-top-menu-wrap { display: none !important; }

/* Garson çağır butonu — FAB içinde olduğu için gizle */
.waiter-call-button {
    display: none !important;
}

/* Instagram butonu — gizle */
.qrmz-instagram-cta,
.qrmz-social-links { display: none !important; }

/* ── Yandan açılan slide menü ve toggle butonunu gizle ──────────── */
.ssm-overlay,
.ssm-nav,
#ssm,
.cz-shortcut-listen,
[cz-shortcut-listen],
.slide-menu,
.mobile-menu-toggle,
.menu-icon,
button.menu-toggle,
.hamburger,
#mobile-menu-toggle,
.nav-menu-icon { display: none !important; }

/* Temadaki özel toggle butonu */
div.ssm-overlay { display: none !important; }

/* ── Sol üst hamburger butonu ────────────────────────────────────── */
/* Butonu görünür ve tıklanabilir yap */
.cz-shortcut-listen,
[cz-shortcut-listen],
.ssm-toggle-btn,
#ssm-toggle,
.menu-icon-wrap {
    cursor: pointer !important;
    pointer-events: all !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
