/* Floating Action Hub (Sticky UI) */
.floating-action-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  direction: ltr; /* Ensure layout consistency regardless of body direction */
}

/* Scroll Controls */
.scroll-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.scroll-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-btn:hover {
  background: #333333;
  transform: scale(1.1);
}

.scroll-btn svg {
  width: 20px;
  height: 20px;
}

/* Main Action Buttons (WA & Cookie) */
.main-floating-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fab-whatsapp {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.fab-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.fab-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.fab-cookie {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
  font-size: 20px;
}

.fab-cookie:hover {
  background: #F8F8F8;
  transform: rotate(15deg) scale(1.1);
}

/* Mobile Adjustments (Avoid Bottom Nav) */
@media (max-width: 768px) {
  .floating-action-hub {
    bottom: 80px; /* Space for bottom-nav */
    right: 16px;
    gap: 8px;
  }
  
  .fab-whatsapp {
    width: 48px;
    height: 48px;
  }
  
  .fab-whatsapp svg {
    width: 26px;
    height: 26px;
  }
  
  .fab-cookie, .scroll-btn {
    width: 38px;
    height: 38px;
  }
  
  .fab-cookie {
    font-size: 18px;
  }
}
