/* Adahi-SA storefront, light theme. White ground, pale-green tint for the hero, legal statements and footer, deep green for actions, gold for small accents. AR (RTL) and EN (LTR) share one markup; .ar/.en toggle by html[data-lang]. Single light look by choice. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F8F4;
  --tint: #F0F6EF;
  --fg: #1E2D26;
  --muted: #576A5F;
  --line: #E3EAE2;
  --line-strong: #CAD6C9;
  --brand: #1B5E46;
  --brand-hover: #154B38;
  --brand-ink: #0F3D2E;
  --gold: #C9A24A;
  --gold-ink: #7D5F16;
  --gold-soft: #F8F2DF;
  --gold-line: rgba(184, 138, 42, 0.38);
  --on-brand: #FFFFFF;
  --danger: #B3261E;
  --focus: #1B5E46;
  --f-display: "Reem Kufi", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

html[data-lang="ar"] .en,
html[data-lang="en"] .ar,
html:not([data-lang]) .en { display: none !important; }
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.75 var(--f-body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { position: relative; display: flex; align-items: center; gap: 10px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-ink); margin-inline-end: auto; }
.brand svg { flex: none; }
.brand-name { font: 700 1.25rem/1 var(--f-display); letter-spacing: 0.01em; }
.brand-sub { display: block; font: 500 0.6875rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
.btn-small { font: 600 0.875rem/1 var(--f-body); min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--fg); cursor: pointer; }
.btn-small:hover { border-color: var(--brand); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--brand-ink); text-decoration: none; }
.cart-link:hover { border-color: var(--brand); }
.cart-count { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 600 0.75rem/20px var(--f-mono); text-align: center; }
.cart-count[data-n="0"] { display: none; }
.nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
.nav[data-open="true"] { display: flex; }
.nav a { padding: 10px 2px; color: var(--fg); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--gold); }
@media (min-width: 920px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 22px; border: 0; padding: 0; background: transparent; }
  .nav a { padding: 6px 0; }
}

/* Operator bar */
.operator { background: var(--gold-soft); color: #4A401F; font-size: 0.8125rem; line-height: 1.6; border-bottom: 1px solid var(--gold-line); }
.operator .wrap { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-block: 8px; align-items: baseline; }
.operator a { color: var(--brand-ink); font-weight: 600; }

/* Hero */
.hero {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23B88A2A' stroke-opacity='.16'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--fg);
  padding-block: 52px 40px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { font: 500 0.8125rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.hero h1 { font: 700 clamp(2rem, 6.2vw, 3.5rem)/1.2 var(--f-display); margin: 0 0 16px; max-width: 18ch; text-wrap: balance; color: var(--brand-ink); }
.hero .lead-on { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; border-radius: 6px; }
.btn-gold { background: var(--brand); color: var(--on-brand); }
.btn-gold:hover { background: var(--brand-hover); }
.btn-line, .btn-line-dark { border-color: var(--brand); color: var(--brand-ink); background: transparent; }
.btn-line:hover, .btn-line-dark:hover { background: var(--surface-2); }
.facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--gold-line); display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 0.8125rem/1.5 var(--f-mono); color: var(--muted); }
.facts b { color: var(--gold-ink); font-weight: 500; }

/* Sections */
.section { padding-block: 48px 8px; }
.section h2 { font: 700 clamp(1.5rem, 4.2vw, 2.125rem)/1.25 var(--f-display); margin: 0 0 8px; text-wrap: balance; color: var(--brand-ink); }
.lead { color: var(--muted); max-width: 64ch; margin: 0 0 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; min-width: 0; }
.panel h3 { font: 600 1.125rem/1.4 var(--f-display); margin: 0 0 6px; color: var(--brand-ink); }
.panel p { margin: 0; color: var(--muted); }
.trio { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.trio-wrap { padding-block: 32px 0; }

/* Products */
.group-title { display: flex; align-items: center; gap: 14px; font: 600 1.0625rem/1.4 var(--f-display); color: var(--gold-ink); margin: 30px 0 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.pcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 61, 46, 0.05); }
.pimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pbody { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.tag { font: 500 0.75rem/1.4 var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.pname { font: 600 1.375rem/1.35 var(--f-display); margin: 0; color: var(--brand-ink); }
.pmeta { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.pfoot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; border-top: 1px dashed var(--gold-line); }
.price { font: 500 1.25rem/1 var(--f-mono); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.buy .btn { flex: 1; min-width: 0; min-height: 44px; padding: 0 18px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--fg); background: var(--surface); }
.qty button { width: 40px; min-height: 44px; border: 0; background: transparent; color: inherit; font: 500 1.25rem/1 var(--f-mono); cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty output { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; font: 500 1rem/1 var(--f-mono); }
.note-list { margin: 24px 0 0; padding-inline-start: 1.2rem; color: var(--muted); max-width: 70ch; }
.note-list li { margin-bottom: 6px; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; min-width: 0; }
.steps li::before { content: counter(step); display: block; font: 500 0.875rem/1 var(--f-mono); color: var(--gold-ink); margin-bottom: 10px; }
.steps h3 { font: 600 1.0625rem/1.4 var(--f-display); margin: 0 0 6px; color: var(--brand-ink); }
.steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Statement + record sheet */
.statement { background: var(--tint); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.statement p { margin: 0; max-width: 72ch; }
.statement p + p { margin-top: 10px; }
.statement a { color: var(--brand); font-weight: 600; }
.record { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.record .row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 20px; padding: 14px 20px; border-top: 1px solid var(--line); }
.record .row:first-child { border-top: 0; }
.record dt { color: var(--muted); font-size: 0.875rem; }
.record dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (max-width: 560px) { .record .row { grid-template-columns: 1fr; } }
.qa { display: grid; gap: 10px; margin: 0; }
.qa div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; }
.qa dt { font-weight: 600; margin-bottom: 2px; color: var(--brand-ink); }
.qa dd { margin: 0; color: var(--muted); }

/* Prose pages */
.page-head { padding-block: 44px 8px; }
.page-head h1 { font: 700 clamp(1.875rem, 5vw, 2.75rem)/1.2 var(--f-display); margin: 0 0 10px; text-wrap: balance; color: var(--brand-ink); }
.prose { max-width: 70ch; padding-block: 8px 24px; }
.prose h2 { font: 600 1.375rem/1.4 var(--f-display); margin: 34px 0 8px; color: var(--brand-ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-inline-start: 1.3rem; }
.stamp { font: 500 0.8125rem/1.4 var(--f-mono); color: var(--muted); margin: 0 0 6px; }
.faq { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 20px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; color: var(--brand-ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: inline-end; font-family: var(--f-mono); color: var(--gold-ink); }
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 14px; color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Cart, checkout, success */
.cart-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 340px; } .summary { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); } }
.lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; }
.line:first-child { border-top: 0; }
.l-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.l-thumb { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }
.l-name { margin: 0; font: 600 1.125rem/1.4 var(--f-display); color: var(--brand-ink); }
.l-cat { margin: 0; color: var(--muted); font-size: 0.875rem; }
.l-total { margin: 0; font: 500 1.0625rem/1.4 var(--f-mono); color: var(--brand-ink); }
.l-ctrl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.l-unit { color: var(--muted); font-size: 0.875rem; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--brand); font: 500 0.9375rem var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-inline-start: auto; }
.sum { margin: 12px 0 16px; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; }
.sum .grand { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.sum .grand dd { font: 600 1.25rem/1.3 var(--f-mono); color: var(--brand-ink); }
.fine { color: var(--muted); font-size: 0.875rem; margin: 0 0 14px; }
.btn-block { display: flex; width: 100%; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; min-width: 0; }
.form-card h2 { font: 600 1.25rem/1.4 var(--f-display); margin: 8px 0 14px; color: var(--brand-ink); }
.form-card h2:first-child { margin-top: 0; }
.field { display: grid; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.help { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid .choice label { border-color: var(--danger); }
.err { display: none; margin: 0; color: var(--danger); font-size: 0.875rem; }
.field.invalid .err { display: block; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 16px; background: var(--surface); cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.choice input, .check input { width: auto; min-height: 0; accent-color: var(--brand); }
.phone-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { border: 1px solid var(--danger); color: var(--danger); border-radius: 6px; padding: 12px 14px; margin: 0 0 14px; }
.testmode { border: 1px dashed var(--danger); color: var(--danger); border-radius: 6px; padding: 10px 14px; margin: 16px 0 0; font-size: 0.875rem; }
.mini-lines { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.toast { position: fixed; z-index: 50; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 420px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--brand-ink); color: #fff; border-radius: 8px; padding: 12px 16px; box-shadow: 0 6px 24px rgba(15, 61, 46, 0.25); }
.toast a { color: #F3DDA0; font-weight: 600; }
.success { display: grid; gap: 20px; padding-block: 40px 8px; max-width: 760px; }
.success .statement h1 { font: 700 clamp(1.625rem, 5vw, 2.25rem)/1.25 var(--f-display); margin: 12px 0 12px; color: var(--brand-ink); }
.tick { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brand); align-items: center; justify-content: center; color: var(--brand); background: var(--surface); }
.ref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.ref { margin: 0; font: 600 clamp(1.5rem, 5vw, 2rem)/1.2 var(--f-mono); letter-spacing: 0.02em; color: var(--brand-ink); }
.chip { display: inline-block; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-ink); font: 500 0.8125rem/1.4 var(--f-mono); padding: 5px 12px; border-radius: 99px; }
.panel ul { margin: 8px 0 0; padding-inline-start: 1.2rem; color: var(--muted); }
.panel .strong { color: var(--fg); font-weight: 600; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--tint); color: var(--fg); margin-top: 56px; padding-block: 40px 28px; font-size: 0.9375rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--brand); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.foot-grid > div { min-width: 0; }
.site-footer h2 { font: 600 1rem/1.4 var(--f-display); color: var(--brand-ink); margin: 0 0 10px; }
.site-footer p { margin: 0 0 10px; color: var(--muted); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-facts { margin: 0; display: grid; gap: 8px; }
.foot-facts div { display: grid; gap: 0; }
.foot-facts dt { font-size: 0.75rem; color: var(--muted); }
.foot-facts dd { margin: 0; overflow-wrap: anywhere; }
.legal-line { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 0.8125rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* simple footer */
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 14px; padding: 0; }
.foot-row a { text-decoration: none; }
.brand-name { white-space: nowrap; }
