<style>
@media (max-width: 1024px) {
/* Logo estático para mobile, subido 25px para cima */
.logo-mobile-forcado {
margin-top: -25px !important;
/* position: fixed !important; */ /* REMOVIDO */
/* top: 10px !important; */ /* REMOVIDO */
/* left: 50% !important; */ /* REMOVIDO */
/* transform: translateX(-50%) !important; */ /* REMOVIDO */
z-index: 1000 !important;
background: transparent !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
width: auto !important;
text-align: center !important;
}
.logo-mobile-forcado img {
max-width: 160px !important;
height: auto !important;
max-height: 50px !important;
object-fit: contain !important;
display: block !important;
margin: 0 auto !important;
}
.filter-lane {
background: none !important;
box-shadow: none !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
}
.filter-inner-lane {
background: none !important;
box-shadow: none !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
flex-direction: row !important;
justify-content: center !important;
min-height: 0 !important;
width: 100% !important;
display: flex !important;
align-items: center !important;
}
.filter-inner-lane > * {
display: none !important;
}
.filter-inner-lane > .col20.f-left.mobile-view {
display: flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 auto !important;
padding: 0 !important;
width: auto !important;
background: none !important;
box-shadow: none !important;
float: none !important;
}
#productFilterMobileButton {
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: #fff !important;
border: 1px solid #ccc !important;
padding: 8px 18px !important;
border-radius: 6px !important;
font-size: 15px !important;
font-weight: 500 !important;
color: #000 !important;
box-shadow: none !important;
margin: 10px 0 0 0 !important;
width: auto !important;
text-decoration: none !important;
cursor: pointer !important;
float: none !important;
}
.lane-list-wrapper {
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
}
.products-list-count,
.products-list-results,
.products-count-info,
.results-count,
.product-count-wrapper,
[id*="resultCount"] {
display: none !important;
}
.products-ordering,
.products-ordering-wrapper,
.ordering-wrapper,
select[name*="orderby"],
[id*="orderBy"],
.order-by-wrapper,
label[for*="orderby"],
.filter-sort-wrapper {
display: none !important;
}
.filter-button-wrapper > span:first-child,
#productFilterMobileButton > span:first-child,
button > span:first-child,
a > span:first-child {
display: none !important;
}
}
@media (min-width: 1025px) {
.logo-mobile-forcado {
display: none !important;
}
.lane-list-wrapper h1,
.lane-list-wrapper .products-title,
.lane-list-wrapper .category-title {
display: block !important;
}
.products-list-count,
.products-list-results,
.products-count-info,
.results-count,
.product-count-wrapper,
[id*="resultCount"] {
display: block !important;
}
.products-ordering,
.products-ordering-wrapper,
.ordering-wrapper,
select[name*="orderby"],
[id*="orderBy"],
.order-by-wrapper,
label[for*="orderby"],
.filter-sort-wrapper {
display: flex !important;
}
}
/* Esconder qualquer texto JavaScript que apareça na página */
body > script,
body > text[contains("document.addEventListener")],
body > text[contains("DOMContentLoaded")],
body > text[contains("productFilterMobileButton")] {
display: none !important;
visibility: hidden !important;
height: 0 !important;
width: 0 !important;
overflow: hidden !important;
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
</style>
<script>
(function() {
// Remove qualquer texto JavaScript que apareça na página
function removerTextoJS() {
const todosNos = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
null,
false
);
let noAtual;
const nosParaRemover = [];
while (noAtual = todosNos.nextNode()) {
const texto = noAtual.textContent.trim();
if (
texto.includes('document.addEventListener') ||
texto.includes('DOMContentLoaded') ||
texto.includes('productFilterMobileButton') ||
texto.includes('btn.innerHTML') ||
texto.includes('function (') ||
texto.includes('getElementById')
) {
nosParaRemover.push(noAtual);
}
}
nosParaRemover.forEach(no => {
if (no.parentNode) {
no.parentNode.removeChild(no);
}
});
}
function isMobile() {
return window.innerWidth <= 1024;
}
// Adicionar logo no mobile dentro do container correto do cabeçalho
function adicionarLogo() {
if (!isMobile()) return;
if (document.querySelector('.logo-mobile-forcado')) return;
const logoDiv = document.createElement('div');
logoDiv.className = 'logo-mobile-forcado';
const logoImg = document.createElement('img');
logoImg.src = 'https://assets.zyrosite.com/cdn-cgi/image/format=auto,w=768,h=314,fit=crop/AoPWb7o0zkiKZw43/logo-sem-fundo-webp-Aq2JLQ3jzVHl2Wb7.webp';
logoImg.alt = 'Logo';
logoDiv.appendChild(logoImg);
// Inserir dentro do container header-widget especificado por id e classe
const header = document.querySelector('.header-widget#header-widget-1531565329803-mobile');
if (header) {
header.appendChild(logoDiv);
} else {
// fallback para body caso o seletor não encontre o container correto
document.body.appendChild(logoDiv);
}
}
function aplicarPersonalizacoes() {
removerTextoJS();
adicionarLogo();
if (isMobile()) {
const seletores = [
'#productFilterMobileButton',
'a.mobile-store-filter',
'.filter-lane button',
'.filter-lane a',
'button:contains("Filtro de produto")',
'a:contains("Filtro de produto")',
'.mobile-view a',
'.col20.f-left.mobile-view a'
];
for (const seletor of seletores) {
try {
const elementos = document.querySelectorAll(seletor);
if (elementos.length > 0) {
elementos.forEach(el => {
if (el.textContent && (
el.textContent.includes('Filtro de produto') ||
el.textContent.includes('Filtrar Imóveis') ||
el.textContent.includes('Filtrar Pesquisa')))
el.innerHTML = '<span style="display:inline-block;margin-right:7px;font-size:20px;line-height:1;">☰</span> Filtrar Imóveis';
});
}
} catch (e) {}
}
document.querySelectorAll('button, a').forEach(el => {
if (el.textContent && (
el.textContent.includes('Filtrar Imóveis') ||
el.textContent.includes('Filtrar Pesquisa'))) {
const conteudo = el.innerHTML;
const contagem = (conteudo.match(/☰/g) || []).length + (conteudo.match(/☰/g) || []).length;
if (contagem > 1) {
el.innerHTML = '<span style="display:inline-block;margin-right:7px;font-size:20px;line-height:1;">☰</span> Filtrar Imóveis';
}
}
});
document.querySelectorAll('.filter-button-wrapper > span, .filter-icon').forEach(span => {
if (span.textContent && (span.textContent.includes('☰') || span.textContent.includes('≡'))) {
span.style.display = 'none';
}
});
const ocultar = [
'.products-list-count',
'.products-list-results',
'.results-count',
'.products-ordering',
'.order-select-wrapper',
'label:contains("Ordenar por")'
];
ocultar.forEach(seletor => {
try {
document.querySelectorAll(seletor).forEach(el => {
el.style.display = 'none';
});
} catch (e) {}
});
document.querySelectorAll('*').forEach(el => {
if (el.textContent && (
el.textContent.trim() === 'Ordenar por' ||
el.textContent.includes('Mais recentes primeiro') ||
el.textContent.includes('Mostrando todos'))) {
if (!el.textContent.includes('Filtrar Imóveis') &&
!el.textContent.includes('Filtro de produto')) {
el.style.display = 'none';
}
}
});
} else {
const exibir = [
'.products-list-count',
'.products-list-results',
'.results-count',
'.products-ordering',
'.order-select-wrapper',
'label:contains("Ordenar por")',
'.products-title',
'h1'
];
exibir.forEach(seletor => {