/* ===== Home page (index) ===== */
/* Hero — منظم واحترافي: شبكة تباعد 8px، تسلسل واضح، تلميع */
.home-hero-wrap {
  position: relative;
  background: center center / cover no-repeat url('/assets/img/a194aa11-e095-4286-b063-68613babbfd1.png');
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(124,58,237,0.18);
}
.home-hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(18,16,30,0.94) 100%);
  z-index: 0;
}
.home-hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 45%, rgba(124,58,237,0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.home-hero {
  text-align: center;
  padding: 24px 20px 32px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-family: inherit;
}
.home-hero .hero-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(124,58,237,0.25));
  transition: transform 0.2s ease;
}
.home-hero .hero-logo:hover { transform: scale(1.03); }
.home-hero h1 {
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #f3e8ff;
  position: relative;
  padding-bottom: 10px;
}
.home-hero h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 1px;
  opacity: 0.9;
}
.home-hero .hero-tagline {
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
/* بحث بارز في الهيرو — مخفي على الموبايل (شريط البحث في الهيدر فقط) */
.hero-search-mobile-wrap { display: none; }
@media (max-width: 768px) {
  .hero-search-mobile-wrap { display: none !important; }
}
@media (min-width: 769px) {
  .hero-search-mobile-wrap { display: none; }
}
/* احتفظ بتنسيقات بحث الهيرو للديسكتوب إن وُجد استخدام آخر */
@media (max-width: 768px) {
  .hero-search-mobile-input {
    width: 100%;
    padding: 14px 18px 14px 44px;
    font-size: 1rem;
    border-radius: 14px;
    border: 2px solid rgba(124,58,237,0.35);
    background: rgba(26,24,38,0.9);
    color: #e9d5ff;
    box-sizing: border-box;
    min-height: 48px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .hero-search-mobile-input::placeholder { color: #94a3b8; }
  .hero-search-mobile-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.2);
  }
  .hero-search-mobile-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 1.1rem;
    pointer-events: none;
  }
  [dir="rtl"] .hero-search-mobile-icon { right: auto; left: 16px; }
  .hero-search-mobile-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(28,26,42,0.98);
    border: 2px solid rgba(124,58,237,0.3);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    z-index: 20;
    display: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-search-mobile-results div {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 44px;
  }
  .hero-search-mobile-results div:last-child { border-bottom: none; }
  .hero-search-mobile-results div:hover { background: rgba(124,58,237,0.2); }
  body.theme-light .hero-search-mobile-input { background: #fff; color: #1a1a1a; border-color: rgba(124,58,237,0.3); }
  body.theme-light .hero-search-mobile-input::placeholder { color: #64748b; }
  body.theme-light .hero-search-mobile-results { background: #fff; border-color: rgba(124,58,237,0.25); }
  body.theme-light .hero-search-mobile-results div { color: #334155; border-bottom-color: rgba(0,0,0,0.06); }
  body.theme-light .hero-search-mobile-results div:hover { background: rgba(124,58,237,0.1); }
}
.home-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.home-hero .btn-hero {
  padding: 10px 18px;
  font-size: 0.875rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.home-hero .btn-hero-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
.home-hero .btn-hero-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.home-hero .btn-hero-secondary {
  background: rgba(255,255,255,0.06);
  color: #e9d5ff;
  border: 1px solid rgba(124,58,237,0.35);
}
.home-hero .btn-hero-secondary:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 2px 12px rgba(124,58,237,0.2);
  transform: translateY(-1px);
}
/* Flash badge — مدمج: أصغر حجماً وتباعداً */
.home-hero .flash-badge {
  margin-top: 20px;
  padding: 12px 16px 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(26,24,38,0.97) 0%, rgba(20,18,32,0.98) 100%);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  animation: flash-badge-shine 10s ease-in-out infinite;
}
.home-hero .flash-badge:hover { border-color: rgba(124,58,237,0.35); box-shadow: 0 4px 20px rgba(0,0,0,0.28), 0 0 16px rgba(124,58,237,0.08); }
@keyframes flash-badge-shine { 0%, 100% { border-color: rgba(124,58,237,0.22); } 50% { border-color: rgba(124,58,237,0.32); } }
.home-hero .flash-badge-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-hero .flash-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: flash-live-pulse 2s ease-in-out infinite;
}
@keyframes flash-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.home-hero .flash-badge-headline {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e9d5ff;
  flex: 0 1 auto;
  min-width: 0;
}
.home-hero .flash-badge-endtime {
  font-variant-numeric: tabular-nums;
  color: #a78bfa;
  font-size: 0.6875rem;
  font-weight: 700;
}
.home-hero .flash-segments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
}
.home-hero .flash-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 8px;
  min-width: 38px;
  background: rgba(22,20,34,0.8);
  border-radius: 8px;
  border: 1px solid rgba(124,58,237,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.home-hero .flash-seg-num {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f3e8ff;
  letter-spacing: 0.02em;
}
.home-hero .flash-seg-label {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 1px;
}
.home-hero .flash-sep {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(167,139,250,0.4);
  margin: 0 1px;
  line-height: 1;
}
.home-hero .flash-progress-wrap {
  height: 2px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.home-hero .flash-progress-bar {
  height: 100%;
  width: 0%;
  max-width: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 999px;
  transition: width 1s linear;
}
.home-hero .flash-cta {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.home-hero .flash-cta:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 3px 12px rgba(124,58,237,0.4);
}
.home-hero .flash-badge.flash-badge-warning .flash-seg { background: rgba(245,158,11,0.12); border-color: rgba(251,191,36,0.25); }
.home-hero .flash-badge.flash-badge-warning .flash-progress-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.home-hero .flash-badge.flash-badge-urgent {
  animation: flash-badge-urgent-pulse 1.2s ease-in-out infinite;
  border-color: rgba(239,68,68,0.45);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 20px rgba(239,68,68,0.15);
}
.home-hero .flash-badge.flash-badge-urgent .flash-seg { background: rgba(239,68,68,0.15); border-color: rgba(248,113,113,0.25); }
.home-hero .flash-badge.flash-badge-urgent .flash-seg-num { color: #fef2f2; }
.home-hero .flash-badge.flash-badge-urgent .flash-progress-bar { background: linear-gradient(90deg, #ef4444, #f87171); }
@keyframes flash-badge-urgent-pulse {
  0%, 100% { border-color: rgba(239,68,68,0.45); box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 20px rgba(239,68,68,0.15); }
  50% { border-color: rgba(239,68,68,0.6); box-shadow: 0 6px 28px rgba(0,0,0,0.35), 0 0 28px rgba(239,68,68,0.22); }
}
.home-hero .flash-ended-msg {
  margin-top: 16px;
  padding: 10px 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(26,24,38,0.95) 0%, rgba(20,18,32,0.98) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  color: #e9d5ff;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 14px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}
.home-hero .btn-hero-outline {
  background: transparent;
  color: #e9d5ff;
  border: 1px solid rgba(124,58,237,0.35);
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.home-hero .btn-hero-outline:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 2px 10px rgba(124,58,237,0.2);
  transform: translateY(-1px);
}

/* Key2lix Plus promo banner (كان شحن مجاني) */
.home-free-shipping-banner { background: linear-gradient(90deg, #7c3aed 0%, #5b21b6 35%, #a78bfa 50%, #5b21b6 65%, #7c3aed 100%); background-size: 200% 100%; animation: home-banner-shine 4s ease-in-out infinite; color: #fff; padding: 14px 24px; text-align: center; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 4px 20px rgba(124,58,237,0.4); letter-spacing: 0.02em; text-decoration: none; transition: opacity 0.2s, box-shadow 0.2s; }
.home-free-shipping-banner:hover { opacity: 0.95; box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.home-free-shipping-banner i { font-size: 1.25rem; animation: home-pulse-soft 2s ease-in-out infinite; }
@keyframes home-banner-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes home-pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* Payment strip, last order, sticky CTA */
.home-payment-strip { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 16px 24px; background: rgba(22,20,34,0.95); border-bottom: 2px solid rgba(124,58,237,0.2); flex-wrap: wrap; }
.home-payment-strip span { color: #a78bfa; font-size: 0.9rem; font-weight: 600; margin-left: 8px; }
[dir="rtl"] .home-payment-strip span { margin-left: 0; margin-right: 8px; }
.home-payment-strip img { height: 28px; width: auto; opacity: 0.9; }
/* Trust bar: أوسمة ثقة وربط بكيفية الشراء */
.home-trust-bar { max-width: 900px; margin: 0 auto 24px; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; font-family: inherit; }
.home-trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.home-trust-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #a78bfa; }
.home-trust-badge i { color: #7c3aed; font-size: 1.1rem; }
.home-trust-link { color: #c4b5fd; font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 12px; border: 2px solid rgba(124,58,237,0.4); transition: all 0.2s; font-size: 0.9rem; }
.home-trust-link:hover { background: rgba(124,58,237,0.2); color: #e9d5ff; }
.home-last-order { text-align: center; padding: 14px 24px; background: linear-gradient(135deg, rgba(124,58,237,0.25) 0%, rgba(91,33,182,0.2) 100%); border: 2px solid rgba(124,58,237,0.5); border-radius: 16px; margin: 0 24px 16px; max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 16px; font-size: 1rem; font-weight: 600; color: #e9d5ff; box-shadow: 0 4px 20px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.1); }
.home-last-order i { margin-left: 10px; color: #a78bfa; font-size: 1.1rem; }
[dir="rtl"] .home-last-order i { margin-left: 0; margin-right: 8px; }
/* Stats bar */
.home-stats-bar { background: linear-gradient(180deg, rgba(22,20,34,0.98) 0%, rgba(28,26,42,0.95) 100%); border-bottom: 2px solid rgba(124,58,237,0.2); padding: 20px 24px; }
.home-stats-inner { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; font-family: inherit; }
.home-stat { color: #a78bfa; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.home-stat i { color: #7c3aed; font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(124,58,237,0.5)); }
.home-stat strong { color: #e9d5ff; margin-left: 4px; font-size: 1.15em; text-shadow: 0 0 20px rgba(124,58,237,0.3); }
[dir="rtl"] .home-stat strong { margin-left: 0; margin-right: 4px; }
body.theme-light .home-stats-bar { background: linear-gradient(180deg, #faf5ff 0%, #fff 100%); border-bottom-color: rgba(124,58,237,0.25); }
body.theme-light .home-stat { color: #6d28d9; }
body.theme-light .home-stat strong { color: #5b21b6; }

/* Offers tabs */
.home-offers-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.home-offers-tabs button { padding: 10px 20px; border-radius: 12px; border: 2px solid rgba(124,58,237,0.3); background: transparent; color: #a78bfa; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.home-offers-tabs button:hover { border-color: #7c3aed; background: rgba(124,58,237,0.15); }
.home-offers-tabs button.active { background: linear-gradient(135deg, #7c3aed, #6d28d9); border-color: #7c3aed; color: #fff; }

/* Quick view modal */
.home-quick-view-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.home-quick-view-overlay.visible { display: flex; }
.home-quick-view-modal { background: linear-gradient(180deg, #1c1a2a 0%, #121022 100%); border-radius: 20px; max-width: 420px; width: 100%; overflow: hidden; border: 2px solid rgba(124,58,237,0.4); box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2), 0 0 60px rgba(124,58,237,0.2); }
.home-quick-view-modal .img-wrap { aspect-ratio: 1; position: relative; overflow: hidden; }
.home-quick-view-modal .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.home-quick-view-modal .card-body { padding: 20px; }
.home-quick-view-modal h3 { margin: 0 0 8px; font-size: 1.1rem; color: #f3e8ff; }
.home-quick-view-modal .card-price { font-size: 1.35rem; font-weight: 800; color: #a78bfa; margin-bottom: 20px; text-shadow: 0 0 24px rgba(124,58,237,0.4); }
.qv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qv-actions .btn { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 12px; font-weight: 700; color: #fff; text-decoration: none; transition: all 0.2s; font-size: 0.95rem; }
.qv-actions .btn-qv-cart { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 16px rgba(16,185,129,0.4); }
.qv-actions .btn-qv-cart:hover { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,185,129,0.5); }
.qv-actions .btn-qv-view { background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.qv-actions .btn-qv-view:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.home-quick-view-close { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; font-size: 1.2rem; z-index: 5; }
[dir="rtl"] .home-quick-view-close { left: auto; right: 12px; }
.home-card-qv { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; font-size: 0.9rem; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.home-card-qv:hover { background: rgba(124,58,237,0.9); }
.home-card-qv:focus-visible { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124,58,237,0.4); }
[dir="rtl"] .home-card-qv { right: auto; left: 10px; }
.home-card-wishlist { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: rgba(0,0,0,0.6); color: #f87171; cursor: pointer; font-size: 0.95rem; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.home-card-wishlist:hover { background: rgba(248,113,113,0.25); color: #fca5a5; }
.home-card-wishlist i.fas { color: #f87171; }
.home-card-wishlist:focus-visible { outline: none; border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.3); }
[dir="rtl"] .home-card-wishlist { right: auto; left: 10px; }

/* Categories */
.home-categories { max-width: 1040px; margin: 0 auto 64px; padding: 0 24px; font-family: inherit; }
.home-categories .section-title { margin-bottom: 32px; position: relative; padding-bottom: 16px; font-size: 1.65rem; font-weight: 800; color: #e9d5ff; text-align: center; }
.home-categories .section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 2px; box-shadow: 0 0 16px rgba(124,58,237,0.4); }
.home-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .home-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px) { .home-cat-grid { grid-template-columns: 1fr; } .home-categories { padding: 0 16px; } }
.home-cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: linear-gradient(180deg, rgba(28,26,42,0.98) 0%, rgba(22,20,34,0.98) 100%); padding: 0; border-radius: 20px; text-decoration: none; color: #fff; transition: all 0.35s; border: 2px solid rgba(124,58,237,0.2); min-height: 220px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.home-cat-tile:hover { border-color: #7c3aed; transform: translateY(-8px); box-shadow: 0 20px 48px rgba(124,58,237,0.35), 0 0 0 1px rgba(255,255,255,0.06); }
.home-cat-tile .home-cat-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform 0.4s; }
.home-cat-tile:hover .home-cat-img { transform: scale(1.08); }
.home-cat-tile .home-cat-label { padding: 18px 20px; font-weight: 700; font-size: 1.12rem; text-align: center; color: #f3e8ff; }
.home-cat-tile .cat-hint { font-size: 0.85rem; color: #a78bfa; margin-top: 4px; padding-bottom: 14px; opacity: 0; transition: opacity 0.25s; font-weight: 500; }
.home-cat-tile:hover .cat-hint { opacity: 1; }

/* Best Offers */
.home-offers { max-width: 1140px; margin: 0 auto 56px; padding: 28px 24px; background: linear-gradient(180deg, rgba(28,26,42,0.6) 0%, rgba(22,20,34,0.4) 100%); border-radius: 24px; border: 2px solid rgba(124,58,237,0.25); box-shadow: 0 8px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); font-family: inherit; }
.home-offers .section-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.home-offers .section-title { position: relative; padding-bottom: 10px; margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #e9d5ff; }
.home-offers .section-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background: linear-gradient(90deg, #7c3aed, #a78bfa); border-radius: 2px; box-shadow: 0 0 12px rgba(124,58,237,0.4); }
[dir="rtl"] .home-offers .section-title::after { left: auto; right: 0; }
.home-offers-desc { width: 100%; margin: 0 0 24px; font-size: 0.9rem; color: #a78bfa; max-width: 440px; font-weight: 500; }
.home-offers .btn-view-all { padding: 10px 22px; border-radius: 12px; font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #7c3aed, #6d28d9); box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.home-offers .btn-view-all:hover { box-shadow: 0 6px 24px rgba(124,58,237,0.5); transform: translateY(-2px); }
.home-offers .btn-view-all::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.85em; }
[dir="rtl"] .home-offers .btn-view-all::after { content: "\f060"; }
.home-offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 992px) { .home-offers-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 768px) { .home-offers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .home-offers { padding: 24px 18px; } }
@media (max-width: 480px) { .home-offers-grid { grid-template-columns: 1fr; gap: 20px; } }
/* سحب أفقي للعروض على الموبايل (MOBILE-UX / FUTURE-REVIEW) */
@media (max-width: 768px) {
  #home-offers-section .home-offers-grid,
  #home-most-selling-section .home-offers-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding-bottom: 12px;
    margin-inline: -18px;
    padding-inline: 18px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  #home-offers-section .home-offers-grid .home-card,
  #home-most-selling-section .home-offers-grid .home-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
  }
  #home-offers-section .home-offers-grid .home-skeleton,
  #home-most-selling-section .home-offers-grid .home-skeleton {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
  }
}
/* بطاقات المنتج على الموبايل — عرض أوضح وزر كبير (MOBILE-UX #4) */
@media (max-width: 480px) {
  .home-card { max-width: 100%; margin: 0 auto; }
  .home-card .img-wrap { min-height: 200px; }
  .home-card .card-body { padding: 18px 20px; }
  .home-card h3 { font-size: 1.05rem; min-height: auto; }
  .home-card .card-price { font-size: 1.3rem; margin-bottom: 14px; }
  .home-card .btn { min-height: 48px; padding: 14px 20px; font-size: 1rem; border-radius: 14px; }
}
.home-card { background: linear-gradient(180deg, rgba(30,28,42,0.98) 0%, rgba(24,22,36,0.98) 100%); border-radius: var(--key2lix-radius, 18px); overflow: hidden; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s; border: 2px solid var(--key2lix-border-light, rgba(124,58,237,0.15)); opacity: 0; transform: translateY(20px); box-shadow: var(--key2lix-shadow, 0 4px 20px rgba(0,0,0,0.2)); }
.home-card.visible { opacity: 1; transform: translateY(0); }
.home-card:hover { transform: translateY(-10px); box-shadow: var(--key2lix-shadow-hover, 0 24px 56px rgba(124,58,237,0.35)); border-color: var(--key2lix-border, rgba(124,58,237,0.5)); }
.home-card .img-wrap { aspect-ratio: 16/10; background: linear-gradient(180deg, #2a2840 0%, #1e1c2e 100%); position: relative; overflow: hidden; }
.home-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-card:hover .img-wrap img { transform: scale(1.08); }
.home-card .btn:focus-visible { outline: 2px solid var(--color-primary, #7c3aed); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(124,58,237,0.25); }
.home-card .img-wrap .badge { position: absolute; top: 10px; left: 10px; padding: 6px 10px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
[dir="rtl"] .home-card .img-wrap .badge { left: auto; right: 10px; }
.home-card .card-body { padding: 16px 18px; }
.home-card h3 { font-size: 0.95rem; margin: 0 0 8px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; line-height: 1.35; font-weight: 700; color: #f3e8ff; }
.home-card .card-from { font-size: 0.72rem; color: #94a3b8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.home-card .card-price { font-size: 1.2rem; font-weight: 800; color: #a78bfa; margin-bottom: 12px; letter-spacing: -0.02em; text-shadow: 0 0 20px rgba(124,58,237,0.2); }
.home-card .card-price .old-price { font-size: 0.78rem; color: #64748b; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
[dir="rtl"] .home-card .card-price .old-price { margin-left: 0; margin-right: 8px; }
.home-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: var(--key2lix-radius-sm, 12px); font-weight: var(--font-weight-bold, 700); font-size: 0.9rem; text-decoration: none; transition: all 0.25s; text-align: center; box-sizing: border-box; background: linear-gradient(135deg, var(--color-primary, #7c3aed) 0%, var(--color-primary-dark, #6d28d9) 100%); color: #fff; border: none; box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.home-card .btn:hover { background: linear-gradient(135deg, var(--color-primary-light, #8b5cf6) 0%, var(--color-primary, #7c3aed) 100%); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.home-card .btn .card-btn-icon { font-size: 0.75em; opacity: 0.95; transition: transform 0.2s; }
.home-card:hover .btn .card-btn-icon { transform: translateX(4px); }
[dir="rtl"] .home-card:hover .btn .card-btn-icon { transform: translateX(-4px); }

/* How it works */
.home-how { max-width: 1000px; margin: 0 auto 56px; padding: 40px 24px; text-align: center; font-family: inherit; }
.home-how-title { color: #e9d5ff; font-size: 1.6rem; font-weight: 800; margin-bottom: 32px; }
.home-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
@media (max-width: 768px) { .home-how-grid { grid-template-columns: 1fr; } }
.home-how-step { padding: 28px 20px; background: rgba(28,26,42,0.8); border: 2px solid rgba(124,58,237,0.25); border-radius: 20px; transition: all 0.3s; position: relative; }
.home-how-step:hover { border-color: #7c3aed; box-shadow: 0 12px 32px rgba(124,58,237,0.2); transform: translateY(-4px); }
.home-how-num { position: absolute; top: 12px; right: 16px; width: 28px; height: 28px; background: #7c3aed; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; }
[dir="rtl"] .home-how-num { right: auto; left: 16px; }
.home-how-step i { font-size: 2.2rem; color: #a78bfa; margin-bottom: 12px; display: block; }
.home-how-step strong { display: block; color: #f3e8ff; font-size: 1.1rem; margin-bottom: 8px; }
.home-how-step span { font-size: 0.9rem; color: #94a3b8; }
.home-how-link { display: inline-flex; align-items: center; gap: 8px; color: #a78bfa; font-weight: 600; text-decoration: none; padding: 12px 24px; border-radius: 12px; border: 2px solid rgba(124,58,237,0.4); transition: all 0.2s; }
.home-how-link:hover { background: rgba(124,58,237,0.2); color: #e9d5ff; }

/* Testimonials */
.home-testimonials { max-width: 1040px; margin: 0 auto 56px; padding: 48px 24px; background: linear-gradient(180deg, rgba(28,26,42,0.6) 0%, rgba(22,20,34,0.5) 100%); border-radius: 24px; border: 2px solid rgba(124,58,237,0.2); }
.home-testimonials-title { color: #e9d5ff; font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 32px; }
.home-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .home-testimonials-grid { grid-template-columns: 1fr; } }
.home-testimonial { margin: 0; padding: 24px; background: rgba(30,28,42,0.8); border-radius: 16px; border: 1px solid rgba(124,58,237,0.15); text-align: center; }
.home-testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 12px; }
.home-testimonial-text { color: #e2e8f0; font-size: 0.95rem; line-height: 1.5; margin: 0 0 12px; font-style: normal; }
.home-testimonial cite { font-size: 0.85rem; color: #94a3b8; font-style: normal; }

/* Promo carousel */
.home-promo { max-width: 1160px; margin: 0 auto 64px; padding: 0 24px; }
.home-promo-carousel { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 2px rgba(124,58,237,0.2); }
.home-promo-track { display: flex; transition: transform 0.4s ease; }
.home-promo-slide { flex: 0 0 100%; position: relative; display: block; }
.home-promo-link { transition: transform 0.35s, box-shadow 0.35s; }
.home-promo-img { width: 100%; height: auto; display: block; aspect-ratio: 1200/320; object-fit: cover; vertical-align: middle; }
.home-promo-cta { position: absolute; bottom: 28px; right: 28px; padding: 16px 32px; background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); color: #fff; font-weight: 800; font-size: 1.05rem; border-radius: 14px; box-shadow: 0 6px 24px rgba(124,58,237,0.5); transition: all 0.25s; }
.home-promo-link:hover .home-promo-cta { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); transform: scale(1.05); }
[dir="rtl"] .home-promo-cta { right: auto; left: 28px; }
.home-promo-prev, .home-promo-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background 0.2s; z-index: 2; }
.home-promo-prev { right: 16px; }
.home-promo-next { left: 16px; }
[dir="rtl"] .home-promo-prev { right: auto; left: 16px; }
[dir="rtl"] .home-promo-next { left: auto; right: 16px; }
.home-promo-prev:hover, .home-promo-next:hover { background: rgba(124,58,237,0.8); }
.home-promo-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.home-promo-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; transition: background 0.2s; }
.home-promo-dots button.active { background: #7c3aed; }

/* Why Key2lix */
.home-why { background: linear-gradient(180deg, rgba(28,26,42,0.95) 0%, rgba(22,20,34,0.98) 100%); border-radius: 24px; padding: 56px 32px; margin: 0 24px 64px; max-width: 1040px; margin-left: auto; margin-right: auto; border: 2px solid rgba(124,58,237,0.3); box-shadow: 0 12px 48px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04); font-family: inherit; }
.home-why h2 { text-align: center; color: #e9d5ff; margin-bottom: 40px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.home-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
@media (max-width: 768px) { .home-why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } .home-why { padding: 40px 24px; margin-left: 16px; margin-right: 16px; } }
@media (max-width: 400px) { .home-why-grid { grid-template-columns: 1fr; } }
.home-why-item { padding: 24px 16px; border-radius: 18px; transition: all 0.3s; border: 1px solid transparent; }
.home-why-item:hover { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.25); box-shadow: 0 8px 24px rgba(124,58,237,0.15); transform: translateY(-4px); }
.home-why-item i { font-size: 2.5rem; color: #a78bfa; margin-bottom: 16px; display: block; filter: drop-shadow(0 0 16px rgba(124,58,237,0.3)); }
.home-why-item strong { display: block; margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; color: #f3e8ff; }
.home-why-item span { font-size: 0.92rem; color: #a78bfa; line-height: 1.45; }

/* FAQ */
.home-faq { max-width: 860px; margin: 0 auto 56px; padding: 0 24px; }
.home-faq h2 { margin-bottom: 32px; color: #e9d5ff; text-align: center; font-size: 1.6rem; font-weight: 800; }
.home-faq .faq-item { border-radius: 16px; margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(124,58,237,0.2); }
.home-faq .faq-item label { font-weight: 600; }
.home-faq .faq-item:has(input:checked) { border-color: rgba(124,58,237,0.4); box-shadow: 0 4px 20px rgba(124,58,237,0.15); }

/* Skeleton */
.home-skeleton { background: linear-gradient(180deg, rgba(30,28,42,0.98) 0%, rgba(24,22,36,0.98) 100%); border-radius: 18px; overflow: hidden; border: 2px solid rgba(124,58,237,0.12); }
.home-skeleton .img-wrap { aspect-ratio: 1; background: linear-gradient(90deg, #2a2840 25%, #3a3650 50%, #2a2840 75%); background-size: 200% 100%; animation: home-skeleton 1.2s ease infinite; }
.home-skeleton .card-body { padding: 20px; }
.home-skeleton .line { height: 14px; background: linear-gradient(90deg, #2a2840 25%, #3a3650 50%, #2a2840 75%); background-size: 200% 100%; animation: home-skeleton 1.2s ease infinite; border-radius: 8px; margin-bottom: 12px; }
.home-skeleton .line.short { width: 40%; margin: 0 auto 12px; }
.home-skeleton .line.btn { height: 48px; margin-top: 10px; border-radius: 12px; }
@keyframes home-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Theme light: Home */
body.theme-light .home-hero-wrap { border-image: none; border-bottom: 4px solid rgba(124,58,237,0.4); }
body.theme-light .home-categories .section-title { color: #5b21b6; }
body.theme-light .home-cat-tile { background: linear-gradient(180deg, #fff 0%, #faf5ff 100%); border-color: rgba(124,58,237,0.2); color: #1a1a1a; }
body.theme-light .home-cat-tile .home-cat-label { color: #5b21b6; }
body.theme-light .home-cat-tile .cat-hint { color: #6d28d9; }
body.theme-light .home-offers { background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(250,245,255,0.95) 100%); border-color: rgba(124,58,237,0.3); }
body.theme-light .home-offers .section-title { color: #5b21b6; }
body.theme-light .home-offers-desc { color: #6d28d9; }
body.theme-light .home-card { background: #fff; border-color: rgba(124,58,237,0.2); color: #1a1a1a; }
body.theme-light .home-card h3 { color: #334155; }
body.theme-light .home-card .card-price { color: #7c3aed; }
body.theme-light .home-how-step { background: #fff; border-color: rgba(124,58,237,0.2); }
body.theme-light .home-how-step strong { color: #334155; }
body.theme-light .home-how-step span { color: #64748b; }
body.theme-light .home-how-title { color: #5b21b6; }
body.theme-light .home-testimonials { background: linear-gradient(180deg, rgba(250,245,255,0.9) 0%, #fff 100%); border-color: rgba(124,58,237,0.2); }
body.theme-light .home-testimonial { background: #fff; border-color: rgba(0,0,0,0.06); }
body.theme-light .home-testimonial-text { color: #334155; }
body.theme-light .home-testimonial cite { color: #64748b; }
body.theme-light .home-testimonials-title { color: #5b21b6; }
body.theme-light .home-brand-item { background: rgba(255,255,255,0.9); border-color: rgba(124,58,237,0.25); }
body.theme-light .home-brand-item:hover { border-color: #7c3aed; box-shadow: 0 12px 32px rgba(124,58,237,0.2); }
body.theme-light .home-why { background: linear-gradient(180deg, #fff 0%, #faf5ff 100%); border-color: rgba(124,58,237,0.3); }
body.theme-light .home-why h2 { color: #5b21b6; }
body.theme-light .home-why-item strong { color: #334155; }
body.theme-light .home-why-item span { color: #64748b; }
body.theme-light .home-faq h2 { color: #5b21b6; }

/* ===== Responsive: تماشي مع جميع الأبعاد ===== */
@media (max-width: 768px) {
  .home-hero-wrap { min-height: 280px; }
  .home-hero { padding: 20px 16px 28px; }
  .home-payment-strip { padding: 12px 16px; gap: 12px; }
  .home-payment-strip img { height: 24px; }
  .home-stats-bar { padding: 14px 16px; }
  .home-stats-inner { gap: 20px; }
  .home-stat { font-size: 0.9rem; }
  .home-categories { padding: 0 16px; margin-bottom: 48px; }
  .home-offers { padding: 20px 16px; margin-bottom: 40px; }
  .home-how { padding: 28px 16px; margin-bottom: 40px; }
  .home-faq { padding: 0 16px; margin-bottom: 40px; }
  .home-why { margin-left: 16px; margin-right: 16px; padding: 36px 20px; margin-bottom: 48px; }
  .home-promo { padding: 0 16px; margin-bottom: 48px; }
  .home-testimonials { padding: 32px 16px; margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .home-hero-wrap { min-height: 260px; }
  .home-hero { padding: 16px 12px 24px; max-width: 100%; }
  .home-hero .hero-logo { height: 44px; margin-bottom: 10px; }
  .home-hero h1 { font-size: clamp(1.35rem, 6vw, 1.75rem); padding-bottom: 8px; }
  .home-hero h1::after { width: 40px; height: 2px; }
  .home-hero .hero-tagline { font-size: 0.85rem; margin-bottom: 14px; }
  .home-hero .hero-cta { gap: 6px; }
  .home-hero .btn-hero { padding: 8px 14px; font-size: 0.8125rem; }
  .home-hero .flash-badge { margin-top: 14px; padding: 10px 12px 8px; max-width: 100%; }
  .home-free-shipping-banner { padding: 10px 12px; font-size: 0.9rem; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .home-payment-strip { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .home-payment-strip img { height: 22px; }
  .home-stats-inner { gap: 16px; }
  .home-stat { font-size: 0.8rem; }
  .home-stat i { font-size: 1.1rem; }
  .home-categories .section-title { margin-bottom: 24px; font-size: 1.35rem; }
  .home-cat-grid { gap: 12px; }
  .home-offers .section-title { font-size: 1.25rem; }
  .home-offers-desc { font-size: 0.85rem; margin-bottom: 16px; }
  .home-offers-tabs button { padding: 8px 14px; font-size: 0.85rem; }
  .home-how-title { font-size: 1.35rem; margin-bottom: 24px; }
  .home-how-step { padding: 20px 16px; }
  .home-why { margin-left: 12px; margin-right: 12px; padding: 28px 16px; margin-bottom: 40px; }
  .home-why h2 { font-size: 1.35rem; margin-bottom: 28px; }
  .home-why-grid { gap: 16px; }
  .home-faq h2 { font-size: 1.35rem; margin-bottom: 24px; }
}
@media (max-width: 360px) {
  .home-hero-wrap { min-height: 240px; }
  .home-hero { padding: 12px 10px 20px; }
  .home-hero .hero-logo { height: 40px; }
  .home-hero .btn-hero { padding: 6px 12px; font-size: 0.75rem; }
  .home-free-shipping-banner { font-size: 0.8rem; padding: 8px 10px; }
  .home-payment-strip span { font-size: 0.8rem; }
  .home-categories { padding: 0 12px; }
  .home-offers { padding: 16px 12px; }
  .home-why { margin-left: 8px; margin-right: 8px; padding: 24px 12px; }
}
