/* =========================================================
   متجر نور للحلويات الصحية (Noor Nature) - أنماط CSS مخصصة
   ========================================================= */

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

:root {
  --primary-color: #047857;
  --primary-hover: #065f46;
  --accent-color: #f59e0b;
  --bg-stone: #fafaf9;
}

body {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-stone);
  color: #1c1917;
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', 'Cairo', serif;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* أنماط السلة المنبثقة */
.cart-drawer-overlay {
  transition: opacity 0.3s ease-in-out;
}
.cart-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* تحسينات التفاعل والتحويم */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

/* الإشعارات السريعة (Toast) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
[dir="rtl"] .toast-container {
  left: auto;
  right: 24px;
}
.toast-notification {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s, transform 0.2s;
}
.toast-success {
  background: #047857;
  color: #ffffff;
}
.toast-error {
  background: #ef4444;
  color: #ffffff;
}

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

/* شارات الحالة */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-processing { background-color: #dbeafe; color: #1e40af; }
.status-shipped { background-color: #e0e7ff; color: #3730a3; }
.status-delivered { background-color: #d1fae5; color: #065f46; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }
.status-trashed { background-color: #f5f5f4; color: #57534e; }
