/* Ajustes adicionales para mejorar la visualización de productos */

/* Estilos para el encabezado de filtros */
.filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Botón para resetear filtros */
.resetear-filtros-btn {
  background: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.resetear-filtros-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.resetear-filtros-btn i {
  font-size: 0.85rem;
  transition: transform 0.5s ease;
}

.resetear-filtros-btn:hover i {
  transform: rotate(-360deg);
}

.reset-activo {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Mejoras para los productos */
.producto {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
}

.catalogo .producto .producto-img {
  height: 360px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  aspect-ratio: auto;
  position: relative;
}

.catalogo .producto .producto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: white;
}

.producto:hover .producto-img img {
  transform: scale(1.08);
}

.producto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  opacity: 0;
  transition: all 0.4s ease;
}

.producto:hover .producto-overlay {
  opacity: 1;
}

.quick-view,
.add-to-cart {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
}

.producto:hover .quick-view,
.producto:hover .add-to-cart {
  transform: translateY(0);
  opacity: 1;
}

.producto:hover .quick-view {
  transition-delay: 0.1s;
}

.producto:hover .add-to-cart {
  transition-delay: 0.2s;
}

.quick-view:hover,
.add-to-cart:hover {
  background: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
}

.producto-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.producto-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: linear-gradient(to bottom, #1a1a1a, #222);
}

.marca {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.producto-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  transition: all 0.3s ease;
  line-height: 1.4;
  color: #fff;
}

.producto:hover .producto-info h3 {
  color: var(--primary-color);
}

.btn-comprar {
  background: var(--primary-color);
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-top: auto;
}

.btn-comprar:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .catalogo .producto .producto-img {
    height: 300px;
  }

  .catalogo .producto .producto-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
  }
  
  .resetear-filtros-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .producto {
    min-height: 450px;
  }
  
  .producto-info {
    padding: 1.2rem;
  }
  
  .btn-comprar {
    padding: 10px;
    font-size: 0.85rem;
  }
}
