/* ===== FLOATING BUTTONS & CHATBOT ===== */
/* Standalone floating buttons - always visible, separate from #pagetop */

/* ===== FLOATING BUTTONS CONTAINER ===== */
.floating-buttons {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: 500ms cubic-bezier(0.21, 0.66, 0.54, 0.94);
}

.float-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  gap: 2px;
}

.chat-btn {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.chat-btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* Compare floating button (product pages only) */
.compare-btn {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 0.55rem;
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.compare-btn.has-items {
  opacity: 1;
  pointer-events: auto;
}

.compare-btn:hover {
  background: #333;
  transform: scale(1.05);
}

.compare-btn span {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1px;
}

/* ===== CHATBOT PANEL ===== */
.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 580px;
  max-height: calc(100vh - 140px);
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.chatbot-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat message layout */
.chat-msg {
  display: flex;
  gap: 8px;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  line-height: 1;
}

.chat-avatar-user {
  background: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1;
}

.chat-avatar-spacer {
  width: 32px;
  flex-shrink: 0;
}

.chat-msg-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-sender {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.chat-msg-user .chat-sender {
  text-align: right;
}

.chat-bubble {
  padding: 12px 16px;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 14px;
}

.chat-bubble-bot {
  background: var(--color-bg);
  color: var(--color-text);
  border-top-left-radius: 4px;
}

.chat-bubble-user {
  background: var(--color-dark);
  color: var(--color-white);
  border-top-right-radius: 4px;
}

/* Chat option buttons (pill style) */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 75%;
}

.chat-option-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.chat-option-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-dark);
  color: var(--color-dark);
}

/* Chat option image buttons (welcome menu) */
.chat-options-img {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 75%;
}

.chat-option-img-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(26,58,92,0.9));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
  transition: all 0.3s ease;
}

.chat-option-img-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.chat-option-img-btn.has-bg {
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Chat input */
.chatbot-input {
  /*display: flex;*/
  display: none;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  gap: 8px;
  flex-shrink: 0;
}

#chatbotInput {
  flex: 1;
  padding: 10px 14px;
  font-size: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  outline: none;
  font-family: var(--font-family);
  transition: border-color 0.3s ease;
}

#chatbotInput:focus {
  border-color: var(--color-dark);
}

.chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.chatbot-send:hover {
  background: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 959px) {
  .floating-buttons {
    bottom: 60px;
    right: 0px;
    gap: 0px;
  }

  .float-btn {
    transform: scale(0.7);
  }

  .chat-btn:hover {
    background: #333;
    transform: scale(0.7);
  }
  .compare-btn:hover {
    background: #333;
    transform: scale(0.7);
  }

  .chatbot-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 60px;
  }

}
