/* ==========================================================================
   جهاز نفخ الإطارات 4 في 1 - صفحة البيع
   ========================================================================== */

:root {
  --dark: #0b1220;
  --dark-2: #131c31;
  --accent: #16c79a;
  --accent-dark: #0ea583;
  --cta: #ff5722;
  --cta-dark: #e64a19;
  --light: #f7f8fb;
  --gray: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --star: #fbbf24;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--light);
  color: var(--dark);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== شريط الثقة العلوي ===== */
.trust-bar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.trust-bar span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ===== الهيدر ===== */
.site-header {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 900;
  font-size: 22px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--accent); }
.header-cta {
  background: var(--cta);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(255,87,34,0.35);
  transition: transform .15s ease;
}
.header-cta:hover { transform: translateY(-2px); }

/* ===== الهيرو ===== */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #0d3b30 130%);
  color: #fff;
  padding: 46px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(22,199,154,0.25) 0%, transparent 70%);
  top: -150px; left: -150px;
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,199,154,0.15);
  border: 1px solid rgba(22,199,154,0.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p.lead {
  font-size: 17px;
  color: #d5d9e2;
  margin-bottom: 22px;
  max-width: 480px;
}
.hero-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #d5d9e2;
}
.hero-stars .stars { color: var(--star); letter-spacing: 2px; }

.price-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.price-new {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
}
.price-old {
  font-size: 20px;
  color: #9aa3b2;
  text-decoration: line-through;
}
.price-badge {
  background: var(--cta);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 26px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e9ebf1;
}
.hero-features li i { color: var(--accent); font-weight: 900; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(255,87,34,0.4);
  animation: pulse 2.2s infinite;
  width: 100%;
  max-width: 380px;
}
.btn-cta:hover { background: var(--cta-dark); }
.btn-cta.small { animation: none; padding: 12px 20px; font-size: 15px; max-width: 260px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,87,34,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255,87,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,87,34,0); }
}

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-wrap img {
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  max-width: 380px;
  width: 100%;
}
.hero-img-wrap .float-tag {
  position: absolute;
  background: #fff;
  color: var(--dark);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-tag.tag-1 { top: 10px; right: -10px; }
.float-tag.tag-2 { bottom: 20px; left: -10px; }
.float-tag i { color: var(--accent); font-size: 16px; }

/* ===== قسم المشكلة ===== */
.pain-section {
  padding: 55px 0;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--dark);
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 34px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.pain-card .emoji { font-size: 34px; margin-bottom: 12px; }
.pain-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.pain-card p { font-size: 14px; color: var(--gray); }

/* ===== المميزات ===== */
.features-section {
  padding: 55px 0;
  background: var(--light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); }

/* ===== المنتج بالتفصيل ===== */
.showcase {
  padding: 55px 0;
  background: #fff;
}
.showcase .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.showcase img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.showcase-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}
.showcase-list li:last-child { border-bottom: none; }
.showcase-list .check {
  min-width: 26px; height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

/* ===== خطوات الطلب ===== */
.steps-section {
  padding: 55px 0;
  background: var(--dark);
  color: #fff;
}
.steps-section .section-title, .steps-section .section-sub { color: #fff; }
.steps-section .section-sub { color: #b7bdc9; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.step-card {
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  width: 46px; height: 46px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: #b7bdc9; }

/* ===== الشهادات ===== */
.testimonials {
  padding: 55px 0;
  background: var(--light);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.testi-stars { color: var(--star); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.testi-card p { font-size: 14px; color: var(--dark); margin-bottom: 14px; }
.testi-user { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--gray); }
.testi-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* ===== شارات الضمان ===== */
.guarantee-bar {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.guarantee-item i { font-size: 26px; color: var(--accent); margin-bottom: 8px; display: block; }
.guarantee-item span { font-size: 13px; font-weight: 700; color: var(--dark); }

/* ===== نداء أخير ===== */
.final-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, #0d3b30, var(--dark));
  color: #fff;
  text-align: center;
}
.final-cta h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; margin-bottom: 12px; }
.final-cta p { color: #d5d9e2; margin-bottom: 26px; font-size: 15px; }
.final-cta .price-box { justify-content: center; }

/* ===== فوتر ===== */
.site-footer {
  background: var(--dark);
  color: #9aa3b2;
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
}
.site-footer .legal { margin-top: 8px; font-size: 12px; color: #6b7280; line-height: 1.8; }

/* ===== زر عائم أسفل الجوال ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; right: 0; left: 0;
  background: #fff;
  padding: 10px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
}
.sticky-cta .price-new { font-size: 18px; }
.sticky-cta .btn-cta { padding: 12px 10px; font-size: 15px; animation: none; }

/* ===== نافذة الطلب المنبثقة (Popup) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 22px;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 32px; height: 32px;
  background: var(--light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--gray);
}
.modal-header { text-align: center; margin-bottom: 18px; }
.modal-header img { width: 70px; margin: 0 auto 10px; border-radius: 10px; }
.modal-header h3 { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.modal-header p { font-size: 13px; color: var(--gray); }

.modal-price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 800;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-control button {
  width: 30px; height: 30px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}
.qty-control span { min-width: 20px; text-align: center; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select { border-color: var(--danger); }
.form-group.has-error .field-error { display: block; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(22,199,154,0.08);
  border: 1px solid rgba(22,199,154,0.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #0a7a5f;
  margin-bottom: 16px;
}

.modal-submit {
  width: 100%;
  background: var(--cta);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(255,87,34,0.35);
}
.modal-submit:disabled { opacity: .6; cursor: not-allowed; }
.modal-submit-note { text-align: center; font-size: 12px; color: var(--gray); margin-top: 10px; }

/* ===== حالة النجاح ===== */
.success-state { text-align: center; padding: 10px 0; }
.success-icon {
  width: 70px; height: 70px;
  background: var(--accent);
  color: #fff;
  font-size: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-state h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.success-state p { font-size: 14px; color: var(--gray); margin-bottom: 6px; }
.success-order-id { font-weight: 800; color: var(--dark); }

/* ===== استجابة الجوال ===== */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-img-wrap { order: -1; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .pain-grid, .features-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .showcase .container { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: flex; }
  .trust-bar .container { gap: 12px; font-size: 11.5px; }
  body { padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .pain-grid, .features-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: 1fr; }
}
