/* ===== PRODUCTS ===== */
#catalogo { background: var(--bg); }

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 7px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pill:hover { color: var(--text); border-color: var(--text-dim); }

.pill.active {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.products-count {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.products-count span { color: var(--yellow); font-weight: 600; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ===== PRODUCT CARD — diseño blanco limpio ===== */
.product-card {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,224,0,0.25);
}

/* Área de imagen — fondo blanco puro para que las fotos respiren */
.product-img {
  height: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

/* Línea decorativa amarilla inferior en hover */
.product-card:hover .product-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
}

/* Foto del producto */
.product-img-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-img-photo {
  transform: scale(1.04);
}

/* Fallback emoji (si no hay imagen) */
.product-img-emoji {
  font-size: 64px;
  line-height: 1;
}

/* Badges */
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 1;
}

.badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-nuevo  { background: var(--green);    color: #0a0a0a; }
.badge-usado  { background: var(--blue);     color: #fff; }
.badge-oferta { background: var(--red);      color: #fff; }
.badge-agotado{ background: rgba(0,0,0,0.18); color: #fff; backdrop-filter: blur(4px); }

/* Cuerpo de la card — sigue siendo oscuro para contrastar con la sección */
.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 5px;
}

.product-name {
  font-family: var(--font-condensed);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text);
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--yellow);
  line-height: 1;
}

.price-original {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-top: 2px;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.btn-add-cart:hover {
  background: var(--yellow-dark);
  transform: scale(1.03);
}

.btn-add-cart:disabled {
  background: var(--bg4);
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
}

.btn-add-cart svg { width: 16px; height: 16px; flex-shrink: 0; }

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results .nr-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  opacity: 0.4;
}

.no-results .nr-icon svg { width: 48px; height: 48px; }
.no-results p { font-family: var(--font-condensed); font-size: 18px; text-transform: uppercase; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg3);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2000;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), var(--shadow-yellow);
}

.toast.show { transform: translateX(-50%) translateY(0); }

.toast-icon svg { width: 18px; height: 18px; color: var(--yellow); }

@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img { height: 140px; }
  .product-img-emoji { font-size: 48px; }
  .price-current { font-size: 20px; }
  .btn-add-cart .add-text { display: none; }
  .btn-add-cart { padding: 10px 12px; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}