/* tienda.css — Ajustes para el catálogo de productos típicos (sobre style.css) */

/* El hero ya no lleva escena 3D: se refuerza el fondo con textura suave. */
.hero-tienda::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(242,167,27,.14), transparent 70%),
    radial-gradient(40% 40% at 15% 80%, rgba(199,125,2,.10), transparent 70%);
}

/* ─────────── Filtros de categoría ─────────── */
.filtros {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin: 0 auto 2.4rem; max-width: 60rem;
}
.filtro {
  border: 1.5px solid rgba(199,125,2,.35); background: transparent;
  color: var(--cafe, #2b1a0e); font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filtro:hover { background: rgba(242,167,27,.12); }
.filtro.activo { background: var(--miel, #f2a71b); border-color: var(--miel, #f2a71b); color: #fff; }

/* ─────────── Tarjetas de producto ─────────── */
.producto-card { display: flex; flex-direction: column; }
.producto-card[hidden] { display: none !important; }
.producto-visual { position: relative; aspect-ratio: 4/3.6; }
.producto-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Marca de agua cuando el producto no tiene foto en el POS */
.sin-foto {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f7efdd, #efe2c6);
}
.sin-foto img { width: 44%; height: auto; object-fit: contain; opacity: .35; border-radius: 50%; }

.producto-cat {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(43,26,14,.78); color: #f6e7c8; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}

.producto-info { display: flex; flex-direction: column; flex: 1; }
.producto-info h3 { font-size: 1.15rem; line-height: 1.25; }
.producto-desc { min-height: 3.2em; font-size: .88rem; }
.producto-compra { margin-top: auto; }
.producto-compra .precio { font-size: 1.25rem; }

/* Rejilla más densa: hay muchas más piezas que antes */
.productos-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem;
}
@media (max-width: 560px) {
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .producto-info { padding: 1rem 1rem 1.2rem; }
  .producto-info h3 { font-size: 1rem; }
  .producto-desc { display: none; }
  .producto-compra { flex-direction: column; align-items: stretch; gap: .5rem; }
}

/* Pieza sin existencia: se puede encargar, pero tarda más en entregarse. */
.producto-encargo {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: rgba(255,255,255,.92); color: #8a6a20; backdrop-filter: blur(4px);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: .28rem .62rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(43,26,14,.12);
}
