Cardápio Digital

Slogan da Empresa

Aberto
até 23h
alt_flags: BANDEIRAS // 🌎 Bandeiras definidas no config.js }; debugLog('⚙️ Configurações GTranslate definidas:'); debugLog('- default_language:', window.gtranslateSettings.default_language); debugLog('- languages:', window.gtranslateSettings.languages); debugLog('- alt_flags:', window.gtranslateSettings.alt_flags); infoLog('🌐 Sistema de tradução habilitado'); infoLog('📋 Idiomas disponíveis:', window.gtranslateSettings.languages); infoLog('🎯 Idioma padrão:', window.gtranslateSettings.default_language); } else { infoLog('🚫 Sistema de tradução desabilitado via config.js'); // Ocultar o wrapper se tradução estiver desabilitada const wrapper = document.getElementById('gtranslate_wrapper'); if (wrapper) { wrapper.style.display = 'none'; } } // ==================================================================== // POSICIONAMENTO DINÂMICO DO BOTÃO DE COMPARTILHAMENTO // ==================================================================== /** * Ajusta a posição do botão de compartilhamento baseado no status da tradução: * - TRADUCAO = true: bottom: 92px (posição original) * - TRADUCAO = false: bottom: 30px (mesma altura do carrinho) */ function adjustShareButtonPosition() { debugLog('🔍 === DEBUG POSICIONAMENTO BOTÃO COMPARTILHAMENTO ==='); debugLog('TRADUCAO definida?', typeof TRADUCAO !== 'undefined'); debugLog('TRADUCAO valor:', TRADUCAO); const shareButton = document.getElementById('share-fab'); debugLog('Botão compartilhamento encontrado?', !!shareButton); if (shareButton) { // Verificar se tradução está habilitada const translationEnabled = typeof TRADUCAO !== 'undefined' && TRADUCAO === true; debugLog('Tradução habilitada?', translationEnabled); if (translationEnabled) { // Tradução habilitada: manter posição original (92px) shareButton.style.bottom = '92px'; infoLog('✅ Botão compartilhamento: posição 92px (tradução ativa)'); debugLog('Posição aplicada:', shareButton.style.bottom); } else { // Tradução desabilitada: alinhar com carrinho (30px) shareButton.style.bottom = '30px'; infoLog('✅ Botão compartilhamento: posição 30px (tradução desabilitada)'); debugLog('Posição aplicada:', shareButton.style.bottom); } } else { warnLog('❌ Botão compartilhamento não encontrado no DOM'); } debugLog('=== FIM DEBUG POSICIONAMENTO ==='); } // Executar ajuste de posicionamento após DOM carregado if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function() { setTimeout(adjustShareButtonPosition, 500); }); } else { // DOM já carregado, executar com delay para garantir que elementos estejam disponíveis setTimeout(adjustShareButtonPosition, 500); }