/* EMAR FIX — product pages, selection guide and 404 (built by build.py). Loaded after style.css; same tokens. */
.site-header.static { position: sticky; top: 0; }
.site-header.static .bar { height: 70px; }
.sub .main-nav { gap: 0; }
.sub .main-nav a { padding-inline: 11px; }
.sub .main-nav a.ltr { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.head-end .btn.wa { gap: 10px; }
.wa-mini { display: none; width: 46px; height: 46px; border-radius: 50%; background: #1F9D57; color: #fff; place-items: center; }
.wa-mini svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-mini { display: grid; } }
.sub .wa-float { display: none; } /* the header already carries the WhatsApp button */

/* Latin runs (codes, units, EN 12004) never break across lines inside Arabic text */
.sub main .ltr { white-space: nowrap; }

/* Hero */
.p-hero { position: relative; background: var(--deep); color: rgba(255, 255, 255, .78); padding-block: 34px 0; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px); pointer-events: none; }
.p-hero .wrap { position: relative; }
.p-hero h1 { color: #fff; font-size: clamp(32px, 2.6vw + 16px, 58px); line-height: 1.18; margin-bottom: 18px; }
html[lang="en"] .p-hero h1 { line-height: 1.02; }
.p-hero h1 em { font-style: normal; color: var(--sand); }
.p-hero .kicker { color: var(--sand); }
.p-hero .lead { font-size: 17px; max-width: 620px; }
.p-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 30px; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .6); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a:hover { color: var(--sand); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-bottom: 56px; }
.ph-media { position: relative; margin: 0; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--deep-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.ph-media img { width: 100%; height: 100%; object-fit: cover; animation: ph-in 1.4s var(--ease) both; }
.ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 22, 15, .65), transparent 55%); }
.ph-media .code { position: absolute; bottom: 14px; inset-inline-start: 22px; z-index: 1; font: 800 clamp(64px, 6vw + 20px, 120px)/.85 "Barlow Condensed", sans-serif; color: #fff; direction: ltr; }
.ph-media .tag { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 1; padding: 8px 14px; border-radius: 30px; background: rgba(12, 29, 21, .75); color: #fff; font: 600 14px/1 var(--f-head); }
@keyframes ph-in { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts div { padding: 22px 0; padding-inline-end: 18px; }
.facts div + div { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-inline-start: 22px; }
.facts dt { font-size: 13px; color: rgba(255, 255, 255, .6); }
.facts dd { margin: 4px 0 0; font: 700 22px/1.3 var(--f-head); color: #fff; }
.facts dd .ltr { font-family: "Barlow Condensed", sans-serif; font-size: 26px; letter-spacing: .02em; }
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 36px; }
  .ph-media { order: -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: 14px 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .facts div:first-child { border-top: 0; }
  .p-hero .cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Body: article + sticky side card */
.p-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-block: 70px 90px; align-items: start; }
.pdoc section { padding-block: 34px; border-top: 1px solid var(--line); }
.pdoc section:first-child { border-top: 0; padding-top: 0; }
.pdoc h2 { font-size: clamp(26px, 1.4vw + 16px, 36px); margin-bottom: 18px; }
.ticks li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 14px; background: var(--green); box-shadow: 5px 5px 0 var(--sand); }
.spec { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 20px 40px -32px rgba(12, 29, 21, .4); }
.spec th, .spec td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; font: 600 15px/1.5 var(--f-head); color: var(--body); background: var(--paper); }
.spec td { color: var(--ink); font-weight: 700; }
.spec td .ltr, .tbl td .ltr { font-family: "Barlow Condensed", sans-serif; font-size: 1.12em; letter-spacing: .02em; }
.pdoc .fine, .compare .fine { font-size: 13.5px; margin: 14px 0 0; }
.pdoc .fine a, .compare .fine a { color: var(--green); font-weight: 700; }
.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px; padding-inline-start: 74px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 18px; top: 16px; font: 800 34px/1 "Barlow Condensed", sans-serif; color: var(--sand); }
.steps b { display: block; font: 700 18px/1.4 var(--f-head); color: var(--ink); margin-bottom: 4px; }
.steps p { margin: 0; }
.alt { display: grid; gap: 10px; }
.alt a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .35s var(--ease); }
.alt a:hover { box-shadow: inset 0 0 0 1.5px var(--green); transform: translateY(-2px); }
.alt b { flex: none; min-width: 64px; font: 800 30px/1 "Barlow Condensed", sans-serif; color: var(--green); }
.alt span { color: var(--ink); line-height: 1.6; }
.alt svg { flex: none; width: 20px; height: 20px; margin-inline-start: auto; color: var(--green); }
html[dir="rtl"] .alt .dir { transform: scaleX(-1); }
.side { position: sticky; top: 94px; display: grid; gap: 16px; }
.box { background: var(--deep); color: rgba(255, 255, 255, .75); padding: 26px 24px; }
.box-t { display: block; font: 700 24px/1.3 var(--f-head); color: #fff; margin-bottom: 6px; }
.box .btn { width: 100%; justify-content: center; margin: 8px 0 18px; font-family: "Barlow Condensed", sans-serif; font-size: 20px; letter-spacing: .03em; }
.box ul { display: grid; gap: 12px; font-size: 14.5px; }
.box li { display: flex; gap: 10px; line-height: 1.55; }
.box li svg { flex: none; width: 20px; height: 20px; color: var(--sand); margin-top: 2px; }
.toc { display: grid; padding: 20px 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.toc b { font: 700 16px/1 var(--f-head); color: var(--ink); margin-bottom: 10px; }
.toc a { padding: 6px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.toc a:last-child { border: 0; }
.toc a:hover { color: var(--green); }
@media (max-width: 960px) {
  .p-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 44px 60px; }
  .side { position: static; }
  .toc { display: none; }
}
@media (max-width: 480px) { .spec th { width: 44%; } .spec th, .spec td { padding: 12px 12px; } .steps li { padding-inline-start: 60px; } .steps li::before { inset-inline-start: 14px; font-size: 28px; } }

/* More products / cards */
.more h2 { margin-bottom: 34px; text-align: center; }
.more h2 em, .pick-sec h2 em, .compare h2 em { font-style: normal; color: var(--green); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .cards.three { grid-template-columns: minmax(0, 1fr); } }
.sub .card h3 { font-size: 21px; }
.sub .card h3 .ltr { font-family: "Barlow Condensed", sans-serif; }

/* Selection guide */
.pick-sec h2, .compare h2 { margin-bottom: 30px; }
.pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 44px; }
.pick li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pick span { color: var(--ink); font-weight: 700; }
.pick a { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.pick b { font: 800 24px/1 "Barlow Condensed", sans-serif; }
.pick svg { width: 16px; height: 16px; }
html[dir="rtl"] .pick .dir { transform: scaleX(-1); }
@media (max-width: 900px) { .pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 420px) { .pick { grid-template-columns: minmax(0, 1fr); } }
.compare { background: var(--cream); }
.tbl { overflow-x: auto; background: #fff; box-shadow: 0 30px 60px -44px rgba(12, 29, 21, .5); }
.tbl table { width: 100%; min-width: 760px; border-collapse: collapse; }
.tbl th, .tbl td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--deep); color: #fff; font: 600 15px/1.3 var(--f-head); white-space: nowrap; }
.tbl tbody th a { font: 800 26px/1 "Barlow Condensed", sans-serif; color: var(--green); }
.tbl td { color: var(--ink); }
.compare h3 { margin: 50px 0 18px; font-size: 26px; }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.codes div { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; }
.codes dt { flex: none; min-width: 44px; font: 800 34px/1 "Barlow Condensed", sans-serif; color: var(--green); }
.codes dd { margin: 0; color: var(--ink); line-height: 1.55; }
@media (max-width: 900px) { .codes { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.p-hero.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.p-hero.nf .lead { margin-inline: auto; }
.p-hero.nf .cta { justify-content: center; }
