.menu-guide-wrap {
    position: fixed;
    right: 12px;
    /* Alt menü + "Yukarı" kaydır butonunun üstünde kalsın */
    bottom: calc(172px + env(safe-area-inset-bottom, 0px));
    z-index: 48;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
@media (min-width: 768px) {
    .menu-guide-wrap {
        right: 20px;
        bottom: calc(228px + env(safe-area-inset-bottom, 0px));
    }
}

/* Mobil: yukarı çık + robot hizası (alt menü üstü) */
@media (max-width: 767px) {
    #scrollToTop {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    a.scroll-side-whatsapp[href*="wa.me"] {
        bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    .menu-guide-panel {
        max-height: min(62vh, 520px);
    }
}
.menu-guide-wrap > * { pointer-events: auto; }

.menu-guide-teaser {
    max-width: 220px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px 16px 4px 16px;
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    font-size: 0.78rem;
    line-height: 1.35;
    color: #1e293b;
    animation: menuGuideTeaserIn .45s ease;
}
.menu-guide-teaser strong { color: #4338ca; }

.menu-guide-panel {
    width: min(360px, calc(100vw - 24px));
    max-height: min(72vh, 560px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    animation: menuGuidePanelIn .28s ease;
}
.menu-guide-panel.is-hidden { display: none; }

.menu-guide-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
}
.menu-guide-head img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    padding: 4px;
}
.menu-guide-head-title { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.menu-guide-head-sub { font-size: .72rem; opacity: .88; margin-top: 2px; }
.menu-guide-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
}
.menu-guide-close:hover { background: rgba(255,255,255,.24); }

.menu-guide-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.menu-guide-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px 14px 14px 4px;
    padding: 12px 14px;
    font-size: .86rem;
    line-height: 1.45;
    color: #334155;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
}

.menu-guide-options {
    display: grid;
    gap: 8px;
}
.menu-guide-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: .82rem;
    color: #1e293b;
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.menu-guide-option:hover {
    border-color: #a5b4fc;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}
.menu-guide-option i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    flex-shrink: 0;
}

.menu-guide-products {
    display: grid;
    gap: 8px;
}
.menu-guide-product {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.menu-guide-product:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.08);
}
.menu-guide-product img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}
.menu-guide-product-name { font-size: .82rem; font-weight: 600; color: #0f172a; line-height: 1.25; }
.menu-guide-product-meta { font-size: .72rem; color: #64748b; margin-top: 2px; }
.menu-guide-product-price { font-size: .78rem; font-weight: 700; color: #4f46e5; margin-top: 4px; }

.menu-guide-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.menu-guide-category {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
}
.menu-guide-category img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}
.menu-guide-category span {
    display: block;
    padding: 8px 10px;
    font-size: .75rem;
    font-weight: 600;
    color: #1e293b;
}

.menu-guide-foot {
    display: flex;
    gap: 8px;
    padding: 10px 14px 14px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}
.menu-guide-foot button {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}
.menu-guide-foot button.primary {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.menu-guide-fab {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(145deg, #4f46e5, #6366f1);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.menu-guide-fab:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.42);
}
.menu-guide-fab img {
    width: 100%;
    height: 100%;
    padding: 10px;
}
.menu-guide-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(99, 102, 241, 0.45);
    animation: menuGuidePulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes menuGuidePulse {
    0% { transform: scale(.92); opacity: .85; }
    70% { transform: scale(1.12); opacity: 0; }
    100% { transform: scale(1.12); opacity: 0; }
}
@keyframes menuGuidePanelIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menuGuideTeaserIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.menu-guide-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: #64748b;
    padding: 8px 0;
}
.menu-guide-loading i { color: #6366f1; }
