/* =====================================================================
   جميع الحقوق محفوظة لصاحب هذا القالب.
   ممنوع إعادة بيع أو توزيع أو نشر هذا القالب (كليًا أو جزئيًا) من غير إذن
   كتابي من صاحب الحقوق. الترخيص هنا مقتصر على النطاق (Domain) المتفق عليه
   وقت الشراء فقط، ومربوط تقنيًا بالتحقق الموجود في كود الجافاسكريبت تحت.
   ===================================================================== */
/* ===== قالب المتجر الإلكتروني (تحميل تلقائي بالتمرير) ===== */
:root {
  --bg: #05070b;
  --bg-soft: #0b1018;
  --card: rgba(18, 24, 35, .72);
  --card-solid: #101722;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(109, 94, 252, .4);
  --text: #f7fbff;
  --muted: #95a2b8;
  --muted-2: #8593a9;
  --cyan: #6d5efc;
  --cyan-soft: rgba(109, 94, 252, .12);
  --blue: #3b82f6;
  --green: #18f5a4;
  --danger: #ff647c;
  --shadow-cyan: 0 0 36px rgba(109, 94, 252, .22);
  --container: 1180px;
  --toast-bg: rgba(0,0,0,0.85);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(109, 94, 252, .16), transparent 30rem),
    radial-gradient(circle at 86% 20%, rgba(59, 130, 246, .18), transparent 34rem),
    linear-gradient(180deg, #05070b 0%, #070a10 46%, #05070b 100%);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 7, 11, .84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text);
  font-size: 26px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(109, 94, 252, .55);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109, 94, 252, .16), rgba(255,255,255,.04));
  box-shadow: var(--shadow-cyan);
  color: var(--cyan);
}
.main-menu { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.main-menu a:hover { color: var(--cyan); }
.lang-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .22s ease;
}
.lang-btn:hover { color: var(--cyan); border-color: rgba(109,94,252,.36); background: rgba(109,94,252,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .ghost-btn, .primary-btn, .outline-btn {
  border: 0;
  cursor: pointer;
  transition: .22s ease;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.icon-btn:hover { color: var(--cyan); border-color: rgba(109,94,252,.38); background: rgba(109,94,252,.08); }
.cart-count {
  position: absolute;
  transform: translate(15px, -15px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--cyan);
  color: #001014;
  font-size: 11px;
  font-weight: 800;
}
.mobile-toggle { display: none; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 112px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(109, 94, 252, .28);
  background: rgba(109, 94, 252, .08);
  color: var(--cyan);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(109, 94, 252, .1);
}
.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}
.hero h1.label-page-title {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #fff 52%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 32px rgba(109, 94, 252, .25);
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
  max-width: 650px;
  margin: 0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.buy-price-extra { display: flex; align-items: center; gap: 10px; margin-inline-start: 12px; }
.buy-price-extra .price-old { font-size: 15px; }
.primary-btn, .outline-btn {
  min-height: 54px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  font-weight: 800;
}
.primary-btn {
  position: relative;
  overflow: hidden;
  background: var(--cyan);
  color: #001014;
  box-shadow: 0 0 36px rgba(109, 94, 252, .46);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 0 54px rgba(109, 94, 252, .64); }
.buy-btn {
  background: #25d366;
  color: #04150d;
  box-shadow: 0 0 36px rgba(37, 211, 102, .4);
}
.buy-btn:hover { box-shadow: 0 0 54px rgba(37, 211, 102, .58); }
.add-cart.buy-btn-icon { background: #25d366; color: #04150d; }
.add-cart.buy-btn-icon:hover { box-shadow: 0 0 24px rgba(37, 211, 102, .5); }
.outline-btn {
  color: var(--text);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
}
.outline-btn:hover { border-color: rgba(109,94,252,.36); color: var(--cyan); background: rgba(109,94,252,.08); }
.hero-media {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 100px rgba(109, 94, 252, .12);
  isolation: isolate;
}
.hero-media:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(35deg, rgba(0,0,0,.74), transparent 55%, rgba(109,94,252,.16));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.floating-spec {
  position: absolute;
  z-index: 2;
  inset-inline-start: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(310px, calc(100% - 44px));
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(5, 7, 11, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.floating-spec strong { font-size: 15px; }
.floating-spec span { color: var(--muted); font-size: 12px; }
.trust-strip {
  border-block: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}
.trust-item { display: grid; place-items: center; text-align: center; gap: 10px; }
.trust-icon, .cat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  color: var(--cyan);
  border: 1px solid rgba(255,255,255,.07);
}
.trust-item:hover .trust-icon, .category-card:hover .cat-icon { background: rgba(109,94,252,.1); transform: translateY(-2px); }
.trust-item h3 { margin: 0; font-size: 14px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.section { padding: 86px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}
.section-title { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.18; }
.section-subtitle { margin: 12px 0 0; color: var(--muted); line-height: 1.8; max-width: 650px; }
.link-more { color: var(--cyan); font-weight: 800; white-space: nowrap; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.category-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-card:hover { border-color: rgba(109,94,252,.36); box-shadow: 0 0 34px rgba(109,94,252,.09); transform: translateY(-3px); }
.category-card h3 { margin: 16px 0 6px; font-size: 19px; }
.category-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.label-sections { display: grid; gap: 0; }
.label-sections .section-head { margin-top: 56px; }
.label-sections .section-head:first-child { margin-top: 0; }
.label-product-grid:has(.loading-overlay) { grid-template-columns: 1fr; }
.shop-layout {
  display: block;
}
.shop-layout.has-filters {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding-inline-end: 16px;
  border-inline-end: 1px solid rgba(255,255,255,.08);
}
.filter-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  padding: 20px;
  box-shadow: 0 0 40px rgba(0,0,0,.18);
}
.filter-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 20px;
}
.filter-group { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.07); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h4 { margin: 0; color: rgba(247,251,255,.75); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-option input {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
}
.filter-option input:checked { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(109,94,252,.3); }
.filter-option input:checked:after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #001014; }
.filter-option:hover { color: var(--cyan); }
.range-input, .filter-search {
  width: 100%;
  accent-color: var(--cyan);
}
.filter-search {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}
.filter-search:focus { border-color: rgba(109,94,252,.42); box-shadow: var(--shadow-cyan); }
.filter-value { color: var(--cyan); font-size: 12px; font-weight: 800; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.result-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.reset-filters {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}
.reset-filters:hover { color: var(--cyan); border-color: rgba(109,94,252,.32); }
.product-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: .25s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(109,94,252,.44); box-shadow: 0 0 36px rgba(109,94,252,.12); }
.product-card.is-hidden { display: none; }
.product-image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109,94,252,.08), rgba(255,255,255,.04));
}
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: .35s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-body { padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; flex: 1; }
.product-title { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 400; }
.product-title a:hover { color: var(--cyan); }
.product-desc { color: var(--muted); margin: 0; line-height: 1.7; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 9px; background: rgba(255,255,255,.035); min-width: 0; }
.spec small { display: block; color: var(--muted-2); font-size: 10px; font-weight: 700; }
.spec b { display: block; margin-top: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-meta-source { display: none; }
.cost-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cost-chip {
  border: 1px solid rgba(109,94,252,.14);
  border-radius: 12px;
  padding: 8px;
  background: rgba(109,94,252,.045);
}
.cost-chip small { display: block; color: var(--muted-2); font-size: 10px; font-weight: 800; }
.cost-chip b { display: block; color: var(--text); font-size: 12px; margin-top: 3px; }
.product-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.price-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.price { color: var(--green); font-weight: 800; font-size: 18px; }
.price-old {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  display: none;
}
.price-old.is-visible { display: inline-block; }
.price-old-row { display: flex; align-items: center; gap: 6px; }
.discount-tag {
  color: #ff2d2d;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 45, 45, .14);
  border: 1px solid rgba(255, 45, 45, .35);
  border-radius: 999px;
  padding: 2px 8px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: none;
}
.discount-tag.is-visible { display: inline-flex; }
.add-cart {
  border: 0;
  cursor: pointer;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #001014;
  background: var(--cyan);
  display: grid;
  place-items: center;
}
.add-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.blog-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  padding: 22px;
  min-height: 230px;
}
.article-card:hover { border-color: rgba(109,94,252,.32); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mini-tag { border: 1px solid rgba(255,255,255,.1); color: var(--cyan); padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.article-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.55; }
.article-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.main-area {
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}
.post-shell, .sidebar-box {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  padding: 24px;
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs .current { color: var(--text); font-weight: 700; }
.post-title { margin: 0 0 18px; font-size: clamp(30px, 5vw, 52px); line-height: 1.22; }
.product-gallery {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin: 0 auto 20px;
  width: 640px;
  height: 540px;
  max-width: 100%;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(109,94,252,.06), rgba(255,255,255,.03));
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(5,7,11,.6);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-arrow:hover { border-color: rgba(109,94,252,.4); color: var(--cyan); }
.gallery-prev { inset-inline-start: 12px; }
.gallery-next { inset-inline-end: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 12px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gallery-dot {
  width: 20px;
  height: 20px;
  padding: 6px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.gallery-dot:before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.gallery-dot.is-active:before { background: var(--cyan); }
.related-products { margin-top: 30px; }
.related-section-title { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 22px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.related-body { display: block; padding: 10px 12px; }
.related-title { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.related-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.related-price { color: var(--green); font-weight: 800; font-size: 14px; }
.related-old-price { color: var(--muted-2); font-size: 12px; text-decoration: line-through; }
.related-card > .discount-tag { position: absolute; top: 10px; inset-inline-end: 10px; }
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.load-more-btn {
  min-height: 54px;
  padding: 0 40px;
  border-radius: 16px;
  border: 1px solid rgba(109, 94, 252, .4);
  background: rgba(109, 94, 252, .08);
  color: var(--cyan);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.load-more-btn:hover {
  background: rgba(109, 94, 252, .18);
  box-shadow: 0 0 30px rgba(109, 94, 252, .2);
  transform: translateY(-2px);
}
.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.load-more-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.load-more-btn.loading .spinner {
  display: inline-block;
}
.load-more-btn.loading .btn-text {
  opacity: 0.7;
}
@media (max-width: 760px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}
.post-price-row .price { font-size: 28px; }
.post-price-row .discount-pill {
  border: 1px solid rgba(255, 45, 45, .35);
  background: rgba(255, 45, 45, .14);
  color: #ff2d2d;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: none;
}
.post-price-row .discount-pill.is-visible { display: inline-flex; }
.post-body { color: #d7deea; line-height: 2; font-size: 17px; }
body.light-mode .post-body { color: var(--text) !important; }
.post-body img { border-radius: 22px; margin: 20px auto; }
.warranty-strip {
  margin: 24px 0 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border: 1px solid rgba(109,94,252,.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(109,94,252,.09), rgba(255,255,255,.035)),
    rgba(255,255,255,.025);
  padding: 14px;
  box-shadow: 0 0 34px rgba(109,94,252,.08);
}
.warranty-item {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(5,7,11,.42);
  padding: 12px;
}
.warranty-item small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 5px;
}
.warranty-item b {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.comments, .post-footer, .feed-links { display: none; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar h2, .sidebar h3 { margin: 0 0 14px; font-size: 18px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar a { color: var(--muted); }
.sidebar a:hover { color: var(--cyan); }
.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #05070b;
  padding: 46px 0 26px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer h3 { margin: 0 0 14px; color: var(--text); }
.footer p, .footer a { line-height: 1.85; font-size: 14px; }
.footer-tagline { color: #c7cedb; }
body.light-mode .footer-tagline { color: #333b4a !important; }
.footer a:hover { color: var(--cyan); }
.copyright { border-top: 1px solid rgba(255,255,255,.06); margin-top: 28px; padding-top: 18px; font-size: 13px; text-align: center; }
.drawer, .search-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.drawer.is-open, .search-modal.is-open { opacity: 1; pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 92vw);
  background: #080d14;
  border-inline-start: 1px solid rgba(255,255,255,.1);
  padding: 22px;
  transform: translateX(-16px);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-list { display: grid; gap: 12px; overflow: auto; flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.035);
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-item strong { display: block; font-size: 16px; line-height: 1.4; }
.cart-item span { color: var(--cyan); font-size: 15px; font-weight: 800; }
.cart-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cart-specs em {
  font-style: normal;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cart-costs { display: grid; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.cart-costs b { color: var(--text); font-size: 15px; }
.cart-discount-tag { color: #ff2d2d; font-weight: 800; font-size: 13px; background: rgba(255, 45, 45, .14); border: 1px solid rgba(255, 45, 45, .35); border-radius: 999px; padding: 2px 8px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(109,94,252,.18);
  border-radius: 16px;
  background: rgba(109,94,252,.06);
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
  font-size: 15px;
}
.cart-total strong { color: var(--cyan); font-size: 24px; }
.remove-item { border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 22px; padding: 8px; line-height: 1; border-radius: 10px; }
.remove-item:hover { background: rgba(255,100,124,.1); }
.cart-item-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,.04);
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(109,94,252,.14);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.qty-btn:hover { background: rgba(109,94,252,.28); }
.qty-value { min-width: 16px; text-align: center; font-size: 14px; font-weight: 800; color: var(--text); }
.drawer-actions { display: grid; gap: 10px; padding-top: 14px; }
.search-box {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 32px));
  margin: 16vh auto 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: #080d14;
  padding: 20px;
}
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-input {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}
.search-input:focus { border-color: rgba(109,94,252,.45); box-shadow: var(--shadow-cyan); }
.empty-state { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed rgba(255,255,255,.16); border-radius: 18px; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal, .trust-item, .category-card, .article-card, .product-card, .post-shell {
  animation: fadeInUp .6s ease both;
}
.category-grid .category-card:nth-child(1) { animation-delay: .04s; }
.category-grid .category-card:nth-child(2) { animation-delay: .1s; }
.category-grid .category-card:nth-child(3) { animation-delay: .16s; }
.category-grid .category-card:nth-child(4) { animation-delay: .22s; }
.trust-grid .trust-item:nth-child(1) { animation-delay: .04s; }
.trust-grid .trust-item:nth-child(2) { animation-delay: .1s; }
.trust-grid .trust-item:nth-child(3) { animation-delay: .16s; }
.trust-grid .trust-item:nth-child(4) { animation-delay: .22s; }
.product-grid .product-card:nth-child(4n+1) { animation-delay: .03s; }
.product-grid .product-card:nth-child(4n+2) { animation-delay: .08s; }
.product-grid .product-card:nth-child(4n+3) { animation-delay: .13s; }
.product-grid .product-card:nth-child(4n+4) { animation-delay: .18s; }
.hero-media { animation: fadeInUp .7s ease both; }
.hero h1, .hero p, .hero-actions, .eyebrow { animation: fadeInUp .6s ease both; }
.hero p { animation-delay: .08s; }
.hero-actions { animation-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .trust-item, .category-card, .article-card, .product-card, .post-shell,
  .hero-media, .hero h1, .hero p, .hero-actions, .eyebrow {
    animation: none;
  }
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(109,94,252,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,94,252,.09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.add-cart { position: relative; overflow: hidden; }
.add-cart:after, .primary-btn:after {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  transform: translateX(120%) rotate(18deg);
  transition: .6s ease;
}
.add-cart:hover:after, .primary-btn:hover:after { transform: translateX(-120%) rotate(18deg); }
body.lang-en { direction: ltr; }
body.lang-en .drawer-panel { inset-inline-end: auto; inset-inline-start: 0; border-inline-start: 0; border-inline-end: 1px solid rgba(255,255,255,.1); }

/* ===== الوضع الفاتح (خلفية بيضاء ونصوص غامقة حقيقية، مش عكس الألوان) ===== */
.theme-toggle-icon { display: grid; place-items: center; }
.theme-toggle-icon svg { grid-area: 1 / 1; }
.theme-toggle-icon .sun { display: none; }
.theme-toggle-icon .moon { display: block; }
body.light-mode .theme-toggle-icon .sun { display: block; }
body.light-mode .theme-toggle-icon .moon { display: none; }
body.light-mode {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --card: rgba(0, 0, 0, .03);
  --card-solid: #ffffff;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .3);
  --text: #0b1018;
  --muted: #4a5568;
  --muted-2: #6b7280;
  background: #ffffff;
  color: var(--text);
}
body.light-mode .site-header { border-bottom: 1px solid rgba(0, 0, 0, .08) !important; }
body.light-mode .brand-mark { background: linear-gradient(135deg, rgba(109, 94, 252, .16), rgba(0,0,0,.04)) !important; }
body.light-mode .lang-btn { border: 1px solid rgba(0,0,0,.12) !important; }
body.light-mode .lang-btn { background: rgba(0,0,0,.045) !important; }
body.light-mode .icon-btn { background: rgba(0,0,0,.04) !important; }
body.light-mode .icon-btn { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .outline-btn { border: 1px solid rgba(0,0,0,.13) !important; }
body.light-mode .outline-btn { background: rgba(0,0,0,.04) !important; }
body.light-mode .hero-media { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .floating-spec { border: 1px solid rgba(0,0,0,.13) !important; }
body.light-mode .trust-strip { border-block: 1px solid rgba(0,0,0,.06) !important; }
body.light-mode .trust-strip { background: rgba(0,0,0,.025) !important; }
body.light-mode .trust-icon, body.light-mode .cat-icon { background: rgba(0,0,0,.05) !important; }
body.light-mode .trust-icon, body.light-mode .cat-icon { border: 1px solid rgba(0,0,0,.07) !important; }
body.light-mode .category-card { border: 1px solid rgba(0,0,0,.09) !important; }
body.light-mode .category-card { background: linear-gradient(180deg, rgba(0,0,0,.055), rgba(0,0,0,.025)) !important; }
body.light-mode .filter-panel { border-inline-end: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .filter-card { border: 1px solid rgba(0,0,0,.09) !important; }
body.light-mode .filter-card { background: rgba(0,0,0,.035) !important; }
body.light-mode .filter-group { border-top: 1px solid rgba(0,0,0,.07) !important; }
body.light-mode .filter-option input { border: 1px solid rgba(0,0,0,.22) !important; }
body.light-mode .filter-option input { background: rgba(0,0,0,.03) !important; }
body.light-mode .filter-search { border: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .filter-search { background: rgba(0,0,0,.045) !important; }
body.light-mode .shop-toolbar { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .shop-toolbar { background: rgba(0,0,0,.03) !important; }
body.light-mode .reset-filters { border: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .reset-filters { background: rgba(0,0,0,.04) !important; }
body.light-mode .product-card { border: 1px solid rgba(0,0,0,.09) !important; }
body.light-mode .product-image { background: linear-gradient(135deg, rgba(109,94,252,.08), rgba(0,0,0,.04)) !important; }
body.light-mode .spec { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .spec { background: rgba(0,0,0,.035) !important; }
body.light-mode .article-card { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .article-card { background: rgba(0,0,0,.035) !important; }
body.light-mode .mini-tag { border: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .post-shell, body.light-mode .sidebar-box { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .post-shell, body.light-mode .sidebar-box { background: rgba(0,0,0,.035) !important; }
body.light-mode .product-gallery { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .product-gallery { background: rgba(0,0,0,.03) !important; }
body.light-mode .gallery-slide { background: linear-gradient(135deg, rgba(109,94,252,.06), rgba(0,0,0,.03)) !important; }
body.light-mode .gallery-arrow { border: 1px solid rgba(0,0,0,.16) !important; }
body.light-mode .gallery-dot:before { background: rgba(0,0,0,.35) !important; }
body.light-mode .related-card { border: 1px solid rgba(0,0,0,.09) !important; }
body.light-mode .load-more-btn .spinner { border: 2px solid rgba(0,0,0,.1) !important; }
body.light-mode .warranty-item { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .footer { border-top: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .copyright { border-top: 1px solid rgba(0,0,0,.06) !important; }
body.light-mode .drawer-panel { border-inline-start: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .cart-item { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .cart-item { background: rgba(0,0,0,.035) !important; }
body.light-mode .cart-specs em { border: 1px solid rgba(0,0,0,.08) !important; }
body.light-mode .qty-stepper { border: 1px solid rgba(0,0,0,.12) !important; }
body.light-mode .qty-stepper { background: rgba(0,0,0,.04) !important; }
body.light-mode .search-box { border: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .search-input { border: 1px solid rgba(0,0,0,.1) !important; }
body.light-mode .search-input { background: rgba(0,0,0,.05) !important; }
body.light-mode .empty-state { border: 1px dashed rgba(0,0,0,.16) !important; }
body.light-mode .loading-spinner { border: 3px solid rgba(0,0,0,.1) !important; }body.light-mode { background: #ffffff; }
body.light-mode .site-header { background: rgba(255, 255, 255, .86) !important; }
body.light-mode .floating-spec { background: rgba(255, 255, 255, .82) !important; }
body.light-mode .gallery-arrow { background: rgba(255, 255, 255, .82) !important; }
body.light-mode .warranty-item { background: rgba(0, 0, 0, .03) !important; }
body.light-mode .footer { background: #f5f6f8 !important; }
body.light-mode .drawer-panel { background: #ffffff !important; }
body.light-mode .search-box { background: #ffffff !important; }
body.light-mode.lang-en .drawer-panel { border-inline-end: 1px solid rgba(0,0,0,.1) !important; }
@media (max-width: 1024px) {
  .hero-grid, .main-area, .shop-layout.has-filters { grid-template-columns: 1fr; }
  .filter-panel { position: static; max-height: none; padding-inline-end: 0; border-inline-end: 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .warranty-strip, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-menu { display: none; }
  .mobile-toggle { display: grid; }
  .hero { padding: 54px 0 72px; }
  .hero-media { min-height: 330px; border-radius: 26px; }
  .hero-actions, .section-head { align-items: stretch; flex-direction: column; }
  .primary-btn, .outline-btn { width: 100%; }
  .product-grid, .blog-feed, .category-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .nav { height: 62px; }
  .brand { font-size: 22px; }
  .spec-row { grid-template-columns: 1fr; }
  .cost-strip { grid-template-columns: 1fr; }
  .warranty-strip { grid-template-columns: 1fr; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { grid-template-columns: 1fr; }
}

/* ===== زر العودة للأعلى ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  inset-inline-end: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan);
  color: #001014;
  border: none;
  box-shadow: 0 4px 20px rgba(109, 94, 252, .5);
  font-size: 26px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: .3s ease;
  z-index: 80;
}
.scroll-top:hover { transform: scale(1.08); box-shadow: 0 0 40px rgba(109, 94, 252, .7); }
.scroll-top.is-visible { display: flex; }

/* ===== رسالة التحميل ===== */
.loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 18px;
}
.loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-inline-end: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
