/* ===================================================================
   MRMR STORE - COMMON LUXURY STYLES & TOKENS (ARABIC RTL FIRST)
   =================================================================== */

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

:root {
  /* Color Palette - MRMR Tiffany & Pink Luxury Boutique Theme */
  --tiffany: #0ABAB5;
  --tiffany-light: #5CE1E6;
  --tiffany-dark: #078682;
  --tiffany-subtle: rgba(10, 186, 181, 0.12);
  --tiffany-glow: rgba(10, 186, 181, 0.32);

  --pink: #FF7597;
  --pink-light: #FFB3C6;
  --pink-dark: #E04D74;
  --pink-subtle: rgba(255, 117, 151, 0.12);
  --pink-glow: rgba(255, 117, 151, 0.32);

  /* Primary Theme Gradients (Smooth Tiffany & Pink Fusion) */
  --theme-gradient: linear-gradient(135deg, #0ABAB5 0%, #38D9D0 35%, #FF7597 100%);
  --tiffany-gradient: linear-gradient(135deg, #5CE1E6 0%, #0ABAB5 60%, #078682 100%);
  --pink-gradient: linear-gradient(135deg, #FFB3C6 0%, #FF7597 60%, #E04D74 100%);
  --soft-aura: linear-gradient(135deg, rgba(10, 186, 181, 0.18) 0%, rgba(255, 117, 151, 0.18) 100%);

  /* Backwards-compatible aliases for existing component styles */
  --gold-primary: #0ABAB5;
  --gold-light: #5CE1E6;
  --gold-hover: #078682;
  --gold-gradient: linear-gradient(135deg, #0ABAB5 0%, #38D9D0 30%, #FF7597 100%);
  --gold-glow: rgba(10, 186, 181, 0.3);

  /* Backgrounds & Glassmorphism (Deep Velvety with Silk Sheen) */
  --bg-deep: #0B0E14;
  --bg-card: rgba(19, 24, 35, 0.82);
  --bg-card-hover: rgba(25, 32, 48, 0.94);
  --bg-elevated: #1A2232;
  --bg-input: #0E131C;
  --bg-glass: rgba(19, 24, 35, 0.85);

  --emerald: #10B981;
  --emerald-light: #34D399;
  --emerald-subtle: rgba(16, 185, 129, 0.12);

  --crimson: #FF4D6D;
  --crimson-subtle: rgba(255, 77, 109, 0.14);

  --text-main: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Polished Borders & Shadows */
  --border-subtle: rgba(10, 186, 181, 0.18);
  --border-hover: rgba(255, 117, 151, 0.42);
  --border-light: rgba(255, 255, 255, 0.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 10px 30px -5px rgba(10, 186, 181, 0.35), 0 8px 24px -5px rgba(255, 117, 151, 0.25);
  --shadow-tiffany: 0 10px 30px rgba(10, 186, 181, 0.3);
  --shadow-pink: 0 10px 30px rgba(255, 117, 151, 0.3);

  --font-heading: 'Alexandria', 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Alexandria', sans-serif;
  --font-serif: 'Amiri', serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(ellipse at 85% 0%, rgba(10, 186, 181, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 100%, rgba(255, 117, 151, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 40%, rgba(10, 186, 181, 0.04) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

input, textarea, select {
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #2A3245;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tiffany);
}

/* Global Notification Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  color: var(--text-main);
  border: 1px solid var(--border-hover);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 300px;
  max-width: 440px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
  border-right: 4px solid var(--tiffany);
}
.toast.toast-error {
  border-right: 4px solid var(--pink);
}
.toast.toast-info {
  border-right: 4px solid var(--tiffany-light);
}

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

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