/* ==========================================================================
   Voice Shop Prototype - Premium Stylesheet
   ========================================================================== */

/* Design Tokens */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors - Curated AdaptNXT Dark Palette (Orange / Deep Navy / Violet Accent) */
  --bg-main: #060814;
  --bg-card: rgba(13, 17, 34, 0.7);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(255, 107, 0, 0.5);

  --color-primary: #FF6B00;       /* Bright Orange */
  --color-secondary: #5C18C5;     /* Violet */
  --color-accent: #FF5500;        /* Deep Orange */
  --color-success: #10B981;       /* Emerald */
  --color-warning: #F59E0B;       /* Amber */
  --color-error: #EF4444;         /* Rose Red */
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow-glow: 0 0 30px rgba(255, 107, 0, 0.25);
}

/* Base resets & configurations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Stunning dynamic glow mesh background */
.glass-bg-glow {
  position: absolute;
  top: -15%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, rgba(92, 24, 197, 0.07) 40%, rgba(6, 8, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* Main Container spacing — leaves room for the fixed cart on the right */
.app-container {
  width: calc(100% - 350px); /* reserve space for fixed 320px cart + 30px gap */
  margin-left: 0;
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Single-column main layout — cart is position:fixed */
.main-layout {
  display: block;
  flex: 1;
  max-width: 900px;
  width: 100%;
}

/* Floating cart: fixed to the right side of the viewport, always visible */
.cart-sidebar {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 320px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.cart-sidebar::-webkit-scrollbar {
  width: 4px;
}
.cart-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.cart-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.35);
  border-radius: 4px;
}

/* On smaller screens: collapse cart back into normal flow */
@media (max-width: 1100px) {
  .app-container {
    margin-right: 0;
    padding: 1.5rem;
  }
  .cart-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    margin-top: 2rem;
  }
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  display: flex;
  align-items: center;
}

.adaptnxt-image-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 1rem;
}

.logo-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6a0dad;
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-btn:hover {
  background: #560a8c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
}

.contact-btn:active {
  transform: translateY(1px);
}

/* Language selector dropdown style */
.language-selector-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.language-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.language-dropdown {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.55rem 2.5rem 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.language-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.language-dropdown option {
  background-color: #0d1122;
  color: var(--text-primary);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
  transition: var(--transition-smooth);
}

/* Badge specific states */
.status-badge.listening {
  color: var(--color-error);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.03);
}

.status-badge.listening .indicator-dot {
  background-color: var(--color-error);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulse-dot 1.5s infinite;
}

.status-badge.transcribing {
  color: var(--color-warning);
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.03);
}

.status-badge.transcribing .indicator-dot {
  background-color: var(--color-warning);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  animation: pulse-dot 1.5s infinite;
}

.status-badge.success {
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.03);
}

.status-badge.success .indicator-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  text-align: left;
  margin-bottom: 3.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 10%, #FFB073 60%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   Microphone Component
   ========================================================================== */
.mic-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.mic-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Dynamic Concentric Ripple Rings */
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-primary);
  opacity: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Micro-animations active states */
.mic-container.recording .pulse-ring {
  border-color: var(--color-error);
  animation: ripple 2s infinite cubic-bezier(0.25, 0, 0, 1);
}

.mic-container.recording .ring-1 { animation-delay: 0s; }
.mic-container.recording .ring-2 { animation-delay: 0.6s; }
.mic-container.recording .ring-3 { animation-delay: 1.2s; }

/* Main Button Style */
.mic-button {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #FFF;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  outline: none;
}

.mic-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.mic-button:active {
  transform: translateY(1px) scale(0.97);
}

.mic-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
  transition: var(--transition-smooth);
}

/* Spinner Element */
.spinner {
  display: none;
  position: absolute;
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}

/* Button State Modifiers */
.mic-container.recording .mic-button {
  background: linear-gradient(135deg, var(--color-error) 0%, #D946EF 100%);
  box-shadow: 0 8px 35px rgba(239, 68, 68, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.mic-container.transcribing .mic-button {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(245, 158, 11, 0.3);
  cursor: not-allowed;
}

.mic-container.transcribing .mic-icon {
  opacity: 0.15;
  transform: scale(0.85);
}

.mic-container.transcribing .spinner {
  display: block;
}

/* Microphone status info styling */
.mic-status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mic-status-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.recording .mic-status-label {
  color: var(--color-error);
  font-weight: 600;
}

.transcribing .mic-status-label {
  color: var(--color-warning);
}

/* Bouncing Audio Wave Visualizer */
.audio-wave-meter {
  display: none;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin-top: 0.25rem;
}

.audio-wave-meter.active {
  display: flex;
}

.bar {
  width: 3px;
  height: 4px;
  background-color: var(--color-error);
  border-radius: 9999px;
  transition: height 0.05s ease;
}

.bar-1 { animation: bounce-wave 0.8s ease-in-out infinite alternate; }
.bar-2 { animation: bounce-wave 0.9s ease-in-out infinite alternate 0.1s; }
.bar-3 { animation: bounce-wave 0.7s ease-in-out infinite alternate 0.25s; }
.bar-4 { animation: bounce-wave 0.85s ease-in-out infinite alternate 0.05s; }
.bar-5 { animation: bounce-wave 0.75s ease-in-out infinite alternate 0.2s; }

/* ==========================================================================
   Transcript Box Section
   ========================================================================== */
.transcript-section {
  margin-bottom: 3.5rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.section-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 2px rgba(99, 102, 241, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
}

.header-title h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: var(--transition-fast);
}

.action-btn:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.action-btn:active:not([disabled]) {
  transform: translateY(1px);
}

.action-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon {
  width: 15px;
  height: 15px;
}

/* Transcribed text window container */
.transcript-box {
  background: rgba(10, 15, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  transition: var(--transition-smooth);
}

.transcript-box:focus-within {
  border-color: var(--border-focus);
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
}

.transcribed-result {
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.transcribed-result.font-italic {
  font-style: italic;
  color: var(--color-primary);
}

/* Informational alerts overlay */
.alert-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  color: #FBBF24;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: fadeIn 0.4s ease-out;
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Voice Examples / Grid
   ========================================================================== */
.suggestions-section {
  margin-bottom: 4rem;
}

.suggestions-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.25rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.suggestion-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.category {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.add-icon {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.suggestion-card:hover .add-icon {
  color: var(--color-primary);
  transform: rotate(90deg);
}

.suggestion-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Visually highlight selected card */
.flash-success {
  animation: flash-card 0.4s ease-out;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.app-footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.app-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.app-footer a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@keyframes bounce-wave {
  0% {
    height: 4px;
    background-color: var(--color-error);
  }
  100% {
    height: 24px;
    background-color: var(--color-accent);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash-card {
  0% {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--border-glass);
  }
  50% {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--border-glass);
  }
}

/* Scrollbar styling */
.transcript-box::-webkit-scrollbar {
  width: 6px;
}

.transcript-box::-webkit-scrollbar-track {
  background: transparent;
}

.transcript-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.transcript-box::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .app-header {
    margin-bottom: 2rem;
  }
  .section-card {
    padding: 1.5rem;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   AI Suggestions Section - Premium Glassmorphic Styling
   ========================================================================== */
.ai-suggestions-section {
  margin-bottom: 3.5rem;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-card {
  border-left: 3px solid var(--color-primary);
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), rgba(21, 30, 52, 0.6));
}

.ai-icon {
  color: var(--color-secondary);
}

.ai-response-box {
  background: rgba(10, 15, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 80px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.ai-speech-text {
  font-weight: 400;
  letter-spacing: 0.1px;
}

.ai-actions-box {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.ai-actions-prompt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.ai-action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.suggestion-add-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
  transition: var(--transition-smooth);
}

.suggestion-add-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

/* Product cards list in AI chat bubble */
.product-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: var(--transition-smooth);
}

.product-card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.04);
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.product-card-pos {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.12);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  flex-shrink: 0;
}

.product-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  flex: 1;
}

.product-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-success);
  flex-shrink: 0;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.product-card-add-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.35);
  color: #FFF;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.product-card-add-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}

.ai-success-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--color-success);
  font-size: 1rem;
  animation: fadeIn 0.4s ease-out;
}

.success-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

/* ==========================================================================
   Voice Cart Panel (sidebar-card and inner components)
   ========================================================================== */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-title h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cart-icon-title {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.cart-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  min-width: 26px;
  height: 26px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
  letter-spacing: 0;
}

.cart-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.synced {
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.status-indicator-dot.offline {
  background: var(--color-warning);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.cart-status-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-cart-icon {
  width: 40px;
  height: 40px;
  opacity: 0.3;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-subtext {
  font-size: 0.78rem;
  opacity: 0.6;
  line-height: 1.5;
}

.cart-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cart-total-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e05500 100%);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
  transition: var(--transition-smooth);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.5);
  filter: brightness(1.1);
}

.btn-arrow-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Voice Cart Items Panel Styling
   ========================================================================== */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.15rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.75rem;
  transition: var(--transition-smooth);
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
}

.cart-item-image {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cart-item-price-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

.cart-item-qty {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove-btn:hover {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
}

.cart-item-remove-btn svg {
  width: 16px;
  height: 16px;
}

/* Edit textarea layout enhancement */
.edit-textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-focus);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  resize: vertical;
}

/* Chat Interface Styles */
.chat-section {
  width: 100%;
  animation: fadeUp 0.6s ease-out forwards;
}

.chat-history {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-bubble {
  max-width: 80%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

.user-bubble {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.15); /* Blue tint */
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-bottom-right-radius: 4px;
}

.ai-bubble {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  align-items: center;
}

#chat-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
}

#chat-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.send-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: scale(1.05);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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