/* ================================================================
   خبازة امبليوم 40 سم — الأنماط (موبايل أولاً، RTL)
   هوية امبليوم: الشعار، الأخضر لأزرار الطلب، خط Tajawal.
   لوحة «مخبز»: فحمي عميق (لون الجهاز) + كريمي دافئ + لمسة قمحية.
   بدون أي style= داخلي وبدون <style> بالصفحات (CSP بلا unsafe-inline).
   السعر: الحالي أكبر وأوضح، والسابق مشطوب لكن مقروء بوضوح.
   ================================================================ */
:root {
  --coal-900: #17191D;
  --coal-800: #1F2328;
  --coal-700: #2C3138;
  --cream: #FBF6EE;
  --cream-2: #F3EADB;
  --wheat: #E3B062;
  --wheat-700: #7A4E0E;   /* نص قمحي على خلفية فاتحة (AA) */
  --paper: #FFFFFF;
  --ink: #16191E;
  --muted: #545D68;
  --line: #E6DDCF;
  --green: #1B7D35;       /* أخضر امبليوم (AA مع النص الأبيض) */
  --green-2: #156329;
  --sale: #A8201A;        /* شارة التوفير (AA على --sale-bg) */
  --sale-bg: #FDECEA;
  --was: #4A525C;         /* السعر السابق: مشطوب لكن مقروء */
  --err: #B3261E;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(23, 25, 29, .10);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wheat-700); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ns-pixel { display: none; }
:focus-visible { outline: 3px solid var(--wheat-700); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -60px; right: 12px; z-index: 100; background: var(--coal-900); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.skip:focus { top: 12px; }
.sku { overflow-wrap: anywhere; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
.ltr-cell { text-align: right; unicode-bidi: plaintext; }
.num { unicode-bidi: isolate; white-space: nowrap; }

/* ---------------- الشريط المتحرك ----------------
   مجموعتان متطابقتان، كل وحدة عرضها على الأقل عرض الشاشة. الإزاحة 50% =
   عرض مجموعة وحدة بالضبط، فنهاية الدورة تطابق بدايتها بكسل ببكسل (بلا قفزة
   وبلا فراغ). */
.ticker { background: var(--coal-900); color: #F6EFE3; overflow: hidden; direction: rtl; position: relative; border-bottom: 1px solid var(--coal-700); }
.ticker__track { display: flex; width: max-content; will-change: transform; animation: tick 34s linear infinite; }
.ticker__group { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; margin: 0; padding: 0; list-style: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.ticker__ico { flex: none; font-size: 15px; }
.ticker__dot { color: var(--wheat); font-size: 10px; flex: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: 100%; }
  .ticker__group { flex-wrap: wrap; justify-content: center; min-width: 0; width: 100%; padding: 4px 8px; }
  .ticker__group--dup { display: none; }
  .ticker__item { white-space: normal; padding: 4px 10px; font-size: 13px; }
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}

/* ---------------- الرأس ---------------- */
.hdr { background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.hdr__logo img { width: 94px; height: auto; }

/* ---------------- الأزرار ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--green); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(27, 125, 53, .28); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.btn--lg { min-height: 56px; font-size: 19px; padding: 14px 26px; }
.btn--block { display: flex; width: 100%; }
.btn--block-sm { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--green-2); box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:hover { background: #EAF5EC; }
.btn--wa { background: #1A7F4B; }

/* ---------------- العناوين العامة ---------------- */
.sec { padding: 44px 0; }
.sec--soft { background: var(--cream); }
.sec--deep { background: var(--coal-900); color: #F6EFE3; }
.sec__t { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.sec__d { color: var(--muted); margin-bottom: 18px; }
.sec--deep .sec__d { color: #D9CFBF; }
.eyebrow { color: var(--wheat-700); font-weight: 800; font-size: 14px; margin-bottom: 6px; letter-spacing: .2px; }
.sec--deep .eyebrow { color: var(--wheat); }

/* ---------------- الواجهة ---------------- */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: 18px 0 30px; }
.hero__in { display: grid; gap: 18px; }
.hero__media { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 14px; }
.hero__img { width: 100%; height: auto; margin: 0 auto; }
.chip { position: absolute; background: var(--coal-900); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.chip b { font-size: 16px; font-weight: 900; color: var(--wheat); }
.chip--a { top: 12px; right: 12px; }
.chip--b { top: 12px; left: 12px; }
.hero__copy { display: grid; gap: 12px; }
.hero__title { font-size: 31px; font-weight: 900; }
.hero__model { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tag { background: var(--coal-900); color: #fff; border-radius: 8px; padding: 2px 10px; font-weight: 800; font-size: 15px; }
.specs-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.specs-inline li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 15px; }
.hero__sub { color: #39404A; }

/* ---------------- السعر (سابق مشطوب + حالي + توفير) ---------------- */
.price { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.price__was { color: var(--was); font-size: 16px; font-weight: 700; }
.price__was s { color: var(--was); text-decoration-color: var(--sale); text-decoration-thickness: 1.5px; }
.price__now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 800; }
.price__now b { font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.price__save { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 15px; }
.badge--save { background: var(--sale-bg); color: var(--sale); }
.badge--pct { background: var(--coal-900); color: #fff; }
.price__inc { color: var(--green-2); font-weight: 700; font-size: 14px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.perk { background: var(--cream-2); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 15px; }
.perk--free { background: #EAF5EC; color: var(--green-2); }

/* ---------------- المعرض ---------------- */
.gallery { display: grid; gap: 12px; }
.gallery__main { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; justify-content: center; }
.thumb { width: 76px; height: 76px; padding: 6px; border-radius: 14px; background: #fff; border: 2px solid var(--line); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-on { border-color: var(--coal-900); box-shadow: 0 0 0 2px var(--wheat); }

/* ---------------- العرض ---------------- */
.offer { display: grid; gap: 20px; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-right: 28px; }
.checks li::before { content: "✓"; position: absolute; right: 0; top: 0; color: var(--green); font-weight: 900; }
.offer__card { background: var(--coal-900); color: #fff; border-radius: 22px; padding: 20px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.offer__lbl { color: #E8DDCB; font-weight: 700; }
.offer__card .price__was, .offer__card .price__was s { color: #E3D9C9; }
.offer__card .price__was s { text-decoration-color: #FF8A80; }
.offer__card .price__now b { color: #fff; font-size: 42px; }
.offer__card .badge--pct { background: var(--wheat); color: var(--coal-900); }
.offer__rows { margin: 4px 0 6px; display: grid; gap: 6px; }
.offer__rows div { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); padding-top: 6px; }
.offer__rows dt { color: #E8DDCB; }
.offer__rows dd { margin: 0; font-weight: 800; }

/* ---------------- المزايا ---------------- */
.grid { display: grid; gap: 12px; }
.grid--ben { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ben { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.ben__i { font-size: 26px; }
.ben__t { font-size: 16px; font-weight: 900; }
.ben__d { color: var(--muted); font-size: 14px; }

/* ---------------- أقسام الميزات ---------------- */
.feat__in { display: grid; gap: 20px; align-items: center; }
.feat__media { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.feat__media img { width: 100%; height: auto; max-height: 360px; object-fit: contain; margin: 0 auto; }
.feat__copy { display: grid; gap: 10px; }
.facts { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; background: var(--cream); border-radius: 12px; padding: 10px 14px; }
.facts b { font-weight: 800; }
.facts span { color: #39404A; font-weight: 700; text-align: left; }
.stat { display: grid; gap: 10px; align-items: center; }
.stat__n { font-size: 76px; font-weight: 900; line-height: 1; color: var(--wheat); }
.stat__n small { font-size: 26px; margin-right: 6px; color: #F6EFE3; }
.stat--light .stat__n { color: var(--coal-900); }
.stat--light .stat__n small { color: var(--wheat-700); }
.note-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.sec--soft .note-card { background: #fff; }
.note-card__i { font-size: 34px; width: 56px; height: 56px; border-radius: 16px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.note-card .sec__t { font-size: 22px; }
.note-card p { color: #39404A; }

/* ---------------- الاستخدامات ---------------- */
.grid--use { grid-template-columns: minmax(0, 1fr); }
.use { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 6px; }
.use__i { font-size: 34px; }
.use h3 { font-size: 20px; font-weight: 900; }
.use p { color: var(--muted); }
.fine { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------------- المواصفات ---------------- */
.spec { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.spec__t { width: 100%; border-collapse: collapse; }
.spec__t th, .spec__t td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.spec__t tr:last-child th, .spec__t tr:last-child td { border-bottom: 0; }
.spec__t th { width: 42%; background: var(--cream); color: #2F353D; font-weight: 800; }
.spec__t td { font-weight: 700; overflow-wrap: anywhere; }

/* ---------------- الثقة ---------------- */
.grid--trust { grid-template-columns: minmax(0, 1fr); }
.trust { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.trust__i { font-size: 28px; }
.trust h3 { font-size: 18px; font-weight: 900; }
.trust p { color: var(--muted); }

/* ---------------- الأسئلة ---------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--wheat-700); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; color: #39404A; }

/* ---------------- الطلب ---------------- */
.sec--order { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.order__card { background: #fff; border-radius: 24px; padding: 20px 16px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-weight: 800; }
.field input, .field select { width: 100%; min-height: 50px; border: 1.5px solid #CFC5B5; border-radius: 12px; padding: 10px 14px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--coal-900); outline: 3px solid rgba(227, 176, 98, .45); outline-offset: 0; }
.field input.is-err, .field select.is-err { border-color: var(--err); }
.hint { font-size: 13px; color: var(--muted); }
.err { display: none; font-size: 14px; color: var(--err); font-weight: 700; }
.err.is-on { display: block; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty__b { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid #CFC5B5; background: #fff; font-size: 24px; font-weight: 900; cursor: pointer; }
.qty__b[disabled] { opacity: .45; cursor: not-allowed; }
.qty__v { min-width: 40px; text-align: center; font-size: 22px; font-weight: 900; }
.hp { position: absolute !important; right: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.summary { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.summary__t { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.summary__prod { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed #D5C8B3; }
.summary__prod img { width: 72px; height: auto; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.summary__n { font-weight: 900; font-size: 17px; }
.summary__m { color: var(--muted); font-size: 14px; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.summary dt { color: #3A3F46; min-width: 0; }
.summary dd { margin: 0; font-weight: 800; text-align: left; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.summary__was { color: var(--was); font-weight: 700; font-size: 14px; }
.summary__was s { text-decoration-color: var(--sale); text-decoration-thickness: 1.5px; }
.summary__save { color: var(--sale); }
.summary__free { color: var(--green-2); }
.summary__total { padding-top: 10px; margin-top: 4px; border-top: 1px solid #D5C8B3; }
.summary__total dt { font-weight: 900; color: var(--ink); }
.summary__total dd { font-size: 24px; font-weight: 900; }
.summary__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.alert { background: #FDECEA; color: var(--err); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-bottom: 12px; }
.done { text-align: center; display: grid; gap: 10px; }
.done__i { font-size: 44px; }
.done__t { font-size: 24px; font-weight: 900; }

/* ---------------- الشريط السفلي (موبايل) ---------------- */
.sticky { position: fixed; right: 0; left: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; padding-bottom: env(safe-area-inset-bottom); }
.sticky.is-on { transform: translateY(0); visibility: visible; }
.sticky__in { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.sticky__img { width: 54px; height: auto; flex: none; }
.sticky__p { display: grid; min-width: 0; line-height: 1.3; flex: 1; }
.sticky__n { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky__pr { display: flex; gap: 2px 8px; align-items: baseline; flex-wrap: wrap; }
.sticky__pr b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.sticky__was { font-size: 13px; font-weight: 700; color: var(--was); white-space: nowrap; }
.sticky__was s { text-decoration-color: var(--sale); text-decoration-thickness: 1.5px; }
.sticky__free { font-size: 12px; font-weight: 800; color: var(--green-2); white-space: nowrap; }
.sticky .btn { flex: none; }
body { padding-bottom: 92px; }

/* ---------------- التذييل ---------------- */
.ftr { background: var(--coal-900); color: #D9CFBF; padding: 30px 0; }
.ftr__in { display: grid; gap: 12px; justify-items: center; text-align: center; }
.ftr__logo { width: 94px; border-radius: 8px; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.ftr__nav a, .ftr__wa a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ftr__c { font-size: 14px; }

/* ---------------- الصفحات القانونية ---------------- */
.legal { padding: 30px 0 50px; }
.legal h1 { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.legal h2 { font-size: 22px; margin: 22px 0 8px; }
.legal h3 { font-size: 18px; margin: 14px 0 6px; }
.legal p, .legal li { color: #2F353D; }
.legal .upd { color: var(--muted); font-size: 14px; }
.legal .box { background: var(--cream); border-radius: 14px; padding: 14px; margin: 12px 0; display: grid; gap: 8px; }
body.is-legal { padding-bottom: 0; }

/* ---------------- الشاشات الضيقة جداً ---------------- */
@media (max-width: 360px) {
  .ticker__item { font-size: 13px; padding: 8px 12px; }
  .hero__title { font-size: 27px; }
  .price__now b { font-size: 34px; }
  .offer__card .price__now b { font-size: 36px; }
  .grid--ben { grid-template-columns: minmax(0, 1fr); }
  .sticky__in { gap: 8px; padding: 8px 10px; }
  .sticky__img { width: 44px; }
  .sticky .btn { padding: 8px 12px; font-size: 14px; }
  .sticky__pr b { font-size: 16px; }
  .stat__n { font-size: 64px; }
}

/* ---------------- الشاشات الأعرض ---------------- */
@media (min-width: 600px) {
  .btn--block-sm { display: inline-flex; width: auto; justify-self: start; }
  .grid--ben { grid-template-columns: repeat(4, 1fr); }
  .grid--trust { grid-template-columns: repeat(2, 1fr); }
  .grid--use { grid-template-columns: repeat(2, 1fr); }
  .order__card { padding: 28px; }
  .stat { grid-template-columns: auto minmax(0, 1fr); gap: 32px; }
  .stat__n { font-size: 96px; }
}
@media (min-width: 960px) {
  .hero { padding: 36px 0 44px; }
  .hero__in { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
  .hero__media { order: 2; padding: 24px; }
  .hero__title { font-size: 44px; }
  .gallery { grid-template-columns: minmax(0, 1fr) 96px; max-width: 760px; margin: 0 auto; }
  .gallery__thumbs { flex-direction: column; justify-content: flex-start; }
  .thumb { width: 96px; height: 96px; }
  .gallery__main img { max-height: 560px; }
  .offer { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .feat__in { grid-template-columns: 1fr 1fr; gap: 40px; }
  .feat--rev .feat__media { order: 2; }
  .feat__media img { max-height: 440px; }
  .grid--trust { grid-template-columns: repeat(4, 1fr); }
  .sec { padding: 60px 0; }
  .sec__t { font-size: 32px; }
  .sticky { display: none; }
  body { padding-bottom: 0; }
}
