/* ==========================================================================
   Lumex E-Commerce Platform - Dynamic Multi-Theme Engine
   Themes:
   1. theme-apple (Default Cupertino Minimalist Light)
   2. theme-dark-gaming (Dark Cyber / Hardware & Gaming Pro)
   3. theme-retail (High-Density Classic Retail / Red Accents)
   4. theme-luxe (Monochrome Minimalist Studio & Editorial)
   ========================================================================== */

/* 1. THEME: APPLE MINIMALIST (Default Light) */
body.theme-apple {
  --apple-canvas: #fbfbfd;
  --apple-surface: #ffffff;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-border-strong: rgba(0, 0, 0, 0.16);
  --apple-divider: rgba(0, 0, 0, 0.06);
  --apple-text: #1d1d1f;
  --apple-text-muted: #86868b;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  background-color: var(--apple-canvas);
  color: var(--apple-text);
}

/* 2. THEME: DARK GAMING / OBSIDIAN PRO */
body.theme-dark-gaming {
  --apple-canvas: #090d16;
  --apple-surface: #111827;
  --apple-border: #1e293b;
  --apple-border-strong: #334155;
  --apple-divider: #1e293b;
  --apple-text: #f8fafc;
  --apple-text-muted: #94a3b8;
  --apple-blue: #06b6d4;
  --apple-blue-hover: #22d3ee;
  --primary: #06b6d4;
  --primary-hover: #22d3ee;
  --primary-light: rgba(6, 182, 212, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  background-color: #090d16 !important;
  color: #f8fafc !important;
}

body.theme-dark-gaming .site-header {
  background-color: rgba(17, 24, 39, 0.92) !important;
  border-bottom: 1px solid #1e293b !important;
}

body.theme-dark-gaming .product-card,
body.theme-dark-gaming .data-card,
body.theme-dark-gaming .stat-card,
body.theme-dark-gaming .modal-box,
body.theme-dark-gaming .site-footer,
body.theme-dark-gaming .admin-sidebar,
body.theme-dark-gaming .admin-topbar,
body.theme-dark-gaming .admin-main-wrap {
  background-color: #111827 !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

body.theme-dark-gaming .product-card:hover {
  border-color: #06b6d4 !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2) !important;
}

body.theme-dark-gaming .form-control,
body.theme-dark-gaming .search-box input,
body.theme-dark-gaming .v-table th,
body.theme-dark-gaming .admin-table th {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.theme-dark-gaming .action-btn {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* 3. THEME: RETAIL MARKETPLACE (Digikala / Amazon style) */
body.theme-retail {
  --apple-canvas: #f2f2f2;
  --apple-surface: #ffffff;
  --apple-border: #e0e0e2;
  --apple-border-strong: #c8c8cb;
  --apple-divider: #eaeaea;
  --apple-text: #23254e;
  --apple-text-muted: #62666d;
  --apple-blue: #ef394e;
  --apple-blue-hover: #d32f42;
  --primary: #ef394e;
  --primary-hover: #d32f42;
  --primary-light: #fef0f2;
  background-color: #f2f2f2 !important;
}

body.theme-retail .product-card {
  border-radius: 8px !important;
  border: 1px solid #e0e0e2 !important;
}

body.theme-retail .price-current {
  color: #ef394e !important;
  font-weight: 900 !important;
}

body.theme-retail .discount-badge {
  background: #ef394e !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

/* 4. THEME: MONOCHROME LUXE (Editorial Studio) */
body.theme-luxe {
  --apple-canvas: #fcfcfc;
  --apple-surface: #ffffff;
  --apple-border: #18181b;
  --apple-border-strong: #000000;
  --apple-divider: #e4e4e7;
  --apple-text: #09090b;
  --apple-text-muted: #71717a;
  --apple-blue: #18181b;
  --apple-blue-hover: #000000;
  --primary: #18181b;
  --primary-hover: #000000;
  --primary-light: #f4f4f5;
  background-color: #fcfcfc !important;
}

body.theme-luxe .logo-icon {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 2px !important;
}

body.theme-luxe .hero-btn,
body.theme-luxe .primary-buy-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

body.theme-luxe .product-card {
  border-radius: 4px !important;
  border: 1px solid #18181b !important;
  box-shadow: none !important;
}

/* RADIUS PRESETS */
body[data-radius="sharp"] .product-card,
body[data-radius="sharp"] .data-card,
body[data-radius="sharp"] .form-control,
body[data-radius="sharp"] .hero-btn,
body[data-radius="sharp"] .action-btn,
body[data-radius="sharp"] .modal-box {
  border-radius: 3px !important;
}

body[data-radius="rounded"] .product-card,
body[data-radius="rounded"] .data-card,
body[data-radius="rounded"] .form-control,
body[data-radius="rounded"] .hero-btn,
body[data-radius="rounded"] .action-btn,
body[data-radius="rounded"] .modal-box {
  border-radius: 24px !important;
}

/* SHADOW PRESETS */
body[data-shadow="flat"] .product-card,
body[data-shadow="flat"] .data-card,
body[data-shadow="flat"] .stat-card {
  box-shadow: none !important;
  border: 1px solid var(--apple-border-strong) !important;
}

body[data-shadow="elevated"] .product-card,
body[data-shadow="elevated"] .data-card,
body[data-shadow="elevated"] .stat-card {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12) !important;
}
