/* Bottom Navigation Bar Styles (WhatsApp-like) */

.bottom-nav-btn {
  color: var(--muted-foreground, #6b7280);
  transition: all 0.2s ease;
  position: relative;
  min-width: 60px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.bottom-nav-btn:hover,
.bottom-nav-btn:focus {
  color: var(--primary, #3b82f6);
  background-color: var(--muted, rgba(59, 130, 246, 0.1));
  outline: none;
}

.bottom-nav-btn.active {
  color: var(--primary, #3b82f6);
  background-color: var(--muted, rgba(59, 130, 246, 0.1));
}

.bottom-nav-btn.active svg {
  transform: scale(1.1);
}

.bottom-nav-btn svg {
  transition: transform 0.2s ease;
}

.bottom-nav-btn span {
  transition: color 0.2s ease;
}

/* Bottom nav container */
.fixed.bottom-0 {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Cart badge on bottom nav */
#bottom-cart-count {
  position: absolute;
  top: -4px;
  right: 8px;
  font-size: 0.625rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
}

/* Ensure content doesn't get hidden behind bottom nav */
body {
  padding-bottom: 0;
}

/* Desktop: Hide bottom nav */
@media (min-width: 768px) {
  .fixed.bottom-0 {
    display: none !important;
  }
  
  /* Remove bottom padding on desktop */
  .pb-20.md\:pb-0 {
    padding-bottom: 0 !important;
  }
}

/* Mobile: Show bottom nav and add padding */
@media (max-width: 767px) {
  .pb-20 {
    padding-bottom: 5rem !important;
  }
  
  /* Ensure modals and drawers appear above bottom nav */
  .modal-overlay,
  .drawer {
    z-index: 60 !important;
  }
  
  /* Chatbot should be above bottom nav */
  #chatbot-window {
    bottom: 4.5rem !important;
  }
  
  #chatbot-toggle {
    bottom: 4.5rem !important;
  }
}

/* Smooth transitions */
.bottom-nav-btn {
  transform: translateY(0);
}

.bottom-nav-btn:active {
  transform: translateY(2px);
}

/* Better touch targets */
@media (max-width: 767px) {
  .bottom-nav-btn {
    min-height: 56px;
    padding: 0.5rem 0.75rem;
  }
}

