/* Botones flotantes — solo mobile */
.floating-actions {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 9990;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.floating-actions > * {
  pointer-events: auto;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.floating-btn i {
  font-size: 1.65rem;
}

.floating-btn:active {
  transform: scale(0.95);
}

.floating-btn-whatsapp {
  background: #25d366;
  color: #fff;
  animation: whatsapp-latido 1.8s ease-in-out infinite;
}

.floating-btn-whatsapp:hover {
  background: #20bd5a;
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

@keyframes whatsapp-latido {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.12);
  }

  12% {
    transform: scale(1.1);
    box-shadow:
      0 6px 22px rgba(37, 211, 102, 0.55),
      0 0 0 8px rgba(37, 211, 102, 0.15);
  }

  24% {
    transform: scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.12);
  }

  36% {
    transform: scale(1.08);
    box-shadow:
      0 6px 20px rgba(37, 211, 102, 0.45),
      0 0 0 5px rgba(37, 211, 102, 0.1);
  }

  48%, 70% {
    transform: scale(1);
    box-shadow:
      0 4px 14px rgba(0, 0, 0, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-btn-whatsapp {
    animation: none;
  }
}

.floating-btn-cart {
  background: var(--primary-color, #164a41);
  color: #fff;
}

.floating-btn-cart:hover {
  background: var(--accent-color, #4d774e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 74, 65, 0.4);
}

.floating-btn-cart[hidden] {
  display: none;
}

.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--secondary-color, #f1bd4a);
  color: var(--primary-color, #164a41);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

.floating-cart-badge[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .floating-actions {
    display: flex;
  }
}
