/* ==========================================
   STIL DIVA — AI ASSISTANT STYLES
   Premium Dark Mode with Gold Accents
   ========================================== */

:root {
  /* Color Palette */
  --clr-bg: #0a0a0f;
  --clr-surface: #12121a;
  --clr-surface-2: #1a1a26;
  --clr-surface-3: #22223a;
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-border-hover: rgba(255, 255, 255, 0.12);

  /* Brand Colors */
  --clr-gold: #c9a84c;
  --clr-gold-light: #e4c06e;
  --clr-gold-glow: rgba(201, 168, 76, 0.3);
  --clr-purple: #7c3aed;
  --clr-purple-light: #a855f7;
  --clr-purple-glow: rgba(124, 58, 237, 0.25);

  /* Text */
  --clr-text: #f0f0f8;
  --clr-text-muted: #888898;
  --clr-text-dim: #555566;

  /* Status */
  --clr-success: #10b981;
  --clr-error: #ef4444;

  /* Chat Panel */
  --panel-width: 400px;
  --panel-height: 680px;
  --panel-radius: 24px;

  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Transitions */
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-panel: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-gold: 0 0 30px var(--clr-gold-glow);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* ==========================================
   BASE RESET
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow: hidden;
}

/* ==========================================
   DEMO STORE BACKGROUND
   ========================================== */
.store-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #08080e 0%, #0f0f1e 40%, #130d1e 70%, #0a0a0f 100%);
  overflow: hidden;
}

.store-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.store-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Store Header */
.store-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(10px);
}

.store-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-gold-light);
}

.logo-icon {
  font-size: 20px;
  color: var(--clr-gold);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.store-nav {
  display: flex;
  gap: 32px;
}

.store-nav a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color var(--transition-smooth);
}

.store-nav a:hover {
  color: var(--clr-gold-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  min-height: calc(100vh - 150px);
}

.hero-content {
  max-width: 550px;
}

.hero-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--clr-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.05;
  color: var(--clr-text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 50%, var(--clr-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 400px;
}

.hero-btn {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  color: #0a0a0f;
  border: none;
  border-radius: 100px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 30px var(--clr-gold-glow);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--clr-gold-glow);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  right: 25%;
  background: rgba(124, 58, 237, 0.3);
  color: var(--clr-purple-light);
  animation-delay: 0s;
}

.badge-2 {
  top: 35%;
  right: 15%;
  background: rgba(201, 168, 76, 0.2);
  color: var(--clr-gold-light);
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Store Hint */
.store-hint {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--clr-text-muted);
  white-space: nowrap;
  animation: hint-appear 1s ease-out 2s both;
}

@keyframes hint-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================
   FLOATING ACTION BUTTON
   ========================================== */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform var(--transition-bounce);
}

.chat-fab:hover {
  transform: scale(1.05);
}

.chat-fab:active {
  transform: scale(0.97);
}

.fab-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e1e32 0%, #2a1f4e 100%);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 0 var(--clr-gold-glow);
  transition: all var(--transition-smooth);
  position: relative;
}

.fab-icon svg {
  width: 24px;
  height: 24px;
}

.fab-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--clr-gold);
  animation: fab-pulse 2s ease-out infinite;
  opacity: 0;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.fab-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-gold-light);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.fab-notification {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  border: 2px solid var(--clr-bg);
  animation: notif-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-notification.hidden {
  display: none;
}

@keyframes notif-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ==========================================
   CHAT PANEL
   ========================================== */
.chat-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: var(--panel-width);
  height: var(--panel-height);
  background: linear-gradient(165deg, #141420 0%, #0f0f1e 60%, #12121a 100%);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--panel-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  transform-origin: bottom right;
  transform: scale(0) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-bounce), opacity 0.25s ease;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Inner glow effect */
.chat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--panel-radius);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ==========================================
   CHAT HEADER
   ========================================== */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2a1f4e 0%, #1a1232 100%);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--clr-gold);
  position: relative;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--clr-success);
  border-radius: 50%;
  border: 2px solid var(--clr-surface);
  animation: status-pulse 2s ease infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

.assistant-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}

.assistant-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--clr-success);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-success);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.header-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--clr-gold-light);
  border-color: rgba(201, 168, 76, 0.2);
}

.close-btn:hover {
  color: var(--clr-error);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* ==========================================
   VIRTUAL TRY-ON PANEL
   ========================================== */
.tryon-panel {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(18, 18, 26, 0) 100%);
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 20px;
  flex-shrink: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.tryon-panel.open {
  max-height: 500px;
  padding: 16px 20px;
}

.tryon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tryon-icon {
  font-size: 28px;
}

.tryon-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-text);
}

.tryon-header p {
  font-size: 12px;
  color: var(--clr-text-muted);
}

.tryon-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-gold);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tryon-select,
.tryon-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-smooth);
  -webkit-appearance: none;
}

.tryon-select:focus,
.tryon-input:focus {
  border-color: rgba(201, 168, 76, 0.4);
}

.tryon-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.photo-upload-area {
  background: rgba(255,255,255,0.02);
  border: 1.5px dashed rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.photo-upload-area:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.04);
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.upload-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.upload-hint {
  font-size: 11px;
  color: var(--clr-text-muted);
}

.photo-preview {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.tryon-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 12px;
  color: var(--clr-purple-light);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-smooth);
}

.tryon-btn:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(168, 85, 247, 0.4) 100%);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.tryon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tryon-btn.loading {
  animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Try-on Result */
.tryon-result {
  margin-top: 14px;
  padding: 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-purple-light);
  margin-bottom: 10px;
}

.result-product-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  float: right;
  margin-left: 10px;
}

.result-text {
  font-size: 13px;
  color: var(--clr-text);
  line-height: 1.6;
}

/* ==========================================
   CHAT MESSAGES
   ========================================== */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--clr-surface-3);
  border-radius: 100px;
}

/* Message Bubbles */
.message {
  display: flex;
  gap: 10px;
  animation: msg-appear 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.bot .msg-avatar {
  background: linear-gradient(135deg, #2a1f4e 0%, #1a1232 100%);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--clr-gold);
}

.message.user .msg-avatar {
  background: linear-gradient(135deg, #1a2a4e 0%, #122032 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--clr-purple-light);
}

.msg-content {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.message.bot .msg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  border-radius: 4px 16px 16px 16px;
}

.message.user .msg-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--clr-text);
  border-radius: 16px 4px 16px 16px;
  text-align: right;
}

.msg-time {
  font-size: 10px;
  color: var(--clr-text-dim);
  padding: 0 4px;
}

.message.user .msg-time {
  text-align: right;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-gold);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--clr-surface-2);
}

.product-card-body {
  padding: 10px;
}

.product-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-gold-light);
}

.product-original-price {
  font-size: 10px;
  color: var(--clr-text-dim);
  text-decoration: line-through;
}

.product-discount {
  font-size: 10px;
  font-weight: 700;
  color: var(--clr-error);
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 100px;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.size-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  color: var(--clr-text-muted);
}

.outfit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 7px;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  color: var(--clr-gold);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.outfit-btn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.4);
}

/* ==========================================
   SUGGESTIONS (ACTION CHIPS)
   ========================================== */
.suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.action-chip {
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.action-chip:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--clr-gold-light);
}

/* Quick Suggestions Bar */
.quick-suggestions {
  padding: 10px 16px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.quick-suggestions::-webkit-scrollbar { display: none; }

.suggestion-chip {
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-smooth);
  flex-shrink: 0;
}

.suggestion-chip:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.25);
  color: var(--clr-gold-light);
}

/* ==========================================
   CHAT INPUT
   ========================================== */
.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 10px 14px;
  transition: border-color var(--transition-smooth);
}

.input-wrapper:focus-within {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(255,255,255,0.05);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-input::placeholder {
  color: var(--clr-text-dim);
}

.send-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a0a0f;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px var(--clr-gold-glow);
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--clr-gold-glow);
}

.send-btn:active {
  transform: scale(0.97);
}

.input-hint {
  text-align: center;
  font-size: 10px;
  color: var(--clr-text-dim);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ==========================================
   WELCOME MESSAGE
   ========================================== */
.welcome-message {
  text-align: center;
  padding: 20px 10px;
  animation: msg-appear 0.5s ease;
}

.welcome-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--clr-gold-light);
  margin-bottom: 8px;
}

.welcome-text {
  font-size: 13px;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ==========================================
   PRODUCT PAGE — TRY-ON NOTIFICATION
   ========================================== */

/* FAB glows bright amber when on a product page */
.chat-fab.product-highlight .fab-icon {
  border-color: rgba(201, 168, 76, 0.9);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 0 0 0 var(--clr-gold-glow),
    0 0 24px rgba(201, 168, 76, 0.5);
  animation: fab-product-glow 1.2s ease-in-out infinite alternate;
}

@keyframes fab-product-glow {
  from { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 12px rgba(201,168,76,0.3); }
  to   { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 36px rgba(201,168,76,0.75); }
}

/* "Üstünde Dene!" badge that appears on the FAB */
.tryon-product-badge {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  color: #0a0a0f;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5);
  animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.tryon-product-badge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: var(--clr-gold-light);
  border-bottom: none;
}

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.7) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ==========================================
   TRY-ON TOGGLE BUTTON (header)
   ========================================== */
.tryon-toggle-btn {
  width: auto !important;
  padding: 0 12px !important;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--clr-gold-light) !important;
  border-color: rgba(201,168,76,0.3) !important;
  background: rgba(201,168,76,0.08) !important;
  animation: tryon-btn-pulse 2.5s ease-in-out infinite;
}

.tryon-toggle-btn:hover {
  background: rgba(201,168,76,0.18) !important;
  box-shadow: 0 0 16px rgba(201,168,76,0.3);
}

.tryon-toggle-icon {
  font-size: 14px;
  animation: dress-wiggle 2s ease-in-out infinite;
}

@keyframes dress-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-8deg); }
  75%       { transform: rotate(8deg); }
}

@keyframes tryon-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 10px 2px rgba(201,168,76,0.25); }
}

.tryon-toggle-label {
  display: inline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 480px) {
  :root {
    --panel-width: calc(100vw - 20px);
    --panel-height: 75dvh;
    --panel-radius: 20px;
  }

  .chat-panel {
    bottom: 14px;
    right: 10px;
  }

  .chat-fab {
    bottom: 14px;
    right: 14px;
  }

  .store-nav { display: none; }
  .store-header { padding: 18px 24px; }
  .hero-section { padding: 40px 24px; }
  .hero-title { font-size: 42px; }
  .store-hint { display: none; }
}

/* ==========================================
   UTILITY ANIMATIONS
   ========================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 1s linear infinite;
}

/* Outfit grid */
.outfit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

/* Special message types */
.msg-divider {
  text-align: center;
  font-size: 11px;
  color: var(--clr-text-dim);
  letter-spacing: 0.1em;
  position: relative;
  margin: 4px 0;
}

.msg-divider::before,
.msg-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--clr-border);
}

.msg-divider::before { left: 0; }
.msg-divider::after { right: 0; }
