﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-navy: #3a082a;
  --primary-navy-dark: #25041a;
  --primary-blue: #7d1a52;
  --primary-blue-light: #901c60;
  --accent-cyan: #cc4684;
  --accent-cyan-light: #fce7f3;
  --accent-royal: #be185d;
  --bg-slate: #f8fafc;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

/* Arabic Font override */
[dir="rtl"] body, 
[dir="rtl"] * {
  font-family: 'Cairo', 'Inter', sans-serif;
}

/* Nexora Blue Theme Utilities (Now mapped to QNB Maroon/Plum) */
.bg-navy {
  background-color: var(--primary-navy);
}
.bg-navy-dark {
  background-color: var(--primary-navy-dark);
}
.text-navy {
  color: var(--primary-navy);
}
.bg-brand-blue {
  background-color: var(--primary-blue);
}
.text-brand-blue {
  color: var(--primary-blue);
}
.border-brand-blue {
  border-color: var(--primary-blue);
}
.text-cyan-accent {
  color: var(--accent-cyan);
}
.bg-cyan-accent {
  background-color: var(--accent-cyan);
}

.bg-nexora-gradient {
  background: linear-gradient(135deg, #25041a 0%, #3a082a 40%, #7d1a52 85%, #901c60 100%);
}

.bg-nexora-card-gradient {
  background: linear-gradient(180deg, rgba(58, 8, 42, 0.95) 0%, rgba(37, 4, 26, 0.98) 100%);
}

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

/* WhatsApp Floating Pulse Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Subtle transitions for cards */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #cc4684;
  box-shadow: 0 16px 30px -8px rgba(214, 73, 152, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

/* Toast styling */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1100;
}
.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Header Glass Backdrop */
.header-glass {
  background-color: rgba(58, 8, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cropper.js custom theme styling */
.cropper-view-box {
  outline: 2px solid #cc4684 !important;
  outline-color: #cc4684 !important;
  border-radius: 8px;
}
.cropper-line {
  background-color: #cc4684 !important;
}
.cropper-point {
  background-color: #cc4684 !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
}
.cropper-point.point-se {
  width: 12px !important;
  height: 12px !important;
}
.cropper-bg {
  background-image: repeating-conic-gradient(#3a082a 0% 25%, #4a0b36 0% 50%) !important;
  background-size: 20px 20px !important;
}

/* Full Box Product Image Styling (Edge-to-Edge) */
.product-image-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}
.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

/* ================= THEME MODES (DARK & DAY MODE) ================= */
html.dark {
  color-scheme: dark;
}
html.dark body {
  background-color: #1a0212 !important;
  color: #f1f5f9 !important;
}
html.dark .bg-slate-50 {
  background-color: #1a0212 !important;
}
html.dark .bg-slate-100 {
  background-color: #25041a !important;
}
html.dark .bg-white {
  background-color: #25041a !important;
  color: #f8fafc !important;
}
html.dark .product-card {
  background-color: #25041a !important;
  border-color: rgba(214, 73, 152, 0.15) !important;
}
html.dark .product-card:hover {
  border-color: #cc4684 !important;
  box-shadow: 0 16px 30px -8px rgba(214, 73, 152, 0.2) !important;
}
html.dark .border-slate-200 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark .border-slate-100 {
  border-color: rgba(255, 255, 255, 0.07) !important;
}
html.dark .text-slate-900 {
  color: #f8fafc !important;
}
html.dark .text-slate-800 {
  color: #f1f5f9 !important;
}
html.dark .text-slate-700 {
  color: #e2e8f0 !important;
}
html.dark .text-slate-600 {
  color: #cbd5e1 !important;
}
html.dark .text-slate-500 {
  color: #94a3b8 !important;
}
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #3a082a !important;
  border-color: rgba(214, 73, 152, 0.25) !important;
  color: #ffffff !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}
html.dark #cartDrawer,
html.dark #checkoutModal > div,
html.dark #productModal > div,
html.dark #cropperModal > div {
  background-color: #25041a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(214, 73, 152, 0.25) !important;
}
html.dark #checkoutSummaryContainer {
  background-color: #3a082a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark table thead {
  background-color: #3a082a !important;
  color: #94a3b8 !important;
}
html.dark table tbody tr:hover {
  background-color: rgba(214, 73, 152, 0.05) !important;
}
html.dark table td,
html.dark table th {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
