illustration

Coming Soon

New WordPress website is being built and will be published soon

(function() { // Espera o DOM estar carregado if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } function init() { // Verifica se é mobile - se SIM, não executa o código const isMobile = window.matchMedia('(max-width: 768px)').matches || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); if (isMobile) { return; // Oculta o código no mobile } // Remove event listeners do gtranslate que bloqueiam rolagem const gtranslateElements = document.querySelectorAll('.gtranslate, [class*="gtranslate"], iframe[src*="gtranslate"]'); gtranslateElements.forEach(function(el) { el.style.pointerEvents = 'auto'; el.style.overflow = 'auto'; }); // Força o IntersectionObserver para lazy load funcionar corretamente const lazyElements = document.querySelectorAll('[data-lazy], img.lazy, .lazy-load'); if (lazyElements.length > 0) { const observer = new IntersectionObserver((entries, obs) => { entries.forEach(function(entry) { if (entry.isIntersecting) { const target = entry.target; if (target.hasAttribute('data-lazy-src')) { target.src = target.getAttribute('data-lazy-src'); target.removeAttribute('data-lazy-src'); } if (target.hasAttribute('data-original')) { target.src = target.getAttribute('data-original'); } obs.unobserve(target); } }); }, { rootMargin: '50px', threshold: 0.01 }); lazyElements.forEach(function(el) { observer.observe(el); }); } // Garante que o scroll da página não seja bloqueado document.addEventListener('scroll', function() { document.body.style.overflowX = 'auto'; }, { passive: true }); // Corrige overflow específico em listas de produtos const productLists = document.querySelectorAll('.products-list, .product-list, .listing-grid, .listing-list'); productLists.forEach(function(list) { list.style.overflowX = 'auto'; list.style.overflowY = 'auto'; list.style.touchAction = 'auto'; }); } })();