/* style.css (v1.3.9 - Modal Kit de Madeira e CTA no topo) */

/* -------------------- */
/* Reset e Base         */
/* -------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
[hidden] {
    display: none !important;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    color: #333;
    padding: 20px;
}
body.modal-open {
    overflow: hidden;
}

/* -------------------- */
/* Layout Principal     */
/* -------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: block;
    position: relative;
}
.container.visible {
    display: block;
}
.content {
    padding: 25px 30px;
}

/* -------------------- */
/* Header               */
/* -------------------- */
.header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
}
.header-brand-home {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 540px);
    border: none;
    background: transparent;
    color: inherit;
    border-radius: 24px;
    padding: 8px 14px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.header-brand-home:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.header-brand-home:focus-visible {
    outline: 3px solid rgba(255,255,255,0.42);
    outline-offset: 4px;
}
#logotipoEmpresaHeader {
    max-width: 150px;
    max-height: 80px;
    display: block;
    margin: 0 auto 10px auto;
    object-fit: contain;
}
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px 24px;
    flex-wrap: wrap;
}
.header-brand-home img,
.header-brand-home .header-brand-block {
    pointer-events: none;
}
.header-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}
.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.btn-kit-info,
.btn-install-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 340px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 14px 26px rgba(0,0,0,0.14);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-kit-info:hover,
.btn-install-app:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.24);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}
.btn-kit-info:focus-visible,
.btn-install-app:focus-visible {
    outline: 3px solid rgba(255,255,255,0.4);
    outline-offset: 3px;
}
.btn-install-app {
    max-width: 220px;
    background: rgba(255,255,255,0.1);
}

/* -------------------- */
/* Abas de Navegação    */
/* -------------------- */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}
.tab {
    flex: 1;
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s ease;
}
.tab:hover {
    background: #e9ecef;
    color: #ff6b35;
}
.tab.active {
    background: #ff6b35;
    color: white;
    box-shadow: inset 0 -3px 0 #d95b29;
}
.tab.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* -------------------- */
/* Seções e Filtros     */
/* -------------------- */
.form-section {
    display: none;
}
.form-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.filters-area {
    display: block;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
    z-index: 90;
    position: relative;
}
.filters-area.active {
    display: block;
}
.localidade-info-filtros strong {
    color: #ff6b35;
}
.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.catalog-heading {
    margin-bottom: 0;
    text-align: left;
}
.catalog-quick-bar {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(130px, 170px) minmax(160px, 220px) minmax(240px, auto);
    gap: 12px;
    align-items: end;
}
.catalog-quick-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.catalog-quick-actions .btn {
    min-height: 48px;
}
.catalog-quick-actions #btnToggleFiltros {
    flex: 1 1 180px;
}
.catalog-quick-actions .catalog-quick-ia-btn {
    flex: 1 1 220px;
}
.catalog-quick-field {
    min-width: 0;
}
.catalog-quick-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #495057;
    text-align: left;
}
.catalog-quick-field .form-control {
    min-height: 48px;
}
.filtros-header-simplificado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
}
.filtros-helper-text {
    font-size: 0.92rem;
    color: #6b7280;
}
.advanced-filters-panel {
    display: none;
    border-top: 1px solid #e2e8f0;
    margin-top: 18px;
    padding-top: 18px;
}
.advanced-filters-panel.active {
    display: block;
}
.form-actions-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cadastro-tools-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}
.cadastro-tools-bar .btn {
    min-height: 44px;
}

/* ======================================================== */
/* CSS APRIMORADO PARA O LAYOUT DOS FILTROS */
/* ======================================================== */
.filters-area .form-row {
    display: grid;
    /* Cria colunas responsivas. Em telas grandes, tenta encaixar o máximo de colunas de 240px. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px 20px; /* Espaçamento vertical e horizontal entre os campos */
    align-items: end; /* Alinha os itens na base, útil para botões */
    margin-bottom: 15px; /* Espaço entre as linhas de filtros */
}
/* Remove a margem extra do último form-row */
.filters-area .form-row:last-of-type {
    margin-bottom: 0;
}

/* Garante que os campos de busca e ordenação ocupem a linha toda se forem os únicos */
.filters-area .form-group.full-width {
    grid-column: 1 / -1; /* Ocupa todas as colunas da linha */
    margin-top: 15px;
}
/* ======================================================== */


/* -------------------- */
/* Formulários e Inputs */
/* -------------------- */
.form-control,
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.form-control:focus,
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

fieldset {
    border: 1px solid #e0e2e6; /* Adicionado borda leve */
    border-radius: 8px; /* Cantos arredondados */
    padding: 20px; /* Aumentado um pouco o padding interno */
    margin-bottom: 25px; /* Espaço após o fieldset */
    background-color: #ffffff; /* Fundo branco para as seções do formulário */
}
legend {
    width: auto;
    padding: 6px 15px; /* Ajuste para ter mais espaço vertical */
    font-size: 1.2rem; /* Um pouco maior */
    font-weight: 700; /* Mais negrito */
    color: #ff6b35;
    background: #fdf3e9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #ffe8d4;
    position: relative; /* Mantém a posição original */
    left: -10px; /* Desloca um pouco para a esquerda para "abraçar" a borda do fieldset */
    margin-bottom: -10px; /* Move para cima para sobrepor a borda do fieldset */
    display: inline-block;
    line-height: 1;
    z-index: 1; /* Garante que fique acima do fieldset */
}
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 25px;
    text-align: center;
}
hr {
    border: none;
    border-top: 1px solid #f0f2f5;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 0; /* Removido margin-bottom aqui, pois o gap do grid já controla o espaçamento */
}
.form-group label {
    display: block; /* Garante que a label ocupe sua própria linha */
    margin-bottom: 7px;
    font-weight: 600;
    color: #495057;
    text-align: left; /* **MUDANÇA CRUCIAL: ALINHAR LABELS À ESQUERDA** */
}
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* O form-row geral para o formulário de cadastro */
.form-section#cadastro .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 25px;
    align-items: start;
}
.form-section#cadastro .form-row-caracteristicas {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px 15px;
}

.form-row .form-group input[type="number"] {
    text-align: left; /* Garante que o texto do input number também se alinhe à esquerda */
    padding-left: 14px; /* Ajusta o padding para ser consistente com outros inputs */
    padding-right: 14px;
}

/* Estilos para ícones de selects */
.select-with-icon {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 35px !important;
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="%23495057" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>'), var(--select-icon-url, none);
    background-position: right 10px center, 8px center;
    background-size: 10px, 20px;
}
.select-icon-terrea { --select-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff6b35" d="M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3zm0 2.38L18.6 11H5.4L12 5.38z"/></svg>');}
.select-icon-duplex { --select-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff6b35" d="M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3zm0 2.38L18.6 11H5.4L12 5.38zM12 15c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>');}
.select-icon-chale { --select-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ff6b35" d="M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3zMExercises 16H5v-2h2v2zm10 0h-2v-2h2v2zM12 11.82L15.3 15H8.7L12 11.82z"/></svg>');}
.select-icon-dentro { --select-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23007bff" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-2.09.7-4.01 1.86-5.54L15.46 18.14A7.953 7.953 0 0111 19.93zM12 4.07c3.95.49 7 3.85 7 7.93 0 2.09-.7 4.01-1.86 5.54L8.54 5.86A7.953 7.953 0 0112 4.07z"/></svg>');}
.select-icon-fora { --select-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%2328a745" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM12 6l-6 6 1.41 1.41L12 9.83l4.59 4.58L18 12l-6-6z"/></svg>');}

/* -------------------- */
/* Upload Box e Previews */
/* -------------------- */
.upload-box { border: 2px dashed #ced4da; border-radius: 8px; padding: 25px; text-align: center; color: #6c757d; cursor: pointer; transition: all 0.2s ease; margin-top: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px;}
.upload-box:hover, .upload-box.dragover { border-color: #ff6b35; background-color: #fff3e0; color: #d35400;}
.upload-box input[type="file"] { display: none;}
.upload-box .icon { font-size: 3rem; color: #ff6b35; margin-bottom: 10px;}
.upload-box.images-icon .icon::before { content: '📸';}
.upload-box.plant-icon .icon::before { content: '📝';}
.upload-box .text-label { font-size: 1.1em; font-weight: 600; margin-bottom: 8px;}
.upload-box .sub-text-label { font-size: 0.85em; color: #999; margin-bottom: 5px;}
.upload-box .select-button { background-color: #007bff; color: white; padding: 8px 15px; border-radius: 5px; font-size: 0.9em; font-weight: 500; display: inline-block; margin-top: 5px;}
.upload-box.dragover .select-button { background-color: #f7931e;}
.image-preview-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; padding: 10px; border: 1px solid #e9ecef; border-radius: 8px; background-color: #f8f9fa; min-height: 120px; align-items: flex-start; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);}
#previewImagemPlanta.image-preview-container { display: flex; justify-content: center; align-items: center; min-height: 120px; padding: 10px; width: fit-content; margin-left: auto; margin-right: auto;}
.image-preview-item { position: relative; width: 100px; height: 100px; border: 1px solid #ccc; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,0.08); cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;}
.image-preview-item:hover,
.image-preview-item:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16); outline: 2px solid rgba(255, 107, 53, 0.38); outline-offset: 2px; }
.image-preview-item.is-sortable { cursor: grab; }
.image-preview-item.is-sortable:active { cursor: grabbing; }
.image-preview-item.dragging { opacity: 0.48; transform: scale(0.97); box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18); }
.image-preview-item.drag-over { border-color: #ff6b35; box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover;}
.image-preview-item .remove-image-btn { position: absolute; top: 2px; right: 2px; background-color: rgba(220, 53, 69, 0.8); color: white; border: none; border-radius: 3px; padding: 2px 6px; font-size: 0.75rem; cursor: pointer; line-height: 1; transition: background-color 0.2s ease;}
.image-preview-item .remove-image-btn:hover { background-color: #dc3545;}
.price-display-box { background-color: #e9f5e9; border: 1px solid #d4edda; border-radius: 6px; padding: 15px; margin-bottom: 10px; color: #155724;}
.price-display-box p { margin: 5px 0; display: flex; justify-content: space-between; align-items: center;}
.price-display-box p strong { color: #0d4a1b;}
.price-display-box span { font-weight: 600; font-size: 1.1em; color: #155724;}
.price-display-box.total-price-box { background-color: #fef5e7; border-color: #ffeccf; color: #d35400; font-size: 1.1em;}
.price-display-box.total-price-box p strong, .price-display-box.total-price-box span { color: #d35400; font-size: 1.2em; font-weight: 700;}
.price-display-box.total-price-box p:first-child { justify-content: center; margin-bottom: 10px;}

/* -------------------- */
/* Botões               */
/* -------------------- */
.btn { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); color: white; border: none; padding: 10px 22px; border-radius: 6px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.2s ease;}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);}
.btn-primary { background-color: #007bff;}
.btn-primary:hover { background-color: #0056b3;}
.btn-secondary { background: linear-gradient(135deg, #6c757d 0%, #495057 100%);}
.btn-success { background: linear-gradient(135deg, #28a745 0%, #218838 100%);}
.btn-whatsapp { background: #25D366 !important;}
.btn-whatsapp:hover { background: #1DA851 !important;}
.btn-small { padding: 8px 12px; font-size: 0.8rem;}
.btn-link-like { background: none; border: none; color: #007bff; text-decoration: underline; cursor: pointer; padding: 0; font-size: 0.9rem;}

/* -------------------- */
/* Catálogo e Cards     */
/* -------------------- */
.catalogo-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 25px; position: relative; z-index: 10;}
.projeto-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.07); transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; z-index: 1;}
.projeto-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1);}
.projeto-header { background: #ff6b35; color: white; padding: 12px; text-align: center;}
.projeto-header h3 { font-size: 1.1rem; margin: 0;}
.projeto-header .area { font-size: 1.4rem; font-weight: bold;}
.projeto-images { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 180px; background-color: #f5f6f8;}
.image-section { position: relative; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f5f6f8;}
.projeto-images img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #f7f8fa;}
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; background: #e9ecef; color: #6c757d; text-align: center; padding: 10px; font-size: 0.9em;}
.image-label { position: absolute; top: 5px; left: 5px; background: rgba(0,0,0,0.5); color: white; padding: 2px 6px; font-size: 0.7rem; border-radius: 4px; z-index: 2;}
.projeto-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column;}
.projeto-features { margin-bottom: 15px;}
.projeto-pricing { margin-top: auto; border-top: 1px solid #eee; padding-top: 10px;}
.price-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 3px;}
.price-row.total { font-weight: bold; color: #ff6b35; font-size: 1rem;}
.projeto-actions { padding: 10px; border-top: 1px solid #eee; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center;}
.projeto-footer { background: #495057; color: #e9ecef; padding: 10px 15px; text-align: center; font-size: 0.8rem;}
.projeto-footer h4 { color: #f7931e;}
.caracteristicas-lista { list-style: none; padding-left: 0; margin-top: 5px;}
.caracteristicas-lista li { padding-left: 15px; position: relative; font-size: 0.85rem;}
.caracteristicas-lista li::before { content: '✓'; color: #ff6b35; position: absolute; left: 0;}
.deck-info { color: #28a745; font-weight: 500; margin-top: 5px;}
.projeto-card.fullsize { position: relative; top: auto; left: auto; transform: none; width: min(96vw, 1160px); max-width: min(96vw, 1160px); max-height: calc(100vh - 150px); z-index: 2000; overflow-y: auto; display: block; flex-direction: column; margin: 0 auto; }
.projeto-card.fullsize .projeto-header h3 { font-size: 1.5rem;}
.projeto-card.fullsize .projeto-header .area { font-size: 1.8rem;}
.projeto-card.fullsize .projeto-images { height: clamp(280px, 38vh, 420px);}
.projeto-card.fullsize .projeto-info { font-size: 1.1rem;}
.projeto-card.fullsize .projeto-pricing .price-row { font-size: 1.05rem;}
.projeto-card.fullsize .projeto-pricing .price-row.total { font-size: 1.2rem;}

/* -------------------- */
/* Modal e Visualizador */
/* -------------------- */
.modal-localidade-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; padding: 15px;}
.modal-localidade-overlay.active { display: flex; opacity: 1;}
.modal-localidade-content { background: white; padding: 30px; border-radius: 8px; text-align: center; max-width: 500px; width: 90%; box-shadow: 0 10px 20px rgba(0,0,0,0.2);}
.btn-group-localidade { display: flex; gap: 15px; margin-top: 20px; justify-content: center;}
.modal-kit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 28, 0.78);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 2600;
}
.modal-kit-overlay.active {
    display: flex;
}
.modal-kit-card {
    width: min(100%, 960px);
    max-height: min(92vh, 980px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
}
.modal-kit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 20px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}
.modal-kit-header-text h2 {
    color: #fff;
    text-align: left;
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2vw, 2rem);
}
.modal-kit-header-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}
.modal-kit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.modal-kit-close {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.modal-kit-close:hover {
    transform: scale(1.04);
    background: rgba(255,255,255,0.28);
}
.modal-kit-body {
    padding: 20px;
    overflow: auto;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}
.kit-intro-box {
    background: #fff3e8;
    border: 1px solid #ffd4b0;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #7a4210;
    line-height: 1.55;
}
.kit-intro-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}
.kit-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #ece7e1;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.05);
}
.kit-section-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 12px 22px rgba(247, 147, 30, 0.28);
}
.kit-section-content h3 {
    font-size: 1.12rem;
    color: #1f2937;
    margin-bottom: 10px;
}
.kit-section-content p {
    margin-bottom: 10px;
    line-height: 1.65;
    color: #4b5563;
}
.kit-alert-box {
    background: #fff6e6;
    border-left: 4px solid #f7931e;
    border-radius: 12px;
    padding: 12px 14px;
    color: #8a4b08;
    line-height: 1.55;
}
.kit-items-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.kit-item-card {
    background: #fffaf6;
    border: 1px solid #f0e2d6;
    border-radius: 16px;
    padding: 14px;
}
.kit-item-card h4 {
    color: #b45309;
    margin-bottom: 8px;
    font-size: 1rem;
}
.kit-item-card p {
    margin: 0;
    font-size: 0.96rem;
}
.kit-item-card-wide {
    grid-column: 1 / -1;
}
.kit-check-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.kit-check-list li {
    position: relative;
    padding-left: 28px;
    color: #374151;
    line-height: 1.55;
}
.kit-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff3e8;
    color: #ff6b35;
    font-weight: 800;
}
.kit-whatsapp-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff3e8 0%, #fffaf6 100%);
    border: 1px solid #ffd8ba;
}
.kit-whatsapp-box h3 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 1.08rem;
}
.kit-whatsapp-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}
.btn-kit-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 290px;
    padding: 15px 20px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(18, 140, 126, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-kit-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(18, 140, 126, 0.28);
}
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: flex-start; flex-direction: column; gap: 12px; z-index: 3000; overflow: auto; padding: 18px;}
.overlay.active { display: flex;}
.zoom-controls { position: relative; display: flex; gap: 15px; z-index: 3010; background: rgba(45, 55, 72, 0.92); padding: 10px 20px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); margin: 0 auto 4px auto; }
.zoom-btn { background: #ff6b35; color: white; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background-color 0.2s ease; white-space: nowrap;}
.zoom-btn:hover { background-color: #f75c2f;}
 .gallery-top-btn { position: fixed; top: 18px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); background: rgba(16,18,23,0.68); color: #fff; backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3012; font-size: 1.5rem; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.gallery-top-btn:hover { transform: scale(1.05); background: rgba(255,107,53,0.9); border-color: rgba(255,107,53,0.95); }
.gallery-close-btn { right: 18px; font-size: 2rem; }
.gallery-fullscreen-btn { right: 72px; font-size: 1.25rem; }
.image-gallery-container.modern-gallery { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; background: rgba(0,0,0,0.96); border-radius: 0; overflow: hidden; }
.image-gallery-stage { width: min(100vw - 140px, 1800px); height: min(100vh - 110px, 1100px); display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; }
#galleryMainImage { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; cursor: zoom-in; transition: transform 0.14s ease-out, opacity 0.18s ease-out; user-select: none; -webkit-user-drag: none; }
#galleryMainImage.is-zoomed { cursor: grab; }
.gallery-nav-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 999px; background: rgba(12,13,16,0.58); color: #fff; border: 1px solid rgba(255,255,255,0.18); font-size: 2.8rem; line-height: 1; cursor: pointer; z-index: 3011; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); transition: transform .18s ease, background .18s ease, opacity .18s ease; }
.gallery-nav-btn:hover { transform: translateY(-50%) scale(1.06); background: rgba(255,107,53,0.88); }
.gallery-nav-btn:disabled { opacity: 0.18; cursor: default; pointer-events: none; }
.gallery-nav-btn.prev { left: 26px; }
.gallery-nav-btn.next { right: 26px; }
.gallery-dots-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; background: rgba(16,18,23,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; backdrop-filter: blur(12px); z-index: 3011; }
.gallery-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; transition: all .18s ease; }
.gallery-dot.active, .gallery-dot:hover { background: #ff6b35; transform: scale(1.18); }

/* Loading Spinner */
.loading { display: none; text-align: center; padding: 40px;}
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #ff6b35; border-radius: 50%; animation: spin 1s linear infinite; margin: auto;}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Alertas */
.alert { padding: 12px; margin-bottom: 15px; border-radius: 5px; border: 1px solid transparent;}
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb;}
.alert-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb;}
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb;}
.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5;}

/* Responsividade */
@media (max-width: 1200px) {
    .catalogo-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    body { padding: 0; }
    .container { margin: 0; border-radius: 0; }
    .catalogo-container { grid-template-columns: 1fr; gap: 15px; }
    .content { padding: 15px; }
    .catalog-top-bar { align-items: stretch; margin-bottom: 14px; }
    .catalog-heading { font-size: 1.55rem; }
    .catalog-quick-bar { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .catalog-quick-field:first-child { grid-column: 1 / -1; }
    .catalog-quick-actions { grid-column: 1 / -1; flex-direction: column; }
    .catalog-quick-actions .btn,
    #btnToggleFiltros { width: 100%; min-height: 48px; }
    .filters-area { padding: 14px; margin-bottom: 18px; }
    .filtros-header-simplificado { align-items: flex-start; }
    .filtros-helper-text { width: 100%; font-size: 0.88rem; }
    .form-actions-row { flex-direction: column; }
    .form-actions-row .btn { width: 100%; }
    .cadastro-tools-bar .btn { width: 100%; }
    .header { padding: 18px 16px; }
    .header-main-row { flex-direction: column; gap: 14px; }
    .header-brand-home { width: 100%; max-width: 100%; padding: 10px 12px; }
    .header-actions { width: 100%; flex-direction: column; }
    .header h1 { font-size: 1.85rem; }
    .header p { font-size: 1rem; }
    .btn-kit-info,
    .btn-install-app { width: 100%; max-width: 100%; padding: 12px 14px; font-size: 0.9rem; }
    .projeto-card.fullsize { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100vh - 126px); border-radius: 14px; background: white; }
    .projeto-card.fullsize .projeto-images { height: 240px; }
    .zoom-controls { padding: 8px 12px; gap: 10px; flex-wrap: wrap; justify-content: center; width: min(96vw, 700px); }
    .modal-localidade-overlay { padding: 10px; }
    .modal-localidade-content { width: 95%; }
    .modal-kit-overlay { padding: 0; align-items: stretch; }
    .modal-kit-card { width: 100%; max-height: 100vh; border-radius: 0; }
    .modal-kit-header { padding: 18px 16px; }
    .modal-kit-header-text h2 { font-size: 1.35rem; }
    .modal-kit-body { padding: 14px; }
    .kit-section { grid-template-columns: 1fr; padding: 16px; }
    .kit-section-number { width: 42px; height: 42px; border-radius: 14px; }
    .kit-items-grid { grid-template-columns: 1fr; }
    .kit-whatsapp-box { flex-direction: column; align-items: stretch; padding: 16px; }
    .btn-kit-whatsapp { width: 100%; min-width: 0; }
    .gallery-top-btn { top: 12px; width: 42px; height: 42px; }
    .gallery-close-btn { right: 12px; }
    .gallery-fullscreen-btn { right: 62px; }
    .gallery-nav-btn { width: 48px; height: 48px; font-size: 2.4rem; }
    .gallery-nav-btn.prev { left: 10px; }
    .gallery-nav-btn.next { right: 10px; }
    .image-gallery-stage { width: calc(100vw - 24px); height: calc(100vh - 92px); }
    .gallery-dots-bar { bottom: 12px; padding: 8px 12px; gap: 8px; }
}


.projeto-aviso-obra {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4e8;
    border: 1px solid #ffd1a6;
    color: #8a4b08;
    font-size: 0.92rem;
    line-height: 1.45;
}

.contratacao-minima-resumo {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f7fb;
    border: 1px solid #e6e8ef;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group-notice {
    min-width: 260px;
}

.form-static-info {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f7fb;
    border: 1px solid #e6e8ef;
    color: #4b5563;
    line-height: 1.45;
}

.generated-actions-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;}
.generated-actions-row .btn{min-height:42px;}

/* v11 - ajustes de performance, SEO e acessibilidade do catálogo */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.noscript-alert {
    max-width: 960px;
    margin: 0 auto 16px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    font-weight: 700;
    text-align: center;
}
.header .site-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    font-weight: 800;
}
.alert-container-sticky {
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.catalogo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.filter-search-field {
    margin-top: 15px;
}
.filter-actions {
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.zoom-controls {
    display: none;
}
@media (max-width: 640px) {
    .header .site-title {
        font-size: 1.65rem;
    }
    .catalogo-toolbar,
    .filtros-header,
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ==========================================================
   v13 — Catálogo paginado, imagens rápidas e compartilhamento
   ========================================================== */
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff7f0;
    border: 1px solid rgba(255, 107, 53, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 16px 0;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}
.catalog-pagination[hidden],
.catalog-infinite-sentinel[hidden] {
    display: none !important;
}
.catalog-pagination-summary {
    font-size: 0.92rem;
    color: #4b5563;
    font-weight: 700;
}
.catalog-pagination-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.catalog-pagination-btn {
    border: 1px solid rgba(255, 107, 53, 0.24);
    background: #ffffff;
    color: #374151;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.catalog-pagination-btn:hover:not(:disabled),
.catalog-pagination-btn.active {
    background: linear-gradient(135deg, #ff6b35, #ff8a1c);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 107, 53, 0.22);
    transform: translateY(-1px);
}
.catalog-pagination-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}
.catalog-pagination-gap {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: #6b7280;
    font-weight: 800;
}
.catalog-infinite-sentinel {
    text-align: center;
    color: #6b7280;
    padding: 18px 10px 28px;
    font-weight: 700;
}
.projeto-card-destaque-direto {
    outline: 3px solid rgba(255, 107, 53, 0.42);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.12), 0 18px 36px rgba(17, 24, 39, 0.16);
}
.btn-compartilhar-projeto,
.btn-fale-vendedor {
    min-width: 132px;
}
.btn-fale-vendedor,
.zoom-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
}
.btn-fale-vendedor:hover,
.zoom-whatsapp:hover {
    background: #1da851 !important;
}
.wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}
.zoom-share {
    background: #2563eb;
    color: #ffffff;
}
.zoom-close {
    background: #ff6b35;
    color: #ffffff;
}

@media (max-width: 768px) {
    .catalog-pagination {
        display: none !important;
    }
    .projeto-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .projeto-actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .zoom-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }
    .zoom-controls .zoom-download,
    .zoom-controls .zoom-print {
        display: none !important;
    }
    .zoom-controls .zoom-close {
        grid-column: 1 / -1;
    }
}

/* ==========================================================
   v18 — Filtros rápidos inteligentes e UX mobile melhorada
   ========================================================== */
.catalog-quick-bar {
    grid-template-columns: minmax(150px, 190px) minmax(110px, 145px) minmax(110px, 145px) minmax(170px, 210px) minmax(210px, auto);
    align-items: end;
}
.catalog-quick-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d7dde5;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    color: #334155;
    margin: 0;
}
.catalog-quick-check input {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
}
.catalog-quick-actions .btn {
    min-height: 48px;
    height: auto;
    padding: 10px 14px;
}
.catalog-clear-fast {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #d7dde5;
}
.catalog-active-filters {
    display: none;
    width: 100%;
    margin-top: 10px;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.catalog-active-filters.has-filters {
    display: flex;
}
.catalog-active-filters-title {
    font-size: .88rem;
    color: #64748b;
    font-weight: 700;
}
.filter-chip {
    border: 1px solid #ffd0bd;
    background: #fff7f0;
    color: #a23b13;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .88rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .catalog-heading {
        font-size: 1.55rem;
        line-height: 1.15;
    }
    .catalog-quick-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        align-items: stretch;
    }
    .catalog-quick-field:first-child,
    .catalog-quick-field--type,
    .catalog-quick-field--gourmet,
    .catalog-quick-actions {
        grid-column: 1 / -1;
    }
    .catalog-quick-field label {
        font-size: .93rem;
        margin-bottom: 6px;
    }
    .catalog-quick-field .form-control {
        min-height: 44px;
        font-size: 1rem;
    }
    .catalog-quick-check {
        min-height: 44px;
        border-radius: 12px;
        background: #fffaf7;
    }
    .catalog-quick-actions {
        flex-direction: row !important;
        gap: 8px;
        justify-content: stretch;
    }
    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast {
        width: auto !important;
        flex: 1 1 0;
        min-height: 44px !important;
        height: auto !important;
        padding: 10px 9px;
        font-size: .95rem;
        border-radius: 10px;
    }
    .catalog-quick-actions .catalog-quick-ia-btn {
        flex-basis: 100%;
    }
    body.catalog-filters-open {
        overflow: hidden;
    }
    body.catalog-filters-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .52);
        z-index: 4200;
    }
    .advanced-filters-panel {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 82vh;
        overflow-y: auto;
        margin: 0;
        padding: 16px 16px 22px;
        border-radius: 22px 22px 0 0;
        border: 0;
        background: #fff;
        box-shadow: 0 -18px 45px rgba(15, 23, 42, .28);
        z-index: 4300;
    }
    .advanced-filters-panel.active {
        display: block;
    }
    .advanced-filters-panel .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    .form-actions-row {
        position: sticky;
        bottom: -22px;
        background: linear-gradient(180deg, rgba(255,255,255,.88), #fff 28%);
        padding: 12px 0 2px;
        margin-top: 10px;
    }
}

/* ==========================================================
   v19 — Correção filtros mobile: z-index e recarregamento limpo
   ========================================================== */
.mobile-filters-title { display: none; }
@media (max-width: 768px) {
    body.catalog-filters-open .tabs,
    body.catalog-filters-open .tab { z-index: 1 !important; }
    body.catalog-filters-open::before {
        z-index: 2147483000 !important;
        pointer-events: auto;
    }
    .advanced-filters-panel {
        z-index: 2147483001 !important;
        max-height: 84vh;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .advanced-filters-panel.active { display: block !important; }
    .mobile-filters-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: -16px;
        z-index: 2;
        background: #fff;
        padding: 4px 0 12px;
        margin-bottom: 10px;
        border-bottom: 1px solid #edf2f7;
        color: #1f2937;
        font-size: 1.05rem;
    }
    .mobile-filters-title .btn {
        min-height: 38px;
        padding: 8px 12px;
        width: auto !important;
    }
}

/* ==========================================================
   v20 — Correção ações do modal vazando no mobile
   ========================================================== */
body > #zoomControls,
.zoom-controls {
    display: none !important;
}
.overlay.active #zoomControls,
.overlay.active .zoom-controls {
    display: flex !important;
}
@media (max-width: 768px) {
    body > #zoomControls,
    .zoom-controls {
        display: none !important;
    }
    .overlay.active #zoomControls,
    .overlay.active .zoom-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
        width: min(96vw, 700px);
        margin: 0 auto 4px auto;
    }
    .overlay.active #zoomControls .zoom-download,
    .overlay.active #zoomControls .zoom-print,
    .overlay.active .zoom-controls .zoom-download,
    .overlay.active .zoom-controls .zoom-print {
        display: none !important;
    }
    .overlay.active #zoomControls .zoom-close,
    .overlay.active .zoom-controls .zoom-close {
        grid-column: 1 / -1;
    }
    body.catalog-filters-open > #zoomControls {
        display: none !important;
        pointer-events: none !important;
    }
}


/* ==========================================================
   v21 — Correção definitiva da gaveta mobile de filtros
   ========================================================== */
@media (max-width: 768px) {
    /* A gaveta precisa escapar do card/container, que usa overflow hidden. */
    body.catalog-filters-open,
    body.catalog-filters-open html {
        overflow: hidden !important;
    }

    body.catalog-filters-open .container,
    body.catalog-filters-open .content,
    body.catalog-filters-open .form-section,
    body.catalog-filters-open .filters-area {
        overflow: visible !important;
    }

    /* Mantém a área dos filtros acima do véu escuro; antes ela ficava presa em z-index menor. */
    body.catalog-filters-open .filters-area {
        position: relative !important;
        z-index: 2147483002 !important;
    }

    /* O véu escuro é apenas visual. Ele não pode capturar toque/clique. */
    body.catalog-filters-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .52);
        z-index: 2147482990 !important;
        pointer-events: none !important;
    }

    body.catalog-filters-open .advanced-filters-panel,
    body.catalog-filters-open .advanced-filters-panel.active {
        display: block !important;
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 0 !important;
        width: auto !important;
        max-height: min(84vh, 640px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 2147483005 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateZ(0) !important;
        background: #fff !important;
        color: #1f2937 !important;
        border-radius: 22px 22px 0 0 !important;
        box-shadow: 0 -22px 55px rgba(15, 23, 42, .34) !important;
    }

    body.catalog-filters-open .advanced-filters-panel * {
        pointer-events: auto;
    }

    body.catalog-filters-open .tabs,
    body.catalog-filters-open .tab,
    body.catalog-filters-open .header,
    body.catalog-filters-open .catalogo-container,
    body.catalog-filters-open .projeto-card,
    body.catalog-filters-open .catalog-pagination {
        z-index: auto !important;
    }

    body.catalog-filters-open .mobile-filters-title {
        position: sticky !important;
        top: -16px !important;
        z-index: 2147483006 !important;
        background: #fff !important;
    }
}


/* v23 - Galeria mobile: zoom e pinça persistentes */
#galleryContainer.image-gallery-container.modern-gallery {
    position: fixed;
    inset: 0;
    z-index: 5000;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}
#galleryContainer[hidden] {
    display: none !important;
}
body.gallery-open {
    overflow: hidden;
    overscroll-behavior: none;
}
#galleryMainImage.is-gesturing {
    transition: none !important;
}
@media (max-width: 768px) {
    #galleryContainer .image-gallery-stage {
        touch-action: none;
        -ms-touch-action: none;
    }
    #galleryContainer #galleryMainImage {
        max-width: 100%;
        max-height: 100%;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* JB_PATCH_V30_CATALOGO_FILTROS_DESKTOP_START */
/* ==========================================================
   v30 — Catálogo público: alinhamento dos filtros rápidos no desktop
   Mantém o mobile preservado. As regras abaixo só entram acima de 768px.
   ========================================================== */
@media (min-width: 769px) {
    .catalog-top-bar {
        display: grid !important;
        grid-template-columns: minmax(260px, 1fr) minmax(760px, 980px) !important;
        align-items: end !important;
        gap: 14px 22px !important;
        margin-bottom: 18px !important;
    }

    .catalog-heading {
        align-self: end !important;
        margin: 0 0 6px !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .catalog-quick-bar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(170px, 1fr) minmax(120px, .75fr) minmax(120px, .75fr) minmax(190px, .95fr) minmax(280px, 1.25fr) !important;
        align-items: end !important;
        gap: 12px !important;
    }

    .catalog-quick-field,
    .catalog-quick-field--gourmet,
    .catalog-quick-actions {
        min-width: 0 !important;
        align-self: end !important;
    }

    .catalog-quick-field label {
        min-height: 18px !important;
        margin: 0 0 7px !important;
        line-height: 1.2 !important;
    }

    .catalog-quick-field .form-control,
    .catalog-quick-check,
    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast {
        min-height: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .catalog-quick-check {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        white-space: nowrap !important;
    }

    .catalog-quick-actions {
        display: grid !important;
        grid-template-columns: minmax(150px, 1fr) minmax(118px, .78fr) !important;
        gap: 10px !important;
        justify-content: stretch !important;
        align-items: end !important;
        flex-wrap: nowrap !important;
    }

    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast {
        width: 100% !important;
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .catalog-top-bar {
        grid-template-columns: 1fr !important;
    }

    .catalog-heading {
        white-space: normal !important;
    }

    .catalog-quick-bar {
        grid-template-columns: minmax(170px, 1.1fr) minmax(120px, .75fr) minmax(120px, .75fr) minmax(190px, 1fr) minmax(280px, 1.35fr) !important;
    }
}
/* JB_PATCH_V30_CATALOGO_FILTROS_DESKTOP_END */

/* JB_PATCH_V31_CATALOGO_FILTROS_LOGADO_START */
/* ==========================================================
   v31 — Catálogo público: alinhamento desktop também quando logado
   Ajusta o botão extra "Abrir cadastro automático" sem alterar o mobile.
   ========================================================== */
@media (min-width: 769px) {
    .catalog-top-bar {
        overflow: visible !important;
    }

    .catalog-quick-bar {
        align-items: end !important;
    }

    .catalog-quick-field:not(.catalog-quick-field--gourmet) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .catalog-quick-field:not(.catalog-quick-field--gourmet) > label {
        display: block !important;
        min-height: 18px !important;
        height: 18px !important;
        margin: 0 0 7px !important;
        line-height: 18px !important;
    }

    .catalog-quick-field--gourmet {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-self: end !important;
    }

    .catalog-quick-field--gourmet > .catalog-quick-check {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        min-height: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        line-height: 1.1 !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .catalog-quick-field .form-control,
    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast,
    .catalog-quick-actions .catalog-quick-ia-btn {
        min-height: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        line-height: 1.1 !important;
    }

    .catalog-quick-actions {
        align-self: end !important;
        align-items: end !important;
    }

    .catalog-quick-actions .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    .catalog-quick-actions .catalog-quick-ia-btn {
        white-space: normal !important;
        line-height: 1.05 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Quando o usuário está logado existe o botão extra de cadastro automático.
       Nesse caso, a linha de filtros ganha a largura total para não esmagar botões. */
    .catalog-top-bar:has(.catalog-quick-ia-btn) {
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 10px !important;
    }

    .catalog-top-bar:has(.catalog-quick-ia-btn) .catalog-heading {
        margin: 0 !important;
        white-space: normal !important;
    }

    .catalog-quick-bar:has(.catalog-quick-ia-btn) {
        width: 100% !important;
        display: grid !important;
        grid-template-columns:
            minmax(170px, 1.05fr)
            minmax(120px, .7fr)
            minmax(120px, .7fr)
            minmax(185px, .95fr)
            minmax(470px, 1.8fr) !important;
        align-items: end !important;
        gap: 12px !important;
    }

    .catalog-quick-actions:has(.catalog-quick-ia-btn) {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(155px, 1fr) minmax(145px, .9fr) minmax(118px, .75fr) !important;
        gap: 10px !important;
        align-items: end !important;
        justify-content: stretch !important;
    }

    .catalog-quick-actions:has(.catalog-quick-ia-btn) .btn {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1240px) {
    .catalog-quick-bar:has(.catalog-quick-ia-btn) {
        grid-template-columns:
            minmax(165px, 1fr)
            minmax(118px, .7fr)
            minmax(118px, .7fr)
            minmax(180px, .9fr)
            minmax(430px, 1.65fr) !important;
        gap: 10px !important;
    }

    .catalog-quick-actions:has(.catalog-quick-ia-btn) {
        grid-template-columns: minmax(145px, 1fr) minmax(135px, .9fr) minmax(110px, .75fr) !important;
        gap: 8px !important;
    }

    .catalog-quick-actions:has(.catalog-quick-ia-btn) .btn {
        font-size: 13px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (min-width: 769px) and (max-width: 1060px) {
    .catalog-quick-bar:has(.catalog-quick-ia-btn) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .catalog-quick-actions:has(.catalog-quick-ia-btn) {
        grid-column: 1 / -1 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* JB_PATCH_V31_CATALOGO_FILTROS_LOGADO_END */

/* JB_PATCH_V32_WHATSAPP_BOTOES_START */
/* ==========================================================
   v32 — WhatsApp oficial e botões responsivos
   Somente visual: troca a bolinha verde por ícone SVG e melhora
   quebra/alinhamento dos botões nos cards e no modal.
   ========================================================== */
:root {
    --jb-wa-green: #25D366;
    --jb-wa-green-dark: #128C7E;
    --jb-wa-green-deep: #0f7f68;
    --jb-wa-shadow: rgba(18, 140, 126, 0.26);
    --jb-wa-icon-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20aria-hidden%3D%22true%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2216%22%20fill%3D%22%23ffffff%22%2F%3E%3Cpath%20fill%3D%22%2325D366%22%20d%3D%22M16.04%205.35c-5.86%200-10.63%204.76-10.63%2010.63%200%201.87.49%203.7%201.42%205.31L5.32%2026.7l5.54-1.45a10.56%2010.56%200%200%200%205.18%201.32c5.86%200%2010.63-4.76%2010.63-10.63S21.9%205.35%2016.04%205.35Zm0%2019.42c-1.57%200-3.1-.42-4.45-1.21l-.32-.19-3.28.86.88-3.2-.21-.33a8.75%208.75%200%200%201-1.35-4.72c0-4.84%203.9-8.79%208.73-8.79%204.82%200%208.74%203.95%208.74%208.79s-3.92%208.79-8.74%208.79Zm4.8-6.58c-.26-.13-1.55-.77-1.79-.86-.24-.09-.41-.13-.58.13-.17.26-.67.86-.82%201.04-.15.17-.3.2-.56.07-.26-.13-1.11-.41-2.11-1.3-.78-.69-1.3-1.55-1.45-1.81-.15-.26-.02-.4.11-.53.12-.11.26-.3.39-.45.13-.15.17-.26.26-.43.09-.17.04-.32-.02-.45-.07-.13-.58-1.4-.8-1.92-.21-.5-.42-.43-.58-.44h-.5c-.17%200-.45.06-.69.32-.24.26-.9.88-.9%202.15s.92%202.5%201.05%202.67c.13.17%201.82%202.78%204.4%203.9.62.27%201.1.43%201.47.55.62.2%201.18.17%201.63.1.5-.07%201.55-.63%201.77-1.24.22-.61.22-1.13.15-1.24-.07-.11-.24-.17-.5-.3Z%22%2F%3E%3C%2Fsvg%3E");
}

.btn-whatsapp,
.btn-fale-vendedor,
.zoom-whatsapp {
    background: linear-gradient(135deg, var(--jb-wa-green) 0%, var(--jb-wa-green-dark) 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px var(--jb-wa-shadow) !important;
}

.btn-whatsapp:hover,
.btn-fale-vendedor:hover,
.zoom-whatsapp:hover {
    background: linear-gradient(135deg, #2ee275 0%, var(--jb-wa-green-deep) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(18, 140, 126, 0.34) !important;
}

.btn-fale-vendedor,
.projeto-actions .btn,
.projeto-actions a.btn,
.zoom-controls .zoom-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    line-height: 1.15 !important;
}

.btn-fale-vendedor .wa-icon {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background-image: var(--jb-wa-icon-svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.projeto-actions {
    gap: 10px !important;
    align-items: stretch !important;
}

.projeto-actions .btn,
.projeto-actions a.btn {
    min-height: 43px !important;
    border-radius: 11px !important;
    padding: 10px 14px !important;
    white-space: normal !important;
}

.projeto-actions .btn-fale-vendedor {
    min-width: 168px !important;
}

.projeto-actions .btn-compartilhar-projeto {
    min-width: 145px !important;
}

/* Modal ampliado: substitui visualmente o emoji antigo por ícone oficial. */
.zoom-whatsapp,
#btnWhatsappCardAmpliado {
    font-size: 0 !important;
    overflow: hidden !important;
}

.zoom-whatsapp::before,
#btnWhatsappCardAmpliado::before {
    content: "" !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    display: inline-flex !important;
    background-image: var(--jb-wa-icon-svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.zoom-whatsapp::after,
#btnWhatsappCardAmpliado::after {
    content: "Fale com vendedor" !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.overlay.active #zoomControls,
.overlay.active .zoom-controls {
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    max-width: min(980px, calc(100vw - 24px)) !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    border-radius: 18px !important;
    background: rgba(31, 41, 55, 0.94) !important;
}

.overlay.active #zoomControls .zoom-btn,
.overlay.active .zoom-controls .zoom-btn {
    min-height: 44px !important;
    min-width: 136px !important;
    max-width: 100% !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.overlay.active #zoomControls .zoom-whatsapp,
.overlay.active .zoom-controls .zoom-whatsapp,
.overlay.active #btnWhatsappCardAmpliado {
    min-width: 190px !important;
    font-size: 0 !important;
}

.overlay.active #zoomControls .zoom-share,
.overlay.active .zoom-controls .zoom-share {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

.overlay.active #zoomControls .zoom-close,
.overlay.active .zoom-controls .zoom-close {
    background: linear-gradient(135deg, #ff6b35 0%, #f97316 100%) !important;
    color: #ffffff !important;
}

@media (min-width: 769px) {
    .projeto-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .projeto-actions .btn,
    .projeto-actions a.btn {
        flex: 0 1 auto !important;
    }
}

@media (max-width: 768px) {
    .projeto-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .projeto-actions .btn,
    .projeto-actions a.btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 44px !important;
        padding: 10px 10px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    .projeto-actions .btn-fale-vendedor .wa-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
    }

    .overlay.active #zoomControls,
    .overlay.active .zoom-controls {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: min(96vw, 720px) !important;
        max-width: calc(100vw - 12px) !important;
        padding: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .overlay.active #zoomControls .zoom-btn,
    .overlay.active .zoom-controls .zoom-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 9px 8px !important;
        font-size: 13px !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .overlay.active #zoomControls .zoom-download,
    .overlay.active #zoomControls .zoom-print,
    .overlay.active .zoom-controls .zoom-download,
    .overlay.active .zoom-controls .zoom-print {
        display: none !important;
    }

    .overlay.active #zoomControls .zoom-whatsapp,
    .overlay.active .zoom-controls .zoom-whatsapp,
    .overlay.active #btnWhatsappCardAmpliado {
        font-size: 0 !important;
    }

    .overlay.active #zoomControls .zoom-whatsapp::after,
    .overlay.active .zoom-controls .zoom-whatsapp::after,
    .overlay.active #btnWhatsappCardAmpliado::after {
        font-size: 13px !important;
    }

    .overlay.active #zoomControls .zoom-close,
    .overlay.active .zoom-controls .zoom-close,
    .overlay.active #btnFecharCardAmpliado {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 380px) {
    .projeto-actions .btn,
    .projeto-actions a.btn,
    .overlay.active #zoomControls .zoom-btn,
    .overlay.active .zoom-controls .zoom-btn {
        font-size: 12.5px !important;
        letter-spacing: -0.01em !important;
    }

    .zoom-whatsapp::before,
    #btnWhatsappCardAmpliado::before,
    .btn-fale-vendedor .wa-icon {
        width: 17px !important;
        height: 17px !important;
        min-width: 17px !important;
    }
}
/* JB_PATCH_V32_WHATSAPP_BOTOES_END */

/* JB_PATCH_V33_WHATSAPP_MODAL_FIX_START */
/* ==========================================================
   v33 — Correção do WhatsApp duplicado no modal
   Mantém o ícone oficial, mas impede que o texto original
   "Fale com vendedor" apareça junto com o ::after.
   ========================================================== */
html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp {
    font-size: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    gap: 8px !important;
}

html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before,
html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before,
html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before {
    content: "" !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    display: inline-flex !important;
    flex: 0 0 20px !important;
    background-image: var(--jb-wa-icon-svg) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after {
    content: "Fale com vendedor" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
}

/* Reforço para telas estreitas: evita duplicidade e evita texto espremido. */
@media (max-width: 420px) {
    html body .overlay.active #zoomControls,
    html body .overlay.active .zoom-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }

    html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
    html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
    html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp {
        font-size: 0 !important;
        color: transparent !important;
        min-width: 0 !important;
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before,
    html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before,
    html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::before {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        flex-basis: 18px !important;
    }

    html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
    html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
    html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after {
        content: "Fale com vendedor" !important;
        font-size: 12.5px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        max-width: 86px !important;
    }
}

@media (max-width: 360px) {
    html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
    html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after,
    html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp::after {
        content: "WhatsApp" !important;
        max-width: none !important;
        white-space: nowrap !important;
        font-size: 12.5px !important;
    }
}

/* Segurança extra contra regras genéricas de .zoom-btn no final do CSS. */
@media (max-width: 380px) {
    html body .overlay.active #zoomControls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
    html body .overlay.active .zoom-controls a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp,
    html body a#btnWhatsappCardAmpliado.zoom-btn.zoom-whatsapp {
        font-size: 0 !important;
        color: transparent !important;
    }
}
/* JB_PATCH_V33_WHATSAPP_MODAL_FIX_END */

/* ============================================================
   v42 — Busca inteligente no lugar das abas + link filtrado
   Versão: 20260429-metragem-prompt-ia-og-filtros-v47
   ============================================================ */
.catalog-smart-search-shell {
    position: sticky;
    top: 0;
    z-index: 120;
    background: linear-gradient(135deg, #ff6b35 0%, #ff7a2f 100%);
    border-bottom: 2px solid rgba(217, 91, 41, 0.35);
    padding: 16px 30px;
}
.catalog-smart-search-inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}
.catalog-smart-search-copy {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.catalog-smart-search-copy strong {
    font-size: 1.05rem;
    line-height: 1.15;
}
.catalog-smart-search-copy span {
    font-size: 0.9rem;
    opacity: 0.92;
}
.catalog-smart-search-box {
    position: relative;
    width: 100%;
}
.catalog-smart-search-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.96);
    color: #1f2933;
    font-weight: 650;
    outline: none;
    box-shadow: 0 12px 26px rgba(0,0,0,0.14);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.catalog-smart-search-input:focus {
    border-color: #ffffff;
    box-shadow: 0 16px 34px rgba(0,0,0,0.20);
    transform: translateY(-1px);
}
.catalog-smart-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(15,23,42,0.22);
    padding: 8px;
    max-height: min(460px, 72vh);
    overflow: auto;
    z-index: 999;
}
.catalog-smart-search-empty {
    padding: 15px 16px;
    color: #52606d;
    font-size: 0.95rem;
}
.catalog-smart-search-item,
.catalog-smart-search-filter {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: #ffffff;
    color: #1f2933;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease, transform 0.18s ease;
}
.catalog-smart-search-item:hover,
.catalog-smart-search-item:focus-visible,
.catalog-smart-search-filter:hover,
.catalog-smart-search-filter:focus-visible {
    background: #fff3ed;
    transform: translateY(-1px);
    outline: none;
}
.catalog-smart-search-item img {
    width: 72px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f5f7;
    flex: 0 0 auto;
    border: 1px solid #edf0f3;
}
.catalog-smart-search-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.catalog-smart-search-item-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
    color: #1f2933;
}
.catalog-smart-search-item-text small {
    color: #6b7785;
    font-size: 0.82rem;
}
.catalog-smart-search-filter {
    justify-content: center;
    margin-top: 6px;
    background: #f8fafc;
    border: 1px dashed #d7dde4;
    color: #ff5f2e;
    font-weight: 800;
    text-align: center;
}
.catalog-copy-filter-link {
    font-weight: 800;
}
.catalog-active-filters.has-filters + .catalog-share-hint {
    display: block;
}
@media (max-width: 900px) {
    .catalog-smart-search-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .catalog-smart-search-shell {
        padding: 14px 16px;
    }
    .catalog-smart-search-copy {
        text-align: center;
    }
}
@media (max-width: 520px) {
    .catalog-smart-search-input {
        border-radius: 14px;
        padding: 13px 14px;
    }
    .catalog-smart-search-results {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        margin-top: 8px;
        max-height: 62vh;
    }
    .catalog-smart-search-item img {
        width: 62px;
        height: 48px;
    }
}

@media (min-width: 769px) {
    .catalog-quick-bar {
        grid-template-columns: minmax(170px, 1fr) minmax(120px, .75fr) minmax(120px, .75fr) minmax(190px, .95fr) minmax(390px, 1.45fr) !important;
    }
    .catalog-quick-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(112px, 1fr)) !important;
        gap: 10px !important;
    }
    .catalog-quick-actions .catalog-copy-filter-link {
        width: 100% !important;
        max-width: none !important;
    }
}
@media (min-width: 769px) and (max-width: 1180px) {
    .catalog-quick-bar {
        grid-template-columns: minmax(170px, 1fr) minmax(118px, .75fr) minmax(118px, .75fr) minmax(190px, .95fr) minmax(360px, 1.35fr) !important;
    }
}


/* ==========================================================
   JB Casa de Madeira — v43
   Ajustes pós-v42: botão copiar responsivo e alinhado.
   ========================================================== */
.catalog-quick-actions .catalog-copy-filter-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    overflow: hidden !important;
}
.catalog-quick-actions .catalog-copy-filter-link .copy-link-icon { flex: 0 0 auto; font-size: 1rem; }
.catalog-quick-actions .catalog-copy-filter-link .copy-link-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 769px) {
    .catalog-quick-actions { align-items: stretch !important; }
    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast,
    .catalog-quick-actions .catalog-copy-filter-link { min-height: 48px !important; height: 48px !important; }
}
@media (max-width: 520px) {
    .catalog-quick-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(96px, .9fr) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast,
    .catalog-quick-actions .catalog-copy-filter-link {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 48px !important;
        height: 48px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: .88rem !important;
    }
    .catalog-quick-actions .catalog-copy-filter-link { gap: 5px !important; }
}
@media (max-width: 380px) {
    .catalog-quick-actions .catalog-copy-filter-link .copy-link-text { display: none; }
    .catalog-quick-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px !important; }
}

/* ==========================================================
   JB Casa de Madeira — v44
   Busca inteligente presa ao campo no celular + botão copiar só ícone.
   ========================================================== */
.catalog-quick-actions .catalog-copy-filter-link {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    flex: 0 0 52px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
}
.catalog-quick-actions .catalog-copy-filter-link .copy-link-text {
    display: none !important;
}
.catalog-quick-actions .catalog-copy-filter-link .copy-link-icon {
    font-size: 1.12rem !important;
    line-height: 1 !important;
}
@media (min-width: 769px) {
    .catalog-quick-actions {
        grid-template-columns: minmax(118px, 1fr) minmax(106px, .9fr) 52px !important;
        align-items: stretch !important;
    }
    .catalog-quick-actions .catalog-copy-filter-link {
        justify-self: end !important;
    }
}
@media (max-width: 520px) {
    .catalog-quick-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px !important;
    }
    .catalog-quick-actions .catalog-copy-filter-link {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        flex-basis: 54px !important;
    }
}
@media (max-width: 640px) {
    body.catalog-smart-search-mobile-active .catalog-smart-search-box {
        position: fixed !important;
        top: max(8px, env(safe-area-inset-top)) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 5000 !important;
    }
    body.catalog-smart-search-mobile-active .catalog-smart-search-input {
        width: 100% !important;
        box-shadow: 0 16px 36px rgba(15, 23, 42, .20) !important;
    }
    body.catalog-smart-search-mobile-active .catalog-smart-search-results {
        position: fixed !important;
        top: calc(max(8px, env(safe-area-inset-top)) + 64px) !important;
        left: 12px !important;
        right: 12px !important;
        margin-top: 0 !important;
        max-height: min(58vh, calc(100dvh - 92px)) !important;
        overflow-y: auto !important;
        z-index: 4999 !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, .24) !important;
    }
    body.catalog-smart-search-mobile-active .catalog-smart-search-results[hidden] {
        display: none !important;
    }
}

/* ==========================================================
   JB Casa de Madeira — v45
   Correção definitiva do botão copiar link no desktop.
   Objetivo: o botão 🔗 fica dentro da área, sem empurrar/estourar
   a barra de filtros rápidos. Mobile preservado.
   ========================================================== */
@media (min-width: 769px) {
    .catalog-top-bar {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .catalog-quick-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        grid-template-columns:
            minmax(150px, 1fr)
            minmax(92px, .62fr)
            minmax(92px, .62fr)
            minmax(160px, .9fr)
            minmax(300px, 1.08fr) !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    .catalog-quick-actions {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(118px, 1fr) minmax(96px, .78fr) 48px !important;
        gap: 8px !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .catalog-quick-actions .catalog-copy-filter-link,
    #btnCopiarLinkFiltros.catalog-copy-filter-link {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;
        justify-self: end !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    .catalog-quick-actions .catalog-copy-filter-link .copy-link-icon,
    #btnCopiarLinkFiltros .copy-link-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .catalog-top-bar {
        grid-template-columns: 1fr !important;
    }

    .catalog-quick-bar {
        grid-template-columns:
            minmax(145px, 1fr)
            minmax(92px, .62fr)
            minmax(92px, .62fr)
            minmax(155px, .9fr)
            minmax(292px, 1.05fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 960px) {
    .catalog-quick-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .catalog-quick-actions {
        grid-column: 1 / -1 !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px !important;
    }
}

/* ==========================================================
   JB Casa de Madeira — v45b
   Correção definitiva do botão 🔗 em desktop largo.
   Causa: a coluna da busca rápida podia ficar maior que a área
   disponível dentro de .catalog-top-bar. Agora todas as colunas
   podem encolher com minmax(0, ...) e o botão fica preso à grade.
   ========================================================== */
@media (min-width: 769px) {
    .catalog-top-bar {
        display: grid !important;
        grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) !important;
        align-items: end !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .catalog-heading {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    .catalog-quick-bar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(0, .66fr)
            minmax(0, .66fr)
            minmax(0, 1.08fr)
            minmax(0, 1.48fr) !important;
        gap: 10px !important;
        align-items: end !important;
        overflow: visible !important;
    }

    .catalog-quick-field,
    .catalog-quick-field--gourmet,
    .catalog-quick-field .form-control,
    .catalog-quick-check,
    .catalog-quick-actions {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .catalog-quick-field .form-control,
    .catalog-quick-check {
        width: 100% !important;
    }

    .catalog-quick-actions {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) 46px !important;
        gap: 8px !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    .catalog-quick-actions .btn,
    .catalog-quick-actions #btnToggleFiltros,
    .catalog-quick-actions .catalog-clear-fast {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .catalog-quick-actions .catalog-copy-filter-link,
    #btnCopiarLinkFiltros.catalog-copy-filter-link {
        width: 46px !important;
        min-width: 0 !important;
        max-width: 46px !important;
        height: 48px !important;
        min-height: 48px !important;
        flex: 0 0 46px !important;
        justify-self: end !important;
        align-self: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    .catalog-quick-actions .catalog-copy-filter-link .copy-link-icon,
    #btnCopiarLinkFiltros.catalog-copy-filter-link .copy-link-icon {
        width: 100% !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .catalog-top-bar {
        grid-template-columns: 1fr !important;
    }

    .catalog-quick-bar {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(0, .66fr)
            minmax(0, .66fr)
            minmax(0, 1.08fr)
            minmax(0, 1.48fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    .catalog-quick-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .catalog-quick-actions {
        grid-column: 1 / -1 !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px !important;
    }
}


/* ==========================================================
   v55 — Galeria estilo Gemini: topo limpo, zoom no mouse e PC drag
   ========================================================== */
#galleryContainer.image-gallery-container.modern-gallery{position:fixed!important;inset:0!important;z-index:5000!important;width:100vw!important;height:100dvh!important;display:block!important;overflow:hidden!important;background:rgba(5,6,8,.88)!important;border-radius:0!important}
#galleryContainer.image-gallery-container.modern-gallery:before,#galleryContainer.image-gallery-container.modern-gallery:after{content:"";position:fixed;left:0;right:0;z-index:5001;pointer-events:none}#galleryContainer.image-gallery-container.modern-gallery:before{top:0;height:118px;background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.34) 46%,rgba(0,0,0,0))}#galleryContainer.image-gallery-container.modern-gallery:after{bottom:0;height:112px;background:linear-gradient(0deg,rgba(0,0,0,.70),rgba(0,0,0,.28) 50%,rgba(0,0,0,0))}
#galleryContainer .gallery-top-info{position:fixed;top:calc(14px + env(safe-area-inset-top));left:calc(18px + env(safe-area-inset-left));z-index:5012;max-width:min(58vw,820px);color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.65);pointer-events:none}#galleryContainer .gallery-top-info strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1rem,1.45vw,1.45rem);line-height:1.05;font-weight:800;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#galleryContainer .gallery-top-info span{display:block;margin-top:5px;color:#ff7a00;font-size:clamp(.76rem,1vw,.92rem);font-weight:950;letter-spacing:.16em;text-transform:uppercase}
#galleryContainer .gallery-top-tools{position:fixed;top:calc(10px + env(safe-area-inset-top));right:calc(14px + env(safe-area-inset-right));z-index:5013;display:flex;align-items:center;justify-content:flex-end;gap:8px}#galleryContainer .gallery-top-btn{position:static!important;top:auto!important;right:auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.20)!important;background:rgba(24,25,28,.66)!important;color:#fff!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 34px rgba(0,0,0,.28);font-size:1.22rem!important;line-height:1!important}#galleryContainer .gallery-reset-btn{width:auto!important;min-width:52px!important;padding:0 12px!important;font-size:.84rem!important;font-weight:950}#galleryContainer .gallery-close-btn{font-size:1.9rem!important}#galleryContainer .gallery-top-btn:hover{transform:translateY(-1px) scale(1.03)!important;background:rgba(255,107,53,.92)!important;border-color:rgba(255,107,53,.96)!important}
#galleryContainer .image-gallery-stage{width:100vw!important;height:100dvh!important;padding:86px 86px 92px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;touch-action:none!important;-ms-touch-action:none!important;user-select:none!important}#galleryContainer #galleryMainImage{max-width:100%!important;max-height:100%!important;object-fit:contain!important;cursor:zoom-in;will-change:transform}#galleryContainer #galleryMainImage.is-zoomed{cursor:grab}#galleryContainer #galleryMainImage.is-dragging,#galleryContainer #galleryMainImage.is-gesturing{cursor:grabbing!important}#galleryContainer .gallery-nav-btn{z-index:5011!important;background:rgba(24,25,28,.46)!important;border:1px solid rgba(255,255,255,.16)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}#galleryContainer .gallery-dots-bar{z-index:5012!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;background:rgba(20,21,24,.48)!important;border:1px solid rgba(255,255,255,.12)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media(max-width:768px){#galleryContainer .gallery-top-info{left:12px;top:calc(10px + env(safe-area-inset-top));max-width:calc(100vw - 190px)}#galleryContainer .gallery-top-info strong{font-size:.98rem}#galleryContainer .gallery-top-info span{font-size:.68rem;letter-spacing:.12em}#galleryContainer .gallery-top-tools{right:10px;top:calc(8px + env(safe-area-inset-top));gap:6px}#galleryContainer .gallery-top-btn{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;font-size:1rem!important}#galleryContainer .gallery-reset-btn{min-width:44px!important;padding:0 8px!important;font-size:.72rem!important}#galleryContainer .image-gallery-stage{padding:64px 12px 82px!important}#galleryContainer .gallery-nav-btn{width:42px!important;height:52px!important;font-size:2.05rem!important}#galleryContainer .gallery-nav-btn.prev{left:8px!important}#galleryContainer .gallery-nav-btn.next{right:8px!important}#galleryContainer .gallery-dots-bar{bottom:calc(10px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px);overflow-x:auto}}


/* v56 — ajuste mobile da galeria Gemini: no celular o zoom +/- fica nos dedos; controles visuais deixam mais espaço para o nome do projeto. */
@media(max-width:768px){
  #galleryContainer .gallery-zoom-out-btn,
  #galleryContainer .gallery-zoom-in-btn{display:none!important;}
  #galleryContainer .gallery-top-info{max-width:calc(100vw - 156px)!important;}
}


/* ==========================================================
   v74 — Fechamento seguro da galeria do tema base/default
   Corrige sobreposição da regra display:block!important da galeria v55.
   ========================================================== */
#galleryContainer[hidden].image-gallery-container.modern-gallery,
#galleryContainer.image-gallery-container.modern-gallery[hidden]{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}


/* 20260501-whatsapp-icone-unico-v77 — ícone local do WhatsApp e remoção de emojis genéricos nos CTAs. */
.wa-icon{
    display:inline-block!important;
    width:1.15em!important;
    height:1.15em!important;
    min-width:1.15em!important;
    vertical-align:-.18em!important;
    background:url('../assets/icons/whatsapp.svg') center/contain no-repeat!important;
    color:transparent!important;
    line-height:1!important;
    flex:0 0 auto!important;
}
a.btn-whatsapp::before,
a.zoom-whatsapp::before,
.btn-kit-whatsapp::before{
    content:none!important;
    display:none!important;
}
.btn-whatsapp,.zoom-whatsapp,.btn-kit-whatsapp{gap:8px!important;}
:root{--jb-wa-icon-svg:url('../assets/icons/whatsapp.svg')!important;}

/* 20260501-whatsapp-icone-unico-v77 — default/base: remove ícones duplicados dos CTAs WhatsApp.
   No tema base, o botão do modal ampliado mantém pseudo interno próprio; os demais usam somente .wa-icon. */
html body a.btn-whatsapp::before,
html body .btn-fale-vendedor::before,
html body .btn-kit-whatsapp::before {
    content:none!important;
    display:none!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    flex-basis:0!important;
    background:none!important;
    margin:0!important;
    padding:0!important;
}
html body a.btn-whatsapp .wa-icon,
html body .btn-fale-vendedor .wa-icon,
html body .btn-kit-whatsapp .wa-icon {
    display:inline-block!important;
    width:1.15em!important;
    height:1.15em!important;
    min-width:1.15em!important;
    flex:0 0 1.15em!important;
    background:url('../assets/icons/whatsapp.svg') center/contain no-repeat!important;
}

/* 20260501-whatsapp-icone-unico-final-v77 — tema base/default: regra final anti-duplicidade nos CTAs comuns. */
html body a.btn-whatsapp::before,
html body .btn-fale-vendedor::before,
html body .btn-kit-whatsapp::before {
    content:none!important;
    display:none!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    flex:0 0 0!important;
    background:none!important;
    margin:0!important;
    padding:0!important;
}
html body a.btn-whatsapp .wa-icon,
html body .btn-fale-vendedor .wa-icon,
html body .btn-kit-whatsapp .wa-icon {
    display:inline-block!important;
    width:1.15em!important;
    height:1.15em!important;
    min-width:1.15em!important;
    flex:0 0 1.15em!important;
    background:url('../assets/icons/whatsapp.svg') center/contain no-repeat!important;
}



/* v78 — alternância cliente entre tema claro e escuro */
.catalog-theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:.46rem;min-height:44px;padding:.75rem 1rem;border-radius:999px;border:1px solid rgba(255,109,0,.26);background:rgba(255,255,255,.88);color:#2b1d14;font-weight:900;font-size:.92rem;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;box-shadow:0 12px 30px rgba(15,23,42,.08)}.catalog-theme-switch:hover,.catalog-theme-switch:focus-visible{transform:translateY(-1px);background:#fff;border-color:rgba(255,109,0,.42);box-shadow:0 16px 36px rgba(15,23,42,.12);outline:none}.catalog-theme-switch-icon{font-size:1rem;line-height:1}.catalog-theme-switch-label{display:inline-block}.premium-mobile-menu .catalog-theme-switch,.reserva-mobile-menu .catalog-theme-switch,.essencia-mobile-menu .catalog-theme-switch,.raiz-mobile-menu .catalog-theme-switch,.cerne-mobile-menu .catalog-theme-switch{width:100%;min-height:54px}.premium-nav-links .catalog-theme-switch,.reserva-nav-links .catalog-theme-switch,.essencia-nav-links .catalog-theme-switch,.raiz-nav-links .catalog-theme-switch,.cerne-nav-links .catalog-theme-switch{min-height:44px;padding:.7rem 1rem}.header-actions .catalog-theme-switch{min-height:42px}.catalog-theme-switch[aria-busy="true"]{opacity:.72;pointer-events:none}@media(max-width:720px){.catalog-theme-switch{width:100%;min-height:50px}.header-actions .catalog-theme-switch{width:auto;min-width:124px}.catalog-theme-switch-label{font-size:.9rem}}


/* v85 — Tema base/default: setas da galeria no rodapé mobile */
@media (max-width:768px){
  #galleryContainer .image-gallery-stage{padding-bottom:96px!important;}
  #galleryContainer .gallery-nav-btn{
    position:fixed!important;
    top:auto!important;
    bottom:calc(17px + env(safe-area-inset-bottom))!important;
    transform:none!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    border-radius:999px!important;
    font-size:1.75rem!important;
    z-index:5014!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  #galleryContainer .gallery-nav-btn:hover{transform:none!important;}
  #galleryContainer .gallery-nav-btn.prev{left:max(12px, env(safe-area-inset-left))!important;right:auto!important;}
  #galleryContainer .gallery-nav-btn.next{right:max(12px, env(safe-area-inset-right))!important;left:auto!important;}
  #galleryContainer .gallery-dots-bar{
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    max-width:calc(100vw - 132px)!important;
    min-height:60px!important;
    padding:8px 12px!important;
    overflow-x:auto!important;
    scrollbar-width:none!important;
    z-index:5013!important;
  }
  #galleryContainer .gallery-dots-bar::-webkit-scrollbar{display:none!important;}
}


/* v96 — Rodapé mobile com atalhos por tipo de projeto + prioridade da galeria */
.jb-mobile-type-nav{display:none;}
@media (max-width:768px){
  .premium-main,.reserva-main,.essencia-main,.raiz-main,.cerne-main,.content{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;}
  .jb-mobile-type-nav{
    --jb-mobile-nav-bg:rgba(255,255,255,.94);
    --jb-mobile-nav-border:rgba(61,43,31,.12);
    --jb-mobile-nav-text:rgba(61,43,31,.54);
    --jb-mobile-nav-active:#d19a2e;
    position:fixed;left:0;right:0;bottom:0;z-index:74;
    display:flex;align-items:center;justify-content:space-around;gap:0;
    min-height:64px;padding:7px max(10px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));
    background:var(--jb-mobile-nav-bg);border-top:1px solid var(--jb-mobile-nav-border);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    box-shadow:0 -16px 40px rgba(15,23,42,.10);
  }
  .jb-mobile-type-nav button{appearance:none;border:0;background:transparent;color:var(--jb-mobile-nav-text);min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:50px;padding:3px 2px;border-radius:16px;font:inherit;font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:8px;line-height:1;cursor:pointer;position:relative;transition:color .18s ease,transform .18s ease,background .18s ease;}
  .jb-mobile-type-nav button svg{width:23px;height:23px;stroke-width:1.25;stroke-linecap:square;stroke-linejoin:miter;flex:0 0 auto;}
  .jb-mobile-type-nav button.is-active,.jb-mobile-type-nav button[aria-current="true"]{color:var(--jb-mobile-nav-active);transform:translateY(-1px);}
  .jb-mobile-type-nav button.is-active::after,.jb-mobile-type-nav button[aria-current="true"]::after{content:"";width:4px;height:4px;border-radius:999px;background:currentColor;position:absolute;bottom:0;left:50%;transform:translateX(-50%);}
  .jb-mobile-type-nav button:active{transform:translateY(0) scale(.97);background:rgba(209,154,46,.08);}
  body.axon-theme .jb-mobile-type-nav,body.obsidian-theme .jb-mobile-type-nav,body.premium-theme.obsidian-theme .jb-mobile-type-nav{--jb-mobile-nav-bg:rgba(5,5,7,.93);--jb-mobile-nav-border:rgba(255,255,255,.10);--jb-mobile-nav-text:rgba(255,255,255,.48);--jb-mobile-nav-active:#d4af37;box-shadow:0 -18px 45px rgba(0,0,0,.42);}
  body.raiz-theme .jb-mobile-type-nav,body.cerne-theme .jb-mobile-type-nav{--jb-mobile-nav-bg:rgba(255,249,239,.94);--jb-mobile-nav-border:rgba(92,63,37,.16);--jb-mobile-nav-text:rgba(92,63,37,.56);--jb-mobile-nav-active:#c99632;}
  body.soft-theme .jb-mobile-type-nav,body.lumina-theme .jb-mobile-type-nav{--jb-mobile-nav-bg:rgba(255,255,255,.95);--jb-mobile-nav-border:rgba(17,24,39,.10);--jb-mobile-nav-text:rgba(55,65,81,.52);--jb-mobile-nav-active:#ff6d00;}
  body[class*="-gallery-open"] .jb-mobile-type-nav,body.gallery-open .jb-mobile-type-nav,body.jb-mobile-gallery-open .jb-mobile-type-nav,body[class*="-menu-open"] .jb-mobile-type-nav{display:none!important;}
  .overlay.active ~ .jb-mobile-type-nav{display:none!important;}
}
@media (min-width:769px){.jb-mobile-type-nav{display:none!important;}}

/* v100 — Destaque público de promoção por projeto */
.jb-promo-box{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0 0 10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(209,154,46,.28);
  background:linear-gradient(135deg,rgba(255,248,224,.95),rgba(255,255,255,.84));
  color:#4f351b;
  box-shadow:0 10px 24px rgba(145,96,25,.08);
}
.jb-promo-box strong{font-size:.88rem;line-height:1.2;font-weight:900;}
.jb-promo-box span{font-size:.75rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#8a5b13;}
.jb-promo-box small{font-size:.8rem;line-height:1.35;color:#6d4b25;}
body.axon-theme .jb-promo-box,
body.obsidian-theme .jb-promo-box,
body.premium-theme.obsidian-theme .jb-promo-box{
  border-color:rgba(212,175,55,.34);
  background:linear-gradient(135deg,rgba(47,35,9,.92),rgba(15,15,18,.9));
  color:#fff3c4;
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
body.axon-theme .jb-promo-box span,
body.obsidian-theme .jb-promo-box span,
body.premium-theme.obsidian-theme .jb-promo-box span{color:#d4af37;}
body.axon-theme .jb-promo-box small,
body.obsidian-theme .jb-promo-box small,
body.premium-theme.obsidian-theme .jb-promo-box small{color:rgba(255,246,210,.82);}


/* v104 — Faixa visual diagonal para projetos em promoção */
.jb-promo-ribbon{
  position:absolute;
  top:18px;
  left:-46px;
  z-index:18;
  width:190px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:rotate(-35deg);
  transform-origin:center;
  background:linear-gradient(135deg,#ff4d2e,#c91f12);
  color:#fff;
  font-weight:1000;
  font-size:.78rem;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  box-shadow:0 10px 24px rgba(201,31,18,.34);
  border-top:1px solid rgba(255,255,255,.42);
  border-bottom:1px solid rgba(97,11,6,.34);
  pointer-events:none;
}
.projeto-card,.premium-card,.reserva-card,.essencia-card,.raiz-card,.cerne-card,.premium-project-detail,.reserva-project-detail,.essencia-project-detail,.raiz-project-detail,.cerne-project-detail{
  position:relative;
  overflow:hidden;
}
.projeto-card.fullsize .jb-promo-ribbon{top:24px;left:-42px;}
.premium-project-detail .jb-promo-ribbon,.reserva-project-detail .jb-promo-ribbon,.essencia-project-detail .jb-promo-ribbon,.raiz-project-detail .jb-promo-ribbon,.cerne-project-detail .jb-promo-ribbon{top:28px;left:-38px;width:210px;height:38px;font-size:.82rem;}
body.axon-theme .jb-promo-ribbon,body.obsidian-theme .jb-promo-ribbon,body.premium-theme.obsidian-theme .jb-promo-ribbon{
  background:linear-gradient(135deg,#ff5b3c,#b71313);
  box-shadow:0 12px 34px rgba(255,61,42,.28);
}
@media (max-width:768px){
  .jb-promo-ribbon{top:16px;left:-52px;width:190px;height:32px;font-size:.72rem;}
  .premium-project-detail .jb-promo-ribbon,.reserva-project-detail .jb-promo-ribbon,.essencia-project-detail .jb-promo-ribbon,.raiz-project-detail .jb-promo-ribbon,.cerne-project-detail .jb-promo-ribbon{top:18px;left:-52px;width:190px;height:32px;font-size:.72rem;}
}


/* v105 — Promoção por projeto: faixa diagonal e bloco público em todos os temas */
.jb-promo-box{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(209,154,46,.35);
  background:linear-gradient(135deg,rgba(255,248,224,.98),rgba(255,255,255,.88));
  color:#4f351b;
  box-shadow:0 12px 26px rgba(145,96,25,.10);
}
.jb-promo-box strong{font-size:.92rem;line-height:1.2;font-weight:900;color:inherit;}
.jb-promo-box span{font-size:.74rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#8a5b13;}
.jb-promo-box em{font-style:normal;font-size:.78rem;font-weight:800;color:#7a4d10;}
.jb-promo-box small{white-space:pre-line;font-size:.82rem;line-height:1.35;color:#6d4b25;}
body.axon-theme .jb-promo-box,
body.obsidian-theme .jb-promo-box,
body.premium-theme.obsidian-theme .jb-promo-box,
body.dark-theme .jb-promo-box{
  border-color:rgba(212,175,55,.38);
  background:linear-gradient(135deg,rgba(61,42,10,.96),rgba(13,13,17,.94));
  color:#fff3c4;
  box-shadow:0 14px 30px rgba(0,0,0,.24);
}
body.axon-theme .jb-promo-box span,
body.obsidian-theme .jb-promo-box span,
body.premium-theme.obsidian-theme .jb-promo-box span,
body.dark-theme .jb-promo-box span{color:#d4af37;}
body.axon-theme .jb-promo-box em,
body.obsidian-theme .jb-promo-box em,
body.premium-theme.obsidian-theme .jb-promo-box em,
body.dark-theme .jb-promo-box em{color:#ffd16a;}
body.axon-theme .jb-promo-box small,
body.obsidian-theme .jb-promo-box small,
body.premium-theme.obsidian-theme .jb-promo-box small,
body.dark-theme .jb-promo-box small{color:rgba(255,246,210,.86);}

.jb-promo-ribbon{
  position:absolute!important;
  top:24px!important;
  left:-54px!important;
  z-index:35!important;
  width:210px!important;
  height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  transform:rotate(-35deg)!important;
  transform-origin:center!important;
  background:linear-gradient(135deg,#ff5b32,#cf160d)!important;
  color:#fff!important;
  font-weight:1000!important;
  font-size:.78rem!important;
  line-height:1!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  text-shadow:0 1px 1px rgba(0,0,0,.28)!important;
  box-shadow:0 12px 30px rgba(207,22,13,.36)!important;
  border-top:1px solid rgba(255,255,255,.46)!important;
  border-bottom:1px solid rgba(92,5,3,.35)!important;
  pointer-events:none!important;
  white-space:nowrap!important;
}
.projeto-card,.premium-card,.reserva-card,.essencia-card,.raiz-card,.cerne-card,
.premium-project-detail,.reserva-project-detail,.essencia-project-detail,.raiz-project-detail,.cerne-project-detail,
.axon-project-detail,.obsidian-project-detail,.soft-project-detail,.lumina-project-detail{
  position:relative!important;
  overflow:hidden!important;
}
.projeto-card.fullsize .jb-promo-ribbon,
.premium-project-detail .jb-promo-ribbon,.reserva-project-detail .jb-promo-ribbon,.essencia-project-detail .jb-promo-ribbon,.raiz-project-detail .jb-promo-ribbon,.cerne-project-detail .jb-promo-ribbon,
.axon-project-detail .jb-promo-ribbon,.obsidian-project-detail .jb-promo-ribbon,.soft-project-detail .jb-promo-ribbon,.lumina-project-detail .jb-promo-ribbon{
  top:30px!important;
  left:-48px!important;
  width:220px!important;
  height:38px!important;
  font-size:.82rem!important;
}
body.axon-theme .jb-promo-ribbon,body.obsidian-theme .jb-promo-ribbon,body.premium-theme.obsidian-theme .jb-promo-ribbon{
  background:linear-gradient(135deg,#ff6543,#b71313)!important;
  box-shadow:0 14px 36px rgba(255,61,42,.30)!important;
}
@media (max-width:768px){
  .jb-promo-ribbon{top:18px!important;left:-58px!important;width:200px!important;height:34px!important;font-size:.72rem!important;}
  .projeto-card.fullsize .jb-promo-ribbon,
  .premium-project-detail .jb-promo-ribbon,.reserva-project-detail .jb-promo-ribbon,.essencia-project-detail .jb-promo-ribbon,.raiz-project-detail .jb-promo-ribbon,.cerne-project-detail .jb-promo-ribbon,
  .axon-project-detail .jb-promo-ribbon,.obsidian-project-detail .jb-promo-ribbon,.soft-project-detail .jb-promo-ribbon,.lumina-project-detail .jb-promo-ribbon{top:20px!important;left:-58px!important;width:200px!important;height:34px!important;font-size:.72rem!important;}
}


/* ==========================================================
   v106 — Card ampliado com rolagem interna preservada
   ========================================================== */
.overlay.active {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.overlay.active .projeto-card.fullsize,
.overlay.active .projeto-card-destaque-direto.fullsize {
  max-height: calc(100dvh - 150px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex: 0 0 auto;
}
@media (max-width: 768px) {
  .overlay.active .projeto-card.fullsize,
  .overlay.active .projeto-card-destaque-direto.fullsize {
    max-height: calc(100dvh - 150px) !important;
  }
}


/* v108 - filtro Promoções responsivo: desktop nas ações, mobile junto dos filtros */
.jb-promo-filter-desktop{display:none!important;}
.jb-promo-filter-mobile{display:flex!important;}
@media (min-width:769px){
  .jb-promo-filter-mobile{display:none!important;}
  .jb-promo-filter-desktop{display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-height:48px;white-space:nowrap;flex:0 0 auto;}
  .jb-promo-filter-desktop input{width:20px!important;min-height:20px!important;}
}
@media (max-width:768px){
  .jb-promo-filter-desktop{display:none!important;}
  .jb-promo-filter-mobile{display:flex!important;}
}

/* v132 — permite arrastar fotos/plantas do catálogo para WhatsApp Web e navegador */
.jb-drag-image-shell,
.projeto-imagem-visualizavel,
.premium-card-image img,
.premium-detail-image img,
.raiz-card-image img,
.raiz-detail-image img,
.reserva-card-image img,
.reserva-detail-image img,
.essencia-card-image img,
.essencia-detail-image img,
.cerne-card-image img,
.cerne-detail-image img {
  -webkit-user-drag: element !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
.jb-drag-image-shell img,
.projeto-imagem-visualizavel {
  pointer-events: auto !important;
  cursor: grab;
}
.jb-drag-image-shell:active img,
.projeto-imagem-visualizavel:active {
  cursor: grabbing;
}


/* v132 — arraste completo: shell inteiro de foto/planta vira arrastável */
.jb-drag-image-shell,
[data-gallery-url],
[data-gallery-index],
.projeto-imagem-visualizavel {
  -webkit-user-drag: element !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
  touch-action: manipulation;
  cursor: grab;
}
.jb-drag-image-shell img,
[data-gallery-url] img,
[data-gallery-index] img,
.projeto-imagem-visualizavel,
.premium-card-image img,
.premium-detail-image img,
.raiz-card-image img,
.raiz-detail-image img,
.reserva-card-image img,
.reserva-detail-image img,
.essencia-card-image img,
.essencia-detail-image img,
.cerne-card-image img,
.cerne-detail-image img {
  -webkit-user-drag: element !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
  pointer-events: auto !important;
  cursor: grab;
}
.jb-drag-image-shell:active,
[data-gallery-url]:active,
[data-gallery-index]:active,
.jb-drag-image-shell:active img,
[data-gallery-url]:active img,
[data-gallery-index]:active img,
.projeto-imagem-visualizavel:active {
  cursor: grabbing;
}


/* JB raiz v1.0 — ajustes comerciais */
.header-brand-block p{font-weight:800;color:#6f5137}.catalogo-v1-subtitle{margin:4px 0 0;color:#6f5137;font-weight:700}.modal-localidade-content h2{font-family:Georgia,'Times New Roman',serif;color:#2f1e14}.modal-localidade-content p{font-size:1.02rem;color:#5f4631}.btn-localidade[data-localidade='dentro']::after{content:' • ES a partir de 48m²';font-size:.82em;opacity:.92}.btn-localidade[data-localidade='fora']::after{content:' • normalmente 150m²+';font-size:.82em;opacity:.92}.site-title{letter-spacing:-.02em}.catalogo-toolbar{align-items:flex-start}.header{border-bottom:1px solid rgba(47,30,20,.10)}
.jb-price-mode {
    margin: 0 0 8px;
    color: #6b4f2a;
    font-size: .82rem;
    font-weight: 700;
}
