/* ============================================================
   Long Time — Professional Stylesheet (RTL)
   ============================================================ */

/* ---------- المتغيرات / الهوية ---------- */
:root {
  --brand: #1A5F7A;          /* اللون الأساسي */
  --brand-dark: #0f3d50;
  --brand-2: #159895;        /* لون ثانوي */
  --accent: #EF7F4F;         /* برتقالي اللوجو */
  --accent-dark: #d9663a;

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f6;
  --surface: #ffffff;
  --text: #14202b;
  --text-soft: #566573;
  --border: #e3e9ef;
  --shadow: 0 8px 30px rgba(20, 40, 60, .08);
  --shadow-lg: 0 20px 50px rgba(20, 40, 60, .14);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 96px;
  --font: "Cairo", "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  --trans: .25s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0e141b;
  --bg-soft: #131b24;
  --bg-soft-2: #18222d;
  --surface: #16202b;
  --text: #eef3f7;
  --text-soft: #9fb0bd;
  --border: #26333f;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --brand: #2596be;
  --brand-2: #26c0bc;
}

/* ---------- أساسيات ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  transition: background var(--trans), color var(--trans);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

/* ---------- عناوين الأقسام ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--brand-2);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
}
.section-head h2 span { color: var(--brand); }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }
.section-head.start { text-align: right; margin-inline: 0; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .98rem;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #1b1300; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   الهيدر
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; font-weight: 900; }
.logo-mark {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: #fff;
  display: grid; place-items: center;
  color: #fff; font-size: 1.35rem; font-weight: 900;
  box-shadow: 0 6px 18px rgba(20, 40, 60, .14);
  overflow: hidden; flex-shrink: 0;
  padding: 4px;
}
.logo-mark.has-svg { padding: 6px; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; max-width: 250px; gap: 7px; }
.logo-text b { font-size: 1.6rem; color: var(--text); }
.logo-text small { font-size: .95rem; color: var(--text-soft); font-weight: 700; letter-spacing: .2px; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text-soft);
  transition: var(--trans);
  font-size: .95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); background: var(--bg-soft); }
.main-nav a.active { color: var(--brand); background: var(--bg-soft-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: var(--trans);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.hide-mobile { display: inline-flex; }

/* ============================================================
   الهيرو
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent),
    radial-gradient(900px 500px at 0% 110%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
    var(--bg-soft);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 50px;
  font-weight: 800; font-size: .85rem;
  color: var(--brand);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--brand); }
.hero p { font-size: 1.15rem; color: var(--text-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%);
}
.hero-visual .glyph { font-size: 8rem; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); z-index: 1; }
.hero-float {
  position: absolute;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .9rem;
  z-index: 2;
}
.hero-float .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color:#fff; }
.hero-float.f1 { top: 22px; left: -14px; }
.hero-float.f2 { bottom: 26px; right: -14px; }

/* ---------- شريط الإحصائيات ---------- */
.stats-bar {
  background: var(--brand);
  color: #fff;
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1; }
.stat span { font-size: .98rem; opacity: .9; font-weight: 600; }
.stat + .stat { border-inline-start: 1px solid rgba(255,255,255,.18); }

/* ============================================================
   بطاقات الأقسام
   ============================================================ */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.cat-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: var(--trans);
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--cat-color, var(--brand));
  transform: scaleX(0); transform-origin: right;
  transition: var(--trans);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 18px;
  background: var(--cat-color, var(--brand));
}
.cat-icon svg { width: 30px; height: 30px; }
.cat-card h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; }
.cat-card p { color: var(--text-soft); font-size: .96rem; margin-bottom: 16px; }
.cat-card .cat-count { font-size: .85rem; color: var(--text-soft); font-weight: 700; }
.cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 800; font-size: .95rem;
  margin-top: 14px;
}
.cat-link svg { width: 16px; height: 16px; transition: var(--trans); }
.cat-card:hover .cat-link svg { transform: translateX(-4px); }

/* ============================================================
   بطاقات المنتجات
   ============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-media {
  aspect-ratio: 4/3;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.prod-media .glyph { font-size: 3.6rem; z-index: 1; }
.prod-media .badge {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: var(--accent); color: #1b1300;
  font-size: .72rem; font-weight: 900;
  padding: 4px 11px; border-radius: 50px;
  z-index: 2;
}
.prod-cat-tag {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--text); font-size: .74rem; font-weight: 800;
  padding: 4px 11px; border-radius: 50px; z-index: 2;
}
.prod-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 7px; line-height: 1.4; }
.prod-body h3 a:hover { color: var(--brand); }
.prod-code {
  display: inline-block;
  width: fit-content;
  font-size: .74rem; font-weight: 800;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
  padding: 2px 9px; border-radius: 50px; margin-bottom: 10px;
  /* البادج يتبع اتجاه الصفحة (يمين) والكود نفسه فقط بترتيب لاتيني */
  direction: rtl;
}
.prod-code bdi { direction: ltr; unicode-bidi: isolate; }
.pd-code {
  display: inline-block;
  font-size: .9rem; color: var(--text-soft); font-weight: 700;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.pd-code b { color: var(--brand); }
.pd-code bdi { direction: ltr; unicode-bidi: isolate; }
.prod-body .desc { color: var(--text-soft); font-size: .9rem; flex: 1; margin-bottom: 16px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-price { color: var(--brand); font-weight: 900; font-size: 1.12rem; }
.prod-price.empty { color: var(--text-soft); font-size: .9rem; font-weight: 700; }
.prod-btn {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--bg-soft-2); color: var(--brand);
  display: grid; place-items: center; transition: var(--trans);
  flex-shrink: 0;
}
.prod-btn:hover { background: var(--brand); color: #fff; }
.prod-btn svg { width: 19px; height: 19px; }

/* ---------- شريط أدوات المنتجات (فلترة/بحث) ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 18px; border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: var(--trans); font-family: var(--font);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-box {
  position: relative; display: flex; align-items: center;
}
.search-box svg {
  position: absolute; inset-inline-start: 14px;
  width: 18px; height: 18px; color: var(--text-soft); pointer-events: none;
}
.search-box input {
  padding: 11px 44px 11px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: .95rem;
  min-width: 240px; outline: none; transition: var(--trans);
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }

.result-count { color: var(--text-soft); font-size: .92rem; margin-bottom: 20px; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state .glyph { font-size: 3.5rem; margin-bottom: 12px; }

/* ============================================================
   صفحة الترويسة الداخلية (page header)
   ============================================================ */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent),
    var(--bg-soft);
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--text-soft); margin-bottom: 14px; font-weight: 700; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 900; }
.page-hero p { color: var(--text-soft); margin-top: 10px; font-size: 1.08rem; max-width: 640px; }

/* ============================================================
   صفحة تفاصيل المنتج
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.pd-gallery {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.pd-gallery .glyph { font-size: 8rem; }
.pd-gallery .badge {
  position: absolute; top: 18px; inset-inline-end: 18px;
  background: var(--accent); color: #1b1300;
  font-weight: 900; padding: 6px 16px; border-radius: 50px; font-size: .82rem;
}
.pd-info .pd-cat {
  display: inline-block; color: var(--brand-2);
  font-weight: 800; font-size: .88rem; margin-bottom: 10px;
}
.pd-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; line-height: 1.3; margin-bottom: 14px; }
.pd-price { font-size: 2rem; font-weight: 900; color: var(--brand); margin-bottom: 20px; }
.pd-desc { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 26px; }
.pd-features { margin-bottom: 28px; }
.pd-features h4, .pd-specs h4 { font-size: 1.1rem; font-weight: 900; margin-bottom: 14px; }
.pd-features ul { display: grid; gap: 10px; }
.pd-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 600; }
.pd-features li svg { width: 22px; height: 22px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.pd-specs { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-soft); font-weight: 700; }
.spec-row span:last-child { font-weight: 800; }

/* ============================================================
   صفحة عن الشركة
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about-visual {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.about-visual .glyph { font-size: 7rem; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.vm-card .vm-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); display: grid; place-items: center; margin-bottom: 16px;
}
.vm-card .vm-icon svg { width: 28px; height: 28px; }
.vm-card h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 10px; }
.vm-card p { color: var(--text-soft); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { text-align: center; padding: 30px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: var(--trans); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card .v-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center;
}
.value-card .v-icon svg { width: 30px; height: 30px; }
.value-card h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.value-card p { color: var(--text-soft); font-size: .92rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 700;
}
.why-item svg { width: 24px; height: 24px; color: var(--brand-2); flex-shrink: 0; }

/* ============================================================
   صفحة التواصل
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; transition: var(--trans);
}
.contact-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.contact-card .cc-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); display: grid; place-items: center;
}
.contact-card .cc-icon svg { width: 25px; height: 25px; }
.contact-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text-soft); font-size: .96rem; }
.contact-card a:hover { color: var(--brand); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 800; margin-bottom: 7px; font-size: .95rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); font-family: var(--font); font-size: .97rem;
  outline: none; transition: var(--trans);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 30px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 26px;
  padding: 54px 44px;
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.12), transparent);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 26px; font-size: 1.08rem; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ============================================================
   الفوتر
   ============================================================ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-col h4 { font-size: 1.05rem; font-weight: 900; margin-bottom: 20px; }
.footer-about .logo { margin-bottom: 16px; }
.footer-about p { color: var(--text-soft); font-size: .95rem; margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-soft);
  transition: var(--trans);
}
.footer-social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); }
.footer-social a svg { width: 20px; height: 20px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--text-soft); font-weight: 600; transition: var(--trans); }
.footer-links a:hover { color: var(--brand); padding-inline-start: 5px; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 15px; color: var(--text-soft); font-size: .95rem; }
.footer-contact li svg { width: 20px; height: 20px; color: var(--brand-2); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  color: var(--text-soft); font-size: .9rem;
}
.footer-bottom a:hover { color: var(--brand); }

/* ---------- زر واتساب عائم ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-start: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  transition: var(--trans);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- سكرول للأعلى ---------- */
.to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; z-index: 90;
  border: none; cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--trans); box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   الأنيميشن
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   صور المنتجات/الأقسام/الهيرو
   ============================================================ */
.prod-media img,
.pd-gallery img,
.hero-visual .hero-media img,
.about-visual .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-visual .hero-media, .about-visual .media { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-visual .hero-media .glyph, .about-visual .media .glyph { position: static; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ============================================================
   سلايدر صور المنتج
   ============================================================ */
.pd-media { display: flex; flex-direction: column; gap: 12px; }
.pd-gallery.slider { position: relative; overflow: hidden; }
.pd-gallery.slider .slides { position: absolute; inset: 0; }
.pd-gallery .slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease;
}
.pd-gallery .slide.active { opacity: 1; visibility: visible; }
.pd-gallery .slide img { width: 100%; height: 100%; object-fit: cover; }

/* أزرار التنقل */
.pd-gallery .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: var(--trans); z-index: 3; opacity: 0;
}
.pd-gallery .nav svg { width: 20px; height: 20px; }
.pd-gallery.slider:hover .nav { opacity: 1; }
.pd-gallery .nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.pd-gallery .nav.prev { inset-inline-end: 12px; }
.pd-gallery .nav.next { inset-inline-start: 12px; }

/* النقاط */
.pd-gallery .dots {
  position: absolute; bottom: 14px; inset-inline: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 3;
}
.pd-gallery .dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  transition: var(--trans); padding: 0;
}
.pd-gallery .dot.active { background: var(--brand); width: 26px; border-radius: 50px; }

/* المصغّرات */
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs .thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 11px; overflow: hidden; cursor: pointer; padding: 0;
  border: 2px solid var(--border); background: var(--bg-soft);
  transition: var(--trans);
}
.pd-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .thumb:hover { border-color: var(--brand-2); }
.pd-thumbs .thumb.active { border-color: var(--brand); }

/* عدّاد الصور على الكارت */
.prod-media .img-count {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--text); font-size: .74rem; font-weight: 800;
  padding: 4px 9px; border-radius: 50px; z-index: 2;
}
.prod-media .img-count svg { width: 13px; height: 13px; }

/* ============================================================
   خريطة التجار المبسّطة
   ============================================================ */
.egypt-map { max-width: 800px; margin: 0 auto; }
.map-canvas {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 24px;
  overflow: hidden;
  color: var(--brand);
  /* هوية لونج تايم */
  background:
    radial-gradient(700px 420px at 88% -8%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent),
    radial-gradient(600px 400px at 0% 105%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    linear-gradient(160deg, var(--bg-soft), var(--bg-soft-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* اللوجو على الخريطة (بدون اسم) */
.map-logo {
  position: absolute; top: 20px; inset-inline-start: 20px; z-index: 4;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 4px 14px rgba(20, 40, 60, .12);
  line-height: 0;
}
.map-logo .logo-mark { width: 56px; height: 56px; border-radius: 12px; box-shadow: none; padding: 4px; }

/* عنوان الخريطة تحتها */
.map-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.5;
}

/* النقاط */
.map-canvas .pin {
  position: absolute;
  transform: translate(50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 2; text-decoration: none;
}
.map-canvas .dot {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 2.5px solid var(--surface);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: var(--trans);
  display: block; flex-shrink: 0;
  position: relative;
}
/* المحافظات الكبيرة بلون الهوية البرتقالي */
.map-canvas .pin.big .dot {
  background: linear-gradient(135deg, var(--accent), #e0673a);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.map-canvas .pin:hover { z-index: 5; }
.map-canvas .pin:hover .dot { transform: scale(1.15); }

.map-canvas .pin-label {
  display: flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: .72rem; font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(20, 40, 60, .10);
  transition: var(--trans);
}
.map-canvas .pin:hover .pin-label { border-color: var(--brand); color: var(--brand); }
.map-hint { text-align: center; color: var(--text-soft); font-size: .9rem; margin-top: 6px; }

@media (max-width: 620px) {
  .map-canvas .pin-label { font-size: .6rem; padding: 1px 6px; }
  .map-logo .logo-mark { width: 44px; height: 44px; }
  .map-caption { font-size: .98rem; }
}

/* ============================================================
   التجار والموزّعون
   ============================================================ */
.trader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.trader-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: var(--trans);
  display: flex; flex-direction: column; gap: 16px;
}
.trader-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.trader-head { display: flex; align-items: center; gap: 14px; }
.trader-avatar {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center;
}
.trader-avatar svg { width: 26px; height: 26px; }
.trader-head h3 { font-size: 1.2rem; font-weight: 800; }
.trader-info { display: grid; gap: 12px; }
.trader-info li { display: flex; align-items: flex-start; gap: 11px; color: var(--text-soft); font-weight: 600; }
.trader-info li svg { width: 20px; height: 20px; color: var(--brand-2); flex-shrink: 0; margin-top: 3px; }
.trader-info a:hover { color: var(--brand); }
.trader-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ============================================================
   الموبايل / التجاوب
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .about-grid, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* تحويل المنيو لزر (هامبرجر) على الشاشات المتوسطة والأصغر */
@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    transform: translateY(-120%);
    transition: var(--trans);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 16px; font-size: 1rem; white-space: normal; }
  .nav-toggle { display: grid; }
  .hide-mobile { display: none; }
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: none; }
  .vm-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { min-width: 0; width: 100%; }
  .cta-band { padding: 40px 22px; }
  section { padding: 54px 0; }
}

@media (max-width: 480px) {
  .stats-grid { gap: 10px; }
  .stat b { font-size: 1.8rem; }
  .values-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { display: none; }
}
