(function () { function num(text) { if (!text) return null; var cleaned = text.replace(/[^\d.,]/g, '').trim(); if (!cleaned) return null; var normalized = (cleaned.indexOf(',') !== -1 && cleaned.indexOf('.') === -1) ? cleaned.replace(',', '.') : cleaned.replace(/,/g, ''); var n = Number(normalized); return isFinite(n) ? n : null; } function run() { document.querySelectorAll('.product-price .product-price-value').forEach(function (el) { if (num(el.textContent) === 0) el.style.display = 'none'; }); document.querySelectorAll('.product-list-item-price').forEach(function (el) { if (num(el.textContent) === 0) el.style.display = 'none'; }); } function init() { run(); new MutationObserver(run).observe(document.documentElement, { childList: true, subtree: true }); } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init); else init(); })();