/* ==========================================================================
   نظام تصميم صفحات الهبوط — عربي / RTL
   مشترك بين جميع صفحات المنتجات
   ========================================================================== */

:root {
  --primary: #0F5132;
  --accent: #E8B004;
  --ink: #111827;

  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F8F9;
  --success: #0F7B4F;
  --danger: #C0392B;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, .14);
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: inherit; }

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

section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 1.05rem; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-accent { background: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.btn-accent:hover { box-shadow: var(--shadow-lg); }

.btn-wa { background: #25D366; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }

/* ---------- شريط الطمأنة ---------- */
.announce {
  background: var(--ink); color: #fff;
  font-size: .85rem; font-weight: 600;
  padding: 9px 0;
}
.announce .container {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 10px; text-align: center;
}
.announce b { opacity: .45; font-weight: 400; }

/* ---------- معرض صور المنتج ---------- */
.stage { position: relative; }
.stage-item { width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  flex-wrap: wrap; justify-content: center;
}
.thumb {
  position: relative; width: 68px; height: 68px; padding: 0;
  border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; cursor: pointer;
  transition: border-color .15s ease;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; box-shadow: none;
}
.thumb.active { border-color: var(--primary); }
.thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: 1.1rem;
}

/* ---------- فيديو الواجهة ---------- */
.hero-media video {
  width: auto; max-width: 100%;
  max-height: 78vh; height: auto;
  margin-inline: auto; display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}

/* ---------- سطر الشحن ---------- */
.ship-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; font-weight: 600; font-size: .95rem;
}
.ship-row .free { color: var(--success); font-weight: 800; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -.2px; }
.header-cta { padding: 10px 20px; font-size: .95rem; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { padding: 44px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.eyebrow {
  display: inline-block; background: color-mix(in srgb, var(--accent) 22%, #fff);
  color: #7a5c00; font-weight: 700; font-size: .9rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hero p.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- السعر ---------- */
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.price-now { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: 1.2rem; color: var(--muted); text-decoration: line-through; }
.price-save { background: var(--danger); color: #fff; font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* ---------- شارات الثقة ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.badges li {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.badges li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* ---------- شريط التقييم ---------- */
.trustbar { background: var(--primary); color: #fff; padding: 16px 0; }
.trustbar .container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; text-align: center; font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- الشبكات والبطاقات ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- قائمة المواصفات ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before {
  content: "✓"; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-top: 4px;
}

/* ---------- خطوات الطلب ---------- */
.step { position: relative; padding-top: 14px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}

/* ---------- آراء العملاء ---------- */
.testimonial { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.testimonial .stars { font-size: 1rem; margin-bottom: 8px; }
.testimonial p { font-size: .98rem; margin-bottom: 14px; }
.testimonial .who { font-weight: 700; font-size: .92rem; }
.testimonial .who span { color: var(--muted); font-weight: 500; }

/* ---------- الباقات ---------- */
.bundles { display: grid; gap: 14px; margin: 0 0 24px; }
.bundle {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.bundle:hover { border-color: color-mix(in srgb, var(--primary) 40%, #fff); }
.bundle input { accent-color: var(--primary); width: 20px; height: 20px; flex: none; margin: 0; }
.bundle.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }
.bundle-label { font-weight: 700; flex: 1; }
.bundle-price { font-weight: 800; color: var(--primary); font-size: 1.15rem; white-space: nowrap; }
.bundle-badge {
  position: absolute; top: -11px; inset-inline-start: 16px;
  background: var(--accent); color: var(--ink);
  font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px;
}

/* ---------- نموذج الطلب ---------- */
.order-wrap { max-width: 560px; margin-inline: auto; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, #fff); border-color: var(--primary);
}
.field input[dir="ltr"] { text-align: right; }
.field .err { color: var(--danger); font-size: .85rem; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: var(--danger); }

.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; margin: 8px 0 18px; border-top: 2px dashed var(--line);
  font-weight: 800; font-size: 1.2rem;
}
.total-row .amount { color: var(--primary); }
.form-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* ---------- مصيدة البوتات ----------
   تُخفى بعيداً عن الشاشة لا بـ display:none — بعض البوتات تتجاهل المخفي تماماً */
.hp-field {
  position: absolute !important;
  top: 0; inset-inline-start: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
}
.hp-field input, .hp-field label { width: 1px; height: 1px; padding: 0; margin: 0; font-size: 1px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { max-width: 720px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- الضمان ---------- */
.guarantee {
  display: flex; gap: 18px; align-items: center;
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff);
  border-radius: var(--radius); padding: 24px; max-width: 720px; margin-inline: auto;
}
.guarantee .icon { font-size: 2.6rem; flex: none; }
.guarantee p { margin: 0; font-size: .98rem; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 34px 0; text-align: center; font-size: .9rem; }
.site-footer p { margin: 0 0 6px; opacity: .75; }
.site-footer .fb-link { color: #fff; opacity: 1; font-weight: 700; text-decoration: underline; }

/* ---------- شريط الحث السفلي (للجوال) ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 16px;
  display: none; gap: 12px; align-items: center;
  box-shadow: 0 -6px 20px rgba(17,24,39,.1);
}
.sticky-cta .sp { flex: none; font-weight: 800; color: var(--primary); }
.sticky-cta .btn { flex: 1; padding: 14px 20px; }

/* ---------- حالة النجاح ---------- */
.success-panel { text-align: center; padding: 20px 0; }
.success-panel .tick {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 18px;
}

.is-hidden { display: none !important; }

/* ---------- استجابة الشاشات ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 42px 0; }
  body { font-size: 16px; padding-bottom: 76px; }
  .header-cta { display: none; }
  .sticky-cta { display: flex; }
  .order-card { padding: 22px; }
  .guarantee { flex-direction: column; text-align: center; }
}

@media (min-width: 861px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------- الصفحة الرئيسية ---------- */
.index-hero { padding: 46px 0 10px; text-align: center; }
.index-hero h1 { margin-bottom: .25em; }
.index-hero p { color: var(--muted); margin: 0; }

.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-soft); }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-body h3 { margin: 0; }
.pc-body p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.pc-price .now { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.pc-price .was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
