/* ==========================================
   1. المتغيرات ونظام التصميم (DESIGN TOKENS)
   ========================================== */
:root {
  --bg-color: #07080d;
  --surface-1: #0e1017;
  --surface-2: #141722;
  --surface-3: #1b2030;
  --card-bg: #0f1119;
  --card-border: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 242, 255, 0.35);

  --accent-neon: #00e5ff;
  --accent-purple: #a855f7;
  --accent-glow: rgba(0, 229, 255, 0.28);
  --purple-glow: rgba(168, 85, 247, 0.28);

  --text-main: #f3f5f9;
  --text-muted: #94a3b8;
  --danger: #ff476f;
  --success: #10b981;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-elevated: 0 24px 60px -15px rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] {
  --bg-color: #f4f7fb;
  --surface-1: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e2e8f0;
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.09);
  --border-color: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(2, 132, 199, 0.45);

  --accent-neon: #0284c7;
  --accent-purple: #7c3aed;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --purple-glow: rgba(124, 58, 237, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --danger: #e11d48;
  --success: #059669;
  --warning: #d97706;

  --shadow-card: 0 10px 26px -12px rgba(15, 23, 42, 0.14);
  --shadow-elevated: 0 22px 50px -15px rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block !important; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  padding-bottom: 40px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0, 229, 255, 0.07) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--accent-neon);
  outline-offset: 2px;
}

.tabular-nums,
.product-price,
.old-price,
.countdown-timer,
.cart-total-row,
.badge {
  font-variant-numeric: tabular-nums;
}

.price-ltr,
.product-price,
.old-price,
.bundle-footer-row .product-price,
.detail-price-box .product-price,
.detail-price-box .old-price {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }

/* ==========================================
   2. الإشعارات (TOAST NOTIFICATIONS)
   ========================================== */
#toastContainer {
  position: fixed;
  top: 20px;
  inset-inline: 0;
  margin: 0 auto;
  align-items: center;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 92%;
  max-width: 420px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(15, 17, 25, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-main);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-msg.error {
  border-color: rgba(255, 71, 111, 0.65);
  color: #fda4af;
}

.toast-msg.success {
  border-color: rgba(16, 185, 129, 0.65);
  color: #6ee7b7;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================
   3. الهيدر وشريط الإعلانات والبحث (HEADER & ANNOUNCEMENT)
   ========================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(168, 85, 247, 0.16), rgba(0, 229, 255, 0.14));
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 600;
}

.top-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-announcement-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.top-announcement-msg svg {
  color: var(--accent-neon);
  flex-shrink: 0;
}

.top-announcement-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-announcement-timer {
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-neon);
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

.top-announcement-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}

.top-announcement-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-elevated);
  z-index: 1250;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.live-search-item:hover {
  background: var(--surface-2);
}

.live-search-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
}

.live-search-meta {
  flex: 1;
  min-width: 0;
}

.live-search-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-search-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-neon);
  flex-shrink: 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.container,
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 20px;
}

.container {
  padding-block: 24px;
}

/* إصلاح: تطبيق backdrop-filter على الديسكتوب فقط لمنع حبس قائمة الموبايل Fixed داخل ارتفاع الهيدر */
.main-header {
  background: rgba(7, 8, 13, 0.94);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .main-header {
    background: rgba(7, 8, 13, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

.desktop-header-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 12px;
  gap: 20px;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  flex-shrink: 0;
}

.max-glow {
  color: var(--accent-neon);
  text-shadow: 0 0 18px var(--accent-glow);
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}

.mobile-menu-close {
  display: none;
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
}

.global-search-container {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--text-muted);
  display: inline-flex;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  padding-inline-start: 42px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  background: var(--surface-2);
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-header-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-icon,
.currency-dropdown,
.share-store-btn {
  background: var(--surface-1);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.icon-btn,
.cart-trigger-btn {
  width: 38px;
  padding: 0;
}

.action-icon:hover,
.currency-dropdown:hover,
.share-store-btn:hover {
  border-color: rgba(0, 229, 255, 0.5);
  background: var(--surface-2);
}

.avatar-img-nav {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-neon);
}

.nav-badge-dot {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface-1), 0 0 8px var(--danger);
}

.badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: var(--accent-neon);
  color: #05070b;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.45);
}

.admin-trigger-btn {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--purple-glow);
}

.header-bottom {
  padding-block: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-bottom::-webkit-scrollbar { display: none; }

.top-nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.08);
}

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.mobile-menu-backdrop.active {
  display: block;
}

/* إصلاح: ترتيب أنيق للهيدر على مقاس التابلت 901px–1120px */
@media (max-width: 1120px) and (min-width: 901px) {
  .header-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .global-search-container {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==========================================
   4. العرض العام (VIEWS)
   ========================================== */
.view-section {
  display: none;
  animation: fadeInView 0.3s ease;
}

.view-section.active-view {
  display: block;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   5. الهيرو والسلايدر (HERO & SLIDER SHOWCASE)
   ========================================== */
.hero-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

.hero-showcase-grid.has-slider {
  grid-template-columns: 1.05fr 1.2fr;
}

.hero-banner-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 50%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.12), transparent 55%),
    var(--surface-1);
  padding: 34px 32px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-neon);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 12px;
  color: #fff;
}

.hero-title span {
  color: var(--accent-neon);
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  background: linear-gradient(135deg, var(--accent-neon), #38bdf8);
  color: #05070b;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.4);
}

.hero-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-stat-item .stat-icon {
  color: var(--accent-neon);
  font-size: 15px;
}

.promo-slider-container {
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  background: var(--surface-1);
  direction: ltr;
  touch-action: pan-y;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at center, #111524 0%, #07080d 100%);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slider-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 13, 0.45) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(7, 8, 13, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 99px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.25s, background-color 0.25s;
  border: none;
}

.slider-dot.active {
  background: var(--accent-neon);
  width: 24px;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 8, 13, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
}

.slider-nav-btn:hover {
  background: var(--accent-neon);
  color: #05070b;
  border-color: var(--accent-neon);
}

.slider-nav-btn.prev { left: 12px; }
.slider-nav-btn.next { right: 12px; }

/* ==========================================
   6. الأقسام وعروض الفلاش (CATEGORIES & FLASH SALE)
   ========================================== */
.categories-grid-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.categories-grid-bar::-webkit-scrollbar { display: none; }

.category-box {
  flex: 0 0 auto;
  background: var(--surface-1);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-icon {
  font-size: 16px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-neon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 99px;
}

.category-box.active .category-count {
  background: rgba(0, 229, 255, 0.16);
  color: var(--accent-neon);
}

.category-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.category-box:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.category-box.active {
  border-color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.1);
}

.category-box.active .category-icon {
  background: rgba(0, 229, 255, 0.18);
}

.category-box.active .category-name {
  color: var(--accent-neon);
}

.platform-filters-wrapper {
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.platform-filters-wrapper::-webkit-scrollbar { display: none; }

.platform-filters-list {
  display: inline-flex;
  gap: 8px;
}

.platform-filter-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.platform-filter-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.4);
  transition: 0.2s;
}

.platform-filter-btn:hover,
.platform-filter-btn.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.platform-filter-btn:hover img,
.platform-filter-btn.active img {
  filter: none;
}

.flash-sale-banner {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.22), rgba(0, 229, 255, 0.22));
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#flashBannerText {
  font-size: 14.5px;
  font-weight: 700;
}

.countdown-timer {
  background: rgba(7, 8, 13, 0.75);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-neon);
  border: 1px solid var(--border-color);
}

/* ==========================================
   7. شبكة المنتجات والكروت (PRODUCT GRID 2.0)
   ========================================== */
.section-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 20px;
  color: #fff;
  border-inline-start: 3px solid var(--accent-neon);
  padding-inline-start: 10px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.sort-dropdown {
  width: auto;
  min-width: 170px;
  padding: 8px 12px;
  border-radius: 10px;
}

.storefront-rows-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 32px;
}

.storefront-row-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.storefront-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.storefront-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.storefront-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.storefront-row-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.view-all-row-btn {
  background: var(--surface-1);
  color: var(--accent-neon);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.view-all-row-btn:hover {
  border-color: var(--accent-neon);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.storefront-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  min-height: 200px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 18px 36px -14px rgba(0, 229, 255, 0.2), 0 14px 28px -12px rgba(0, 0, 0, 0.72);
}

.product-card-top {
  position: relative;
}

.product-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}

.wishlist-icon-btn {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(7, 8, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s, opacity 0.2s;
  backdrop-filter: blur(8px);
}

.wishlist-icon-btn:hover {
  border-color: var(--danger);
  transform: scale(1.08);
}

.wishlist-icon-btn.active {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(255, 71, 111, 0.22);
}

.product-badge {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-neon);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 2px 7px;
  font-size: 10.5px;
  border-radius: 6px;
  font-weight: 700;
}

.product-discount-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: linear-gradient(135deg, #ff476f, #f97316);
  color: #fff;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 99px;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(255, 71, 111, 0.35);
}

.product-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  background: var(--surface-2);
  border-radius: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.product-img:has(img) {
  padding: 0;
}

.product-img::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(to top, rgba(15, 17, 25, 0.65), transparent);
  pointer-events: none;
  z-index: 1;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.product-platform-chip,
.product-bundle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.product-platform-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-transform: capitalize;
}

.product-bundle-pill {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

.product-title {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.42;
  min-height: 2.84em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.product-live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.product-rating {
  font-size: 11.5px;
  color: var(--warning);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.product-new-tag {
  color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10.5px;
}

.product-price-box {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 19px;
  color: var(--accent-neon);
  font-weight: 800;
}

.old-price {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.buy-btn {
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
  padding: 10px 14px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.buy-btn:hover:not(:disabled) {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

.buy-btn:disabled,
.out-of-stock-badge {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border-color) !important;
  cursor: not-allowed;
  opacity: 0.65;
}

.empty-products-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  background: var(--surface-1);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 15px;
}

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.promo-banners-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-bottom: 34px;
}

.promo-bento-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.promo-banner-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.promo-bento-main {
  min-height: 240px;
}

.promo-kicker {
  display: inline-block;
  width: max-content;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-neon);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-banner-1 { background: linear-gradient(135deg, #0d0f1a, #1d1233); }
.promo-banner-2 { background: linear-gradient(135deg, #0d0f1a, #092433); }
.promo-banner-3 { background: linear-gradient(135deg, #0d0f1a, #171a26); }

.promo-title-1 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.promo-highlight-1 { color: var(--accent-neon); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin-bottom: 8px; }
.promo-title-2 { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.promo-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.promo-action-btn { width: max-content; padding: 10px 22px; display: inline-flex; align-items: center; gap: 6px; }
.promo-outline-white { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }

.how-it-works-section {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
}

.how-header {
  text-align: center;
  margin-bottom: 22px;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how-step-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.how-step-num {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(0, 229, 255, 0.22);
}

.how-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.how-step-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.how-step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.sticky-mobile-buy-bar {
  display: none;
}

.variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.variant-btn-price {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 7px;
  border-radius: 99px;
  direction: ltr;
  unicode-bidi: isolate;
}

.variant-btn.active .variant-btn-price {
  background: rgba(0, 229, 255, 0.24);
  color: #ffffff;
}

html[data-theme="light"] .variant-btn.active .variant-btn-price {
  background: rgba(0, 145, 178, 0.16);
  color: #025f73;
}

/* ==========================================
   8. صفحة تفاصيل المنتج (PRODUCT DETAILS)
   ========================================== */
.details-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.back-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.back-btn:hover {
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--accent-neon);
}

.product-details-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.details-main-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}

.details-left-col {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.details-right-col {
  flex: 1.35;
  min-width: 300px;
  position: relative;
}

.interactive-main-box {
  position: relative;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 360px;
  width: 100%;
}

.interactive-main-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.trailer-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}

.trailer-wrapper iframe { width: 100%; height: 100%; border: none; }

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 8, 13, 0.72);
  color: #fff;
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  backdrop-filter: blur(6px);
}

.nav-arrow:hover {
  background: var(--accent-neon);
  color: #05070b;
  border-color: var(--accent-neon);
}

.left-arrow { inset-inline-start: 12px; }
.right-arrow { inset-inline-end: 12px; }
html[dir="rtl"] .left-arrow,
html[dir="rtl"] .right-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.gallery-wrapper { position: relative; width: 100%; }

.gallery-slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  background: var(--bg-color);
  padding: 3px;
  opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active-thumb {
  opacity: 1;
  border-color: var(--accent-neon);
}

.wishlist-btn-large {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 19px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.platform-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.platform-logo-img { width: 22px; height: 22px; object-fit: contain; }
.platform-name-txt { color: var(--text-muted); font-size: 13px; font-weight: 700; }

.title-share-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-inline-end: 52px;
  margin-bottom: 10px;
}

.details-title {
  font-size: clamp(22px, 2.5vw, 30px);
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
}

.share-btn-large {
  background: var(--surface-1);
  color: var(--accent-neon);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.badge-inline {
  position: relative;
  inset: auto;
  display: inline-block;
  margin-bottom: 12px;
}

.detail-price-box {
  margin-bottom: 16px;
}

.detail-price-box .product-price { font-size: 28px; }
.detail-price-box .old-price { font-size: 16px; }

.variants-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}

.variants-flex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-btn {
  background: var(--surface-1);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.variant-btn:hover {
  border-color: var(--accent-neon);
}

.variant-btn.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-neon);
  border-color: var(--accent-neon);
}

.bundle-offer-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 229, 255, 0.08) 100%);
  border: 1px dashed rgba(0, 229, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.bundle-badge-tag {
  background: var(--accent-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.bundle-items-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  background: rgba(7, 8, 13, 0.65);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.bundle-prod-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bundle-prod-mini img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.bundle-prod-mini-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-plus-sign { font-size: 18px; font-weight: 800; color: var(--accent-neon); }

.bundle-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-info-container {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  text-align: center;
}

.quick-info-box.bordered {
  border-inline-start: 1px solid var(--border-color);
  border-inline-end: 1px solid var(--border-color);
}

.qi-icon { font-size: 17px; margin-bottom: 4px; }
.qi-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.qi-val { font-size: 13px; color: #fff; font-weight: 700; }

.delivery-stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.stock-status-txt { font-weight: 700; font-size: 14px; }

.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-qty-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.action-btns-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-flex-1 {
  flex: 1;
  padding: 13px 16px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-now-accent {
  background: linear-gradient(135deg, var(--accent-neon), #38bdf8);
  color: #05070b;
  border-color: transparent;
  font-weight: 800;
}

.buy-now-accent:hover:not(:disabled) {
  background: #67e8f9;
  color: #05070b;
}

.trust-guarantee-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.details-desc {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  border-inline-start: 3px solid var(--accent-purple);
}

.req-container {
  background: var(--surface-1);
  padding: 16px;
  border-radius: var(--radius-md);
  border-inline-start: 3px solid var(--accent-neon);
  margin-bottom: 18px;
}

.req-title { color: var(--accent-neon); margin-bottom: 8px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.req-content { font-size: 13.5px; color: var(--text-main); line-height: 1.75; }

.faq-container { margin-bottom: 18px; }
.faq-section-heading { color: var(--accent-neon); margin-bottom: 10px; font-size: 15px; }

.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: start;
  background: transparent;
  color: #fff;
  border: none;
  padding: 13px 15px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: background-color 0.2s, color 0.2s;
}

.faq-question:hover,
.faq-question.active {
  color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.05);
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-answer.open {
  padding: 13px 15px;
  max-height: 500px;
  border-top: 1px dashed var(--border-color);
}

.sub-section-title {
  color: var(--accent-neon);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 800;
}

.related-section { width: 100%; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; min-height: unset; margin-bottom: 0; }

.reviews-section {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.add-review-box {
  background: var(--surface-1);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.add-review-heading { font-size: 14px; margin-bottom: 10px; color: var(--text-muted); }

.interactive-stars {
  display: inline-flex;
  gap: 8px;
  font-size: 22px;
  cursor: pointer;
  direction: ltr;
}

#interactiveStars .star { filter: grayscale(100%); cursor: pointer; transition: transform 0.2s; user-select: none; }
#interactiveStars .star:hover { transform: scale(1.2); }
#interactiveStars .star.active { filter: grayscale(0%); transform: scale(1.08); }

.review-textarea {
  width: 100%;
  background: var(--bg-color);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake-alert {
  animation: shakeAlert 0.35s ease;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

/* ==========================================
   9. النوافذ المنبثقة ودرج السلة (MODALS & CART DRAWER)
   ========================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 16px;
}

.modal-content {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-elevated);
  padding: 26px;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content.large-modal { max-width: 860px; }

.modal-content h3 {
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close-x {
  flex: 0;
  padding: 4px 10px;
  min-width: 34px;
}

.cart-drawer-modal {
  padding: 0;
  justify-content: flex-end;
  align-items: stretch;
}

.cart-drawer-content {
  max-width: 420px;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.25s ease-out;
}

@keyframes drawerSlideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

html[dir="ltr"] .cart-drawer-content {
  animation-name: drawerSlideInLtr;
}

@keyframes drawerSlideInLtr {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-inline-end: 2px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-color);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; color: var(--text-main); }
.cart-item-price { color: var(--accent-neon); font-size: 13.5px; font-weight: 700; direction: ltr; unicode-bidi: isolate; display: inline-block; }

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
.qty-val { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; }

.remove-cart-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-cart-btn:hover {
  border-color: var(--danger);
  background: rgba(255, 71, 111, 0.12);
}

.cart-cross-sell-section {
  background: rgba(0, 229, 255, 0.04);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.cross-sell-heading { font-size: 12.5px; color: var(--accent-neon); margin-bottom: 8px; }
.cart-cross-sell-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }

.cart-drawer-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--accent-neon);
  margin-bottom: 12px;
}

#cartTotalPriceDisplay {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); border-color: var(--accent-neon); }
  100% { transform: scale(1); }
}

.cart-bounce { animation: cartBounce 0.35s ease; }

.form-group { margin-bottom: 16px; width: 100%; }
.form-group label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-color);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-neon);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  outline: none;
}

.submit-btn {
  background: var(--accent-neon);
  color: #05070b;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover:not(:disabled) {
  background: #67e8f9;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cancel-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-weight: 600;
  font-size: 13.5px;
}

.cancel-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.google-auth-btn {
  width: 100%;
  background: #fff;
  color: #111827;
  border: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s;
}

.google-auth-btn:hover:not(:disabled) { background: #f3f4f6; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-link-center { color: var(--accent-neon); display: block; text-align: center; margin-top: 10px; font-size: 13px; text-decoration: none; }
.auth-switch-text { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.auth-accent-link { color: var(--accent-neon); text-decoration: none; font-weight: 700; }
.auth-desc-muted { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.auth-text-btn { background: transparent; border: none; color: var(--accent-neon); width: 100%; margin-top: 10px; cursor: pointer; font-size: 13px; }
.auth-text-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.otp-msg-display { font-size: 13px; color: var(--success); margin-bottom: 14px; text-align: center; line-height: 1.5; }
.otp-input { text-align: center; font-size: 20px; letter-spacing: 5px; font-weight: 800; }
.recovery-pass-input { border-color: var(--danger) !important; }

.account-welcome-line { margin-bottom: 16px; font-size: 15px; color: var(--accent-neon); }
.user-tabs-container { display: flex; gap: 10px; margin-bottom: 15px; }
.user-orders-scroll { max-height: 360px; overflow-y: auto; }
.wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; min-height: 100px; }
.logout-danger-btn { width: 100%; margin-top: 14px; background: var(--danger); color: #fff; border: none; }
.logout-danger-btn:hover { color: #fff; opacity: 0.9; }

.order-tracker { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px 0; position: relative; padding: 0 10px; }
.order-tracker::before { content: ''; position: absolute; top: 50%; left: 20px; right: 20px; height: 2px; background: var(--border-color); z-index: 1; transform: translateY(-50%); }
.tracker-step { position: relative; z-index: 2; background: var(--bg-color); border: 2px solid var(--border-color); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); }
.tracker-step.active { border-color: var(--warning); color: var(--warning); }
.tracker-step.completed { background: var(--success); border-color: var(--success); color: #05070b; }
.tracker-step.cancelled { background: var(--danger); border-color: var(--danger); color: #fff; }
.tracker-label { position: absolute; top: 34px; font-size: 11px; white-space: nowrap; color: var(--text-muted); font-weight: 700; }
.tracker-step.active .tracker-label { color: var(--warning); }
.tracker-step.completed .tracker-label { color: var(--success); }
.tracker-step.cancelled .tracker-label { color: var(--danger); }

.copy-code-btn {
  background: var(--success);
  color: #05070b;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-modal-content { max-width: 540px; }

.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.checkout-step.active { color: var(--accent-neon); }
.checkout-step.active .step-num { background: var(--accent-neon); color: #05070b; border-color: var(--accent-neon); }
.checkout-step.done { color: var(--success); }
.checkout-step.done .step-num { background: var(--success); color: #05070b; border-color: var(--success); }

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
}

.checkout-summary-box { opacity: 0.95; color: var(--accent-neon) !important; font-weight: 700; resize: none; }
.promo-input-row { display: flex; gap: 8px; }
.promo-input-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
}
.promo-input-row input:focus {
  border-color: var(--accent-neon);
  outline: none;
}
.promo-input-row button { flex: 0 0 auto; padding-inline: 16px; }
.promo-msg-small { font-size: 12px; display: block; margin-top: 5px; }

.checkout-mini-total {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-neon);
}

.crypto-network-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 14px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--accent-neon);
}

.payment-details-box {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.payment-transfer-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.payment-address-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.payment-address { font-weight: 700; color: var(--accent-neon); font-size: 13.5px; word-break: break-all; }
.copy-btn { padding: 6px 12px; font-size: 12px; flex: 0 0 auto; }

.grid-2-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

.receipt-dropzone {
  border: 1.5px dashed rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  padding: 12px;
  background: rgba(0, 229, 255, 0.02);
  transition: border-color 0.2s, background-color 0.2s;
}

.receipt-dropzone.dragover {
  border-color: var(--accent-neon);
  background: rgba(0, 229, 255, 0.08);
}

.dropzone-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.file-input-styled { padding: 8px; background: var(--bg-color); color: #fff; border: 1px solid var(--border-color); border-radius: 8px; width: 100%; }
.receipt-preview-img { width: 100%; max-height: 180px; object-fit: contain; margin-top: 10px; border-radius: 8px; border: 1px solid var(--border-color); }

.modal-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-flex-grow { flex: 1; min-width: 130px; }

.whatsapp-checkout-btn {
  flex-basis: 100%;
  background: #25d366;
  color: #05070b;
  border: none;
  font-weight: 800;
}

.whatsapp-checkout-btn:hover:not(:disabled) { background: #34e073; }

.policy-modal-body { font-size: 14px; color: var(--text-main); line-height: 1.8; }
.policy-modal-body h4 { color: var(--accent-neon); margin: 12px 0 6px; font-size: 15px; }
.policy-modal-body p { color: var(--text-muted); margin-bottom: 8px; }

.confirm-dialog-content { max-width: 400px; }
.confirm-dialog-msg { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 18px; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5, 7, 11, 0.3);
  border-top-color: #05070b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-wrapper { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 20px; background: rgba(0, 0, 0, 0.65); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; z-index: 2500; }
.lightbox-img { max-width: 92%; max-height: 88%; object-fit: contain; border-radius: 10px; }

/* ==========================================
   10. لوحة تحكم الإدارة (ADMIN PANEL)
   ========================================== */
.admin-view-wrapper {
  background: var(--card-bg);
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  margin-top: 16px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; }

.tab-btn {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(168, 85, 247, 0.14);
  color: #e9d5ff;
  border-color: var(--accent-purple);
}

.tab-content { display: none; animation: fadeInView 0.25s ease; }
.tab-content.active-tab { display: block; }

.admin-section {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.admin-section h4 { color: var(--accent-neon); margin-bottom: 14px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }

.admin-stat-card {
  background: var(--bg-color);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.admin-alert-box {
  margin-top: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
}

.admin-search-bar {
  width: 100%;
  background: var(--bg-color);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.admin-section-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.admin-sub-section { background: var(--surface-1); border: 1px solid var(--border-color); padding: 16px; border-radius: var(--radius-md); }
.admin-sub-section h5 { color: var(--accent-neon); margin-bottom: 12px; font-size: 14px; border-bottom: 1px dashed var(--border-color); padding-bottom: 8px; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--bg-color); transition: .3s; border-radius: 24px; border: 1px solid var(--border-color); }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: var(--text-muted); transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: rgba(0, 229, 255, 0.16); border-color: var(--accent-neon); }
input:checked + .slider:before { transform: translateX(20px); background-color: var(--accent-neon); }
html[dir="rtl"] input:checked + .slider:before { transform: translateX(-20px); }
.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }

.image-preview-box { width: 100%; height: 120px; background: var(--bg-color); border: 1px dashed var(--border-color); border-radius: 8px; margin-top: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gallery-preview-item { width: 76px; height: 76px; position: relative; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.delete-img-btn { position: absolute; top: -6px; inset-inline-end: -6px; background: var(--danger); color: #fff; border: none; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.admin-item-row { background: var(--bg-color); border: 1px solid var(--border-color); padding: 14px; border-radius: 10px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.delete-btn { background: rgba(255, 71, 111, 0.12); color: var(--danger); border: 1px solid rgba(255, 71, 111, 0.45); padding: 7px 13px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 12.5px; }
.delete-btn:hover { background: var(--danger); color: #fff; }

/* ==========================================
   11. الترقيم، الواتساب، والفوتر
   ========================================== */
.pagination-container { display: flex; justify-content: center; gap: 8px; margin: 16px 0 32px; flex-wrap: wrap; }
.pagination-container button { background: var(--surface-1); color: var(--text-main); border: 1px solid var(--border-color); min-width: 38px; height: 38px; border-radius: 9px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.pagination-container button:hover:not(:disabled) { border-color: var(--accent-neon); color: var(--accent-neon); }
.pagination-container button.active-page { background: var(--accent-neon); color: #05070b; border-color: var(--accent-neon); }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  background: #25d366;
  color: #05070b;
  padding: 11px 20px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 900;
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: translateY(-3px); }

.footer-container {
  background: var(--surface-1);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 22px;
  margin-top: 48px;
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  text-align: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo { margin-bottom: 10px; }
.footer-brand-desc { color: var(--text-muted); font-size: 13px; line-height: 1.65; max-width: 310px; }
.footer-col-title { color: var(--text-main); font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.footer-links-col { display: flex; flex-direction: column; gap: 9px; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; }
.footer-link:hover { color: var(--accent-neon); }

.footer-payment-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.payment-pill {
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.footer-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-slogan { color: var(--accent-neon); font-weight: 700; }

/* ==========================================
   11.5 تحسينات الوضع النهاري (LIGHT MODE POLISH)
   ========================================== */
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .logo,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .details-title,
html[data-theme="light"] .modal-content h3,
html[data-theme="light"] .mobile-menu-btn,
html[data-theme="light"] .section-title {
  color: var(--text-main);
}

html[data-theme="light"] .hero-banner-box {
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.1), transparent 55%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.1), transparent 55%),
    #ffffff;
}

html[data-theme="light"] .hero-btn {
  color: #fff;
}

html[data-theme="light"] .promo-banner-1 { background: linear-gradient(135deg, #ffffff, #f3e8ff); }
html[data-theme="light"] .promo-banner-2 { background: linear-gradient(135deg, #ffffff, #e0f2fe); }
html[data-theme="light"] .promo-banner-3 { background: linear-gradient(135deg, #ffffff, #f1f5f9); }
html[data-theme="light"] .promo-title-1,
html[data-theme="light"] .promo-title-2,
html[data-theme="light"] .promo-outline-white { color: var(--text-main); border-color: var(--border-color); }

html[data-theme="light"] .buy-btn {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.35);
}

html[data-theme="light"] .buy-btn:hover:not(:disabled) {
  background: var(--accent-purple);
  color: #fff;
}

html[data-theme="light"] .buy-now-accent {
  background: var(--accent-neon);
  color: #fff;
}

html[data-theme="light"] .product-img::after {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.25), transparent);
}

html[data-theme="light"] .product-platform-chip,
html[data-theme="light"] .category-icon,
html[data-theme="light"] .category-count {
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .product-bundle-pill {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

html[data-theme="light"] .toast-msg {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
}

html[data-theme="light"] .toast-msg.error { color: #be123c; }
html[data-theme="light"] .toast-msg.success { color: #047857; }

html[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}

/* ==========================================
   12. استجابة الموبايل (MOBILE RESPONSIVE)
   ========================================== */
@media (max-width: 1050px) {
  .storefront-row-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-showcase-grid.has-slider {
    grid-template-columns: 1fr;
  }
  .promo-banners-bento {
    grid-template-columns: 1fr;
  }
  .how-steps-grid {
    grid-template-columns: 1fr;
  }
  .details-left-col {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-header-wrapper { display: none; }
  .desktop-header-wrapper.show-mobile-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100dvh;
    inset-inline-start: 0;
    width: min(86vw, 360px);
    background: var(--surface-1);
    border-inline-end: 1px solid var(--border-color);
    z-index: 1001;
    overflow-y: auto;
    padding: 16px;
  }
  .desktop-header-wrapper.show-mobile-menu .header-top {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 14px;
  }
  .desktop-header-wrapper.show-mobile-menu .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .desktop-header-wrapper.show-mobile-menu .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .desktop-header-wrapper.show-mobile-menu .header-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 14px;
    padding-top: 14px;
  }
  .desktop-header-wrapper.show-mobile-menu .top-nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .mobile-header-wrapper {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }

  .mobile-menu-btn {
    background: var(--surface-1);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-header-actions { display: flex; gap: 8px; align-items: center; }
  .mobile-logo { font-size: 20px; }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 16, 23, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px;
    z-index: 997;
  }

  .bottom-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }

  .bottom-nav-item .icon { font-size: 18px; display: inline-flex; }
  .bottom-nav-item.active { color: var(--accent-neon); }

  .sticky-mobile-buy-bar {
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    z-index: 994;
    background: var(--surface-1);
    border-top: 1px solid var(--border-strong);
    padding: 10px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }
  .sticky-mobile-buy-bar.visible { display: flex; }
  .sticky-bar-info { min-width: 0; flex: 1; }
  .sticky-bar-title { font-size: 12px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-bar-price { font-size: 15px; font-weight: 800; color: var(--accent-neon); direction: ltr; unicode-bidi: isolate; display: inline-block; }
  .sticky-bar-btn { width: auto !important; padding: 9px 16px !important; flex-shrink: 0; }

  body { padding-bottom: 84px; }
  .whatsapp-float { bottom: 72px; inset-inline-end: 12px; padding: 8px 13px; font-size: 12px; transition: bottom 0.2s ease, transform 0.2s ease; }
  body.sticky-buy-active .whatsapp-float { bottom: 130px; }
  .hero-banner-box { padding: 24px 18px; }
  .product-details-container { padding: 18px; }
  .interactive-main-box { height: 250px; }
}

@media (max-width: 768px) {
  .categories-grid-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .storefront-row-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .storefront-row-grid::-webkit-scrollbar { display: none; }
  .storefront-row-grid .product-card {
    flex: 0 0 62vw;
    max-width: 235px;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .container, .container-wide { padding-inline: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-card-body { padding: 10px 10px 12px; }
  .product-img { aspect-ratio: 1 / 1; }
  .product-title { font-size: 12.5px; }
  .product-price { font-size: 15.5px; }
  .buy-btn { padding: 8px 10px; font-size: 12px; }
  .modal-content { padding: 18px; }
  .bundle-items-row { flex-direction: column; align-items: stretch; }
  .bundle-plus-sign { text-align: center; }
  .action-btns-row { flex-direction: column; }
  .footer-grid-4 { grid-template-columns: 1fr; gap: 20px; }
}
