/* Custom CSS for MediCare+ / PharmaQuick Healthcare eCommerce Template */

:root {
  --primary-teal: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent-cyan: #06b6d4;
  --rx-orange: #f59e0b;
  --rx-red: #ef4444;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Rx Prescription Badge Pulse Animation */
@keyframes rx-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.rx-pulse {
  animation: rx-glow 2s infinite ease-in-out;
}

/* Card hover transitions */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 25px -5px rgba(13, 148, 136, 0.1), 0 8px 10px -6px rgba(13, 148, 136, 0.05);
}

/* Category round icon glow */
.cat-icon-circle {
  transition: all 0.3s ease;
}
.group:hover .cat-icon-circle {
  transform: scale(1.08);
  box-shadow: 0 10px 20px -3px rgba(13, 148, 136, 0.25);
}

/* Custom Checkbox */
.custom-checkbox:checked {
  background-color: #0d9488;
  border-color: #0d9488;
}

/* Floating Action / Emergency Button Pulse */
@keyframes emergency-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(13, 148, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}
.emergency-btn-pulse {
  animation: emergency-pulse 2.2s infinite;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prescription Drag & Drop Highlight */
.drag-active {
  border-color: #0d9488 !important;
  background-color: #f0fdfa !important;
}

/* Discount Pill */
.discount-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Generic Alternative Comparison Card */
.generic-card-highlight {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 2px dashed #0d9488;
}

/* Print Invoice Styles for Order Confirmation */
@media print {
  header, footer, .no-print, #toast-container, .floating-emergency {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .print-only {
    display: block !important;
  }
}
