:root { font-family: system-ui, Arial; }

body { margin: 0; background: #0b0c10; color: #eaeaea; }

.topbar{
  position: sticky; top: 0; z-index: 10;
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding:12px 16px; background:#12141b; border-bottom:1px solid #232634;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{ width:40px; height:40px; border-radius:12px; background:#1f2333; border:1px solid #2c3042; }
.title{ font-weight:700; }
.subtitle{ opacity:.7; font-size:12px; }

.filters{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
select,input,button{
  background:#0f1118; color:#eaeaea; border:1px solid #2c3042;
  border-radius:10px; padding:10px 12px; outline:none;
}

.container{ padding:16px; max-width:1200px; margin:0 auto; }
#status{ margin:10px 0; opacity:.8; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:12px;
}

.card{
  background:#12141b; border:1px solid #232634; border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column;
}

.thumb{ background:#0f1118; height:190px; display:flex; align-items:center; justify-content:center; }
.thumb img{ max-width:100%; max-height:100%; object-fit:contain; }
.noimg{ opacity:.6; }

.cardBody{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height: 140px; /* da aire para ubicar bien el precio */
}

.cardCode{
  font-size: 11px;
  opacity: .75;
  letter-spacing: .2px;
}

.cardTitle{
  font-weight:700;
  font-size:14px;
  line-height:1.25;
}

.cardMeta{
  opacity:.70;
  font-size:12px;
}

.priceWrap{
  margin-top: auto;     /* empuja el precio hacia abajo */
  display:flex;
  justify-content:center;
  padding-top: 10px;
}

.price{
  font-weight: 800;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #2c3042;
  background: #0f1118;
}

.pager{
  display:flex; gap:10px; align-items:center; justify-content:center;
  margin:18px 0 6px;
}
button{
  cursor:pointer;
  background:#0f1118; color:#eaeaea; border:1px solid #2c3042;
  border-radius:10px; padding:10px 12px;
}
button:disabled{ opacity:.4; cursor:not-allowed; }
