/* ============================================================
   ملك البليستيشن — نظام تصميم نظيف (Refined Dark / Retail)
   مبدأ: وضوح، ثقة، تسلسل، مساحات. بدون توهّج أو تدرجات أو حركة زائدة.
   ============================================================ */

:root{
  --bg:#0f1115;
  --surface:#161922;
  --surface-2:#1c2029;
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.06);
  --ink:#edeef2;
  --ink-soft:#c7cad2;
  --muted:#8f939d;
  --accent:#d8a531;        /* ذهبي مكتوم — يُستعمل بحذر */
  --accent-ink:#1a1305;
  --wa:#1faa52;
  --maxw:1180px;
  --r:14px;
  --r-sm:10px;
  --font:'Tajawal','Cairo','Segoe UI',Tahoma,Arial,sans-serif;
  --head:'Cairo','Tajawal','Segoe UI',Tahoma,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  line-height:1.75;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--head);line-height:1.25;font-weight:700;letter-spacing:-.01em}
::selection{background:var(--accent);color:var(--accent-ink)}

.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.section{padding:92px 0}
.section-sm{padding:60px 0}

/* ===== رأس القسم ===== */
.head{max-width:640px;margin-bottom:48px}
.head.center{margin-inline:auto;text-align:center}
.eyebrow{
  display:inline-block;font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.08em;
  color:var(--accent);text-transform:uppercase;margin-bottom:14px;
}
.head h2{font-size:clamp(26px,4vw,38px);color:var(--ink)}
.head p{color:var(--muted);font-size:17px;margin-top:14px}

/* ===== الأزرار ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--head);font-weight:700;font-size:15px;
  padding:13px 24px;border-radius:var(--r-sm);border:1px solid transparent;cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:#e6b545;transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-outline:hover{border-color:var(--ink-soft);background:rgba(255,255,255,.03)}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{background:#1c9a4b;transform:translateY(-1px)}
.btn-lg{padding:15px 30px;font-size:16px}
.btn-block{width:100%}

/* ===== الهيدر ===== */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(15,17,21,.86);backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line-2);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:70px;gap:24px}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--head);font-weight:800;font-size:18px;color:var(--ink)}
.logo .mark{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;border:1px solid var(--line)}
.logo img.mark{display:block}
.logo span{color:var(--muted);font-weight:600;font-size:13px}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  padding:9px 14px;border-radius:8px;color:var(--muted);font-weight:600;font-size:15px;transition:color .18s, background .18s;
}
.nav-links a:hover,.nav-links a.active{color:var(--ink)}
.nav-actions{display:flex;align-items:center;gap:10px}
.burger{display:none;background:none;border:0;cursor:pointer;padding:8px;flex-direction:column;gap:5px}
.burger span{width:24px;height:2px;background:var(--ink);border-radius:2px;transition:.25s}

/* قائمة الموبايل */
.mobile-menu{
  position:fixed;inset:0;z-index:200;background:var(--bg);
  display:flex;flex-direction:column;padding:24px;
  transform:translateX(100%);transition:transform .3s ease;
}
.mobile-menu.open{transform:translateX(0)}
.mobile-menu .mm-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}
.mm-close{background:none;border:0;color:var(--ink);font-size:30px;cursor:pointer;line-height:1}
.mobile-menu a{font-family:var(--head);font-size:20px;font-weight:700;padding:16px 0;border-bottom:1px solid var(--line-2);color:var(--ink)}
.mobile-menu a:last-of-type{border-bottom:0}

/* ===== الهيرو ===== */
.hero{padding:72px 0 56px;border-bottom:1px solid var(--line-2)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
.hero-loc{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;font-weight:600;margin-bottom:20px}
.hero-loc svg{width:16px;height:16px;color:var(--accent)}
.hero h1{font-size:clamp(32px,5vw,52px);color:var(--ink);font-weight:800}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero .lead{color:var(--ink-soft);font-size:clamp(16px,2vw,19px);margin-top:22px;max-width:540px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.hero-points{display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;padding-top:26px;border-top:1px solid var(--line-2)}
.hero-points div{display:flex;align-items:center;gap:9px;color:var(--ink-soft);font-size:14.5px;font-weight:600}
.hero-points svg{width:18px;height:18px;color:var(--accent);flex:none}
.hero-media{position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--line);aspect-ratio:3/4;max-height:600px;background:var(--surface)}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center top}
/* لوحة اللوغو بالهيرو + حركة خفيفة بالخلفية */
.hero-brand{display:grid;place-items:center;border-color:rgba(216,165,49,.28);
  background:radial-gradient(120% 100% at 50% 38%, #1b1f29 0%, #0f1115 72%)}
.hero-aura{position:absolute;inset:-25%;pointer-events:none;z-index:0;
  background:radial-gradient(circle at 50% 45%, rgba(216,165,49,.22) 0%, rgba(216,165,49,.08) 36%, transparent 62%)}
.hero-brand .hero-logo{position:relative;z-index:1;width:62%;height:auto;max-width:220px;aspect-ratio:1;
  object-fit:cover;object-position:center;border-radius:50%;
  border:1px solid rgba(216,165,49,.5);box-shadow:0 0 55px rgba(216,165,49,.2)}

/* ===== شريط الثقة ===== */
.trust{border-bottom:1px solid var(--line-2);background:var(--surface)}
.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line-2)}
.trust-item{background:var(--surface);display:flex;align-items:center;gap:13px;padding:24px 22px}
.trust-item svg{width:26px;height:26px;color:var(--accent);flex:none}
.trust-item b{display:block;font-family:var(--head);font-weight:700;font-size:15px;color:var(--ink)}
.trust-item span{color:var(--muted);font-size:13px}

/* ===== الأقسام ===== */
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.cat{
  display:block;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);
  padding:30px;transition:border-color .2s ease, background .2s ease;
}
.cat:hover{border-color:var(--line);background:var(--surface-2)}
.cat .ic{width:46px;height:46px;border-radius:10px;display:grid;place-items:center;background:rgba(216,165,49,.1);margin-bottom:18px}
.cat .ic svg{width:24px;height:24px;color:var(--accent)}
.cat h3{font-size:20px;color:var(--ink);margin-bottom:8px}
.cat p{color:var(--muted);font-size:15px;margin-bottom:16px}
.cat .more{font-family:var(--head);font-weight:700;font-size:14px;color:var(--accent);display:inline-flex;align-items:center;gap:6px}
.cat:hover .more{gap:10px}

/* ===== المنتجات ===== */
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product{
  background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .2s ease, transform .2s ease;
}
.product:hover{border-color:var(--line);transform:translateY(-3px)}
.product .thumb{
  position:relative;aspect-ratio:4/3;background:#0c0e13;overflow:hidden;
  border-bottom:1px solid var(--line-2);display:grid;place-items:center;
}
.product .thumb img{width:100%;height:100%;object-fit:cover}
.product .thumb .ph{display:none;place-items:center;width:100%;height:100%}
.product .thumb .ph svg{width:96px;height:96px;opacity:.85}
.product .badge{
  position:absolute;top:12px;inset-inline-start:12px;
  background:rgba(15,17,21,.78);color:var(--ink);border:1px solid var(--line);
  font-family:var(--head);font-weight:700;font-size:12px;padding:5px 11px;border-radius:7px;
}
.product .offer-flag{
  position:absolute;top:12px;inset-inline-end:12px;
  background:var(--accent);color:var(--accent-ink);
  font-family:var(--head);font-weight:700;font-size:12px;padding:5px 11px;border-radius:7px;
}
.product .body{padding:20px;display:flex;flex-direction:column;gap:7px;flex:1}
.product h4{font-size:17px;color:var(--ink);font-weight:700}
.product .meta{color:var(--muted);font-size:13.5px;flex:1;line-height:1.6}
.product .price{display:flex;align-items:baseline;gap:9px;margin-top:6px}
.product .price b{font-family:var(--head);font-size:20px;color:var(--ink);font-weight:800}
.product .price s{color:var(--muted);font-size:14px;opacity:.7}
.product .order{
  margin-top:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:transparent;border:1px solid var(--wa);color:#5fd58a;
  padding:11px;border-radius:var(--r-sm);font-family:var(--head);font-weight:700;font-size:14.5px;
  transition:background .18s, color .18s;cursor:pointer;
}
.product .order:hover{background:var(--wa);color:#fff}
.product .order svg{width:17px;height:17px}

/* بحث/فلتر */
.filter-bar{max-width:480px;margin:0 auto 38px}
.search-box{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:2px 14px}
.search-box svg{width:18px;height:18px;color:var(--muted);flex:none}
.search-box input{flex:1;background:none;border:0;outline:none;color:var(--ink);font-family:inherit;font-size:15px;padding:12px 2px}
.search-box input::placeholder{color:var(--muted)}
.search-box:focus-within{border-color:var(--accent)}
.filter-count{text-align:center;color:var(--muted);font-size:13px;margin-top:10px;min-height:14px}
.no-results{grid-column:1/-1;text-align:center;color:var(--muted);padding:40px 10px}

/* ===== عن المحل ===== */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.about-media{border-radius:18px;overflow:hidden;border:1px solid var(--line);aspect-ratio:3/4;max-height:560px;background:var(--surface)}
.about-media img{width:100%;height:100%;object-fit:cover;object-position:center top}
.about h2{font-size:clamp(26px,4vw,36px);margin-bottom:18px}
.about p{color:var(--ink-soft);font-size:16.5px;margin-bottom:16px}
.about .facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}
.about .fact b{font-family:var(--head);display:block;color:var(--ink);font-size:15px;margin-bottom:3px}
.about .fact span{color:var(--muted);font-size:14px}

/* ===== الأسئلة الشائعة ===== */
.faq{max-width:760px;margin:0 auto;border-top:1px solid var(--line-2)}
.faq-item{border-bottom:1px solid var(--line-2)}
.faq-q{
  width:100%;text-align:start;background:none;border:0;cursor:pointer;color:var(--ink);
  font-family:var(--head);font-weight:700;font-size:17px;padding:22px 4px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.faq-ic{flex:none;color:var(--muted);font-size:22px;transition:transform .25s, color .25s;line-height:1}
.faq-item.open .faq-ic{transform:rotate(45deg);color:var(--accent)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.faq-item.open .faq-a{max-height:240px}
.faq-a p{padding:0 4px 22px;color:var(--muted);font-size:15.5px;line-height:1.8}

/* ===== التواصل ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}
.contact-info{background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r);padding:34px}
.contact-info h3{font-size:22px;margin-bottom:6px}
.contact-info .sub{color:var(--muted);margin-bottom:24px}
.c-row{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--line-2)}
.c-row:last-child{border-bottom:0}
.c-row .ic{width:42px;height:42px;border-radius:10px;flex:none;display:grid;place-items:center;background:rgba(216,165,49,.1)}
.c-row .ic svg{width:20px;height:20px;color:var(--accent)}
.c-row b{display:block;font-family:var(--head);font-size:15px;color:var(--ink)}
.c-row span{color:var(--muted);font-size:14px}
.map-card{border-radius:var(--r);overflow:hidden;border:1px solid var(--line-2);min-height:340px;display:flex;flex-direction:column;background:var(--surface)}
.map-card iframe{width:100%;flex:1;border:0;filter:grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.85) brightness(.95)}
.map-card .foot{padding:15px 20px;color:var(--ink-soft);font-size:14px;display:flex;align-items:center;gap:9px;border-top:1px solid var(--line-2)}
.map-card .foot svg{width:17px;height:17px;color:var(--accent)}

/* ===== الفوتر ===== */
.site-footer{border-top:1px solid var(--line-2);background:var(--surface);padding:56px 0 30px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px}
.foot-brand p{color:var(--muted);font-size:14.5px;margin-top:14px;max-width:330px;line-height:1.8}
.socials{display:flex;gap:10px;margin-top:18px}
.socials a{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;border:1px solid var(--line-2);transition:.2s}
.socials a:hover{border-color:var(--line);background:var(--surface-2)}
.socials a svg{width:19px;height:19px;color:var(--ink-soft)}
.foot-col h5{font-family:var(--head);font-size:15px;color:var(--ink);margin-bottom:14px}
.foot-col a{display:block;color:var(--muted);font-size:14.5px;padding:6px 0;transition:color .18s}
.foot-col a:hover{color:var(--ink)}
.foot-bottom{border-top:1px solid var(--line-2);margin-top:40px;padding-top:24px;text-align:center;color:var(--muted);font-size:13px}

/* ===== بانر صفحات الأقسام ===== */
.page-head{padding:54px 0 8px;border-bottom:1px solid var(--line-2)}
.crumbs{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:14px;margin-bottom:18px}
.crumbs a{color:var(--ink-soft)}
.crumbs a:hover{color:var(--accent)}
.crumbs .sep{opacity:.5}
.page-head h1{font-size:clamp(28px,4.5vw,42px);color:var(--ink)}
.page-head p{color:var(--muted);font-size:17px;margin-top:14px;max-width:600px}
.page-head .chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.page-head .chips span{padding:6px 13px;border:1px solid var(--line-2);border-radius:99px;color:var(--ink-soft);font-size:13px}
.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-family:var(--head);font-weight:700;margin-top:8px}

/* ===== زر العودة للأعلى ===== */
.to-top{
  position:fixed;inset-inline-start:22px;bottom:22px;z-index:90;
  width:46px;height:46px;border-radius:10px;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);color:var(--ink-soft);
  display:grid;place-items:center;opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s;
}
.to-top svg{width:20px;height:20px}
.to-top.show{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{border-color:var(--ink-soft);color:var(--ink)}

/* زر واتساب عائم */
.wa-float{
  position:fixed;inset-inline-end:22px;bottom:22px;z-index:90;
  display:inline-flex;align-items:center;gap:9px;
  background:var(--wa);color:#fff;font-family:var(--head);font-weight:700;font-size:14px;
  padding:12px 18px;border-radius:99px;box-shadow:0 8px 24px rgba(0,0,0,.3);transition:.2s;
}
.wa-float:hover{background:#1c9a4b}
.wa-float svg{width:20px;height:20px}

/* ===== حركة دخول خفيفة ===== */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* ===== استجابة ===== */
@media (max-width:920px){
  .hero-grid{grid-template-columns:1fr;gap:36px}
  .hero-media{order:-1;aspect-ratio:4/5;max-height:520px}
  .trust-row{grid-template-columns:1fr 1fr}
  .cats,.products{grid-template-columns:1fr 1fr}
  .about-grid,.contact-grid{grid-template-columns:1fr;gap:32px}
  .about-media{aspect-ratio:4/5}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .section{padding:64px 0}
  .nav-links{display:none}
  .burger{display:flex}
  .nav-actions .btn{display:none}
  .cats,.products,.trust-row,.about .facts,.foot-grid{grid-template-columns:1fr}
  .container{padding:0 18px}
  .contact-info{padding:26px}
}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  *{scroll-behavior:auto}
}

/* ===== تفاعلات ولمسات راقية (مُحسّنة للجوال) ===== */
.btn:active{transform:scale(.96)}
.product:active{transform:scale(.99)}
.cat:active{transform:scale(.99)}

/* لمسة ذهبية متحركة على الكلمة المميّزة بالعنوان */
.hero h1 em{
  background:linear-gradient(100deg,#b07e26 0%,#d8a531 28%,#ffe6a6 50%,#d8a531 72%,#b07e26 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  animation:goldShimmer 5s ease-in-out infinite;
}
@keyframes goldShimmer{0%,100%{background-position:115% 0}50%{background-position:-15% 0}}

/* ظهور متتابع لعناصر الشبكة عند السكرول */
.cats .cat:nth-child(2),.products .product:nth-child(2){transition-delay:.06s}
.cats .cat:nth-child(3),.products .product:nth-child(3){transition-delay:.12s}
.products .product:nth-child(4){transition-delay:.18s}
.products .product:nth-child(5){transition-delay:.24s}
.products .product:nth-child(6){transition-delay:.30s}

/* تكبير صورة المنتج عند اللمس */
.product .thumb img{cursor:zoom-in}
.lb{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(5,6,9,.93);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .25s ease}
.lb.open{opacity:1;pointer-events:auto}
.lb img{max-width:100%;max-height:84vh;border-radius:14px;border:1px solid var(--line);
  transform:scale(.92);transition:transform .3s cubic-bezier(.2,.8,.3,1)}
.lb.open img{transform:scale(1)}
.lb .lb-x{position:absolute;top:18px;inset-inline-start:18px;width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--ink);font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}

@media (prefers-reduced-motion:reduce){
  .hero h1 em{animation:none}
  .cats .cat,.products .product{transition-delay:0s !important}
}

/* ===== بوردر ذهبي مضيء على المنتجات والأقسام ===== */
.product,.cat{
  border-color:rgba(216,165,49,.42);
  box-shadow:0 0 0 1px rgba(216,165,49,.05), 0 0 16px rgba(216,165,49,.09), 0 8px 22px rgba(0,0,0,.28);
}
.product:hover,.cat:hover{
  border-color:rgba(216,165,49,.85);
  box-shadow:0 0 24px rgba(216,165,49,.24), 0 12px 30px rgba(0,0,0,.42);
}

/* بوردر ذهبي مضيء نابض على المنتجات — مضمون على كل الأجهزة (بدون mask) */
.product.kb-on{animation:goldPulse 2.6s ease-in-out infinite}
@keyframes goldPulse{
  0%,100%{border-color:rgba(216,165,49,.45);box-shadow:0 0 0 1px rgba(216,165,49,.05), 0 0 12px rgba(216,165,49,.10), 0 8px 22px rgba(0,0,0,.28)}
  50%{border-color:rgba(255,226,150,.95);box-shadow:0 0 0 1px rgba(216,165,49,.12), 0 0 28px rgba(216,165,49,.34), 0 10px 26px rgba(0,0,0,.34)}
}
@media (prefers-reduced-motion:reduce){ .product.kb-on{animation:none} }
