@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary-navy: #0B132B;
  --secondary-navy: #1C2541;
  --accent-purple: #6366F1;
  --accent-purple-dark: #4F46E5;
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.toast.toast-success {
  border-left: 4px solid #10B981;
}

.toast.toast-error {
  border-left: 4px solid #EF4444;
}

.toast.toast-info {
  border-left: 4px solid var(--accent-purple);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Product Card Styling */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #E2E8F0;
}

/* Zoom Image Modal */
.image-zoom-container {
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}

.image-zoom-container img {
  transition: transform 0.2s ease-out;
}

.image-zoom-container:hover img {
  transform: scale(1.4);
}

/* Category Hover Card */
.category-card {
  transition: all 0.3s ease;
}

.category-card:hover .cat-img-box {
  transform: scale(1.06);
}

.category-card:hover {
  transform: translateY(-3px);
}

/* Live Search Suggestions Dropdown */
#search-results-dropdown {
  max-height: 480px;
  overflow-y: auto;
}

/* Drawer Cart Animations */
#cart-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#drawer-overlay {
  transition: opacity 0.3s ease;
}

/* Bottom Navigation Bar for Mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }
}

/* Print Invoice Styles */
@media print {
  .no-print, header, footer, #cart-drawer, #toast-container, .admin-sidebar, .admin-topbar {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .invoice-box {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
