/* Bellan Animations v3.1 — SAFE
   Toca APENAS: ul.products li.product e botão WhatsApp
   NADA de Elementor, header, sections, containers, body
   ====================================================== */

/* Fix: impede overflow horizontal do slider Swiper/Elementor */
html, body { overflow-x: hidden; }

/* ── Animação de entrada dos cards ── */
@keyframes bellanFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Container do card ── */
ul.products li.product {
  animation: bellanFadeUp 0.4s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
ul.products li.product:nth-child(1)  { animation-delay: 0.00s; }
ul.products li.product:nth-child(2)  { animation-delay: 0.06s; }
ul.products li.product:nth-child(3)  { animation-delay: 0.12s; }
ul.products li.product:nth-child(4)  { animation-delay: 0.18s; }
ul.products li.product:nth-child(5)  { animation-delay: 0.22s; }
ul.products li.product:nth-child(n+6){ animation-delay: 0.26s; }

ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

/* ── Imagem — zoom suave ── */
ul.products li.product a img {
  transition: transform 0.32s ease;
}
ul.products li.product:hover a img {
  transform: scale(1.05);
}

/* ── Título — máx 2 linhas ── */
ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.4;
}

/* ── Botão CTA — hover suave ── */
ul.products li.product .add_to_cart_button,
ul.products li.product a.button {
  transition: filter 0.18s ease, transform 0.15s ease;
}
ul.products li.product .add_to_cart_button:hover,
ul.products li.product a.button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ── Badge oferta ── */
ul.products li.product .onsale {
  animation: bellanFadeUp 0.25s ease both;
}

/* ── Produto individual — imagem ── */
.woocommerce div.product .woocommerce-product-gallery__image img {
  transition: transform 0.3s ease;
}
.woocommerce div.product .woocommerce-product-gallery__image:hover img {
  transform: scale(1.03);
}

/* ── Botão comprar — produto individual ── */
.single_add_to_cart_button {
  transition: filter 0.18s ease, transform 0.15s ease !important;
}
.single_add_to_cart_button:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
}

/* ── WhatsApp flutuante com pulso ── */
@keyframes bellanWaPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,0.7), 0 0 0 7px rgba(37,211,102,0.12); }
}
.bellan-wa-float {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  text-decoration: none !important;
  animation: bellanWaPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.bellan-wa-float:hover {
  transform: scale(1.12) !important;
  animation-play-state: paused !important;
}
.bellan-wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.bellan-wa-float::before {
  content: "Falar no WhatsApp";
  position: absolute;
  right: 64px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.bellan-wa-float:hover::before { opacity: 1 !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
  ul.products li.product:hover {
    transform: none;
    box-shadow: none;
  }
  .bellan-wa-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
  .bellan-wa-float::before { display: none; }
}
