// custom-overrides.js (function(){function hideBadges(){document.querySelectorAll("img, a, div").forEach(el=>{try{const rect = el.getBoundingClientRect(); if(rect.width>6 && rect.width<80 && rect.height>6 && rect.height<80){// detectar cor de fundo (computed style) const cs = window.getComputedStyle(el); const bg = cs.backgroundColor || ""; const hasBgBlack = /rgba?\(s*0,s*0,s*0/.test(bg) || /#000/.test(cs.backgroundImage||"") ; // elemento posicionado no canto superior do seu cart\e3o (aprox.) let parent = el.closest(".product-item, .product-card, .product-grid-item, .product-item__image, .grid-product, .card"); if(parent && hasBgBlack){el.style.display = "none!important"; el.remove();}}}catch(e){}});} // roda ao carregar e observa mudan\e7 as din\e2micas document.addEventListener("DOMContentLoaded",hideBadges); window.addEventListener("load",hideBadges); const mo = new MutationObserver(hideBadges); mo.observe(document.body,{childList:true,subtree:true}); // tenta tamb\e9m 1 vez ap\f3s 1s (alguns componentes carregam depois) setTimeout(hideBadges,1000);})();{}
/*# sourceMappingURL=/cdn/shop/t/6/assets/custom-overrides.css.map */
