/* ════════════════════════════════════════════════════════════
   GAYYAR PRO STORE — Premium gaming theme (matches index.html)
   Palette: navy · ice-cyan glow
   Fonts: Cairo · Orbitron · JetBrains Mono
   ════════════════════════════════════════════════════════════ */

:root {
  /* Theme from index.html */
  --bg:           #0a0f1e;
  --bg-2:         #0c1426;
  --bg-3:         #14110a;
  --card:         rgba(228, 240, 246, 0.025);
  --card-hover:   rgba(228, 240, 246, 0.055);
  --ink:          #e4f0f6;
  --ink-soft:     #b9c8d4;
  --ink-dim:      #6b7d8f;
  --line:         rgba(228, 240, 246, 0.08);
  --line-strong:  rgba(228, 240, 246, 0.16);

  --gold:         #4ea8de;
  --gold-light:   #8fc6ea;
  --gold-deep:    #2d6fa3;
  --gold-glow:    rgba(78,168,222, 0.42);
  --gold-soft:    rgba(78,168,222, 0.12);
  --gold-faint:   rgba(78,168,222, 0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  direction: rtl;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
body { min-height: 100vh; background-color: var(--bg); }

::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* utility classes */
.mono { font-family: "JetBrains Mono", "SF Mono", monospace; letter-spacing: 0.05em; }
.latin { font-family: "Orbitron", sans-serif; letter-spacing: 0.02em; }
.display { font-family: 'Cairo', sans-serif; font-weight: 900; }
.accent { color: var(--gold); }

/* faint grain — exact match to index.html */
.grain {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(228,240,246,0.022) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* eyebrow label */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}

/* container */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* HUD corner brackets — reusable */
.cc {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  pointer-events: none;
}
.cc.tl { top: -1px; right: -1px; border-width: 1px 0 0 1px; }
.cc.tr { top: -1px; left: -1px; border-width: 1px 1px 0 0; }
.cc.bl { bottom: -1px; right: -1px; border-width: 0 0 1px 1px; }
.cc.br { bottom: -1px; left: -1px; border-width: 0 1px 1px 0; }

/* ═══════════════════════════════════════════
   NAV — matches index.html style
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,15,30,0.85), rgba(10,15,30,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav .brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav .brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.nav .brand .logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.nav .brand .name {
  display: flex; flex-direction: column;
  line-height: 1; gap: 3px;
}
.nav .brand .name .b {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--ink);
}
.nav .brand .name .s {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  transition: color 0.3s;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

.nav-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  position: relative;
}
.nav-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.cart-btn .cart-badge {
  position: absolute;
  top: -4px; left: -4px;
  background: var(--gold);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding: 0 4px;
}

.nav .cta {
  border: 1px solid var(--gold);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  white-space: nowrap;
  /* الزر رابط <a> — التنسيق هنا وليس inline حتى تعمل قاعدة الإخفاء على الموبايل */
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav .cta:hover {
  background: rgba(78,168,222, 0.22);
  box-shadow: 0 0 16px var(--gold-glow);
}

.nav-burger {
  display: none;
  flex-direction: column; gap: 4px;
  background: transparent; border: none; padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: 72px; inset-inline: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: var(--ink);
  font-size: 16px; font-weight: 500;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   HERO — matches index.html visual language
═══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  /* Grid keeps text + image side-by-side and uses RTL-aware columns */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "txt img";
  align-items: center;
  gap: 64px;
  padding: 120px 80px 80px;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(78,168,222, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,168,222, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, var(--gold-faint), transparent 60%),
    radial-gradient(circle at 20% 20%, var(--gold-soft), transparent 50%);
  pointer-events: none;
}

/* HUD corner brackets */
.hero-corners {
  position: absolute; inset: 40px;
  pointer-events: none;
}
.hero-corner {
  position: absolute;
  width: 32px; height: 32px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}
.hero-corner.tl { top: 0; right: 0; border-width: 1.5px 0 0 1.5px; }
.hero-corner.tr { top: 0; left: 0; border-width: 1.5px 1.5px 0 0; }
.hero-corner.bl { bottom: 0; right: 0; border-width: 0 0 1.5px 1.5px; }
.hero-corner.br { bottom: 0; left: 0; border-width: 0 1.5px 1.5px 0; }

/* HUD metrics in corners */
.hero-metric {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink-dim);
  z-index: 2;
}
.hero-metric .ar {
  color: var(--ink-soft);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.hero-metric .v {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.hero-metric .bar {
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.hero-metric.tl { top: 80px; right: 80px; }
.hero-metric.tr { top: 80px; left: 80px; }
.hero-metric.bl { bottom: 80px; right: 80px; }
.hero-metric.br { bottom: 80px; left: 80px; }

/* Hero product image — grid cell on the visual LEFT (RTL "img" area) */
.hero-image {
  position: relative;
  grid-area: img;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.ring-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 60%);
  filter: blur(20px);
  animation: ring-breathe 4s ease-in-out infinite;
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}
.cooler-on {
  position: relative;
  width: 100%; max-width: 460px;
  object-fit: contain;
  filter: drop-shadow(0 0 50px var(--gold-glow));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ══════════════════════════════════════════════
   HERO SLIDESHOW
   ══════════════════════════════════════════════ */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

/* كل شريحة: مطلقة فوق بعض */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* الصورة — zoom خفيف أثناء العرض */
.hero-slide img {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 0 50px var(--gold-glow));
  transform: scale(1);
  transition: transform 3.5s ease-out, filter 0.75s;
  will-change: transform;
  display: block;
}
.hero-slide.active img {
  transform: scale(1.05);
}

/* تسمية المنتج — تظهر تحت الصورة */
.hs-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.75s;
  white-space: nowrap;
  pointer-events: none;
}
.hero-slide.active .hs-label { opacity: 0.65; }

/* نقاط التنقل */
.hero-dots {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}
.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(78,168,222, 0.18);
  border: 1px solid rgba(78,168,222, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.6);
}
.hero-dot:hover:not(.active) {
  background: rgba(78,168,222, 0.4);
  border-color: rgba(78,168,222, 0.6);
}

/* prefers-reduced-motion — fade فقط بدون zoom */
@media (prefers-reduced-motion: reduce) {
  .hero-slide        { transition: opacity 0.01s; }
  .hero-slide img    { transform: scale(1.02) !important; transition: none; }
  .hs-label          { transition: none; }
  .hero-dot          { transition: none; }
}

/* hero text content — grid cell on the visual RIGHT (RTL "txt" area) */
.hero-inner {
  position: relative;
  z-index: 3;
  grid-area: txt;
  justify-self: start; /* RTL inline-start = physical RIGHT */
  max-width: 580px;
  display: flex; flex-direction: column; gap: 22px;
  margin: 0;
  padding: 0;
}

.product-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--gold-faint);
  width: fit-content;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.product-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  /* حجم متناسق مع الصورة على الكمبيوتر — كان 110px ضخماً جداً */
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1.05;
  color: var(--ink);
}

.slogan {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
}

.hero-cta-row {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* سطر الطمأنة تحت زر الهيرو — بديل خفيف لشريط الثقة المحذوف */
.hero-assure {
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.hero-assure span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-assure b { color: var(--gold); font-weight: 700; }

.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-dim);
  z-index: 4;
}
.scroll-hint .line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5) translateY(10px); opacity: 0.4; }
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center; gap: 8px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center; gap: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(78,168,222, 0.22);
  box-shadow: 0 0 16px var(--gold-glow);
}

.btn-add {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  display: grid; place-items: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-add:hover {
  background: var(--gold-light);
  box-shadow: 0 0 16px var(--gold-glow);
}
.btn-add:active { transform: scale(0.92); }

/* ═══════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════ */
.trust-strip {
  background: var(--bg-2);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;            /* lets content wrap without overflowing the cell */
}
.trust-item > svg {
  color: var(--gold);
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.trust-item > div {
  min-width: 0;
}
.t-title {
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.t-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   SECTION HEAD — all titles centered by default
═══════════════════════════════════════════ */
.head {
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.head h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: var(--ink);
}

/* Heads that have extra elements (filters / link) — stack vertically, all centered */
.head-flex {
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 28px;
}
.head-flex > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.head-link {
  color: var(--gold);
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-block: 4px;
  transition: border-color 0.2s;
}
.head-link:hover { border-bottom-color: var(--gold); }

/* Symmetric line on both sides of centered eyebrows */
.head .eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}

/* Filter row inside centered head — center the chips */
.head-flex .filter-row {
  justify-content: center;
}

/* ═══════════════════════════════════════════
   CATEGORIES
═══════════════════════════════════════════ */
.categories {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* فجوة صفّية واسعة: صورة كل بطاقة ترتفع 36px فوق حافتها، ولو ضاقت
     الفجوة لارتسمت الصورة فوق بطاقة الصفّ الذي قبلها */
  gap: 48px 16px;
  padding-top: 40px;
}

.cat-card {
  position: relative;
  background: linear-gradient(170deg, rgba(228,240,246,0.055), var(--card));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 0 14px 15px;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  /* بلا overflow:hidden — الصورة تخرج من الحافة العليا عمداً */
  /* initial state for scroll-reveal — overridden by JS when in view */
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
}
.cat-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.cat-card:hover {
  border-color: var(--gold);
  background: var(--card-hover);
  box-shadow: 0 14px 34px rgba(78,168,222, 0.16);
}
.cat-card.featured {
  border-color: rgba(78,168,222, 0.3);
}

/* respect reduced-motion users — show immediately */
@media (prefers-reduced-motion: reduce) {
  .cat-card { opacity: 1; transform: none; }
}

/* الصورة ترتفع فوق حافة البطاقة وتحتها ظلّ بيضاوي، فتبدو قطعةً
   موضوعة على الرفّ لا صورةً مطبوعة داخل مربّع */
.cat-icon-wrap {
  width: 100%; height: 106px;
  margin-top: -36px; margin-bottom: 11px;
  position: relative;
  flex-shrink: 0;
}
.cat-icon-wrap::before {
  content: "";
  position: absolute;
  bottom: 2px; left: 13%;
  width: 74%; height: 26px;
  border-radius: 50%;
  background: var(--gold-glow);
  filter: blur(14px);
}
/* موضع مطلق بدل max-height بنسبة مئوية: النسبة لا تقصّ الصورة
   فتفيض على الاسم تحتها */
.cat-icon-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.55));
  transition: transform 0.4s;
}
.cat-card:hover .cat-icon-wrap img {
  transform: translateY(-4px) scale(1.05);
}

.cat-name {
  font-family: "Cairo", sans-serif;
  font-size: 15.5px; font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
}
.cat-count {
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
}
/* السعر الأدنى — يملؤه store.js من المخزون. كلمة «منتجات» وحدها
   لا تدفع الزبون للضغط، والرقم يدفعه. يبقى فارغاً إن تعذّر الجلب
   بدل رقمٍ مجمّد قد يكون خطأً، و min-height يمنع ارتجاف البطاقة. */
.cat-from {
  margin-top: auto;
  padding-top: 9px;
  min-height: 1.6em;
  font-family: "Cairo", sans-serif;
  font-size: 14.5px; font-weight: 900;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.cat-from small { font-size: 10.5px; font-weight: 400; opacity: 0.6; }

/* زرّ ظاهر دائماً — السهم القديم كان يظهر بالـhover وحده، ولا hover
   على الهاتف حيث أغلب الزوار */
.cat-go {
  margin-top: 12px;
  width: 100%; min-height: 44px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid rgba(78,168,222, 0.35);
  color: var(--gold-light);
  font-family: "Cairo", sans-serif;
  font-size: 12.5px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.cat-card:hover .cat-go {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   PRODUCTS — BENTO GRID
═══════════════════════════════════════════ */
.products {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-pill {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-pill.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  font-weight: 700;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.bento-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.bento-card:hover {
  border-color: var(--gold);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(78,168,222, 0.15);
}

/* Wide — 2 columns (kept for optional use) */
.wide {
  grid-column: span 2;
}

.bento-corners {
  position: absolute; inset: 10px;
  pointer-events: none;
}
.bento-corners .cc {
  width: 16px; height: 16px;
}

.b-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 60%);
  filter: blur(50px);
  top: -100px; left: -100px;
  pointer-events: none;
  opacity: 0.7;
}

.b-badges {
  position: absolute;
  top: 20px; right: 20px;
  display: flex; flex-direction: column;
  gap: 6px; z-index: 3;
  align-items: flex-end;
}
.b-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.b-badge.primary {
  background: var(--gold);
  color: var(--bg);
}
.b-badge.soft {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.b-badge.new {
  background: rgba(106, 247, 130, 0.15);
  color: #6af782;
  border: 1px solid #6af782;
}
.b-badge.sale {
  background: rgba(255, 178, 102, 0.15);
  color: #ffb266;
  border: 1px solid #ffb266;
}

.b-body {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}

.b-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.b-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--ink);
}

.b-title-md {
  font-family: "Cairo", sans-serif;
  font-size: 22px; font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.b-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.b-specs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: var(--gold-faint);
  padding: 4px 12px;
  border-radius: 999px;
}

.b-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.b-price {
  display: flex; align-items: baseline; gap: 8px;
}
.price-now {
  font-family: "Cairo", sans-serif;
  font-size: 26px; font-weight: 900;
  color: var(--gold);
}
.price-now small {
  font-size: 12px; font-weight: 500;
  color: var(--ink-dim);
  margin-inline-start: 2px;
}
.price-old {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: line-through;
}
.price-old-mini {
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: line-through;
  margin-inline-start: 4px;
}


/* mini cards (1×1) */
.bento-card.mini {
  display: flex; flex-direction: column;
  gap: 10px;
}
.b-svg-stage {
  width: 100%; height: 140px;
  display: flex; align-items: flex-end; justify-content: center;
  background: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
}
.b-svg-stage img {
  max-width: 100%; max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px var(--gold-glow));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s;
}
.bento-card:hover .b-svg-stage img {
  transform: translateY(-8px) scale(1.06);
  filter: drop-shadow(0 16px 36px var(--gold-glow)) drop-shadow(0 0 20px var(--gold-soft));
}
.stage-wide { height: 100%; min-height: 200px; }
.b-svg {
  width: 80%; height: 80%;
  transition: transform 0.4s;
}
.bento-card:hover .b-svg { transform: scale(1.08); }

.b-body-mini {
  display: flex; flex-direction: column;
  gap: 4px; flex: 1;
}
.b-title-mini {
  font-family: "Cairo", sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}
.b-desc-mini {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.b-footer-mini {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
  padding-top: 8px;
}

/* Wide bento (2-column) */
.wide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
  align-items: center;
}


.products-cta {
  display: flex; justify-content: center;
  margin-top: 48px;
}

/* ═══════════════════════════════════════════
   ABOUT / WHY US
═══════════════════════════════════════════ */
.about {
  padding: 100px 0;
  background-color: var(--bg);
  /* Same grid pattern as the hero background */
  background-image:
    linear-gradient(rgba(78,168,222, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,168,222, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 60%);
  filter: blur(60px);
  top: -200px; left: -100px;
  pointer-events: none;
}

.about-grid {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
}

.about-text {
  display: flex; flex-direction: column; gap: 20px;
}
.about-text > .eyebrow {
  align-self: center;
}
.about-text > h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  text-align: center;
  align-self: center;
}
.lead {
  font-size: 18px; font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 540px;
}

.why-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 24px;
  margin-block: 12px;
}
.why-list li {
  display: flex; gap: 20px;
  align-items: flex-start;
}
.why-num {
  font-family: "Orbitron", sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--gold);
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--gold-soft);
  /* Radiating glow — both number text and box edges */
  text-shadow:
    0 0 8px var(--gold-glow),
    0 0 16px rgba(78,168,222, 0.4);
  box-shadow:
    0 0 14px var(--gold-glow),
    0 0 28px rgba(78,168,222, 0.22),
    inset 0 0 10px rgba(78,168,222, 0.12);
  animation: why-num-pulse 3.2s ease-in-out infinite;
}

@keyframes why-num-pulse {
  0%, 100% {
    box-shadow:
      0 0 14px var(--gold-glow),
      0 0 28px rgba(78,168,222, 0.22),
      inset 0 0 10px rgba(78,168,222, 0.12);
  }
  50% {
    box-shadow:
      0 0 22px var(--gold-glow),
      0 0 38px rgba(78,168,222, 0.35),
      inset 0 0 14px rgba(78,168,222, 0.18);
  }
}

/* Symmetric eyebrow line for centered about title */
.about-text > .eyebrow::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}

/* Stagger the pulse so the three numbers don't beat together */
.why-list li:nth-child(2) .why-num { animation-delay: -1s; }
.why-list li:nth-child(3) .why-num { animation-delay: -2s; }

@media (prefers-reduced-motion: reduce) {
  .why-num { animation: none; }
}
.why-list h4 {
  font-family: "Cairo", sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.why-list p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Make the lead paragraph's <strong> use the brand accent */
.lead strong {
  color: var(--gold);
  font-weight: 700;
}

/* ── Social media containers ── */
.social-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.social-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
  min-width: 0;
}
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--gold-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.social-card:hover {
  border-color: var(--gold);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(78,168,222, 0.18);
}
.social-card:hover::before { opacity: 1; }

.social-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  z-index: 1;
  /* Radiating glow — same vibe as why-num */
  box-shadow:
    0 0 14px var(--gold-glow),
    0 0 28px rgba(78,168,222, 0.22),
    inset 0 0 10px rgba(78,168,222, 0.12);
  filter: drop-shadow(0 0 4px var(--gold-glow));
  animation: social-icon-pulse 3.2s ease-in-out infinite;
}
.social-card:hover .social-icon {
  background: var(--gold);
  color: var(--bg);
}

/* Stagger pulse between the three platform icons */
.social-grid .social-card:nth-child(2) .social-icon { animation-delay: -1s; }
.social-grid .social-card:nth-child(3) .social-icon { animation-delay: -2s; }

@keyframes social-icon-pulse {
  0%, 100% {
    box-shadow:
      0 0 14px var(--gold-glow),
      0 0 28px rgba(78,168,222, 0.22),
      inset 0 0 10px rgba(78,168,222, 0.12);
  }
  50% {
    box-shadow:
      0 0 22px var(--gold-glow),
      0 0 38px rgba(78,168,222, 0.35),
      inset 0 0 14px rgba(78,168,222, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon { animation: none; }
}

.social-info {
  display: flex; flex-direction: column;
  gap: 3px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.social-platform {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  text-transform: uppercase;
  transition: color 0.25s;
}
.social-card:hover .social-platform { color: var(--gold); }

.social-handle {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile tweaks for social grid — keep 3-in-a-row, stack inside cards */
@media (max-width: 599px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .social-card {
    padding: 16px 6px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .social-icon { width: 42px; height: 42px; }
  .social-info {
    align-items: center;
    gap: 2px;
  }
  .social-platform {
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }
  /* hide the @handle on phones — saves space and avoids repetition */
  .social-handle { display: none; }
}

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.newsletter-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, var(--gold-soft), transparent 60%);
  pointer-events: none;
}

.news-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.news-inner h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}
.news-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 480px;
}

.news-form {
  display: flex; gap: 0;
  width: 100%; max-width: 500px;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.news-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: none; outline: none;
  padding: 0 24px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  height: 48px;
  direction: rtl;
}
.news-input::placeholder { color: var(--ink-dim); }
.news-form .btn-primary {
  border-radius: 999px;
  margin: 4px;
  height: 40px;
  padding: 0 22px;
}

.news-note {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #060912;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.f-brand {
  display: flex; flex-direction: column; gap: 20px;
}
.f-brand-head {
  display: flex; align-items: center; gap: 14px;
}
.f-logo {
  width: 42px; height: 42px;
  object-fit: contain;
}
.f-name {
  font-family: "Orbitron", sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.f-tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 2px;
}
.f-about {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 320px;
}

.f-social {
  display: flex; gap: 8px;
}
.s-link {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  display: grid; place-items: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.s-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.f-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.f-col {
  display: flex; flex-direction: column; gap: 7px;
}
.f-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}
.f-col a {
  color: var(--ink-dim);
  font-size: 12px;
  padding-block: 2px;
  transition: color 0.2s;
}
.f-col a:hover { color: var(--gold); }

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

.f-pay {
  display: flex; align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.pay-chip {
  font-family: "Orbitron", sans-serif;
  font-size: 11px; font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════
   FOCUS STATES
═══════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1199px) {
  .container { padding-inline: 24px; }
  .nav { padding-inline: 24px; }

  .hero { padding: 110px 32px 70px; gap: 40px; }
  .hero-image { max-width: 380px; }
  .hero-metric.tl { top: 88px; right: 24px; }
  .hero-metric.tr { top: 88px; left: 24px; }
  .hero-metric.bl { bottom: 60px; right: 24px; }
  .hero-metric.br { bottom: 60px; left: 24px; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .nav-links { gap: 20px; }
}

@media (max-width: 999px) {
  .nav-links { display: none; }
  .nav .cta { display: none; }
  .nav-burger { display: flex; }

  .hero {
    min-height: auto;
    padding: 100px 24px 80px;
    grid-template-columns: 1fr;
    grid-template-areas: "img" "txt";
    gap: 28px;
  }
  .hero-image {
    width: 280px;
    max-width: 280px;
    aspect-ratio: 1;
    margin: 0 auto;
    justify-self: center;
  }
  .hero-inner {
    justify-self: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0;
  }
  .hero-cta-row { justify-content: center; }
  .hero-assure { justify-content: center; }
  .hero-corners { inset: 16px; }
  .hero-metric { display: none; }
  .scroll-hint { display: none; }

  /* Trust strip — convert to 2×2 card grid on tablets */
  .trust-strip { padding: 22px 0; }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .trust-item {
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    gap: 12px;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
  }
  .trust-item:hover {
    border-color: var(--gold);
    background: var(--card-hover);
    transform: translateY(-2px);
  }
  .trust-item > svg { width: 24px; height: 24px; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .wide { grid-column: span 2; }
  .wide-grid { grid-template-columns: 1fr; }
  .hero-bento .b-image { width: 50%; }

  .about-grid { max-width: 100%; }



  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 599px) {
  .container { padding-inline: 16px; }
  .nav { padding-inline: 16px; }
  .hero { padding: 90px 16px 60px; }

  /* الهاتف هو الجمهور الأساسي — عناوين متوازنة تُبقي المحتوى والزر قريبَين من أول شاشة */
  .hero-title { font-size: 44px; line-height: 1.05; }
  .slogan { font-size: 15px; }
  .head h2 { font-size: 30px; }
  .b-title { font-size: 32px; }

  /* زر الشراء أبرز وأسهل باللمس */
  .hero-cta-row .btn-primary { padding: 15px 32px; font-size: 15.5px; }
  .hero-assure { font-size: 12px; gap: 6px 14px; }

  .hero-image { width: 220px; max-width: 220px; }
  .hero-corners { inset: 12px; }
  .hero-corner { width: 20px; height: 20px; }

  .categories, .products, .about, .bestsellers, .testimonials, .newsletter {
    padding-block: 64px;
  }

  /* Trust strip — keep 2×2 grid on mobile, tighter card style */
  .trust-strip { padding: 16px 0; }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .trust-item {
    padding: 12px 12px;
    gap: 10px;
    border-radius: 8px;
  }
  .trust-item > svg { width: 22px; height: 22px; }
  .t-title { font-size: 13px; line-height: 1.25; }
  .t-sub { font-size: 11px; line-height: 1.4; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 12px; padding-top: 36px; }

  .bento { grid-template-columns: 1fr; }
  .wide { grid-column: span 1; }
  .stage-wide { min-height: 140px; }




  .news-form { flex-direction: column; border-radius: 12px; }
  .news-input {
    border-radius: 8px 8px 0 0;
    height: 52px;
  }
  .news-form .btn-primary {
    border-radius: 0 0 8px 8px;
    margin: 0;
    height: 48px;
    width: 100%;
    justify-content: center;
  }

  .f-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* هواتف بشاشة قصيرة — نضغط الهيرو كي يظهر زر الشراء كاملاً في أول شاشة */
@media (max-width: 599px) and (max-height: 700px) {
  .hero { padding: 80px 16px 44px; gap: 16px; }
  .hero-image { width: 175px; max-width: 175px; }
  .hero-title { font-size: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── وضع الأداء الخفيف (perf-lite.js) — أجهزة ضعيفة ─────────────── */
html.gp-lite .grain { display: none !important; }
html.gp-lite .nav, html.gp-lite .mobile-menu { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ════════════════════════════════════════════════════════════════
   كوكب الاستيراد المباشر (globe.js + img/globe-import.svg)
   البطاقة تحجز ارتفاعها بـ aspect-ratio قبل وصول الخريطة، فلا
   يقفز التخطيط لحظة الحقن. والنسبة نفسها هي التي يوافقها viewBox
   في كل مقاس، فلا يحصل قصّ غير مقصود.
   ════════════════════════════════════════════════════════════════ */
.import-sec { padding: 8px 0 52px; }

.gi-card {
  position: relative;
  aspect-ratio: 1000 / 600;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #070f22;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.gi-card svg { display: block; width: 100%; height: 100%; }

.gi-lines {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px;
}
.gi-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9, 20, 42, .72);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.gi-line b { color: var(--gold-light); font-weight: 700; }

@media (max-width: 760px) {
  .import-sec { padding: 4px 0 40px; }
  .gi-card { aspect-ratio: 960 / 800; border-radius: 16px; }
  /* ثلاثة أسطر مستقلّة على الهاتف بدل صفّ يلتفّ التفافاً عشوائياً */
  .gi-lines { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
  .gi-line { justify-content: center; padding: 11px 14px; }
}

/* ════════════════════════════════════════════════════════════════
   مدخل Xbox Game Pass (بين التصنيفات والماركة)
   القسم الكامل في pages/gamepass.html — هذه بطاقة تعريف فقط.
   يبقى hidden حتى يؤكّد gamepass.js أن القسم مفعّل وفيه باقات،
   فلا يظهر هيكل فارغ لو أُطفئ من NEXUS أو تعطّلت المزامنة.
   ════════════════════════════════════════════════════════════════ */
/* فاصل رأسي: البطاقتان تقعان الآن بين شريط اشتراكات البث وبين
   التصنيفات، وبلا هامش تلتصق حوافّهما بالقسمين وببعضهما. الهامش
   العمودي بين قسمين متجاورين ينهار لواحد، فتبقى المسافة ٢٢ لا ٤٤. */
.xge-sec { padding: 0; margin: 22px 0; }

.xge {
  --x:      #107C10;
  --x-lite: #6ee06e;
  --x-neon: #9BF00B;
  --x-glow: rgba(110, 224, 110, 0.42);
  --x-line: rgba(110, 224, 110, 0.22);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  border: 1px solid var(--x-line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(16, 124, 16, 0.20), rgba(5, 9, 10, 0.5));
  transition: border-color 0.2s, box-shadow 0.2s;
}
.xge:hover {
  border-color: rgba(110, 224, 110, 0.5);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5), 0 0 44px -18px var(--x-glow);
}
/* بلا صورة → عمود واحد بدل فراغ أسود */
.xge.noart { grid-template-columns: 1fr; }
.xge.noart .xge-art { display: none; }

.xge-art { position: relative; min-height: 210px; background: #081109; }
.xge-art img { width: 100%; height: 100%; object-fit: cover; }
/* التلاشي نحو جهة النص يوحّد الصورة مع اللوحة مهما كان لونها */
.xge-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(5, 9, 10, 0.92), rgba(5, 9, 10, 0.15) 55%, transparent);
}

.xge-txt {
  padding: 28px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 13px;
}
/* قفل تعاون: شعار إكسبوكس × شعار المتجر — بلون واحد، بلا كلمات */
.xge-lock {
  display: flex; align-items: center; gap: 14px;
  color: var(--x-lite);
}
.xge-sph {
  width: 48px; height: 48px; flex-shrink: 0;
  filter: drop-shadow(0 0 14px var(--x-glow));
}
.xge-x {
  font-family: 'Orbitron', sans-serif; font-size: 17px; font-weight: 400;
  opacity: 0.42; line-height: 1; -webkit-user-select: none; user-select: none;
}
/* شعار المتجر بنفس الأخضر عبر تقنيع الصورة — لا نحتاج نسخة خضراء منها.
   النسبة 1191×1103 محفوظة في العرض والارتفاع. */
.xge-store {
  width: 52px; height: 48px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("../../img/logo.png"); mask-image: url("../../img/logo.png");
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  filter: drop-shadow(0 0 14px var(--x-glow));
}
.xge-sub { font-size: 13.5px; color: #a9bda9; line-height: 1.85; }
.xge-sub b { color: #dcefdc; font-weight: 800; }
.xge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 3px; }
.xge-from { font-size: 12px; color: #8a9a8b; }
.xge-from b {
  display: block; margin-top: 3px;
  font-family: 'Orbitron', sans-serif; font-size: 19px; color: var(--x-lite);
  text-shadow: 0 0 18px rgba(110, 224, 110, 0.3);
}
.xge-cta {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--x); color: #fff; font-weight: 800; font-size: 14px;
  padding: 13px 26px; border-radius: 12px;
  box-shadow: 0 8px 24px -10px rgba(16, 124, 16, 0.95);
  transition: filter 0.16s, transform 0.16s;
}
.xge:hover .xge-cta { filter: brightness(1.2); transform: translateY(-2px); }

/* ── الهاتف: بانر — الشعارات والزرّ فوق الصورة ──────────────────
   البطاقتان كانتا تأكلان ٧٧٦ بكسل من الرئيسية قبل أن يصل الزائر إلى
   التصنيفات. بوضع النص فوق الصورة بدل تحتها ينزل المجموع إلى ~٣١٠،
   وتبقى الصورة ظاهرة — وهي ما يميّز المدخل عن مجرّد زرّ.
   التدرّج داكن جهة اليمين حيث النص، وشفّاف جهة اليسار حيث الصورة. */
@media (max-width: 760px) {
  .xge { grid-template-columns: 1fr; border-radius: 16px; position: relative; }
  .xge-art { min-height: 0; aspect-ratio: 21 / 9; }
  .xge-art img { opacity: 0.38; }
  .xge-art::after { display: none; }      /* التدرّج انتقل إلى طبقة النص */

  .xge-txt {
    position: absolute; inset: 0;
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; column-gap: 11px; row-gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(to left,
      rgba(5, 9, 10, 0.95) 34%, rgba(5, 9, 10, 0.60) 66%, rgba(5, 9, 10, 0.30));
  }
  /* بلا صورة تنهار البطاقة لو بقي النص مطلقاً — نُعيده لمجرى الصفحة */
  .xge.noart .xge-txt { position: static; background: none; padding: 15px 16px; }

  .xge-lock { grid-column: 1; grid-row: 1; gap: 9px; }
  .xge-sub  { grid-column: 1; grid-row: 2; font-size: 12px; line-height: 1.6; }
  /* اسم الاشتراك هو النصّ الوحيد الظاهر على الهاتف — نكبّره ونُضيئه
     بلون الماركة ليكون أوّل ما تلتقطه العين بعد الشعار */
  .xge-sub b {
    font-size: 16px; color: var(--x-lite); white-space: nowrap;
    text-shadow: 0 0 12px var(--x-glow), 0 0 30px var(--x-glow);
  }
  .xge-row  { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; gap: 10px; }

  .xge-sph { width: 32px; height: 32px; }
  .xge-store { width: 35px; height: 32px; }
  .xge-x { font-size: 13px; }
  /* تفصيل الجملة يُخفى: عرض النص هنا نصف الشاشة، والاسم وحده يكفي
     لأن الشعار فوقه يقول الباقي */
  .xge-more { display: none; }
  .xge-cta { padding: 0 16px; min-height: 44px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .xge, .xge-cta { transition: none; }
  .xge:hover .xge-cta { transform: none; }
}

/* ── مدخل PlayStation Plus ──────────────────────────────────────
   نفس بنية مدخل كيم باس حرفياً؛ المتغيّرات معرَّفة على .xge نفسها
   فيكفي إعادة تعبئتها بأزرق بلايستيشن ليتلوّن المدخل كاملاً. */
.xge.xpe {
  --x:      #0070D1;
  --x-lite: #63B3F5;
  --x-neon: #63B3F5;
  --x-glow: rgba(99, 179, 245, 0.42);
  --x-line: rgba(99, 179, 245, 0.22);
  background: linear-gradient(120deg, rgba(0, 112, 209, 0.22), rgba(4, 7, 15, 0.5));
}
.xge.xpe:hover { border-color: rgba(99, 179, 245, 0.5); }
.xge.xpe .xge-art { background: #060c18; }
.xge.xpe .xge-art::after {
  background: linear-gradient(to left, rgba(4, 7, 15, 0.92), rgba(4, 7, 15, 0.15) 55%, transparent);
}
.xge.xpe .xge-sub { color: #a3b6cc; }
.xge.xpe .xge-sub b { color: #dbe9f7; }
.xge.xpe .xge-from { color: #8394a8; }
.xge.xpe .xge-cta { box-shadow: 0 8px 24px -10px rgba(0, 112, 209, 0.95); }
/* شعار بلايستيشن بالتقنيع نفسه — النسبة 311×240 محفوظة */
.xpe-ps {
  width: 62px; height: 48px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("../../img/ps-logo.png"); mask-image: url("../../img/ps-logo.png");
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  filter: drop-shadow(0 0 14px var(--x-glow));
}
@media (max-width: 760px) {
  /* التدرّج بأزرق بلايستيشن الداكن بدل أسود إكسبوكس */
  .xge.xpe .xge-txt {
    background: linear-gradient(to left,
      rgba(4, 7, 15, 0.95) 34%, rgba(4, 7, 15, 0.60) 66%, rgba(4, 7, 15, 0.30));
  }
  .xge.xpe.noart .xge-txt { background: none; }
  /* يتجاوز اللون الأبيض المعرَّف أعلاه للحاسوب، فيُضيء الاسم بأزرق بلايستيشن */
  .xge.xpe .xge-sub b { color: var(--x-lite); }
  .xpe-ps { width: 41px; height: 32px; }
}

/* ═══════════════ مدخل «سوّي عرضك» ═══════════════
   شريط أحمر مائل بالزاوية، وثلاث صور منتجات تخرج من حافة الإطار
   العليا بنمط «الأوراق». الأحمر لون تنبيه للخصم وحده ولا يدخل هوية
   الموقع الزرقاء.

   القصّ محصور في .bx-corner لا على البطاقة: لو وُضع overflow:hidden
   على البطاقة كلها لقصَّ الصور الخارجة وضاع العمق كلّه.
   ═══════════════════════════════════════════════ */
.bundle-entry { padding: 26px 0 8px; }
.bx {
  position: relative;
  max-width: 560px;
  margin: 44px auto 0;
  padding: 0 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(140deg, #161b2f, #0c1426);
}
.bx-corner {
  position: absolute; top: 0; left: 0; width: 136px; height: 136px;
  overflow: hidden; border-radius: 20px 0 0 0; z-index: 4; pointer-events: none;
}
.bx-corner span {
  position: absolute; top: 19px; left: -49px; width: 180px;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, #c81e2a, #ff3d47);
  color: #fff; text-align: center; padding: 7px 0;
  font-size: 12.5px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.bx-imgs {
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  margin-top: -28px; position: relative; z-index: 2;
}
.bx-imgs i { position: relative; display: block; }
.bx-imgs .a, .bx-imgs .c { width: 76px; height: 76px; }
.bx-imgs .b { width: 94px; height: 94px; z-index: 2; }
.bx-imgs i::before {
  content: ""; position: absolute; bottom: 2px; left: 14%; width: 72%; height: 16px;
  border-radius: 50%; background: var(--gold-glow); filter: blur(11px);
}
.bx-imgs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 11px 15px rgba(0, 0, 0, 0.6));
}
.bx-body { text-align: center; margin-top: 10px; }
.bx-body h3 { font-size: 19px; font-weight: 900; }
.bx-price { display: flex; align-items: baseline; justify-content: center; gap: 11px; margin-top: 10px; }
.bx-old {
  font-size: 16px; font-weight: 800; color: var(--ink-dim);
  text-decoration: line-through; text-decoration-color: #ff3d47; text-decoration-thickness: 2px;
}
.bx-new { font-size: 29px; font-weight: 900; color: #ff3d47; }
.bx-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }
.bx-giftnote { display: inline-block; font-size: 11px; color: var(--ink-dim); }
.bx-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; min-height: 50px; border-radius: 13px;
  background: linear-gradient(135deg, #ff3d47, #c81e2a);
  color: #fff; font-size: 14px; font-weight: 900; text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 61, 71, 0.34);
}
/* الأرقام لاتينية معزولة الاتجاه — بدونها يقلب المتصفّح ترتيبها مع العربي */
.bx .num {
  direction: ltr; unicode-bidi: isolate; display: inline-block;
  font-variant-numeric: tabular-nums;
}
