/* Corazon reutilizable para productos, promociones y tiendas. */
.favorito-contenedor {
  position: relative;
}

.btn-favorito {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e63946;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(17, 24, 39, 0.18);
  cursor: pointer;
  z-index: 8;
  transition: color 0.18s, background 0.18s, transform 0.18s;
}

.btn-favorito:hover {
  color: #c1121f;
  background: #fff;
  transform: scale(1.08);
}

.btn-favorito.activo {
  color: #fff;
  background: #e63946;
  border-color: #e63946;
}

.btn-favorito:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn-favorito-mini {
  top: 0.25rem;
  right: 0.25rem;
  width: 25px;
  height: 25px;
  font-size: 0.72rem;
}

.mensaje-favoritos-global {
  position: fixed;
  top: 84px;
  right: 1rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  color: #fff;
  background: #252932;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 11000;
}

.mensaje-favoritos-global.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.mensaje-favoritos-global.error {
  background: #b4232f;
}

@media (max-width: 575px) {
  .mensaje-favoritos-global {
    top: 76px;
    right: 0.65rem;
    left: 0.65rem;
    max-width: none;
  }
}
