/* ===== GRID DE PRODUCTOS ===== */
.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.producto {
  width: 300px;
  height: 300px;          /* card cuadrada más grande */
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 55%;           /* ocupa un poco más de espacio para la imagen */
  object-fit: cover;
  display: block;
}

.info-producto {
  padding: 4px 8px;         /* un poco más de padding */
  text-align: left;
  height: 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;                 /* espacio pequeño entre elementos */
}

.precio {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

.nombre {
  font-size: 15px;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

.categoria {
  font-size: 14px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}


/* ===== PAGINACIÓN ===== */
.paginacion {
  margin: 40px 0 20px 0; /* 40px arriba, 20px abajo */
  text-align: center;
}

.paginacion a {
  margin: 0 5px;
  padding: 8px 12px;
  border-radius: 0;         /* esquinas cuadradas */
  background: #fff;         /* fondo blanco */
  color: #000000;           /* texto negro */
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #000;   /* borde negro fino */
  transition: background 0.3s, color 0.3s;
}

.paginacion a:hover {
  background: #000;  /* hover negro */
  color: #fff;
}

.paginacion a.activo {
  background: #ccc;  /* fondo gris */
  color: #201f1f;    /* texto negro */
  border-color: #000;
}

.paginacion .flecha {
  font-weight: bold;
}
/* ====== MODO FLOTANTE: el grid no se mueve ====== */
:root { --header-h: 64px; --sidebar-w: 280px; }

.jz-float .jz-sidebar{
  position: fixed;
  left: 0;
  top: calc(var(--header-h) + 12px);
  width: var(--sidebar-w);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  z-index: 5;
}

.jz-float .with-left-pad{
  /* margen virtual para que el sidebar no tape el contenido */
  padding-left: calc(var(--sidebar-w) + 32px);
}

/* en móviles, todo normal */
@media (max-width:980px){
  .jz-float .jz-sidebar{ position: static; width:auto; max-height:none; overflow:visible; }
  .jz-float .with-left-pad{ padding-left:0; }
}
/* Cuando no hay productos, que el mensaje ocupe el ancho del grid y mantenga altura */
/* Estado vacío con el mismo “cuerpo” visual que el grid */
.productos .empty-grid{
  width:100%;
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #eee;
  border-radius:0;
  font-size:16px;
  color:#555;
  padding:24px;
}

/* Botones de paginación deshabilitados */
.paginacion a.disabled{
  pointer-events:none;
  opacity:.45;
}
