/* ═══════════════════════════════════════════════════════
   LAYOUT PALÁCIO DOS LEILÕES
   ═══════════════════════════════════════════════════════ */

/* === WRAPPER PRINCIPAL === */
.site-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  background: #f5f5f5;
  min-height: 80vh;
  width: 98%;
  margin: 0 auto;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.site-sidebar {
  background: #fff;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.site-sidebar-logo {
  padding: 12px 14px;
  border-bottom: 2px solid #033e7c;
  text-align: center;
  background: #033e7c;
}

.site-sidebar-logo img {
  max-width: 150px;
  max-height: 58px;
  object-fit: contain;
  filter: brightness(10);  /* logo escura → branca no fundo azul */
}

.site-sidebar-content {
  padding: 0;
  font-size: 13px;
}

/* ajustes nos blocos do z_categorias.phtml */
.site-sidebar-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-sidebar-content > ul.p10 {
  padding: 8px;
}

.site-sidebar-content .back_5482B7 {
  background: #033e7c !important;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .5px;
}

.site-sidebar-content ul.p10.pb5 a {
  display: block;
  padding: 5px 8px;
  margin-bottom: 2px;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

.site-sidebar-content ul.p10.mt10 li a {
  display: block;
  padding: 5px 8px;
  color: #444;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  transition: background .15s;
}

.site-sidebar-content ul.p10.mt10 li a:hover {
  background: #f0f4ff;
  color: #033e7c;
}

.site-sidebar-content ul.pt10 li a {
  display: block;
  padding: 4px 8px;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

.site-sidebar-content ul.pt10 li {
  border-bottom: 1px solid #f0f0f0;
}

.site-sidebar-content ul.pt10 > li > div {
  background: #f5f7ff;
  border-bottom: 1px solid #dde;
}

.site-sidebar-content ul.pt10 > li > div a {
  font-weight: bold;
  font-size: 12px;
  color: #033e7c;
}

.site-sidebar-content ul.pt10 > li > div a:hover {
  background: #e8eeff;
}

.site-sidebar-content ul.pt10 ul li a {
  padding-left: 16px;
  font-size: 11px;
  color: #555;
}

/* Cadastre-se block */
.site-sidebar-content ul.pt10:first-of-type li.p10 {
  background: #0056b3;
  text-align: center;
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.site-main {
  padding: 10px;
  min-width: 0;
}

/* ── ÍCONES DE CATEGORIA ─────────────────────────────── */
.site-cat-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.site-cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border: 1px solid #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all .15s;
  min-width: 70px;
}

.site-cat-icon-item:hover {
  border-color: #033e7c;
  color: #033e7c;
}

.site-cat-icon-item .fa {
  font-size: 22px;
  color: #033e7c;
}

.site-cat-icon-item:hover .fa {
  color: #033e7c;
}

.site-cat-n {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  line-height: 1;
}

.site-cat-nome {
  font-size: 11px;
  color: #777;
  text-align: center;
  white-space: nowrap;
}

/* ── PRÓXIMOS LEILÕES + BANNERS ──────────────────────── */
.prox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
  align-items: stretch;
}

.prox-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.prox-banner-slot {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 3/4;
}

.prox-banner-slot.prox-banner-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
  gap: 6px;
  border: 2px dashed #ddd;
}

.prox-banner-vazio .fa { font-size: 28px; }

.prox-banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.prox-leiloes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 180px;
}

.prox-leilao-card {
  position: relative;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  text-decoration: none;
  color: #333;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow .15s;
}

.prox-leilao-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.prox-leilao-topo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.prox-leilao-topo .fa { color: #033e7c; font-size: 14px; }

.prox-leilao-data {
  font-size: 32px;
  font-weight: bold;
  color: #222;
  line-height: 1.1;
  padding: 6px 0 4px;
}

.prox-leilao-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #555;
}

.prox-leilao-info .fa { color: #033e7c; margin-right: 4px; font-size: 11px; }

.prox-aberto { color: #28a745 !important; font-weight: 600; }
.prox-aberto .fa { color: #28a745 !important; }
.prox-aguardando { color: #888; }

.prox-live-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #28a745;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
}

@media (max-width: 960px) {
  .prox-row { grid-template-columns: 1fr; }
  .prox-leiloes { flex-direction: row; width: 100%; }
  .prox-leilao-card { width: 50%; }
}

@media (max-width: 600px) {
  .prox-banners { grid-template-columns: repeat(2, 1fr); }
}

/* ── AUCTION BLOCK ───────────────────────────────────── */
.site-leilao-block {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* HEADER AZUL */
.site-leilao-header {
  background: #033e7c;
  color: #fff;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-ao-vivo {
  background: #28a745;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  animation: blink-verde 1.5s infinite;
}

@keyframes blink-verde {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

.site-leilao-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-leilao-nome {
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.site-leilao-meta {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-ver-todos {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 9px;
  border-radius: 3px;
  transition: all .15s;
}

.site-ver-todos:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ── LOT GRID 5 colunas ──────────────────────────────── */
.site-lotes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #d8d8d8;
}

/* ── COMPACT LOT CARD ────────────────────────────────── */
.site-lote-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  transition: background .15s;
  overflow: hidden;
}

.site-lote-card:hover {
  background: #f3f6ff;
}

/* IMAGEM */
.site-lote-img {
  width: 100%;
  height: 128px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-lote-img img {
  width: 100% !important;
  height: 128px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

/* INFO AREA */
.site-lote-info {
  padding: 6px 7px 7px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-lote-seq {
  font-size: 9px;
  color: #bbb;
  line-height: 1.2;
}

.site-lote-nome {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 14px;
  line-height: 1.3;
}

.site-preco-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
  margin-top: 3px;
}

.site-preco-label {
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-preco-val {
  font-size: 13px;
  font-weight: bold;
  color: #033e7c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-preco-val.preco-atual {
  color: #c0392b;
  font-size: 12px;
}

/* ── COMITENTES DO LEILÃO ───────────────────────────── */
.site-comitentes {
  padding: 7px 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fafafa;
}

.site-comitentes img {
  max-height: 30px;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: .85;
  transition: opacity .15s;
}

.site-comitentes img:hover {
  opacity: 1;
  filter: none;
}

.site-com-nome {
  font-size: 11px;
  color: #777;
  font-weight: 500;
}

/* ── RESPONSIVO ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .site-lotes-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .site-wrapper { grid-template-columns: 1fr; }
  .site-sidebar  { display: none; }
  .site-lotes-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
  .site-lotes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .site-lotes-grid { grid-template-columns: repeat(2, 1fr); }
  .site-lote-img,
  .site-lote-img img { height: 100px !important; }
}
