/* R45 — busca visual, categorias sem repetição, dark mode legível e menu CATÁLOGO por hover */

/* O autocomplete textual antigo fica desativado; R45 usa cards visuais em portal no body. */
.r44-suggestions{display:none!important}

/* Evita qualquer recorte na região de busca, inclusive em layouts herdados. */
.hero,.hero-copy,.hero .panel,.search,.r27-browse-hero,.r27-search-row,.r27-browse-search{overflow:visible!important}

.r45-search-results{
  position:fixed!important;
  z-index:12000!important;
  background:#fff!important;
  color:#171717!important;
  border:1px solid #ddd6cc!important;
  border-radius:18px!important;
  box-shadow:0 22px 60px rgba(0,0,0,.2)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
.r45-search-results[hidden]{display:none!important}
.r45-results-head{display:flex;justify-content:space-between;align-items:end;gap:14px;padding:14px 15px 8px;border-bottom:1px solid #eee9e2;background:#fff}
.r45-results-head strong{font-size:13px;color:#1d1a17}.r45-results-head span{font-size:11px;color:#786f67;text-align:right}
.r45-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;background:#faf9f7}
.r45-result-card{min-width:0;border:1px solid #e6e0d8;border-radius:14px;background:#fff;color:#171717;padding:9px;display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;align-items:center;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.r45-result-card:hover,.r45-result-card:focus-visible{transform:translateY(-2px);border-color:#c99a1c;box-shadow:0 10px 24px rgba(0,0,0,.09);outline:none}
.r45-result-image{width:82px;height:82px;border-radius:11px;background:#f4f3f1;display:grid;place-items:center;overflow:hidden;color:#98783a;font-weight:900}
.r45-result-image img{width:100%;height:100%;object-fit:contain;background:#fff;padding:5px}
.r45-result-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.r45-result-name{font-size:13px;line-height:1.25;color:#171717;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.r45-result-meta{font-size:10px;line-height:1.25;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r45-result-price{font-size:13px;font-weight:900;color:#b77e00}.r45-no-results{padding:24px 16px;text-align:center;color:#6e665e;background:#fff}.r45-see-all{width:100%;border:0;border-top:1px solid #eee9e2;background:#fff9eb;color:#9b6c00;padding:13px 15px;font-weight:900;text-align:center;cursor:pointer}.r45-see-all:hover{background:#fff3cf}

/* A frase grande da seção já existe no topo. Aqui fica somente a identificação da seção. */
.gg-type-head{justify-content:flex-start!important;align-items:center!important;gap:16px!important;margin-bottom:18px!important}
.gg-type-head>div{display:flex!important;align-items:center!important;min-width:0!important}
.gg-type-head .eyebrow{margin:0!important;font-size:14px!important;letter-spacing:.15em!important;color:#b77e00!important;font-weight:900!important;white-space:normal!important}
.gg-type-head h2,.gg-type-head .r45-hide-duplicate-heading{display:none!important}
.gg-type-all{margin:0!important;padding:10px 18px!important}

/* No tema escuro, os cards de categoria continuam claros: texto precisa ser escuro. */
body.dark .gg-type-card,
body.dark .gg-type-card:nth-child(3n+2),
body.dark .gg-type-card:nth-child(3n){background:#fff!important;border-color:#ded8d0!important;color:#111!important}
body.dark .gg-type-card h3,
body.dark .gg-type-card .gg-type-link,
body.dark .gg-type-card .gg-type-num{color:#111!important}
body.dark .gg-type-card p,
body.dark .gg-type-card .gg-type-count{color:#6c655e!important}
body.dark .gg-type-card .gg-type-kicker{color:#8b6a20!important}
body.dark .gg-type-arrow{background:#fff!important;color:#111!important;border-color:#d8d2cb!important}

/* Busca visual deliberadamente clara mesmo no modo noturno para máxima leitura das fotos. */
body.dark .r45-search-results,
body.dark .r45-results-head,
body.dark .r45-result-card,
body.dark .r45-see-all,
body.dark .r45-no-results{background:#fff!important;color:#171717!important;border-color:#ddd6cc!important}
body.dark .r45-search-grid{background:#f5f3ef!important}
body.dark .r45-result-name,body.dark .r45-results-head strong{color:#171717!important}
body.dark .r45-result-meta,body.dark .r45-results-head span{color:#6d665f!important}
body.dark .r45-result-price,body.dark .r45-see-all{color:#9b6c00!important}

/* Área do menu CATÁLOGO deve ficar acima da página ao abrir por hover. */
#catalogNav{position:relative;z-index:2601}
#ggCatalogMenu.open{z-index:2600!important}

@media(max-width:620px){
  .gg-type-section{padding-top:24px!important}
  .gg-type-head{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:10px 12px!important;margin-bottom:15px!important}
  .gg-type-head>div{width:auto!important;flex:0 1 auto!important}
  .gg-type-head .eyebrow{font-size:12px!important;line-height:1.3!important}
  .gg-type-all{font-size:12px!important;padding:9px 14px!important}
  .r45-results-head{align-items:flex-start;flex-direction:column;gap:2px;padding:11px 12px 7px}
  .r45-results-head span{text-align:left}
  .r45-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  .r45-result-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px}
  .r45-result-image{width:100%;height:auto;aspect-ratio:1/1}
  .r45-result-name{font-size:12px;-webkit-line-clamp:3}
  .r45-result-meta{font-size:9px}.r45-result-price{font-size:12px}
  .r45-see-all{font-size:12px;padding:12px}
}
