/* assets/style.css */
/* =========================================================
   NORDA — design system (Complete)
   ========================================================= */

:root {
  --font: "Manrope", "Tajawal", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  
  --fs-2xs: .75rem; --fs-xs: .8125rem; --fs-sm: .875rem; --fs-md: .9375rem;
  --fs-base: 1rem; --fs-lg: 1.0625rem; --fs-xl: 1.125rem;

  /* Light Theme */
  --bg: #ecebf2;
  --glow-a: #e3dcff;
  --glow-b: #fde6d6;
  --surface: #fcfcfe;
  --surface-2: #f4f3f9;
  --raised: #fff;
  --well: #201a400f;
  --line: #201a4017;
  --line-2: #201a402b;
  --text: #1a1730;
  --muted: #5b5872;
  --faint: #75728b;
  --primary: #5a46d6;
  --on-primary: #fbfaff;
  --ink: #1a1730;
  --good: #187d58;
  --bad: #c33a52;
  
  --r-card: 22px;
  --r-tile: 14px;
  --gap: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 1px 2px #201a400d, 0 14px 32px -20px #201a4047;
  --shadow-pop: 0 24px 60px -18px #201a4057, 0 2px 6px #201a4014;
}

:root[data-theme="dark"] {
  --bg: #0f0e17;
  --glow-a: #6c58e629;
  --glow-b: #ec7a3c0f;
  --surface: #17161f;
  --surface-2: #1c1b26;
  --raised: #23222e;
  --well: #ffffff0e;
  --line: #ffffff13;
  --line-2: #ffffff26;
  --text: #edebf7;
  --muted: #aaa7bf;
  --faint: #8b88a2;
  --primary: #a99bff;
  --on-primary: #17132e;
  --ink: #edebf7;
  --shadow: 0 1px 0 #ffffff0a inset, 0 18px 40px -26px #000c;
  --shadow-pop: 0 24px 60px -18px #000000bf, 0 0 0 1px #ffffff14;
}

html[dir="rtl"] { --font: "Tajawal", "Manrope", ui-sans-serif, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100dvh;
  font: 500 var(--fs-base)/1.55 var(--font);
  color: var(--text);
  background: radial-gradient(60vmax 50vmax at 12% -10%, var(--glow-a), transparent 70%), radial-gradient(50vmax 40vmax at 100% 0%, var(--glow-b), transparent 70%), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
img { height: auto; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ============ SPLASH ============ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg); color: var(--text);
  transition: opacity .6s var(--ease), visibility .6s;
}
.splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__inner { display: grid; gap: 20px; justify-items: center; }
.splash__logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center;
}
.splash__logo svg { width: 34px; height: 34px; }
.splash__word { font: 800 2rem/1 var(--font); letter-spacing: -.04em; }
.splash__word small {
  display: block; font-weight: 600; font-size: .8125rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
.splash__bar {
  width: 160px; height: 3px; border-radius: 3px;
  background: var(--line-2); overflow: hidden; margin-top: 8px;
}
.splash__bar i {
  display: block; height: 100%; width: 100%;
  background: var(--primary); border-radius: inherit;
  transform-origin: 0; transform: scaleX(0);
  animation: splashBar 2.6s var(--ease) forwards;
}
@keyframes splashBar { to { transform: scaleX(1); } }

/* ============ NAVIGATION (BASE) ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
  transform: none;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -22px #1d193466;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.125rem/1 var(--font); letter-spacing: -.03em; flex: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.brand__mark svg { width: 18px; height: 18px; }

/* روابط الحاسوب */
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 16px; flex: 1; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .9375rem; color: var(--muted); transition: color .2s, background .2s; }
.nav__link:hover { color: var(--text); background: var(--well); }
.nav__link[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.nav__tools { display: flex; align-items: center; gap: 6px; flex: none; }

/* اللغة */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 650; font-size: .875rem;
}
.lang__btn:hover { background: var(--surface-2); }
.lang__btn svg { width: 16px; height: 16px; color: var(--muted); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 180px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 6px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-weight: 600; font-size: .9375rem; text-align: left;
}
.lang__item:hover { background: var(--well); }
.lang__item[aria-checked="true"] { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.lang__item small { color: var(--muted); margin-left: auto; font-size: .75rem; }

/* زر السلة */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: .875rem;
  transition: transform .2s var(--ease), filter .2s;
}
.cart-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font: 800 .6875rem/20px var(--font); text-align: center; padding: 0 5px;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-btn.has-items .cart-btn__count { transform: scale(1); }

/* ============ MOBILE BOTTOM NAV ============ */
@media (min-width: 769px) {
  .nav__links--mobile { display: none !important; }
  .nav__links--desktop { display: flex !important; }
  .nav__toggle { display: none !important; }
}

@media (max-width: 768px) {
  .nav__links--desktop { display: none !important; }
  .nav__toggle { display: none !important; }
  
  header.nav {
    position: sticky; top: 0; z-index: 900;
    background: var(--surface); border-bottom: 1px solid var(--line);
    transform: none !important;
  }
  header.nav .nav__inner {
    height: 60px; padding: 0 16px;
    display: flex; justify-content: space-between; align-items: center;
  }

  .nav__links--mobile {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important; top: auto !important;
    z-index: 999 !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--line) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05) !important;
    margin: 0 !important; flex-direction: row !important; gap: 0 !important;
    transform: none !important;
  }

  .nav__links--mobile .nav__link {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 2px !important; padding: 8px 4px !important; border-radius: 10px !important;
    color: var(--muted) !important; font-size: 10px !important; font-weight: 600 !important;
    flex: 1 !important; min-width: 0 !important; text-align: center !important;
    background: none !important; box-shadow: none !important;
  }

  .nav__links--mobile .nav__link svg { width: 22px !important; height: 22px !important; flex: none !important; display: block !important; }
  .nav__links--mobile .nav__link span { display: block !important; }
  .nav__links--mobile .nav__link[aria-current="page"] {
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 10%, transparent) !important;
  }

  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ============ SHELL ============ */
.page { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.hair { height: 1px; background: var(--line); margin: 0; }

.eyebrow { font: 700 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h1 { font: 800 clamp(2.25rem, 6vw, 4.25rem)/1.02 var(--font); letter-spacing: -.04em; }
.h2 { font: 800 clamp(1.75rem, 3.6vw, 2.75rem)/1.1 var(--font); letter-spacing: -.03em; }
.h3 { font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--font); letter-spacing: -.02em; }
.lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ============ HERO ============ */
.hero { display: grid; gap: 24px; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); max-width: 900px; }
.hero__title { font: 800 clamp(2.5rem, 6.5vw, 4.75rem)/1 var(--font); letter-spacing: -.045em; }
.hero__title em { font-style: normal; color: var(--primary); position: relative; display: inline-block; }
.hero__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .06em; background: var(--primary); opacity: .25; border-radius: 2px; }
.hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.hero__meta b { color: var(--text); font-weight: 800; font-size: 1.25rem; display: block; letter-spacing: -.02em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), filter .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line-2); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--sm { height: 38px; padding: 0 16px; font-size: .875rem; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ============ SECTION HEAD ============ */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.section-head__text { display: grid; gap: 8px; max-width: 60ch; }
.section-head h2 { font: 800 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--font); letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1rem; max-width: 52ch; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 32px; margin-top: 48px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 32ch; font-size: .9375rem; }
.footer__col h4 { font: 700 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .9375rem; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.footer__col a:hover { opacity: 1; color: var(--primary); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }

/* ============ FABs ============ */
.fab {
  position: fixed; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-pop);
  transition: transform .25s var(--ease), opacity .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 22px; height: 22px; }
.fab--chat { right: 24px; background: var(--primary); color: var(--on-primary); }
.fab--top { left: 24px; opacity: 0; pointer-events: none; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 520px) { .fab { width: 46px; height: 46px; bottom: 16px; } .fab--chat { right: 16px; } .fab--top { left: 16px; } }

/* ============ CARDS / PRODUCTS ============ */
.grid-products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.prod { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--line-2); }
.prod__img { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; position: relative; }
.prod__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prod:hover .prod__img img { transform: scale(1.05); }
.prod__badge { position: absolute; top: 12px; left: 12px; background: var(--raised); color: var(--text); font: 700 .75rem/1 var(--font); padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.prod__body { padding: 18px 20px 20px; display: grid; gap: 10px; flex: 1; }
.prod__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prod__name { font: 700 1.125rem/1.2 var(--font); letter-spacing: -.02em; }
.prod__price { font: 800 1.125rem/1 var(--font); letter-spacing: -.02em; color: var(--primary); }
.prod__tagline { font-size: .9375rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prod__tag { font: 600 .75rem/1 var(--font); padding: 5px 9px; border-radius: 999px; background: var(--well); color: var(--muted); }
.prod__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.prod__actions .btn { flex: 1; }

/* ============ FILTERS ============ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .875rem; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }

/* ============ STORE HEADER ============ */
.store-head { display: grid; gap: 14px; padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.store-head h1 { max-width: 22ch; }
.store-head p { max-width: 60ch; }

/* ============ CART DRAWER ============ */
.cart-backdrop { position: fixed; inset: 0; z-index: 1100; background: #1d193452; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s, backdrop-filter .35s; }
.cart-backdrop.is-open { opacity: 1; visibility: visible; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1110; width: min(440px, 100vw); background: var(--raised); border-left: 1px solid var(--line); box-shadow: -24px 0 60px -20px #0006; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
[dir="rtl"] .cart {
  left: 0;
  right: auto;
  border-left: 0;
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px -20px #0006;
  transform: translateX(-100%);
}
[dir="rtl"] .cart.is-open { transform: none; }
.cart.is-open { transform: none; }
.cart__head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart__title { font: 700 1.125rem/1 var(--font); }
.cart__close { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.cart__close:hover { background: var(--well); }
.cart__close svg { width: 16px; height: 16px; }
.cart__items { flex: 1; overflow-y: auto; padding: 12px 22px; display: grid; gap: 8px; align-content: start; }
.cart__empty { text-align: center; padding: 60px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.cart__empty svg { width: 48px; height: 48px; opacity: .4; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 700; font-size: .9375rem; }
.cart-item__meta { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.cart-item__price { font-weight: 700; }
.cart-item__remove { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; margin-left: auto; margin-top: 2px; }
.cart-item__remove:hover { background: var(--well); color: var(--bad); }
.cart-item__remove svg { width: 14px; height: 14px; }
.cart__foot { border-top: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 14px; background: var(--surface); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9375rem; }
.cart__row strong { font: 800 1.5rem/1 var(--font); letter-spacing: -.02em; }
.cart__note { font-size: .8125rem; color: var(--muted); text-align: center; }
.paypal-slot { background: var(--well); border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px; text-align: center; font-size: .875rem; color: var(--muted); }
.paypal-slot b { display: block; color: var(--text); margin-bottom: 4px; }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 1200; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: .9375rem; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============ PRODUCT PAGE ============ */
.prod-page { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1.1fr 1fr; align-items: start; padding: clamp(28px, 5vw, 56px) 0; }
@media (max-width: 820px) { .prod-page { grid-template-columns: 1fr; } }
.prod-page__img { aspect-ratio: 4/3; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.prod-page__img img { width: 100%; height: 100%; object-fit: cover; }
.prod-page__info { display: grid; gap: 18px; align-content: start; }
.prod-page__badge { display: inline-block; font: 700 .75rem/1 var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--well); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; justify-self: start; }
.prod-page__name { font: 800 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--font); letter-spacing: -.03em; }
.prod-page__tagline { font-size: 1.0625rem; color: var(--muted); }
.prod-page__price { font: 800 2rem/1 var(--font); letter-spacing: -.02em; color: var(--primary); }
.prod-page__desc { font-size: 1rem; color: var(--text); line-height: 1.65; }
.prod-page__includes { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px 18px; }
.prod-page__includes h3 { font: 700 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prod-page__includes li { display: flex; align-items: center; gap: 8px; font-size: .9375rem; }
.prod-page__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr 1.2fr; align-items: start; padding: clamp(32px, 5vw, 56px) 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info h1 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-info p { color: var(--muted); max-width: 40ch; }
.contact-list { display: grid; gap: 12px; margin-top: 8px; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; transition: transform .2s var(--ease), border-color .2s; }
.contact-list a:hover { transform: translateX(4px); border-color: var(--line-2); }
[dir="rtl"] .contact-list a:hover { transform: translateX(-4px); }
.contact-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.contact-list small { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.contact-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 32px); box-shadow: var(--shadow); }
.contact-form h2 { font: 800 1.375rem/1.2 var(--font); letter-spacing: -.02em; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; font-weight: 650; color: var(--muted); }
.field input, .field textarea { font: 500 1rem/1.4 var(--font); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: var(--raised); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* Contact form feedback */
.fmsg { min-height: 1.4em; font-size: .875rem; }
.fmsg.ok { color: var(--good); }
.fmsg.err { color: var(--bad); }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.0625rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--well); color: var(--text); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease), background .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); }
.faq-item__body { padding: 0 22px 22px; color: var(--muted); font-size: .9375rem; line-height: 1.65; max-width: 70ch; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
/* ============ Preloader & Back-to-top (from script.js) ============ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader .pl-logo {
  font: 800 2.5rem/1 var(--font); letter-spacing: .1em;
  color: var(--text);
  animation: pl-fade 1.5s ease-in-out infinite;
}
@keyframes pl-fade { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

#toTop {
  position: fixed; inset-inline-start: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
#toTop.show { opacity: 1; visibility: visible; }
#toTop:hover { transform: translateY(-3px); }
#toTop svg { width: 20px; height: 20px; }

/* على الجوال: ارفع زر للأعلى فوق الشريط السفلي */
@media (max-width: 768px) {
  #toTop {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 16px;
  }
}
/* إخفاء أي fab--top (لأن #toTop من script.js يقوم بالمهمة) */
.fab--top { display: none !important; }