/* ============ الألوان (بدّلها من هنا) ============ */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f59e0b;
  --danger: #dc2626;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f7f6;
  --card: #ffffff;
  --soft: #ecfdf5;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 84px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px; }

.topbar {
  background: var(--brand-dark);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

/* ============ Hero ============ */
.hero { text-align: center; padding: 16px 0 8px; }
.hero-img {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.gallery { display: flex; gap: 8px; justify-content: center; margin-top: 10px; overflow-x: auto; }
.thumb {
  flex: 0 0 auto; width: 58px; height: 58px; padding: 0;
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer;
}
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 { font-size: 30px; line-height: 1.3; margin-top: 14px; font-weight: 800; }
.tagline { color: var(--muted); font-size: 17px; margin-top: 4px; }
.pack { font-size: 14px; color: var(--brand-dark); font-weight: 700; margin-top: 6px; }

.price-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 14px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 800; color: var(--brand); }
.old-price { color: var(--muted); font-size: 18px; }
.save-badge { background: var(--danger); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.trust { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.trust li { background: #fff; border-radius: 12px; padding: 8px 4px; font-size: 12.5px; line-height: 1.4; }

/* ============ الأزرار ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  border-radius: 14px; font-weight: 800;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, .3); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-big { width: 100%; font-size: 20px; padding: 16px 18px; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .45); } 50% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-big { animation: none; } html { scroll-behavior: auto; } }

/* ============ البطاقات ============ */
.card { background: var(--card); border-radius: var(--radius); padding: 20px 16px; margin-top: 14px; }
.card h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: -4px 0 14px; font-size: 15px; }

.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 12px; }
.feature .ico { font-size: 26px; line-height: 1; }
.feature h3 { font-size: 17px; font-weight: 800; }
.feature p { font-size: 14.5px; color: #374151; }

.steps { counter-reset: s; list-style: none; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 10px 50px 10px 12px; background: var(--soft); border-radius: 12px; }
.steps li::before {
  content: counter(s); position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}

.ing-img { border-radius: 12px; margin-bottom: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ingredients { list-style: none; display: grid; gap: 8px; }
.ingredients li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ingredients b { display: block; }
.ingredients span { font-size: 14px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

.guarantee { text-align: center; border: 2px dashed var(--brand); }
.shield { font-size: 40px; }
.checks { list-style: none; text-align: right; display: grid; gap: 8px; }
.checks li { padding-right: 28px; position: relative; }
.checks li::before { content: "✔"; position: absolute; right: 4px; color: var(--brand); font-weight: 800; }

details { border-bottom: 1px solid var(--line); }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 12px; color: #374151; font-size: 15px; }

.final-cta { text-align: center; padding: 22px 0 6px; }
.final-cta h2 { font-size: 22px; margin-bottom: 10px; }

.footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 18px 0 10px; }
.disclaimer { margin-bottom: 8px; }

/* ============ الفورم ============ */
.order { border: 2px solid var(--brand); scroll-margin-top: 10px; }
.offers { border: 0; display: grid; gap: 10px; margin-bottom: 14px; }
.offers legend { font-weight: 800; margin-bottom: 8px; }
.offer {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.offer.has-badge { padding-top: 20px; }
.offer input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; }
.offer:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.offer .badge {
  position: absolute; top: -11px; left: 12px; background: var(--accent); color: #111;
  font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px;
}
.o-main { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.o-main small { color: var(--muted); font-size: 13px; }
.o-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; text-align: left; }
.o-price b { color: var(--brand); font-size: 18px; white-space: nowrap; }
.o-price s { color: var(--muted); font-size: 13px; white-space: nowrap; }
.o-price em { font-style: normal; color: var(--danger); font-size: 12px; font-weight: 700; }
.o-main .o-per { color: var(--brand-dark); font-weight: 700; font-size: 12.5px; }

/* Order bump */
.bump {
  display: flex; align-items: flex-start; gap: 10px; margin: -4px 0 14px; padding: 12px;
  border: 2px dashed var(--accent); border-radius: 14px; background: #fffbeb; cursor: pointer;
}
.bump input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.bump-body { display: flex; flex-direction: column; line-height: 1.45; }
.bump-body b { font-size: 15.5px; }
.bump-body b span { color: var(--brand); white-space: nowrap; }
.bump-body small { color: var(--muted); font-size: 13px; }
.bump:has(input:checked) { border-style: solid; background: #fef3c7; }

.field { display: block; margin-bottom: 12px; }
.field > span, .field > label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 15px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px يمنع الزوم في iOS */
  padding: 12px; border: 1.5px solid #d1d5db; border-radius: 12px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.phone-row { display: flex; gap: 8px; direction: ltr; }
.phone-row select { width: auto; flex: 0 0 auto; padding: 12px 6px; }
.phone-row input { flex: 1; min-width: 0; text-align: left; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; display: block; min-height: 0; }
.field.invalid .err { margin-top: 4px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.summary { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 12px; padding: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.summary b { font-size: 22px; color: var(--brand); }
.summary .free { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.form-error { color: var(--danger); text-align: center; margin-top: 10px; font-weight: 700; }
.secure { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ============ الأزرار الثابتة ============ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
  transition: transform .25s;
}
.sticky-cta.hide { transform: translateY(110%); }
.sticky-cta b { font-size: 15px; background: rgba(255, 255, 255, .18); padding: 4px 12px; border-radius: 999px; }

@media (min-width: 600px) {
  .sticky-cta { max-width: 560px; margin: 0 auto; border-radius: 16px 16px 0 0; }
  .hero h1 { font-size: 36px; }
}

/* ============ صفحة الشكر ============ */
.thanks { text-align: center; padding: 30px 0; }
.thanks .check {
  width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 44px; margin: 0 auto 14px;
}
.thanks h1 { font-size: 26px; font-weight: 800; }
.thanks .lead { color: #374151; margin-top: 8px; font-size: 17px; }
.order-box { text-align: right; margin-top: 16px; }
.order-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.order-box dt { color: var(--muted); }
.order-box dd { font-weight: 700; }
.tips { text-align: right; margin-top: 14px; }

/* Upsell f page dyal chokr */
.upsell { border: 2px solid var(--accent); background: #fffbeb; margin-top: 16px; }
.upsell .up-tag { display: inline-block; background: var(--danger); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.upsell .up-img { width: 140px; height: auto; margin: 10px auto 0; }
.upsell h2 { font-size: 21px; margin: 10px 0 4px; }
.upsell h2 b { color: var(--brand); white-space: nowrap; }
.upsell p { color: #374151; font-size: 15px; margin-bottom: 12px; }
.upsell .btn-big { animation: none; }
.up-no { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; margin-top: 10px; cursor: pointer; }
.up-done { font-size: 16px; font-weight: 700; color: var(--brand-dark); margin: 0 !important; }

/* Tsawer kbar f sections + صور المنتج */
.promo { margin: 14px 0 0; }
.promo img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.photos { padding-inline: 12px; }

/* تجارب عملائنا + صور المنتج */
.rev-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.rev-track a { flex: 0 0 72%; max-width: 280px; scroll-snap-align: center; }
.rev-track img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.tips li { margin-bottom: 6px; }
