/* MEEN QR — shared styles */
:root {
  --yellow: #ffc400;
  --yellow-soft: #fff8e1;
  --yellow-dark: #e6a800;
  --red: #e1251b;
  --ink: #0f1b2d;
  --text: #1d2433;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --brown: #8a5a2b;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 96px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 52px; height: 52px; flex: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: "Archivo Black", sans-serif; font-size: 24px; letter-spacing: 1px; color: var(--ink);
}
.logo-text strong span {
  background: var(--red); color: #fff; padding: 0 5px; border-radius: 5px; margin-left: 3px;
}
.logo-text small { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: var(--ink); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 44px; }
.nav a {
  text-decoration: none; font-size: 19px; font-weight: 500; padding: 6px 0;
  border-bottom: 3px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a.active { border-color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  border-radius: 999px; padding: 12px 26px; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #ffd21f, var(--yellow));
  color: var(--ink); box-shadow: 0 6px 16px rgba(255, 196, 0, .35);
}
.btn-outline { background: #fff; border-color: var(--yellow); color: var(--ink); }
.btn-dark { background: #000; color: #fff; border-radius: 8px; }
.btn-brown { background: var(--brown); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 14px; }
.btn-brown-outline { background: #fff; color: var(--brown); border-color: var(--brown); border-radius: 8px; padding: 6px 14px; font-size: 14px; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--yellow); text-align: center; padding: 18px 20px;
}
.page-banner h1 { margin: 0; font-size: 40px; font-weight: 500; color: #000; }

/* ---------- Home hero ---------- */
.hero { padding: 70px 0 60px; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-family: "Archivo Black", sans-serif; font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.15; margin: 0 0 40px; color: #000;
}
.hl { color: var(--yellow); }
.app-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.app-row p { margin: 0 8px 0 0; font-weight: 700; color: var(--ink); }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff;
  text-decoration: none; border-radius: 8px; padding: 6px 14px; line-height: 1.1;
}
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge small { display: block; font-size: 9px; text-transform: uppercase; }
.store-badge strong { font-size: 15px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-primary { padding-inline-start: 12px; }
.qr-dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 196, 0, .25);
}
.hero-img img { border-radius: 6px; box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
section.block { padding: 70px 0; }
section.alt { background: var(--bg-alt); }
.section-title { font-size: 36px; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
.section-sub { color: var(--muted); margin: 0 0 40px; font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 22px; line-height: 1.75; font-weight: 300; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

.cta-band { background: var(--yellow); padding: 50px 0; text-align: center; }
.cta-band h2 { margin: 0 0 18px; font-size: 32px; color: #000; }
.cta-band .btn-dark { padding: 14px 32px; }

/* ---------- About ---------- */
.about-intro { font-size: 20px; line-height: 2; margin: 0 0 50px; }
.about-intro strong { font-size: 28px; font-weight: 500; }
.mission h3 { font-size: 22px; margin: 0 0 6px; font-weight: 600; }
.mission p { font-size: 20px; margin: 0; line-height: 1.9; }
.mission-img {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #fff27a, #ffe34d);
}
.mission-img svg { width: 100%; height: 100%; }

/* ---------- Shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
  border: 2px solid var(--ink); background: #fff; padding: 12px 12px 22px; text-align: center;
  max-width: 320px;
}
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-media > img { width: 100%; height: 100%; object-fit: contain; }
.product-media .tag-thumb {
  position: absolute; top: 8px; inset-inline-start: 8px; width: 64px; border: 1px solid var(--line);
  background: #fff;
}
.product-card h3 { font-size: 26px; margin: 12px 0 4px; color: #000; }
.product-card .price { color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.product-actions { display: flex; gap: 8px; justify-content: center; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15, 27, 45, .6); display: none; place-items: center; padding: 20px; z-index: 100; }
.modal.open { display: grid; }
.modal-box {
  background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%;
  max-height: 90vh; overflow: auto; padding: 28px; position: relative;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px;
}
.modal-close { position: absolute; top: 10px; inset-inline-end: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; }
.modal-box h3 { margin: 0 0 8px; font-size: 26px; }
.modal-box ul { padding-inline-start: 20px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-top { border-bottom: 3px solid var(--yellow); }
.checkout-top .container { display: flex; justify-content: space-between; align-items: center; min-height: 96px; }
.secure { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkout { padding: 40px 0 70px; }
.checkout .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.checkout h1 { font-size: 40px; margin: 0; color: var(--ink); }
.checkout .intro { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; background: #fff;
}
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-head .step-num { margin: 0; }
.card-head h2 { margin: 0; font-size: 26px; color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field label svg { width: 24px; height: 24px; }
.req { color: var(--red); }
.input, .select, textarea.input {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid #cfd6e1;
  border-radius: 10px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 196, 0, .25); }
.input.invalid { border-color: var(--red); }
.error-msg { color: var(--red); font-size: 13px; margin-top: 4px; display: none; }
.field.has-error .error-msg { display: block; }
.phone-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }

.pay-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 2px solid var(--yellow); background: var(--yellow-soft); border-radius: 10px; padding: 18px 20px;
  cursor: pointer;
}
.pay-option input { accent-color: var(--yellow); width: 22px; height: 22px; }
.pay-option .pay-label { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 18px; color: var(--ink); }
.mada { display: flex; align-items: center; gap: 8px; }
.mada .bars { display: grid; gap: 4px; }
.mada .bars i { display: block; width: 50px; height: 14px; }
.mada .bars i:first-child { background: #29a8e0; }
.mada .bars i:last-child { background: #84c341; }
.mada b { font-size: 22px; line-height: 1; color: var(--ink); text-align: center; }
.secure-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 16px; }

.pay-btn {
  width: 100%; border: 0; border-radius: 10px; padding: 18px; font-size: 22px;
  background: var(--yellow); color: var(--ink);
}

.summary { background: var(--bg-alt); position: sticky; top: 20px; }
.summary h2 { font-size: 34px; margin: 0 0 18px; color: var(--ink); }
.sum-product { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.sum-product img { width: 120px; border-radius: 6px; background: #fff; }
.sum-product strong { font-size: 22px; color: var(--ink); }
.row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 18px; }
.qty { display: flex; gap: 4px; }
.qty button, .qty input {
  width: 48px; height: 48px; border: 1px solid #cfd6e1; background: #fff; border-radius: 8px;
  font: inherit; font-size: 20px; text-align: center; cursor: pointer;
}
.qty input { cursor: text; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.discount { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-top: 8px; }
.btn-grey { background: #e6eaf0; border-radius: 8px; border: 1px solid #d4dae3; padding: 12px 18px; font-weight: 500; }
.discount-msg { font-size: 14px; margin-top: 6px; min-height: 20px; }
.discount-msg.ok { color: #1e8e3e; }
.discount-msg.bad { color: var(--red); }
.total { font-size: 28px; font-weight: 800; color: var(--ink); }

.notice {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7;
}
.notice.show { display: block; }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact h2 { font-size: 38px; margin: 0 0 30px; color: #000; }
.info { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.info-icon { width: 60px; height: 60px; border-radius: 50%; background: #eef3fb; display: grid; place-items: center; flex: none; }
.info-icon svg { width: 24px; height: 24px; }
.info h4 { margin: 4px 0 4px; font-size: 16px; color: #000; }
.info p, .info a { margin: 0; font-size: 18px; text-decoration: none; }
.contact form .input { border-radius: 4px; margin-bottom: 14px; font-size: 14px; }
.contact form textarea { min-height: 90px; resize: vertical; }
.contact .intro { font-size: 14px; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.footer-main { background: var(--ink); color: #c9d1de; padding: 56px 0 44px; }
.footer-main .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-main .logo-text strong, .footer-main .logo-text small { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 340px; font-size: 15px; }
.footer-main h3 { margin: 4px 0 14px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); }
.footer-main nav a, .footer-main div > a:not(.logo) {
  display: block; width: fit-content; padding: 4px 0; text-decoration: none; font-size: 15px; color: #c9d1de;
}
.footer-main a:not(.logo):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.footer-bottom { background: var(--yellow); padding: 16px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 17px; }
.footer-bottom .apps { display: flex; gap: 16px; }
.footer-bottom .store-badge { padding: 8px 18px; }

/* ---------- Terms ---------- */
.terms { max-width: 860px; }
.terms-effective {
  display: inline-block; background: var(--yellow-soft); border: 1px solid var(--yellow);
  border-radius: 999px; padding: 6px 16px; font-weight: 700; color: var(--ink); margin: 0 0 24px;
}
.terms-intro { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.terms section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.terms section:last-child { border-bottom: 0; }
.terms h2 { display: flex; align-items: center; gap: 14px; font-size: 24px; margin: 0 0 12px; color: var(--ink); }
.terms h2 .step-num { width: 38px; height: 38px; font-size: 17px; margin: 0; flex: none; }
.terms p { margin: 0 0 12px; font-size: 17px; }
.terms ul { margin: 0 0 12px; padding-inline-start: 22px; font-size: 17px; }
.terms li { margin: 4px 0; }
.terms li::marker { color: var(--yellow-dark); }
.terms-contact { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; }
.terms-contact strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.terms-contact a { text-decoration: none; }
.terms-contact a:hover { text-decoration: underline; }
.terms-summary { margin: 0; border: 2px solid var(--yellow); border-radius: var(--radius); overflow: hidden; }
.terms-summary div { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.terms-summary div:first-child { border-top: 0; }
.terms-summary dt { background: var(--yellow-soft); font-weight: 700; color: var(--ink); padding: 12px 16px; }
.terms-summary dd { margin: 0; padding: 12px 16px; font-size: 17px; }
@media (max-width: 520px) { .terms-summary div { grid-template-columns: 1fr; } }
html[lang="ar"] .terms [lang="en"], html:not([lang="ar"]) .terms [lang="ar"] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .split, .checkout .container, .contact .container { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .modal-box { grid-template-columns: 1fr; }
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; border-bottom: 1px solid var(--line); display: none; padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; }
  .header-login { display: none; }
  .nav .nav-login { display: inline-flex; margin-top: 10px; }
}
@media (min-width: 821px) { .nav .nav-login { display: none; } }
@media (max-width: 520px) {
  .page-banner h1 { font-size: 30px; }
  .phone-row { grid-template-columns: 110px 1fr; }
  .lead, .mission p, .about-intro { font-size: 17px; }
  .checkout h1 { font-size: 32px; }
  .footer-main .container { grid-template-columns: 1fr; gap: 28px; }
  .terms h2 { font-size: 20px; }
  .terms p, .terms ul { font-size: 16px; }
}

/* ---------- Language switch & Arabic (RTL) ---------- */
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 16px; line-height: 1.2;
}
.lang-toggle:hover { background: var(--ink); color: #fff; }
.lang-toggle:lang(ar) { font-family: "Tajawal", sans-serif; }

html[dir="rtl"] body { font-family: "Tajawal", "DM Sans", system-ui, sans-serif; }
html[dir="rtl"] .hero h1 { font-family: "Tajawal", sans-serif; font-weight: 800; line-height: 1.35; }
html[dir="rtl"] .lead,
html[dir="rtl"] .about-intro,
html[dir="rtl"] .mission p { font-weight: 400; }
html[dir="rtl"] .input::placeholder { text-align: right; }
.logo-text { font-family: "DM Sans", sans-serif; }
.mission-word { font-family: "Archivo Black", sans-serif; letter-spacing: 3px; }
html[dir="rtl"] .mission-word { font-family: "Tajawal", sans-serif; font-weight: 800; letter-spacing: 0; }
