/* ==========================================================================
   BOTANICA WIDGET - ASISTENTE ESPIRITUAL IA (MAESTRA ELENA)
   ========================================================================== */

.botanica-ai-section {
  position: relative;
  padding: 6.5rem 0;
  background: radial-gradient(circle at 50% 30%, #20133c 0%, #090616 70%);
  border-top: 1px solid var(--botanica-border-teal, rgba(8, 154, 156, 0.35));
  border-bottom: 1px solid var(--botanica-border-gold, rgba(210, 159, 68, 0.35));
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Star Constellation Canvas Background */
.botanica-cosmic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.botanica-ai-container {
  position: relative;
  z-index: 2;
}

/* Section Header */
.botanica-ai-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.botanica-ai-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--botanica-radius-full, 9999px);
  background: rgba(100, 55, 150, 0.25);
  border: 1px solid var(--botanica-mystic-purple-light, #9b61db);
  color: #d1b3ff;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.botanica-ai-title {
  font-family: var(--botanica-font-heading, 'Cinzel', serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--botanica-text-white, #ffffff);
  margin: 0 auto 1rem auto;
  text-align: center;
  width: 100%;
}

.botanica-ai-subtitle {
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 1.15rem;
  color: var(--botanica-text-muted, #a3b8aa);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  line-height: 1.6;
}

/* AI Grid Layout */
.botanica-ai-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: start;
  box-sizing: border-box;
}

/* Left: Avatar Card */
.botanica-ai-avatar-card {
  background: rgba(18, 14, 38, 0.95);
  border: 1px solid var(--botanica-border-gold, rgba(210, 159, 68, 0.35));
  border-radius: var(--botanica-radius-lg, 24px);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(100, 55, 150, 0.4);
  position: sticky;
  top: 100px;
  box-sizing: border-box;
}

.botanica-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
}

.botanica-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--botanica-accent-gold, #D29F44);
  box-shadow: 0 0 25px rgba(210, 159, 68, 0.4);
  display: block;
}

.botanica-avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--botanica-mystic-purple-light, #9b61db) 0%, transparent 70%);
  opacity: 0.6;
  animation: botanica-pulse-glow 3s infinite ease-in-out;
  z-index: -1;
}

@keyframes botanica-pulse-glow {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.botanica-avatar-name {
  font-family: var(--botanica-font-heading, 'Cinzel', serif);
  font-size: 1.6rem;
  color: var(--botanica-text-white, #ffffff);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.botanica-avatar-role {
  color: var(--botanica-accent-teal-light, #30d5d7);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.botanica-avatar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(8, 154, 156, 0.2);
  border: 1px solid var(--botanica-accent-teal, #089A9C);
  border-radius: var(--botanica-radius-full, 9999px);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  color: var(--botanica-text-light, #f0f4f1);
  margin-bottom: 1.2rem;
}

.botanica-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20e090;
  box-shadow: 0 0 8px #20e090;
  flex-shrink: 0;
}

.botanica-avatar-quote {
  font-family: var(--botanica-font-subheading, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #a3b8aa;
  line-height: 1.5;
  margin: 0;
}

/* Right: Chat Box */
.botanica-ai-chat-box {
  background: rgba(14, 11, 30, 0.96);
  border: 1px solid rgba(100, 55, 150, 0.4);
  border-radius: var(--botanica-radius-lg, 24px);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-height: 580px;
  box-sizing: border-box;
}

/* Progress Indicator */
.botanica-ai-progress-bar-wrap {
  margin-bottom: 1.8rem;
}

.botanica-ai-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  color: var(--botanica-text-muted, #a3b8aa);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.botanica-ai-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.botanica-ai-progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--botanica-gold-gradient, linear-gradient(135deg, #D29F44 0%, #f7d78a 50%, #b37e23 100%));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Conversation Flow */
.botanica-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
  max-height: 480px;
  scroll-behavior: smooth;
}

.botanica-chat-msg {
  display: flex;
  gap: 1rem;
  max-width: 90%;
  animation: botanica-msg-slide 0.4s ease;
}

@keyframes botanica-msg-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.botanica-chat-msg.bot {
  align-self: flex-start;
}

.botanica-chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.botanica-chat-bubble {
  padding: 1.1rem 1.4rem;
  border-radius: var(--botanica-radius-md, 14px);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.98rem;
  line-height: 1.55;
  box-sizing: border-box;
}

.botanica-chat-msg.bot .botanica-chat-bubble {
  background: rgba(32, 22, 60, 0.9);
  border: 1px solid var(--botanica-border-teal, rgba(8, 154, 156, 0.35));
  color: var(--botanica-text-light, #f0f4f1);
  border-top-left-radius: 4px;
}

.botanica-chat-msg.user .botanica-chat-bubble {
  background: var(--botanica-gold-gradient, linear-gradient(135deg, #D29F44 0%, #f7d78a 50%, #b37e23 100%));
  color: #0c100d;
  font-weight: 600;
  border-top-right-radius: 4px;
}

/* Option Buttons Container (Single Column Vertical Flow) */
.botanica-chat-options-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  margin-top: 1.1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

button.botanica-option-btn,
.botanica-option-btn {
  /* Reset theme button styles that restrict height or overflow */
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  padding: 0.75rem 1rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(210, 159, 68, 0.35) !important;
  border-radius: var(--botanica-radius-md, 14px) !important;
  color: var(--botanica-text-light, #f0f4f1) !important;
  text-align: left !important;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  transition: all var(--botanica-transition-fast, 0.2s ease) !important;
}

button.botanica-option-btn span,
.botanica-option-btn span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  text-align: left !important;
  line-height: 1.38 !important;
  font-size: 0.88rem !important;
  color: inherit !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
}

button.botanica-option-btn svg,
button.botanica-option-btn i,
.botanica-option-btn svg,
.botanica-option-btn i {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  color: var(--botanica-accent-gold, #D29F44) !important;
  stroke: var(--botanica-accent-gold, #D29F44) !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

button.botanica-option-btn:hover,
.botanica-option-btn:hover {
  background: rgba(210, 159, 68, 0.2) !important;
  border-color: var(--botanica-accent-gold, #D29F44) !important;
  color: var(--botanica-accent-gold-light, #f5cf7b) !important;
  transform: translateX(3px) !important;
}

button.botanica-option-btn:hover svg,
button.botanica-option-btn:hover i,
.botanica-option-btn:hover svg,
.botanica-option-btn:hover i {
  transform: translateX(3px) !important;
}

/* Free-text Input Bar */
.botanica-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--botanica-border-light, rgba(255, 255, 255, 0.12));
  border-radius: var(--botanica-radius-full, 9999px);
  box-sizing: border-box;
}

.botanica-chat-input-bar input {
  flex: 1;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.95rem;
  background: transparent;
  border: none;
  outline: none;
}

.botanica-chat-input-bar input::placeholder {
  color: #7b8e81;
}

.botanica-chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--botanica-gold-gradient, linear-gradient(135deg, #D29F44 0%, #f7d78a 50%, #b37e23 100%));
  color: #0b0e0a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--botanica-transition-fast, 0.2s ease), box-shadow var(--botanica-transition-fast, 0.2s ease);
  flex-shrink: 0;
}

.botanica-chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(210, 159, 68, 0.6);
}

.botanica-chat-send-btn svg,
.botanica-chat-send-btn i {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Recommendation Result Dashboard */
.botanica-ai-result-dashboard {
  background: rgba(20, 14, 42, 0.96);
  border: 1px solid var(--botanica-accent-gold, #D29F44);
  border-radius: var(--botanica-radius-md, 14px);
  padding: 1.8rem;
  box-shadow: 0 0 35px rgba(210, 159, 68, 0.35);
  animation: botanica-msg-slide 0.5s ease;
  box-sizing: border-box;
}

.botanica-ai-result-header {
  border-bottom: 1px solid var(--botanica-border-gold, rgba(210, 159, 68, 0.35));
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.botanica-highlight-kit {
  background: rgba(210, 159, 68, 0.12);
  border: 1.5px dashed var(--botanica-accent-gold, #D29F44);
  border-radius: var(--botanica-radius-md, 14px);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  box-sizing: border-box;
}

.botanica-highlight-kit img {
  width: 95px;
  height: 95px;
  border-radius: var(--botanica-radius-sm, 8px);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border: 1px solid rgba(210, 159, 68, 0.3);
  flex-shrink: 0;
}

.botanica-kit-info {
  flex: 1;
}

.botanica-kit-badge {
  background: var(--botanica-accent-gold, #D29F44);
  color: #000;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.botanica-kit-info h4 {
  font-family: var(--botanica-font-heading, 'Cinzel', serif);
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-size: 1.2rem;
  margin: 0 0 0.4rem 0;
  font-weight: 700;
}

.botanica-kit-info p {
  color: #e2ede5;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.botanica-kit-price-row {
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-weight: 800;
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.botanica-kit-price-row .old-price {
  text-decoration: line-through;
  color: #7b8e81;
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* Section Blocks in Result */
.botanica-ai-section-block {
  margin-bottom: 1.8rem;
}

.botanica-ai-block-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.botanica-ai-block-badge {
  background: rgba(210, 159, 68, 0.2);
  border: 1px solid var(--botanica-accent-gold, #D29F44);
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 10px;
  border-radius: var(--botanica-radius-full, 9999px);
}

.botanica-ai-view-link {
  color: var(--botanica-accent-teal-light, #30d5d7);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.botanica-ai-view-link:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateX(3px);
}

.botanica-ai-meta-summary {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  color: #cfdcd2;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Individual Products Grid */
.botanica-ai-indiv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.botanica-ai-indiv-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(210, 159, 68, 0.25);
  border-radius: var(--botanica-radius-md, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.botanica-ai-indiv-card:hover {
  transform: translateY(-4px);
  border-color: var(--botanica-accent-gold, #D29F44);
  box-shadow: 0 8px 24px rgba(210, 159, 68, 0.2);
}

.botanica-ai-indiv-media {
  position: relative;
  width: 100%;
  height: 160px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.botanica-ai-indiv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.botanica-ai-indiv-card:hover .botanica-ai-indiv-media img {
  transform: scale(1.06);
}

.botanica-ai-indiv-role {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 10, 30, 0.88);
  border: 1px solid rgba(210, 159, 68, 0.4);
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.botanica-ai-indiv-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.botanica-ai-indiv-title {
  color: #fff;
  font-family: var(--botanica-font-heading, 'Cinzel', serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.botanica-ai-indiv-title:hover {
  color: var(--botanica-accent-gold, #D29F44);
}

.botanica-ai-indiv-tip {
  color: #a3b8aa;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  flex: 1;
}

.botanica-ai-indiv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.botanica-ai-indiv-price {
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 1.1rem;
}

.botanica-ai-indiv-btn {
  background: rgba(210, 159, 68, 0.15);
  border: 1px solid var(--botanica-accent-gold, #D29F44);
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--botanica-radius-sm, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.botanica-ai-indiv-btn:hover {
  background: var(--botanica-accent-gold, #D29F44);
  color: #0d1a10;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 159, 68, 0.4);
}

/* Button States (Loading / Added) */
.botanica-ai-ajax-cart-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.botanica-ai-ajax-cart-btn.is-added {
  background: #2e7d32 !important;
  border-color: #4caf50 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5) !important;
}

/* Footer Actions in Result */
.botanica-ai-footer-actions {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(210, 159, 68, 0.25);
}

.botanica-ai-restart-btn {
  background: transparent;
  border: 1px dashed rgba(210, 159, 68, 0.5);
  color: #d1b3ff;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--botanica-radius-full, 9999px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.botanica-ai-restart-btn:hover {
  background: rgba(100, 55, 150, 0.25);
  border-color: var(--botanica-accent-gold, #D29F44);
  color: #fff;
  transform: scale(1.03);
}

/* Floating Toast Notification */
.botanica-ai-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #181030;
  border: 1.5px solid var(--botanica-accent-gold, #D29F44);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(210, 159, 68, 0.35);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  z-index: 999999;
  max-width: 380px;
  animation: botanica-toast-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes botanica-toast-in {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.botanica-ai-toast-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.botanica-ai-toast-content {
  flex: 1;
}

.botanica-ai-toast-content strong {
  display: block;
  color: var(--botanica-accent-gold-light, #f5cf7b);
  font-family: var(--botanica-font-heading, 'Cinzel', serif);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.botanica-ai-toast-content p {
  color: #cfdcd2;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  margin: 0 0 0.8rem 0;
  line-height: 1.35;
}

.botanica-ai-toast-actions {
  display: flex;
  gap: 0.6rem;
}

.botanica-ai-toast-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.botanica-ai-toast-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.botanica-ai-toast-btn.primary {
  background: var(--botanica-accent-gold, #D29F44);
  color: #0d1a10;
  border-color: var(--botanica-accent-gold, #D29F44);
}

.botanica-ai-toast-btn.primary:hover {
  background: #f5cf7b;
}

.botanica-ai-toast-close {
  background: transparent;
  border: none;
  color: #a3b8aa;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.3rem;
  transition: color 0.2s ease;
}

.botanica-ai-toast-close:hover {
  color: #fff;
}

/* Additional Tips */
.botanica-tips-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--botanica-radius-sm, 8px);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--botanica-accent-teal, #089A9C);
}

.botanica-tips-box h6 {
  color: var(--botanica-accent-teal-light, #30d5d7);
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.botanica-tips-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  color: #cfdcd2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.botanica-result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.botanica-btn-cart {
  flex: 1;
  min-width: 220px;
  text-align: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .botanica-ai-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .botanica-ai-avatar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .botanica-ai-section {
    padding: 4.5rem 0;
  }

  .botanica-ai-title {
    font-size: 1.9rem;
  }

  .botanica-ai-subtitle {
    font-size: 1rem;
  }

  .botanica-ai-chat-box {
    padding: 1.4rem;
    min-height: 520px;
  }

  .botanica-chat-msg {
    max-width: 100%;
  }

  .botanica-chat-options-grid {
    grid-template-columns: 1fr;
  }

  .botanica-highlight-kit {
    flex-direction: column;
    text-align: center;
  }

  .botanica-complementary-products-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SIDEBAR CARD - MAESTRA ELENA (SHOP SIDEBAR)
   ========================================================================== */
.botanica-ai-sidebar-widget {
  margin-bottom: 2rem !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.botanica-ai-sidebar-card {
  position: relative;
  background: radial-gradient(circle at 50% 10%, #29174d 0%, #100a22 75%, #080512 100%);
  border: 1px solid rgba(210, 159, 68, 0.4);
  border-radius: 16px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(100, 55, 150, 0.25);
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.botanica-ai-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 35px rgba(210, 159, 68, 0.3);
  border-color: rgba(210, 159, 68, 0.65);
}

.botanica-ai-sidebar-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(155, 97, 219, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.botanica-ai-sidebar-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 0.85rem auto;
  z-index: 1;
}

.botanica-ai-sidebar-avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #d29f44, #9b61db, #089a9c, #d29f44);
  animation: botanica-spin-slow 12s linear infinite;
  opacity: 0.85;
  filter: blur(2px);
}

.botanica-ai-sidebar-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0f0a1c;
  display: block;
}

.botanica-ai-sidebar-status-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2.5px solid #100a22;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.botanica-ai-sidebar-header {
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
}

.botanica-ai-sidebar-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(100, 55, 150, 0.35);
  border: 1px solid rgba(155, 97, 219, 0.5);
  color: #dfc8ff;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.botanica-ai-sidebar-name {
  font-family: var(--botanica-font-heading, 'Playfair Display', serif);
  color: #f7e7c4;
  font-size: 1.35rem;
  margin: 0.2rem 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.botanica-ai-sidebar-subtitle {
  color: #c7b3e6;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
}

.botanica-ai-sidebar-desc {
  position: relative;
  z-index: 1;
  color: #b5c4b8;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.botanica-ai-sidebar-features {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0.6rem 0.8rem;
  margin: 0 0 1.2rem 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.botanica-ai-sidebar-features li {
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.76rem;
  color: #d8e5dc;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.botanica-ai-sidebar-features li span {
  font-size: 0.9rem;
}

.botanica-sidebar-ai-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #d29f44 0%, #b88228 50%, #905912 100%);
  color: #0b150d;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid #ffd488;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(210, 159, 68, 0.4);
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.botanica-sidebar-ai-btn:hover {
  background: linear-gradient(135deg, #f5cf7b 0%, #d29f44 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 159, 68, 0.6);
  color: #050b06;
}

.botanica-sidebar-ai-btn:active {
  transform: translateY(0);
}

.botanica-btn-sparkle {
  font-size: 1.1rem;
}

/* ==========================================================================
   MODAL WINDOW - MAESTRA ELENA ESPIRITUAL AI
   ========================================================================== */
body.botanica-modal-open {
  overflow: hidden !important;
}

.botanica-spiritual-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.botanica-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 1;
}

.botanica-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  margin: auto;
  box-sizing: border-box;
}

.botanica-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d1033;
  border: 2px solid #d29f44;
  color: #f7e7c4;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.botanica-modal-close:hover {
  background: #d29f44;
  color: #0e071c;
  transform: scale(1.1);
}

.botanica-modal-content {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #1f1238 0%, #0c0818 75%, #05030b 100%);
  border: 1px solid rgba(210, 159, 68, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(100, 55, 150, 0.35);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.botanica-modal-inner {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  max-height: calc(90vh - 2px);
  padding: 1.8rem 2rem 2.2rem 2rem;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Modal */
.botanica-modal-inner::-webkit-scrollbar {
  width: 8px;
}
.botanica-modal-inner::-webkit-scrollbar-track {
  background: rgba(10, 6, 20, 0.6);
}
.botanica-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(210, 159, 68, 0.4);
  border-radius: 4px;
}
.botanica-modal-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(210, 159, 68, 0.7);
}

/* Modal Header with Avatar */
.botanica-modal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.botanica-modal-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.botanica-modal-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d29f44;
  box-shadow: 0 0 15px rgba(210, 159, 68, 0.4);
}

.botanica-modal-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #140d25;
  box-shadow: 0 0 6px #22c55e;
}

.botanica-modal-title-wrap {
  flex: 1;
}

.botanica-modal-badge {
  display: inline-block;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #dfc8ff;
  background: rgba(100, 55, 150, 0.35);
  border: 1px solid rgba(155, 97, 219, 0.4);
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.3rem;
}

.botanica-modal-title {
  font-family: var(--botanica-font-heading, 'Playfair Display', serif);
  color: #f7e7c4;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.botanica-modal-subtitle {
  color: #a3b8aa;
  font-family: var(--botanica-font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  margin: 0.2rem 0 0 0;
}

.botanica-modal-chat-box {
  background: rgba(10, 6, 22, 0.65);
  border: 1px solid rgba(100, 55, 150, 0.3);
  border-radius: 16px;
  min-height: 480px;
}

@media (max-width: 768px) {
  .botanica-spiritual-modal {
    padding: 0.8rem;
  }
  .botanica-modal-inner {
    padding: 1.2rem 1rem;
  }
  .botanica-modal-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }
  .botanica-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
}


/* ============================================================
   BOTANICA — Shop Category Bar (White Theme + Monochromatic Black Icons + Sticky)
   ============================================================ */

.botanica-shop-cats-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 14px 12px 10px;
  margin-top: 10px;
  margin-bottom: 24px;
  transition: top 0.2s ease, box-shadow 0.2s ease;
}

/* Compensar Admin Bar de WordPress si está activo */
body.admin-bar .botanica-shop-cats-container {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .botanica-shop-cats-container {
    top: 46px;
  }
}

.botanica-shop-cats-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.botanica-shop-cats-scroll {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Tarjeta Individual de Categoría ---- */
.botanica-shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  padding: 6px 8px;
  border-radius: 12px;
  min-width: 80px;
  max-width: 96px;
  transition: background 0.2s ease, transform 0.18s ease;
  cursor: pointer;
}

.botanica-shop-cat-card:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.botanica-shop-cat-card:hover .botanica-shop-cat-icon {
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.botanica-shop-cat-card:hover .botanica-shop-cat-icon svg {
  stroke: #ffffff;
}

.botanica-shop-cat-card:hover .botanica-shop-cat-title {
  color: #0f172a;
  font-weight: 600;
}

/* ---- Estado Activo (Categoría seleccionada) ---- */
.botanica-shop-cat-card.is-active {
  background: #f8fafc;
}

.botanica-shop-cat-card.is-active .botanica-shop-cat-icon {
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.botanica-shop-cat-card.is-active .botanica-shop-cat-icon svg {
  stroke: #ffffff;
}

.botanica-shop-cat-card.is-active .botanica-shop-cat-title {
  color: #0f172a;
  font-weight: 700;
}

/* ---- Círculo del Icono Monocromático Negro ---- */
.botanica-shop-cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.botanica-shop-cat-icon svg {
  width: 24px;
  height: 24px;
  stroke: #1e293b;
  fill: none;
  transition: stroke 0.22s ease;
  display: block;
}

/* ---- Título de la Categoría (Texto Oscuro Elegante) ---- */
.botanica-shop-cat-title {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  color: #334155;
  text-align: center;
  line-height: 1.25;
  max-width: 80px;
  word-break: break-word;
  hyphens: auto;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

/* ============================================================
   MOBILE — Scroll Horizontal Táctil (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .botanica-shop-cats-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 10px 0 8px;
    margin-top: 6px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Indicador visual de degradado en borde derecho para invitar al deslizamiento */
  .botanica-shop-cats-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 5;
  }

  .botanica-shop-cats-wrapper {
    padding: 0;
    overflow: visible;
    position: relative;
    width: 100%;
  }

  .botanica-shop-cats-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 12px 6px;
    padding-right: 36px;
    gap: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .botanica-shop-cats-scroll:active {
    cursor: grabbing;
  }

  .botanica-shop-cats-scroll::-webkit-scrollbar {
    display: none;
  }

  .botanica-shop-cat-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 72px;
    max-width: 80px;
    padding: 5px 6px;
    gap: 6px;
  }

  .botanica-shop-cat-icon {
    width: 46px;
    height: 46px;
  }

  .botanica-shop-cat-icon svg {
    width: 22px;
    height: 22px;
  }

  .botanica-shop-cat-title {
    font-size: 0.64rem;
    max-width: 72px;
  }
}

/* ============================================================
   TABLET — 641px–1024px
   ============================================================ */
@media (min-width: 641px) and (max-width: 1024px) {
  .botanica-shop-cats-scroll {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .botanica-shop-cat-card {
    min-width: 76px;
    max-width: 86px;
  }
}

/* ============================================================
   BARRA INFERIOR MÓVIL — Ícono de Maestra Elena Guía Espiritual AI
   ============================================================ */
.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a {
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}

.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a i.botanica-elena-icon-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 2.0625rem;
}

.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a i svg.botanica-svg-elena-nav {
  width: 22px;
  height: 22px;
  display: block;
  stroke: var(--color-text-light, #71777d);
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a:hover i svg.botanica-svg-elena-nav,
.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a:active i svg.botanica-svg-elena-nav {
  stroke: #D29F44;
  transform: scale(1.1);
}

.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a:hover span,
.mobile-bottom-menu .mobile-menu ul li.botanica-mobile-elena-nav-item a:active span {
  color: #D29F44;
}

/* ============================================================
   Reducción 20% Logo en Menú y Cabecera Móvil
   ============================================================ */
@media (max-width: 991px) {
  .site-header .header-mobile .site-brand img {
    height: 22px !important;
    width: auto !important;
    max-width: 158px !important;
    object-fit: contain !important;
  }
  .site-offcanvas-header .site-brand img {
    height: 18px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
  }
}
