/* ===== Glowcode – صفحة الهبوط ===== */

:root {
  --green-900: #24502a;   /* عناوين */
  --green-700: #2f6b35;   /* أزرار */
  --green-500: #4c9a4f;
  --green-100: #eef4dc;   /* خلفيات فاتحة (لون علبة Arencia) */
  --green-50:  #f7faee;
  --lime:      #e3ebb7;
  --orange:    #f08a1c;   /* السعر والتخفيض (فيتامين C) */
  --ink:       #1f2a20;
  --muted:     #5d6b5e;
  --line:      #dfe7cf;
  --white:     #ffffff;
  --radius:    18px;
  --shadow:    0 6px 24px rgba(36, 80, 42, 0.08);
}

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

html { scroll-behavior: smooth; }

/* حماية إضافية: لا تمرير أفقي على الهاتف مهما حدث */
html, body { overflow-x: clip; }

body {
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 84px; /* مساحة للزر الثابت */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

main > section { padding: 40px 18px; max-width: 560px; margin: 0 auto; }

h1, h2 { color: var(--green-900); line-height: 1.35; font-weight: 800; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; margin-bottom: 14px; }

/* ===== الشريط العلوي ===== */
.topbar {
  background: var(--green-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar .dot { opacity: 0.5; }

/* ===== الرأس ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  max-width: 560px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #a8693f; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.header-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-700);
  border: 2px solid var(--green-700);
  padding: 4px 14px;
  border-radius: 999px;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  font-size: 1.15rem;
  padding: 14px 40px;
  box-shadow: 0 8px 20px rgba(47, 107, 53, 0.28);
}
.btn-primary:hover { background: var(--green-900); }
.btn-small {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.95rem;
  padding: 8px 18px;
}
.btn-block { width: 100%; }

/* ===== الواجهة ===== */
.hero {
  text-align: center;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  border-radius: 0 0 32px 32px;
}
main > .hero { max-width: none; padding-top: 28px; }
.hero > * { max-width: 520px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  background: var(--lime);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-text { color: var(--muted); margin: 12px auto 20px; font-size: 1.02rem; }
.hero-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.hero-products img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.hero-note strong { color: var(--orange); }

/* ===== عناصر الثقة ===== */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
main > .trust { padding-top: 8px; padding-bottom: 8px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-900);
}
.trust-icon { font-size: 1.25rem; }

/* ===== بطاقات المنتجات ===== */
.product .product-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.product .product-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }


.product-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.product--arencia .product-tag { background: var(--lime); color: #5a6420; }
.product--axisy  .product-tag { background: #dfeee1; color: #1f5a2f; }
.product--kormesic .product-tag { background: #fde3ee; color: #c2185b; }

.product h2 { margin-bottom: 2px; }
.product-size { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

.benefits { list-style: none; margin-bottom: 18px; }
.benefits li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 8px;
}
.benefits li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price { font-size: 1.7rem; font-weight: 800; color: var(--orange); }
.price small { font-size: 0.95rem; font-weight: 700; }

/* ===== التوصيل الواحد ===== */
.bundle {
  text-align: center;
}
main > .bundle {
  background: var(--green-100);
  border-radius: var(--radius);
  margin: 10px 18px;
  max-width: 524px;
}
@media (min-width: 560px) { main > .bundle { margin: 10px auto; } }
.bundle p { color: var(--muted); margin-bottom: 18px; }
.bundle p strong { color: var(--green-900); }
.bundle-example { display: grid; gap: 8px; }
.bundle-example div {
  display: flex;
  justify-content: space-between;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}
.bundle-example strong { color: var(--green-700); }
.bundle-example .highlight { outline: 2px solid var(--orange); }
.bundle-example .highlight strong { color: var(--orange); }

/* ===== طريقة الاستعمال ===== */
.steps { list-style: none; display: grid; gap: 12px; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--green-50);
  border-radius: 14px;
  padding: 14px;
}
.step-num {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong { color: var(--green-900); }
.steps p { color: var(--muted); font-size: 0.95rem; }
.tip { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.howto-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-700);
  margin: 6px 0 10px;
}
.howto-title--body { margin-top: 24px; color: #c2185b; }
.steps--body li { background: #fff4f8; }
.steps--body .step-num { background: #d63d7c; }

/* ===== نموذج الطلب ===== */
main > .order {
  background: var(--white);
  border: 2px solid var(--green-100);
  border-radius: 24px;
  margin: 10px 12px;
  max-width: 536px;
  box-shadow: var(--shadow);
  padding: 28px 16px;
}
@media (min-width: 560px) { main > .order { margin: 10px auto; } }
.order h2 { text-align: center; margin-bottom: 4px; }
.order-sub { text-align: center; color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }

.pick { border: 0; margin-bottom: 18px; }
.pick legend { font-weight: 800; color: var(--green-900); margin-bottom: 10px; }
.pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pick-item:has(input[type="checkbox"]:checked) {
  border-color: var(--green-700);
  background: var(--green-50);
}
.pick-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-700);
  flex: 0 0 auto;
}
.pick-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  flex: 0 0 auto;
}
.pick-info { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pick-info strong { font-size: 0.92rem; }
.pick-info small { color: var(--orange); font-weight: 800; font-size: 0.9rem; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.qty-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.qty input {
  width: 30px;
  text-align: center;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; color: var(--green-900); }
.field label small { font-weight: 400; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--green-500); }
.field input[dir="ltr"] { text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.summary {
  background: var(--green-50);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 8px 0 16px;
}
.summary div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.summary .summary-total {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 8px;
  color: var(--green-900);
  font-weight: 800;
  font-size: 1.15rem;
}
.summary .summary-total span:last-child { color: var(--orange); }

.privacy { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ===== أسئلة شائعة ===== */
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--green-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--green-500); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* ===== أسفل الصفحة ===== */
.footer {
  background: var(--green-50);
  text-align: center;
  padding: 32px 18px;
  margin-top: 20px;
}
.footer img { margin: 0 auto 10px; border-radius: 50%; }
.footer-phone { display: inline-block; font-weight: 800; font-size: 1.2rem; color: var(--green-900); margin-bottom: 12px; }
.socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-700);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.copy { font-size: 0.8rem; color: var(--muted); }

/* ===== الزر الثابت ===== */
.sticky-cta {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 536px;
  margin: 0 auto;
  background: var(--green-700);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(36, 80, 42, 0.35);
  z-index: 50;
}

/* ===== شاشات أكبر ===== */
@media (min-width: 768px) {
  h1 { font-size: 2.3rem; }
  main > section { padding: 56px 18px; }
}

/* ===== الخطوة 2: الأخطاء والنجاح والزر الثابت ===== */
.has-error input,
.has-error select { border-color: #d64545; }
.pick.has-error .pick-item { border-color: #f1b5b5; }
.error-msg {
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 6px;
}

.btn:disabled { opacity: 0.7; cursor: wait; }

.success {
  text-align: center;
  padding: 12px 4px;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.success h3 { color: var(--green-900); font-size: 1.3rem; margin-bottom: 8px; }
.success p { color: var(--muted); margin-bottom: 6px; }
.success strong { color: var(--green-900); }
.success-total strong { color: var(--orange); font-size: 1.1rem; }

.sticky-cta { transition: transform 0.25s ease, opacity 0.25s ease; }
.sticky-cta.is-hidden,
.order-done .sticky-cta {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

/* حقل الروبوتات المخفي */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
