:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
     /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

        /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
     --color-background: #000000; /* تغيير إلى أسود غامق */
    --color-surface: #111111; /* تغيير إلى أسود فاتح قليلاً للأسطح */
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;
  /* Colorful background palette - Dark Mode */
   --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
    --color-background: #000000; /* تغيير إلى أسود غامق */
  --color-surface: #111111; /* تغيير إلى أسود فاتح قليلاً للأسطح */
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* RTL and Arabic Typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
  --font-arabic: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.navbar-top {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.navbar-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .logo {
  color: var(--color-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.navbar-top-right {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* Search Styles */
.search-container {
  position: relative;
  width: 400px;
}

.search-input {
  width: 100%;
  padding: var(--space-10) var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
}

.search-btn {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-suggestion {
  padding: var(--space-12) var(--space-16);
  cursor: pointer;
  border-bottom: 1px solid var(--color-card-border);
}

.search-suggestion:hover {
  background: var(--color-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-btn {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-12);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.header-btn:hover {
  background: var(--color-secondary);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 3px;
  left: 22px;
  background: var(--color-error);
  color: white;
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

/* Main Navbar */
.navbar-main {
  background: var(--color-surface);
  padding: var(--space-12) 0;
}

.navbar-main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.nav-link:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal) var(--ease-standard);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-12) var(--space-16);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-card-border);
}

.dropdown-item:hover {
  background: var(--color-secondary);
}

.navbar-actions {
  display: flex;
  gap: var(--space-12);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

.hero-cta {
  font-size: var(--font-size-lg);
  padding: var(--space-12) var(--space-32);
}

.hero-controls {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.hero-arrow:hover {
  background: white;
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  gap: var(--space-8);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.hero-dot.active {
  background: white;
}

/* Offers Section */
.offers-section {
  background: var(--color-warning);
  color: white;
  padding: var(--space-16) 0;
}

.offers-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.offers-banner h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.countdown-timer {
  display: flex;
  gap: var(--space-16);
}

.countdown-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  min-width: 60px;
}

.countdown-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.countdown-label {
  display: block;
  font-size: var(--font-size-sm);
  margin-top: var(--space-4);
}

/* Sections */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  text-align: center;
}

/* Categories Section */
.categories-section {
  padding: var(--space-32) 0;
}

.categories-container {
  position: relative;
}

.categories-scroll {
  display: flex;
  gap: var(--space-16);
  overflow-x: auto;
  padding: var(--space-16) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 150px;
  text-align: center;
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.category-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-12);
}

.category-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.category-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--duration-fast) var(--ease-standard);
}

.scroll-btn:hover {
  background: var(--color-primary);
  color: white;
}

.scroll-right {
  right: -20px;
}

.scroll-left {
  left: -20px;
}

/* Products Section */
.products-section {
  padding: var(--space-32) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  color: var(--color-text-secondary);
  position: relative;
}

.product-discount {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  background: var(--color-error);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.bestseller-badge {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  background: var(--color-success);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.product-info {
  padding: var(--space-16);
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.stars {
  display: flex;
  gap: var(--space-2);
}

.star {
  color: #ffd700;
  font-size: var(--font-size-sm);
}

.rating-value {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.product-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.price-currency {
  font-size: var(--font-size-base);
  margin-left: var(--space-4);
}

.add-to-cart {
  width: 100%;
  padding: var(--space-10) var(--space-16);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.add-to-cart:hover {
  background: var(--color-primary-hover);
}

/* Reviews Section */
.reviews-section {
  padding: var(--space-32) 0;
  background: var(--color-bg-5);
}

.reviews-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.review-card {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  position: relative;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.customer-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--color-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.customer-info h4 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-success);
  font-size: var(--font-size-sm);
  margin-top: var(--space-4);
}

.review-rating {
  margin-bottom: var(--space-12);
}

.review-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Features Section */
.features-section {
  padding: var(--space-32) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.feature-card {
  text-align: center;
  padding: var(--space-24);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.feature-description {
  color: var(--color-text-secondary);
}

/* Newsletter Section */
.newsletter-section {
  background: var(--color-primary);
  color: white;
  padding: var(--space-32) 0;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
}

.newsletter-text h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
}

.newsletter-form {
  display: flex;
  gap: var(--space-12);
  min-width: 400px;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-12) var(--space-16);
  border: none;
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
}

.newsletter-btn {
  background: white;
  color: var(--color-primary);
  padding: var(--space-12) var(--space-24);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--color-gray-200);
}

/* Footer */
.footer {
  background: black;
  border-top: 1px solid var(--color-border);
  padding: var(--space-32) 0 var(--space-16);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.footer-section h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0866ff;
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-standard);
}

.social-link:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-16);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.payment-icons {
  display: flex;
  gap: var(--space-8);
}

.payment-icons i {
  font-size: var(--font-size-2xl);
  color: var(--color-text-secondary);
}

.copyright {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* WhatsApp Chat */
.whatsapp-chat {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  z-index: 1000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: white;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  transition: all var(--duration-fast) var(--ease-standard);
  pointer-events: none;
}

.whatsapp-chat:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Fixed CTA */
.fixed-cta {
  position: fixed;
  bottom: var(--space-24);
  right: var(--space-24);
  z-index: 999;
}

.fixed-cta .btn {
  padding: var(--space-12) var(--space-24);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-top-right {
    flex-direction: column;
    gap: var(--space-8);
  }
  
  .search-container {
    width: 100%;
    max-width: 300px;
  }
  
  .header-actions {
    order: -1;
  }
  
  .navbar-main-content {
    flex-direction: column;
    gap: var(--space-16);
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    min-width: auto;
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .offers-banner {
    flex-direction: column;
    gap: var(--space-16);
  }
  
  .countdown-timer {
    justify-content: center;
  }
  
  .whatsapp-chat {
    bottom: var(--space-16);
    left: var(--space-16);
  }
  
  .fixed-cta {
    bottom: var(--space-16);
    right: var(--space-16);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-12);
  }
  
  .hero-section {
    height: 400px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-16);
  }
  
  .categories-scroll {
    gap: var(--space-12);
  }
  
  .category-card {
    flex: 0 0 120px;
    padding: var(--space-16);
  }
  
  .scroll-btn {
    display: none;
  }
}

/* أنماط القائمة المتنقلة */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-8);
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* حالة القائمة المفتوحة */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* القائمة المتنقلة */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    padding: var(--space-32) var(--space-16);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

/* طبقة التعتيم الخلفية */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* إغلاق القائمة */
.mobile-nav-close {
    position: absolute;
    top: var(--space-16);
    left: var(--space-16);
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--color-text);
    cursor: pointer;
}

/* عناصر القائمة المتنقلة */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-32);
}

.mobile-nav-link {
    padding: var(--space-12) var(--space-16);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: all 0.2s ease;
    font-weight: var(--font-weight-medium);
}

.mobile-nav-link:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.mobile-nav-actions {
    margin-top: var(--space-32);
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

/* استعلامات الوسائط للشاشات الصغيرة */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav, .navbar-actions {
        display: none;
    }
    
    .navbar-main-content {
        justify-content: space-between;
    }
}

/* Mini Cart Styles */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.mini-cart.active {
    left: 0;
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-primary);
    color: white;
}

.mini-cart-header h3 {
    margin: 0;
    color: white;
}

.mini-cart-close {
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-4);
    border-radius: var(--radius-base);
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-16);
}

.mini-cart-footer {
    padding: var(--space-16);
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
}

.empty-cart-message {
    text-align: center;
    padding: var(--space-32) 0;
    color: var(--color-text-secondary);
}

.empty-cart-message i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-16);
    opacity: 0.5;
}

.empty-cart-message p {
    margin-bottom: var(--space-16);
}

.cart-item {
    display: flex;
    gap: var(--space-12);
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg-1);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-base);
}

.cart-item-price {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    overflow: hidden;
}

.quantity-btn {
    background: var(--color-secondary);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}

.quantity-btn:hover {
    background: var(--color-secondary-hover);
}

.quantity-input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    background: var(--color-surface);
    font-size: var(--font-size-base);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: var(--space-4);
    border-radius: var(--radius-base);
    margin-right: auto;
}

.remove-item:hover {
    background: rgba(var(--color-error-rgb), 0.1);
}

.cart-totals {
    margin-bottom: var(--space-16);
}

.cart-subtotal,
.cart-shipping,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.cart-total {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-8);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

/* تعديل زر عربة التسوق في الهيدر */
.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
     top: 3px;
  left: 22px;
    background: var(--color-error);
    color: white;
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 480px) {
    .mini-cart {
        width: 100%;
        left: -100%;
    }
}

/* RTL adjustments */
[dir="rtl"] .mini-cart {
    left: auto;
    right: -400px;
}

[dir="rtl"] .mini-cart.active {
    left: auto;
    right: 0;
}

[dir="rtl"] .remove-item {
    margin-right: 0;
    margin-left: auto;
}



/* داخل media query للشاشات الصغيرة */
@media (max-width: 768px) {
    .navbar-top-content {
        flex-direction: column;
        gap: var(--space-12);
        padding: var(--space-8) 0;
    }
    
    .navbar-top-right {
        width: 100%;
        flex-direction: column-reverse; /* الأزرار ثم البحث */
        gap: var(--space-12);
    }
    
    .header-actions {
        order: 1;
        justify-content: space-between;
        width: 100%;
    }
    
    .search-container {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .header-btn {
        flex: 1;
        justify-content: center;
        padding: var(--space-8);
        font-size: var(--font-size-sm);
    }
    
    .header-btn span {
        display: none; /* إخفاء النص على الشاشات الصغيرة */
    }
    
    .cart-btn {
        flex: 0 0 auto;
        position: relative;
    }
    
    /* إظهار عدد العناصر في السلة فقط */
    .cart-count {
        display: flex !important;
        position: static;
        margin-right: var(--space-4);
        width: 20px;
        height: 20px;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .header-actions {
        gap: var(--space-4);
    }
    
    .header-btn {
        padding: var(--space-6);
        min-width: 40px;
    }
    
    .header-btn i {
        margin: 0;
    }
    
    .navbar-brand .logo {
        font-size: var(--font-size-2xl);
    }
}

/* تحسينات خاصة للشريط العلوي على الموبايل */
.navbar-top {
    transition: all 0.3s ease;
}

.navbar-brand {
    flex-shrink: 0;
}

/* إظهار النص في الأزرار عند التمرير الأفقي */
.header-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-actions::-webkit-scrollbar {
    display: none;
}

/* تحسين ظهور الاقتراحات على الموبايل */
.search-suggestions {
    position: fixed;
    top: 120px; /* تعديل حسب ارتفاع الهيدر */
    left: var(--space-16);
    right: var(--space-16);
    max-height: 200px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* إظهار النص فقط على الشاشات الكبيرة */
.action-text {
    display: inline;
}

@media (max-width: 768px) {
    .action-text {
        display: none;
    }
    
    /* إظهار النص عند التمرير الأفقي إذا احتجنا */
    .header-actions .action-text {
        display: none;
    }
}

/* تحسينات للعناوين على الأزرار */
.header-btn {
    position: relative;
}

.header-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-surface);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    white-space: nowrap;
    z-index: 1000;
}

/* إضافة هذه الأنماط إلى ملف style.css */

.hero-slide {
    position: relative;
    overflow: hidden;
}

.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* تحسينات للأداء على الأجهزة المحمولة */
@media (max-width: 768px) {
    .three-background {
        /* تقليل جودة الرسومات على الأجهزة المحمولة لتحسين الأداء */
        transform: scale(1.2); /* تكبير الخلفية قليلاً */
    }
}

/* تحسينات للوضع الداكن */
[data-color-scheme="dark"] .three-background {
    filter: brightness(0.8) contrast(1.2);
}

/* أنماط الخلفيات المتحركة */
.hero-slide {
    position: relative;
    overflow: hidden;
}

.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* تأثيرات الكروت المتحركة */
.product-card {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* تأثيرات التمرير */
.scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-trigger.animate {
    opacity: 1;
    transform: translateY(0);
}

/* تأثيرات Hover للكروت */
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* أنماط إضافية للرسوم المتحركة */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* إضافة هذه الأنماط إلى ملف style.css */

/* تحسينات السلايدر */
.hero-slider {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* خلفيات متحركة للشرائح */
.hero-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: gradientShift1 8s ease infinite;
    background-size: 200% 200%;
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: gradientShift2 8s ease infinite;
    background-size: 200% 200%;
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: gradientShift3 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift1 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift2 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift3 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* تأثيرات إضافية للخلفيات */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تحسينات النص */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.6s both;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

/* تحسينات عناصر التحكم */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: rgb(0, 0, 0);
    transform: scale(1.2);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
}

/* أنماط رسوم التمرير التوجيهية */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-16);
    opacity: 0;
    animation: fadeInHint 2s ease 3s forwards;
}

.scroll-hint-icon {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    animation: bounceHint 2s infinite;
}

.scroll-hint-icon i {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.scroll-hint-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
}

/* الرسوم المتحركة */
@keyframes fadeInHint {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
}

/* إخفاء التلميح على الشاشات الكبيرة */
@media (min-width: 1024px) {
    .scroll-hint {
        display: none;
    }
}

/* إظهار التلميح فقط على الأجهزة التي تدعم اللمس */
@media (hover: none) and (pointer: coarse) {
    .scroll-hint {
        display: flex;
    }
}


.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover .category-actions {
    opacity: 1;
    transform: translateY(0);
}

.category-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}


/* أنماط الخلفيات ثلاثية الأبعاد */
.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* السماح بالنقر على العناصر الموجودة فوقها */
}

.hero-content {
    position: relative;
    z-index: 2; /* التأكد من ظهور المحتوى فوق الخلفية */
}

/* تحسينات للأداء على الأجهزة المحمولة */
@media (max-width: 768px) {
    .three-background {
        /* تقليل جودة الرسومات على الأجهزة المحمولة لتحسين الأداء */
        transform: scale(1.2);
    }
}

/* تحسينات للوضع الداكن */
[data-color-scheme="dark"] .three-background {
    filter: brightness(0.8) contrast(1.2);
}

/* أنماط الخلفيات ثلاثية الأبعاد */
.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* تحسينات للأداء */
.three-background canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .three-background {
        /* تقليل التعقيد على الأجهزة المحمولة */
        opacity: 0.8;
    }
    
    .hero-content {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
}

/* تحسينات للوضع الداكن */
[data-color-scheme="dark"] .hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* تحسينات أداء إضافية */
@media (prefers-reduced-motion: reduce) {
    .three-background {
        display: none;
    }
}


/* أنماط أيقونة عربة التسوق الجديدة */
.cart-icon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-base);
    background: transparent;
    transition: all var(--duration-fast) var(--ease-standard);
    cursor: pointer;
}

.cart-icon:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.cart-icon i {
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.cart-count {
    position: absolute;
     top: 3px;
  left: 22px;
    background: var(--color-error);
    color: white;
    border-radius: var(--radius-full);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

/* إخفاء زر عربة التسوق القديم */
.cart-btn {
    display: none;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .cart-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-icon i {
        font-size: var(--font-size-md);
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}


/* أنماط أزرار المنتج */
.product-actions {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.buy-now-btn {
    flex: 1;
    padding: var(--space-10) var(--space-12);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    background: var(--color-warning);
    border: none;
    border-radius: var(--radius-base);
    color: white;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
     top: -6px;

}

.buy-now-btn:hover {
    background: var(--color-orange-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn {
    flex: 1;
    padding: var(--space-10) var(--space-12);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-base);
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}

.add-to-cart-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .buy-now-btn,
    .add-to-cart-btn {
        padding: var(--space-8) var(--space-10);
        font-size: var(--font-size-xs);
        top: -6px;
    }
}

/* تأثيرات النقر على الأزرار */
.buy-now-btn:active,
.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* تحسينات إضافية للوضع الداكن */
[data-color-scheme="dark"] .add-to-cart-btn {
    border-color: var(--color-teal-300);
    color: var(--color-teal-300);
}

[data-color-scheme="dark"] .add-to-cart-btn:hover {
    background: var(--color-teal-300);
    color: var(--color-slate-900);
}
/* تأثيرات النقر على الأزرار */
.buy-now-btn:active,
.add-to-cart-btn:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* تأثير اهتزاز أيقونة السلة */
@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.cart-icon.bounce {
    animation: cartBounce 0.6s;
}

/* تحسينات التخطيط للكروت */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-actions {
    margin-top: auto;
}

/* تحسينات إضافية للعروض */
.product-discount {
    position: absolute;
    top: var(--space-8);
    right: var(--space-8);
    background: var(--color-error);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
}

.bestseller-badge {
    position: absolute;
    top: var(--space-8);
    left: var(--space-8);
    background: var(--color-success);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
}

/* أنماط قسم آراء العملاء المحدث */
.reviews-section {
    padding: var(--space-32) 0;
    background: var(--color-bg-5);
    position: relative;
    overflow: hidden;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-32);
}

.reviews-nav {
    display: flex;
    gap: var(--space-8);
}

.review-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    color: var(--color-text);
}

.review-nav-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.review-nav-btn:active {
    transform: scale(0.95);
}

.reviews-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.reviews-track {
    display: flex;
    gap: var(--space-24);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: var(--space-8) 0;
}

.review-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--color-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal-300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: white;
    font-size: var(--font-size-lg);
}

.customer-info h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-success);
    font-size: var(--font-size-sm);
    margin-top: var(--space-4);
}

.review-rating {
    margin-bottom: var(--space-12);
}

.review-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-12);
    text-align: left;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-24);
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
}

.review-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* تأثيرات خاصة للكروت */
.review-card::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    opacity: 0.1;
    font-family: serif;
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        gap: var(--space-16);
        text-align: center;
    }
    
    .review-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .reviews-nav {
        align-self: center;
    }
}

/* تحسينات إضافية للوضع الداكن */
[data-color-scheme="dark"] .review-card {
    background: var(--color-charcoal-800);
    border-color: rgba(255, 255, 255, 0.1);
}

/* إضافة شريط تمرير مخصص للشاشات التي تدعم اللمس */
.reviews-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.reviews-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* تحسينات للوصول */
.review-nav-btn:focus,
.review-dot:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* رسوم متحركة لدخول العناصر */
@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-card {
    animation: slideInReview 0.6s ease-out;
}

/* تحسينات إضافية لقسم آراء العملاء */
.reviews-section {
    background: linear-gradient(135deg, var(--color-bg-5) 0%, var(--color-bg-3) 100%);
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.review-card {
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(var(--color-primary-rgb), 0.03) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-300));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card:hover::after {
    transform: scaleX(1);
}

/* تأثيرات النص */
.review-text {
    position: relative;
    padding: var(--space-8) 0;
}

.review-text::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.review-text::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: var(--font-size-4xl);
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* تحسينات الصور الرمزية */
.customer-avatar {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customer-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: var(--radius-full);
}

/* تحسينات النجوم */
.stars {
    position: relative;
}

.star {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* تحسينات أزرار التنقل */
.review-nav-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.review-nav-btn:hover::before {
    left: 100%;
}

/* تحسينات النقاط */
.review-dot {
    position: relative;
    transition: all 0.3s ease;
}

.review-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    transition: all 0.3s ease;
}

.review-dot:hover::before {
    background: rgba(var(--color-primary-rgb), 0.1);
}

.review-dot.active::before {
    background: rgba(var(--color-primary-rgb), 0.2);
}

/* مؤشر التقدم */
.reviews-progress {
    height: 3px;
    background: rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--radius-full);
    margin-top: var(--space-16);
    overflow: hidden;
    position: relative;
}

.reviews-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-300));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1400px) {
    .review-card {
        flex: 0 0 calc(25% - 18px);
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .review-card {
        padding: var(--space-16);
        min-height: 220px;
    }
    
    .customer-avatar {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-md);
    }
    
    .review-text {
        -webkit-line-clamp: 3;
        font-size: var(--font-size-sm);
    }
}

/* تحسينات إضافية للرسوم المتحركة */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-card {
    animation: fadeInScale 0.6s ease-out;
}

/* تأثيرات خاصة للوضع الداكن */
[data-color-scheme="dark"] .reviews-section {
    background: linear-gradient(135deg, rgba(var(--color-slate-900-rgb), 0.8) 0%, rgba(var(--color-charcoal-700-rgb), 0.9) 100%);
}

[data-color-scheme="dark"] .review-card {
    background: linear-gradient(135deg, var(--color-charcoal-800) 0%, rgba(var(--color-teal-300-rgb), 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}


/* أنماط زر تحميل التطبيق */
.app-download {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-download::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.app-download:hover::after {
    left: 100%;
}

.app-download.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 128, 141, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(33, 128, 141, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(33, 128, 141, 0);
    }
}

/* نافذة تثبيت التطبيق */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: none;
}

.install-prompt.active {
    display: block;
    animation: slideInUp 0.3s ease;
}

.install-prompt-content {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.install-prompt-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
}

.install-prompt-text {
    flex: 1;
}

.install-prompt-text h4 {
    margin: 0 0 var(--space-4) 0;
    font-size: var(--font-size-lg);
}

.install-prompt-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.install-prompt-actions {
    display: flex;
    gap: var(--space-8);
}

.install-prompt-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--space-4);
    border-radius: var(--radius-base);
}

.install-prompt-close:hover {
    background: var(--color-secondary);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* تحسينات الهيدر للعرض على الموبايل */
@media (max-width: 768px) {
    .navbar-top {
        padding: var(--space-4) 0;
        height: auto;
        min-height: 60px;
    }
    
    .navbar-top-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-8);
    }
    
    .navbar-brand {
        flex: 1;
        text-align: center;
    }
    
    .navbar-brand .logo {
        font-size: var(--font-size-xl);
        margin: 0;
    }
    
    .navbar-top-right {
        flex-direction: row;
        gap: var(--space-4);
        align-items: center;
    }
    
    /* إخفاء شريط البحث العادي على الموبايل */
    .desktop-search {
        display: none !important;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        order: 2;
    }
    
    /* تحسين أزرار الهيدر على الموبايل */
    .header-btn {
        padding: var(--space-6);
        min-width: auto;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        position: relative;
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-btn i {
        margin: 0;
        font-size: var(--font-size-md);
    }
    
    /* زر القائمة المتنقلة في الهيدر العلوي */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-6);
        gap: 3px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        border-radius: var(--radius-base);
        transition: all var(--duration-fast) var(--ease-standard);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--color-text);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--color-secondary);
    }
    
    /* إخفاء النافبار الرئيسي على الموبايل */
    .navbar-main {
        display: none;
    }
    
    /* زر فتح البحث على الموبايل */
    .mobile-search-toggle {
        position: fixed;
       bottom: 66px;
        left: 352px;
        width: 56px;
        height: 56px;
        background: var(--color-primary);
        color: white;
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--font-size-lg);
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        transition: all var(--duration-normal) var(--ease-standard);
    }
    
    .mobile-search-toggle:hover {
        transform: scale(1.1);
        background: var(--color-primary-hover);
    }
}

/* شريط البحث للجوال */
.mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-12) 0;
    box-shadow: var(--shadow-md);
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform var(--duration-normal) var(--ease-standard);
    display: none;
}

.mobile-search-container.active {
    transform: translateY(0);
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    position: relative;
}

.mobile-search .search-input {
    flex: 1;
    padding: var(--space-10) var(--space-16);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    background: var(--color-surface);
    color: var(--color-text);
}

.mobile-search .search-btn {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-close {
    background: var(--color-secondary);
    border: none;
    border-radius: var(--radius-base);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--duration-fast) var(--ease-standard);
}

.search-close:hover {
    background: var(--color-error);
    color: white;
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .navbar-top {
        padding: var(--space-2) 0;
        min-height: 56px;
    }
    
    .navbar-brand .logo {
        font-size: var(--font-size-lg);
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
        padding: var(--space-4);
    }
    
    .header-btn i {
        font-size: var(--font-size-base);
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: var(--space-4);
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .cart-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-icon i {
        font-size: var(--font-size-base);
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .mobile-search-toggle {
        width: 50px;
        height: 50px;
        bottom: 66px;
        left: 352px;
    }
}

/* تحسينات للوضع الداكن على الموبايل */
[data-color-scheme="dark"] .mobile-search-container {
    background: var(--color-charcoal-800);
    border-bottom: 1px solid var(--color-border);
}

[data-color-scheme="dark"] .mobile-search .search-input {
    background: var(--color-charcoal-700);
    border-color: var(--color-border);
    color: var(--color-text);
}

/* تأثيرات النقر */
.mobile-search-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* إظهار زر البحث على الموبايل فقط */
@media (min-width: 769px) {
    .mobile-search-toggle {
        display: none;
    }
    
    .mobile-search-container {
        display: none;
    }
}

/* تحسينات للشريط العلوي على الشاشات المتوسطة */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar-top-right {
        gap: var(--space-8);
    }
    
    .search-container {
        width: 300px;
    }
    
    .header-btn span {
        font-size: var(--font-size-sm);
    }
}

/* تحسينات إضافية للسلايدر */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* خلفيات متدرجة ديناميكية للشرائح */
.hero-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: gradientShift1 8s ease infinite;
    background-size: 200% 200%;
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: gradientShift2 8s ease infinite;
    background-size: 200% 200%;
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: gradientShift3 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift1 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift2 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift3 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* تحسينات النص للسلايدر */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.6s both;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-controls {
        bottom: 15px;
    }
    
    .hero-arrow {
        width: 35px;
        height: 35px;
    }
}

/* تحسينات إضافية للوصول */
.hero-dot:focus,
.hero-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* تحسينات للأداء */
.hero-slider {
    will-change: transform;
}

.hero-slide {
    will-change: opacity, transform;
}

/* تحسينات للوضع الداكن */
[data-color-scheme="dark"] .hero-slide::before {
    background: rgba(0, 0, 0, 0.5);
}

   /* إضافة أنماط للقائمة المنسدلة في الموبايل */
        .mobile-nav-dropdown {
            position: relative;
            width: 100%;
        }
        
        .mobile-nav-dropdown .dropdown-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 12px 15px;
            text-decoration: none;
            color: #333;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
        }
        
        .mobile-nav-dropdown .dropdown-toggle i {
            transition: transform 0.3s ease;
        }
        
        .mobile-nav-dropdown.active .dropdown-toggle i {
            transform: rotate(180deg);
        }
        
        .mobile-dropdown-menu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background-color: #f9f9f9;
        }
        
        .mobile-nav-dropdown.active .mobile-dropdown-menu {
            max-height: 300px;
        }
        
        .mobile-dropdown-item {
            display: block;
            padding: 10px 25px;
            text-decoration: none;
            color: #555;
            border-bottom: 1px solid #eee;
            transition: all 0.2s ease;
        }
        
        .mobile-dropdown-item:hover {
            background-color: #e9e9e9;
            color: #21808d;
        }
        
        .mobile-dropdown-item:last-child {
            border-bottom: none;
        }
        
        /* تحسين مظهر الأيقونات في القوائم */
        .dropdown-item i, .mobile-dropdown-item i {
            margin-left: 5px;
        }


        


        .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}


/* تنسيقات صور المنتجات */
.product-image {
    position: relative;
    width: 100%;
    height: 250px; /* ارتفاع ثابت لجميع الصور */
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* يحافظ على تناسب الصورة دون تشويه */
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05); /* تأثير تكبير خفيف عند التمرير */
}

/* التأكد من أن البطاقات متساوية في الارتفاع */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    min-height: 48px; /* ارتفاع ثابت للأسماء الطويلة */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد الأسطر المسموح به */
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

/* تحسين التنسيقات للجوّال */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .product-name {
        min-height: 40px;
        font-size: 14px;
    }
}


/* تحسين تنسيق الأسعار */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* تحسين تنسيق الأزرار */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* يدفع الأزرار للأسفل */
    padding-top: 15px;
}

.buy-now-btn {
    flex: 2;
    padding: 10px;
    font-size: 14px;
}





/* تحسين الشبكة */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
}





 /* Product page specific styles */
        .product-section {
            padding: var(--space-32) 0;
        }

        .product-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-32);
            margin-bottom: var(--space-32);
        }

        .product-images {
            position: sticky;
            top: var(--space-24);
            height: fit-content;
        }

        .main-image {
            margin-bottom: var(--space-16);
        }

        .image-container {
            position: relative;
            background: var(--color-surface);
            border: 1px solid var(--color-card-border);
            border-radius: var(--radius-lg);
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .product-image-placeholder {
            font-size: 8rem;
            color: var(--color-text-secondary);
        }

        .product-badge {
            position: absolute;
            top: var(--space-12);
            background: var(--color-error);
            color: white;
            padding: var(--space-6) var(--space-12);
            border-radius: var(--radius-base);
            font-size: var(--font-size-sm);
            font-weight: var(--font-weight-semibold);
        }

        .product-badge.discount {
            right: var(--space-12);
        }

        .product-badge.stock {
            left: var(--space-12);
            background: var(--color-warning);
        }

        .image-thumbnails {
            display: flex;
            gap: var(--space-12);
            overflow-x: auto;
        }

        .thumbnail {
            flex: 0 0 80px;
            height: 80px;
            background: var(--color-surface);
            border: 2px solid var(--color-card-border);
            border-radius: var(--radius-base);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color var(--duration-fast);
        }

        .thumbnail.active {
            border-color: var(--color-primary);
        }

        .thumbnail-placeholder {
            font-size: 2rem;
            color: var(--color-text-secondary);
        }

        .product-header {
            margin-bottom: var(--space-20);
        }

        .product-title {
            font-size: var(--font-size-3xl);
            margin-bottom: var(--space-12);
            color: var(--color-text);
        }

        .product-meta {
            display: flex;
            gap: var(--space-16);
            color: var(--color-text-secondary);
            font-size: var(--font-size-sm);
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: var(--space-8);
            margin-bottom: var(--space-20);
        }

        .stars {
            color: #ffc107;
            font-size: var(--font-size-lg);
        }

        .product-pricing {
            margin-bottom: var(--space-20);
        }

        .current-price {
            font-size: var(--font-size-3xl);
            font-weight: var(--font-weight-bold);
            color: var(--color-primary);
        }

        .original-price {
            font-size: var(--font-size-lg);
            color: var(--color-text-secondary);
            text-decoration: line-through;
            margin-right: var(--space-12);
        }

        .savings {
            color: var(--color-success);
            font-weight: var(--font-weight-semibold);
            margin-top: var(--space-8);
        }

        .product-description {
            margin-bottom: var(--space-24);
            line-height: 1.6;
            color: var(--color-text-secondary);
        }

        .product-options {
            margin-bottom: var(--space-24);
        }

        .option-group {
            margin-bottom: var(--space-20);
        }

        .option-group label {
            display: block;
            margin-bottom: var(--space-12);
            font-weight: var(--font-weight-semibold);
            color: var(--color-text);
        }

        .color-options,
        .size-options {
            display: flex;
            gap: var(--space-8);
            flex-wrap: wrap;
        }

        .color-option,
        .size-option {
            padding: var(--space-8) var(--space-16);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-base);
            background: var(--color-surface);
            cursor: pointer;
            transition: all var(--duration-fast);
        }

        .color-option.selected,
        .size-option.selected {
            border-color: var(--color-primary);
            background: var(--color-primary);
            color: white;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            border: 1px solid var(--color-border);
            border-radius: var(--radius-base);
            width: fit-content;
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            border: none;
            background: var(--color-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: var(--font-weight-bold);
        }

        .quantity-selector input {
            width: 60px;
            height: 40px;
            border: none;
            text-align: center;
            font-weight: var(--font-weight-semibold);
            background: var(--color-background);
        }

        .stock-status {
            margin-bottom: var(--space-24);
        }

        .stock-status > div {
            display: flex;
            align-items: center;
            gap: var(--space-8);
            padding: var(--space-12);
            border-radius: var(--radius-base);
            font-weight: var(--font-weight-medium);
        }

        .in-stock {
            background: rgba(var(--color-success-rgb), 0.1);
            color: var(--color-success);
        }

        .low-stock {
            background: rgba(var(--color-warning-rgb), 0.1);
            color: var(--color-warning);
        }

        .out-of-stock {
            background: rgba(var(--color-error-rgb), 0.1);
            color: var(--color-error);
        }

        .product-actions {
            display: flex;
            gap: var(--space-12);
            margin-bottom: var(--space-24);
        }

        .add-to-cart-btn,
        .buy-now-btn {
            flex: 1;
        }

        .wishlist-btn {
            width: 50px;
        }

        .delivery-info {
            border-top: 1px solid var(--color-card-border);
            padding-top: var(--space-20);
        }

        .delivery-item {
            display: flex;
            gap: var(--space-12);
            margin-bottom: var(--space-16);
        }

        .delivery-item i {
            color: var(--color-primary);
            font-size: var(--font-size-xl);
            margin-top: var(--space-4);
        }

        .delivery-item strong {
            display: block;
            margin-bottom: var(--space-4);
            color: var(--color-text);
        }

        .delivery-item p {
            color: var(--color-text-secondary);
            font-size: var(--font-size-sm);
            margin: 0;
        }

        /* Tabs */
        .product-details {
            padding: var(--space-32) 0;
            background: var(--color-bg-1);
        }

        .tabs-container {
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--color-card-border);
        }

        .tabs-nav {
            display: flex;
            background: var(--color-bg-2);
        }

        .tab-btn {
            flex: 1;
            padding: var(--space-16);
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: var(--font-size-base);
            font-weight: var(--font-weight-medium);
            color: var(--color-text-secondary);
            transition: all var(--duration-fast);
        }

        .tab-btn.active {
            background: var(--color-surface);
            color: var(--color-primary);
            border-bottom: 2px solid var(--color-primary);
        }

        .tabs-content {
            padding: var(--space-24);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .features-list {
            list-style: none;
            padding: 0;
        }

        .features-list li {
            display: flex;
            align-items: center;
            gap: var(--space-12);
            margin-bottom: var(--space-12);
            padding: var(--space-12);
            background: var(--color-bg-3);
            border-radius: var(--radius-base);
        }

        .features-list i {
            color: var(--color-success);
        }

        .specifications-table {
            width: 100%;
            border-collapse: collapse;
        }

        .specifications-table tr {
            border-bottom: 1px solid var(--color-card-border);
        }

        .specifications-table td {
            padding: var(--space-12);
        }

        .spec-label {
            font-weight: var(--font-weight-semibold);
            color: var(--color-text);
            width: 30%;
        }

        .spec-value {
            color: var(--color-text-secondary);
        }

        /* Reviews */
        .reviews-summary {
            margin-bottom: var(--space-24);
        }

        .rating-overview {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: var(--space-24);
        }

        .average-rating {
            text-align: center;
        }

        .rating-number {
            font-size: var(--font-size-4xl);
            font-weight: var(--font-weight-bold);
            color: var(--color-primary);
        }

        .rating-stars {
            color: #ffc107;
            font-size: var(--font-size-xl);
            margin: var(--space-8) 0;
        }

        .rating-breakdown {
            display: flex;
            flex-direction: column;
            gap: var(--space-8);
        }

        .rating-bar {
            display: grid;
            grid-template-columns: 60px 1fr 40px;
            gap: var(--space-12);
            align-items: center;
            font-size: var(--font-size-sm);
        }

        .bar {
            height: 8px;
            background: var(--color-secondary);
            border-radius: var(--radius-full);
            overflow: hidden;
        }

        .fill {
            height: 100%;
            background: #ffc107;
        }

        .review-item {
            background: var(--color-bg-1);
            padding: var(--space-16);
            border-radius: var(--radius-base);
            margin-bottom: var(--space-16);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-12);
        }

        .reviewer-name {
            font-weight: var(--font-weight-semibold);
            color: var(--color-text);
        }

        .review-rating {
            color: #ffc107;
            margin-top: var(--space-4);
        }

        .review-date {
            color: var(--color-text-secondary);
            font-size: var(--font-size-sm);
        }

        .shipping-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--space-24);
        }

        .info-section h4 {
            color: var(--color-primary);
            margin-bottom: var(--space-16);
        }

        .info-section ul {
            list-style: none;
            padding: 0;
        }

        .info-section li {
            margin-bottom: var(--space-8);
            color: var(--color-text-secondary);
        }

        /* Related Products */
        .related-products {
            padding: var(--space-32) 0;
        }

        /* Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .modal-content {
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            max-width: 400px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-20);
            border-bottom: 1px solid var(--color-card-border);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: var(--font-size-2xl);
            cursor: pointer;
            color: var(--color-text-secondary);
        }

        .modal-body {
            padding: var(--space-20);
            text-align: center;
        }

        .success-icon {
            font-size: 4rem;
            color: var(--color-success);
            margin-bottom: var(--space-16);
        }

        .modal-actions {
            display: flex;
            gap: var(--space-12);
            margin-top: var(--space-20);
        }

        /* Discount Timer */
        .discount-timer {
            position: fixed;
            bottom: var(--space-20);
            right: var(--space-20);
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            color: white;
            padding: var(--space-16);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            max-width: 300px;
        }

        .timer-content {
            text-align: center;
        }

        .timer-text h4 {
            margin: 0 0 var(--space-8) 0;
            font-size: var(--font-size-lg);
        }

        .timer-text p {
            margin: 0 0 var(--space-12) 0;
            font-size: var(--font-size-sm);
            opacity: 0.9;
        }

        .countdown {
            display: flex;
            gap: var(--space-8);
            justify-content: center;
        }

        .countdown-item {
            background: rgba(255, 255, 255, 0.2);
            padding: var(--space-8);
            border-radius: var(--radius-base);
            min-width: 50px;
        }

        .countdown-number {
            display: block;
            font-size: var(--font-size-lg);
            font-weight: var(--font-weight-bold);
        }

        .countdown-label {
            display: block;
            font-size: var(--font-size-xs);
            margin-top: var(--space-2);
        }

        .breadcrumb {
            background: var(--color-bg-2);
            padding: var(--space-16) 0;
        }

        .breadcrumb-content {
            display: flex;
            align-items: center;
            gap: var(--space-8);
            font-size: var(--font-size-sm);
        }

        .breadcrumb-content a {
            color: var(--color-primary);
            text-decoration: none;
        }

        .breadcrumb-content i {
            color: var(--color-text-secondary);
            font-size: var(--font-size-xs);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .product-content {
                grid-template-columns: 1fr;
                gap: var(--space-24);
            }

            .product-images {
                position: static;
            }

            .product-actions {
                flex-direction: column;
            }

            .wishlist-btn {
                width: 100%;
            }

            .tabs-nav {
                flex-wrap: wrap;
            }

            .tab-btn {
                flex: none;
                min-width: 50%;
            }

            .rating-overview {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .shipping-info {
                grid-template-columns: 1fr;
            }

            .discount-timer {
                position: relative;
                width: 100%;
                margin: var(--space-16) 0;
            }
        }


          .user-dropdown {
            position: relative;
            display: inline-block;
        }

        .user-profile-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--color-primary);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all var(--duration-fast) var(--ease-standard);
            font-size: var(--font-size-sm);
        }

        .user-profile-btn:hover {
            background: var(--color-primary-hover);
            transform: translateY(-1px);
        }

        .user-profile-btn i {
            font-size: var(--font-size-lg);
        }

        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            padding: 8px 0;
            margin-top: 8px;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all var(--duration-fast) var(--ease-standard);
            z-index: 1000;
        }

        .user-dropdown:hover .user-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown-menu .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: var(--color-text);
            text-decoration: none;
            transition: all var(--duration-fast) var(--ease-standard);
            font-size: var(--font-size-sm);
        }

        .user-dropdown-menu .dropdown-item:hover {
            background: var(--color-secondary);
            color: var(--color-primary);
        }

        .user-dropdown-menu .dropdown-item i {
            width: 16px;
            text-align: center;
        }

        .dropdown-divider {
            height: 1px;
            background: var(--color-border);
            margin: 8px 0;
        }

        .logout-btn {
            color: var(--color-error) !important;
        }

        .logout-btn:hover {
            background: var(--color-error) !important;
            color: white !important;
        }

        /* تصميم قسم المستخدم في الموبايل */
        .mobile-user-section {
            border-top: 1px solid var(--color-border);
            padding-top: 16px;
            margin-top: 16px;
        }

        .mobile-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: var(--color-secondary);
            border-radius: var(--radius-md);
            margin-bottom: 8px;
            color: var(--color-text);
        }

        .mobile-user-info i {
            font-size: var(--font-size-xl);
            color: var(--color-primary);
        }

        .logout-link {
            color: var(--color-error) !important;
        }

        .login-link {
            color: var(--color-primary) !important;
            font-weight: var(--font-weight-semibold);
        }

        /* تحسينات للاستجابة */
        @media (max-width: 768px) {
            .user-dropdown {
                width: 100%;
            }

            .user-profile-btn {
                width: 100%;
                justify-content: center;
            }
        }


        .reviews-section {
    position: relative;
    overflow: hidden;
}

.reviews-container {
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.review-card {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.review-nav-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.review-nav-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.review-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* تصميم متجاوب */
@media (max-width: 1023px) {
    .review-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .review-card {
        flex: 0 0 100%;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .reviews-nav {
        align-self: center;
    }
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #21808d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-container {
  text-align: center;
  color: white;
}

.loading-logo {
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.loading-spinner {
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid white;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* إخفاء شاشة التحميل افتراضياً */
#loading-screen {
  display: none;
}











/* تنسيقات الـ Logo */
.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px; /* ارتفاع الصورة */
    width: auto; /* الحفاظ على نسبة الطول إلى العرض */
    max-width: 150px; /* أقصى عرض للصورة */
    object-fit: contain; /* الحفاظ على نسبة الصورة */
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05); /* تأثير تكبير بسيط عند hover */
}

.logo-text {
    color: #21808d; /* لون النص الأساسي */
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .logo-image {
        height: 35px; /* تصغير الصورة قليلاً على الموبايل */
        max-width: 120px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* تنسيقات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .logo-text {
        font-size: 18px;
    }
}



.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .hero-slide {
        height: 400px;
    }
}

.hero-slide {
    /* إضافة تحسينات للأداء */
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* تحسين التحميل */
.hero-slide:not(.active) {
    display: none;
}


/* تنسيقات الهيدر سلايدر مع الصور الخلفية */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
    text-align: right;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* عناصر التحكم في السلايدر */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* الخلفيات ثلاثية الأبعاد */
.three-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
        padding: 0 20px;
    }
    
    .hero-controls {
        bottom: 20px;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

/* تحسينات إضافية للأداء */
.hero-slide {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-slide:not(.active) {
    pointer-events: none;
}

/* تأثيرات دخول النص */
.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero-slide.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}


/* تلوين نصوص الفوتر */
.footer-heading {
    color: #21808d; /* لون العناوين */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #cccccc; /* لون النص العادي */
}

.footer-links .footer-link {
    color: rgb(253 59 1); /* لون الروابط */
    transition: color 0.3s ease;
}

.footer-links .footer-link:hover {
    color: #21808d; /* لون الروابط عند التمرير */
}

.contact-item {
    color: #cccccc;
}

.payment-text {
    color: #cccccc;
}

.copyright {
    color: #cccccc;
}

/* أنماط زر فيسبوك ماسنجر */
.messenger-chat {
    position: fixed;
    bottom: 90px; /* فوق زر الواتساب */
    left: 24px;
    z-index: 1000;
}

.messenger-btn {
    width: 60px;
    height: 60px;
    background: #0084FF; /* لون فيسبوك ماسنجر */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.messenger-btn:hover {
    transform: scale(1.1);
    background: #0073E6;
}

.messenger-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.messenger-chat:hover .messenger-tooltip {
    opacity: 1;
}

/* تعديل موقع زر الواتساب ليكون أسفل الماسنجر */
.whatsapp-chat {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}


/* شارة الشحن المجاني في قسم معلومات المنتج */
.free-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.free-shipping-badge i {
    font-size: 10px;
}



