/* ══════════════════════════════════════════════════════
   AuraGlobal AI Assistant CSS Variables & Glow Styles
   ══════════════════════════════════════════════════════ */
:root {
  --ai-primary: var(--primary, #6366f1);
  --ai-primary-glow: var(--primary-glow, rgba(99, 102, 241, 0.45));
}

.ai-chat-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ai-primary), var(--secondary, #a855f7));
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.ai-chat-bubble:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
}

.ai-bubble-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

.ai-chat-container {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 360px;
  height: 520px;
  z-index: 1000;
  background: var(--bg-card, rgba(13, 17, 24, 0.95));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-chat-container.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-chat-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main, #f3f4f6);
}
.ai-chat-header-status {
  font-size: 0.75rem;
  color: var(--accent, #06b6d4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent, #06b6d4);
  border-radius: 50%;
  display: inline-block;
}

.ai-chat-close {
  background: none;
  border: none;
  color: var(--text-muted, #9ca3af);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}
.ai-chat-close:hover {
  color: var(--text-main, #f3f4f6);
}

.ai-chat-feed {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Scrollbar */
.ai-chat-feed::-webkit-scrollbar {
  width: 4px;
}
.ai-chat-feed::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat-feed::-webkit-scrollbar-thumb {
  background: var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 4px;
}

.ai-chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.ai-chat-msg.assistant {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main, #f3f4f6);
  border-radius: 4px 18px 18px 18px;
  align-self: flex-start;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.04));
}
.ai-chat-msg.user {
  background: linear-gradient(135deg, var(--ai-primary), var(--secondary, #a855f7));
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

.ai-chat-form {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.15);
}
.ai-chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--text-main, #f3f4f6);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: all 0.3s;
}
.ai-chat-input:focus {
  border-color: var(--ai-primary);
  background: rgba(255, 255, 255, 0.05);
}
.ai-chat-send {
  background: var(--ai-primary);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.ai-chat-send:hover {
  background: var(--secondary, #a855f7);
  transform: scale(1.05);
}

/* Chips and Recommendations */
.ai-chat-chip {
  align-self: flex-start;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent, #06b6d4) !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: -6px;
}
.ai-chat-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

/* Notification dot */
.notification-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  box-shadow: 0 0 6px #ef4444;
}

/* Light theme support */
html.theme-light .ai-chat-bubble {
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}
html.theme-light .ai-chat-msg.assistant {
  background: #f1f5f9;
  color: #0f172a;
}
html.theme-light .ai-chat-input {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
html.theme-light .ai-chat-form {
  background: #f8fafc;
}

/* ─── FLOATING CART PILL (Bottom-Left) ─── */
.floating-cart-bubble {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}
.floating-cart-bubble:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.45);
}

.floating-cart-count {
  background: #fff;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  padding: 2px 7px;
  min-width: 18px;
  text-align: center;
}

/* Floating Cart Notif Bubble (Bottom-Left above the pill) */
.cart-notif-bubble {
  position: fixed;
  bottom: 85px;
  left: 25px;
  z-index: 1001;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-notif-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cart-notif-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 30px;
  width: 12px;
  height: 12px;
  background: #1e293b;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: rotate(45deg);
}

/* Light theme overrides for floating cart notifier */
html.theme-light .cart-notif-bubble {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
html.theme-light .cart-notif-bubble::after {
  background: #ffffff;
  border-right-color: rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

