/* ===== Live Chat Widget ===== */
#chatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a961, #a88a42);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,169,97,0.4);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 340px;
  height: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-window.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, #0a1628, #1a2a4a);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background: #c9a961;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.chat-title { font-weight: 600; font-size: 15px; }
.chat-status { font-size: 12px; opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
}
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-msg.bot .chat-bubble { background: #f0f0f0; color: #333; }
.chat-msg.user .chat-bubble { background: #c9a961; color: white; }
.chat-quick {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-quick button {
  padding: 6px 12px;
  border: 1px solid #c9a961;
  background: white;
  color: #c9a961;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}
.chat-quick button:hover { background: #c9a961; color: white; }
.chat-input {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
}
.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
}
.chat-input input:focus { border-color: #c9a961; }
.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #c9a961;
  color: white;
  cursor: pointer;
}
.chat-whatsapp {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  text-align: center;
}
.chat-whatsapp a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Wishlist Badge ===== */
.wishlist-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.wishlist-btn {
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.wishlist-btn:hover { transform: scale(1.15); }
.wishlist-btn.active { color: #e74c3c; }

/* ===== Compare Bar ===== */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 12px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 9998;
  gap: 16px;
}
.compare-items { display: flex; gap: 12px; }
.compare-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #c9a961;
}
.compare-item img { width: 100%; height: 100%; object-fit: cover; }
.compare-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e74c3c;
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-actions { display: flex; gap: 10px; }
.compare-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #c9a961, #a88a42);
  color: #0a1628;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.compare-clear {
  padding: 10px 20px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Image Zoom ===== */
.zoomable {
  transition: transform 0.2s;
  cursor: zoom-in;
}

/* ===== Global Toast ===== */
.global-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  transition: transform 0.3s;
}
.global-toast.show { transform: translateX(-50%) translateY(0); }
.global-toast.success { background: #27ae60; }
.global-toast.error { background: #e74c3c; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 32px); right: -8px; }
  .compare-bar { flex-direction: column; padding: 10px; }
}
