/* ════════════════════════════════════════════════════════════
   GAYYAR PRO STORE — Premium gaming theme (matches index.html)
   Palette: navy · ice-cyan glow
   Fonts: Tajawal · Rakkas · 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:         #5ce1ff;
  --gold-light:   #a3f0ff;
  --gold-deep:    #1f8fb8;
  --gold-glow:    rgba(92, 225, 255, 0.42);
  --gold-soft:    rgba(92, 225, 255, 0.12);
  --gold-faint:   rgba(92, 225, 255, 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: "Tajawal", "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: "Rakkas", "Tajawal", serif; font-weight: 400; }
.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;
}
.nav .cta:hover {
  background: rgba(92, 225, 255, 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(92, 225, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 255, 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: "Tajawal", 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(92, 225, 255, 0.18);
  border: 1px solid rgba(92, 225, 255, 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(92, 225, 255, 0.4);
  border-color: rgba(92, 225, 255, 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: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 0.95;
  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;
}

.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(92, 225, 255, 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: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  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);
  gap: 16px;
}

.cat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  min-height: 180px;
  justify-content: center;
  /* 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);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 225, 255, 0.18);
}
.cat-card.featured {
  border-color: rgba(92, 225, 255, 0.3);
}

/* respect reduced-motion users — show immediately */
@media (prefers-reduced-motion: reduce) {
  .cat-card { opacity: 1; transform: none; }
}

.cat-corners {
  position: absolute; inset: 8px;
  pointer-events: none;
}
.cat-corners .cc {
  width: 14px; height: 14px;
}

.cat-icon-wrap {
  width: 160px; height: 160px;
  display: grid; place-items: center;
  position: relative;
}
.cat-icon-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: img-glow-breathe 3s ease-in-out infinite;
  transition: transform 0.4s;
}
.cat-card:hover .cat-icon-wrap img {
  transform: scale(1.08) rotate(-2deg);
  animation: img-glow-breathe-strong 2s ease-in-out infinite;
}

@keyframes img-glow-breathe {
  0%, 100% {
    filter: drop-shadow(0 4px 8px var(--gold-glow));
  }
  50% {
    filter:
      drop-shadow(0 4px 12px var(--gold-glow))
      drop-shadow(0 0 18px var(--gold-soft));
  }
}
@keyframes img-glow-breathe-strong {
  0%, 100% {
    filter:
      drop-shadow(0 4px 10px var(--gold-glow))
      drop-shadow(0 0 16px var(--gold-soft));
  }
  50% {
    filter:
      drop-shadow(0 4px 18px var(--gold-glow))
      drop-shadow(0 0 28px var(--gold-soft));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-icon-wrap img {
    animation: none;
    filter: drop-shadow(0 0 10px var(--gold-glow));
  }
}

.cat-name {
  font-family: "Tajawal", sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--gold);
  animation: glow-breathe 3s ease-in-out infinite;
}
.cat-card:hover .cat-name {
  animation: glow-breathe-strong 2s ease-in-out infinite;
}
.cat-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.5;
  animation: glow-breathe 3s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% {
    text-shadow:
      0 0 6px var(--gold-glow),
      0 0 16px var(--gold-glow),
      0 0 30px var(--gold-soft);
  }
  50% {
    text-shadow:
      0 0 12px var(--gold),
      0 0 30px var(--gold-glow),
      0 0 60px var(--gold-soft);
  }
}
@keyframes glow-breathe-strong {
  0%, 100% {
    text-shadow:
      0 0 10px var(--gold),
      0 0 24px var(--gold-glow),
      0 0 50px var(--gold-soft);
  }
  50% {
    text-shadow:
      0 0 18px var(--gold),
      0 0 40px var(--gold-glow),
      0 0 80px var(--gold-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-name, .cat-count {
    animation: none;
    text-shadow: 0 0 10px var(--gold-glow);
  }
}
.cat-arrow {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  position: absolute;
  bottom: 14px; left: 14px;
}
.cat-card:hover .cat-arrow {
  opacity: 1; transform: translateX(0);
}

/* ═══════════════════════════════════════════
   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(92, 225, 255, 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: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--ink);
}

.b-title-md {
  font-family: "Tajawal", 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: "Orbitron", sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--gold);
}
.price-now small {
  font-size: 12px; font-weight: 500;
  color: var(--ink-dim);
  margin-inline-start: 2px;
}
.price-old {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: line-through;
}
.price-old-mini {
  font-family: "Orbitron", 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: "Tajawal", 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(92, 225, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 255, 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: "Rakkas", "Tajawal", serif;
  font-weight: 400;
  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(92, 225, 255, 0.4);
  box-shadow:
    0 0 14px var(--gold-glow),
    0 0 28px rgba(92, 225, 255, 0.22),
    inset 0 0 10px rgba(92, 225, 255, 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(92, 225, 255, 0.22),
      inset 0 0 10px rgba(92, 225, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 22px var(--gold-glow),
      0 0 38px rgba(92, 225, 255, 0.35),
      inset 0 0 14px rgba(92, 225, 255, 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: "Tajawal", 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(92, 225, 255, 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(92, 225, 255, 0.22),
    inset 0 0 10px rgba(92, 225, 255, 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(92, 225, 255, 0.22),
      inset 0 0 10px rgba(92, 225, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 22px var(--gold-glow),
      0 0 38px rgba(92, 225, 255, 0.35),
      inset 0 0 14px rgba(92, 225, 255, 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: "Rakkas", serif;
  font-weight: 400;
  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-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: 56px; }
  .head h2 { font-size: 36px; }
  .b-title { font-size: 32px; }

  .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: 12px; }

  .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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
