/* ═══════════════════════════════════════════════════════════════
   leilo-custom.css — CUSTOMIZACOES DO AGENTE (Patio RP) — cor marrom #5D3A1F
   Este arquivo é EXCLUSIVO do nosso trabalho. NÃO é editado pelo
   painel/gestor. Carregado após css.css (tem prioridade).
   Mantido por: agente · cada mudança tem marcadores INÍCIO/FIM.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BUSCA DA PÁGINA DE LOTES — lupa deslizante (igual à home)
   Sessão 2026-07-31 · aditivo · reversível
   Espelha o efeito de .busca-input-group (contexto inicio) nas
   classes .sb-* (contexto lotes). Só ESTILO. HTML intacto —
   o .sb-input-icon já é <button type="submit"> (clicar busca).
   INÍCIO-BUSCA-LOTES-DESLIZE-20260731
   ═══════════════════════════════════════════════════════════════ */
html body .sb-input-group{
  position: relative !important;
}
/* lupa vira botão flutuante posicionado (estado normal: à esquerda) */
html body .sb-input-group .sb-input-icon{
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2 !important;
  color: #000 !important;               /* igual à lupa do header/home */
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: left .35s cubic-bezier(.22,.61,.36,1) !important;
}
html body .sb-input-group .sb-input-icon i{ font-weight: 900 !important; }

/* input com espaço à esquerda pra lupa (estado normal) */
html body .sb-input-group .sb-input{
  padding-left: 28px !important;
  transition: padding .3s ease !important;
}

/* ao FOCAR/clicar pra digitar: a lupa desliza pro canto direito (vira botão de aplicar) */
html body .sb-input-group:focus-within .sb-input-icon{
  left: calc(100% - 24px) !important;
}
html body .sb-input-group:focus-within .sb-input{
  padding-left: 4px !important;
  padding-right: 32px !important;
}
/* FIM-BUSCA-LOTES-DESLIZE-20260731 */

/* ═══════════════════════════════════════════════════════════════
   PAGINAÇÃO — cara nova alinhada ao layout (azul-marinho + clean)
   Sessão 2026-07-31 (reaplicado) · aditivo · reversível
   Escopo: .pagg-leilo
   INÍCIO-PAGINACAO-LEILO-20260731
   ═══════════════════════════════════════════════════════════════ */
html body .pagg-leilo{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 28px 0 8px !important;
  text-align: center;
}
html body .pagg-leilo a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #5D3A1F !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
html body .pagg-leilo a[href]:hover{
  border-color: #5D3A1F !important;
  background: #f4f7fb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(30,58,95,.10) !important;
}
html body .pagg-leilo a.ativo,
html body .pagg-leilo a:not([href]){
  background: #5D3A1F !important;
  border-color: #5D3A1F !important;
  color: #ffffff !important;
  cursor: default !important;
  box-shadow: 0 6px 16px rgba(30,58,95,.20) !important;
}
html body .pagg-leilo a:first-child,
html body .pagg-leilo a:last-child{
  padding: 0 18px !important;
  font-weight: 800 !important;
  color: #5D3A1F !important;
  background: #ffffff !important;
}
html body .pagg-leilo a:first-child:not([href]),
html body .pagg-leilo a:last-child:not([href]){
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: default !important;
}
@media (max-width: 480px){
  html body .pagg-leilo{ gap: 6px !important; }
  html body .pagg-leilo a{ min-width: 38px !important; height: 38px !important; padding: 0 10px !important; font-size: 13px !important; }
  html body .pagg-leilo a:first-child,
  html body .pagg-leilo a:last-child{ padding: 0 14px !important; }
}
/* FIM-PAGINACAO-LEILO-20260731 */

/* ═══════════════════════════════════════════════════════════════
   DESTAQUE DO LANCE NO MOBILE — cards de lote
   Sessão 2026-07-31 · aditivo · reversível
   O usuário precisa entender que "aquele lote está NAQUELE valor agora".
   No mobile o preço vinha em 0.95rem (base) — sem destaque. Aqui damos
   tamanho + peso + cor de marca, e clareza no rótulo (Lance atual/inicial).
   INÍCIO-LANCE-MOBILE-DESTAQUE-20260731
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px){
  /* rótulo pequeno, maiúsculo, discreto — contextualiza o valor */
  html body .ev-lote-preco-label{
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #64748b !important;
    margin: 4px 0 0 !important;
    line-height: 1.1 !important;
  }
  /* VALOR do lance: grande, forte, azul-marinho de marca */
  html body .ev-lote-preco{
    font-size: 1.32rem !important;
    font-weight: 900 !important;
    color: #5D3A1F !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    margin: 1px 0 0 !important;
  }
  /* quando arrematado, o label fica vermelho (já existe .arrematado) */
  html body .ev-lote-preco-label.arrematado{ color: #c0392b !important; }
}
/* telas bem pequenas: mantém legível sem estourar o card */
@media (max-width: 380px){
  html body .ev-lote-preco{ font-size: 1.2rem !important; }
}
/* FIM-LANCE-MOBILE-DESTAQUE-20260731 */

/* ═══════════════════════════════════════════════════════════════
   EVENTO ENCERRADO (home) — sem box vermelho + botão desabilitado
   Sessão 2026-07-31 · aditivo · reversível
   INÍCIO-EVENTO-ENCERRADO-20260731
   ═══════════════════════════════════════════════════════════════ */
/* texto de encerramento discreto (substitui o box vermelho .evento-encerrado) */
html body .evento-encerrado-txt{
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 2px 0 0 !important;
  margin: 0 !important;
  letter-spacing: .01em !important;
}

/* botão "Ver lote(s)" desabilitado quando o leilão encerrou */
html body .evento-ver-lotes-btn.is-disabled{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
/* FIM-EVENTO-ENCERRADO-20260731 */

/* INÍCIO-BANNER-TOPO-OFFSET-20260801 — banner do topo não pode ficar sob o header fixo */
html body .banner{ margin-top: 100px !important; }
@media (max-width: 1000px){ html body .banner{ margin-top: 82px !important; } }
/* FIM-BANNER-TOPO-OFFSET-20260801 */

/* INÍCIO-CATEGORIAS-MOBILE-SCROLL-20260801 — categorias em scroll horizontal no mobile tambem */
@media screen and (max-width: 598px){
  html body .dropdown‑grid-cate{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 10px !important;
    scroll-snap-type: x proximity !important;
    padding-bottom: 6px !important;
  }
  html body .dropdown‑grid-cate li{
    flex: 0 0 auto !important;
    width: 165px !important;
    scroll-snap-align: start !important;
  }
  html body .dropdown‑grid-cate li a{ height: 100% !important; }
  html body .dropdown‑grid-cate::-webkit-scrollbar{ height: 4px !important; }
  html body .dropdown‑grid-cate::-webkit-scrollbar-thumb{ background: #5D3A1F55 !important; border-radius: 4px !important; }
}
/* FIM-CATEGORIAS-MOBILE-SCROLL-20260801 */

/* INÍCIO-SPVA-IMG-MOBILE-FIX-20260801 — iOS Safari não pinta <img> absoluta (inset:0/height:100%) dentro de card flex → aparecia preto no mobile */
html body .spva-card{ isolation: isolate; }
html body .spva-card-bg{
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  /* força camada de composição no WebKit/iOS p/ garantir a pintura */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  z-index: 0 !important;
}
/* fallback extra: se a img ainda falhar no iOS, a foto entra como background do card */
@supports (-webkit-touch-callout: none){
  html body .spva-card{ background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
}
/* FIM-SPVA-IMG-MOBILE-FIX-20260801 */
