/* apple-chrome — الهيدر والفوتر فقط (للصفحات التي ما زال محتواها بالتصميم القديم). يُولَّد من apple-site-*.css */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibmplexsansarabic-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibmplexsansarabic-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/ibmplexsansarabic-600-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/ibmplexsansarabic-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ibmplexsansarabic-700-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ibmplexsansarabic-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  /* ink */
  --ap-ink:        #1d1d1f;
  --ap-ink-2:      #6e6e73;
  --ap-ink-3:      #86868b;
  --ap-hairline:   #d2d2d7;
  --ap-fill:       #f5f5f7;
  --ap-fill-2:     #e8e8ed;
  --ap-surface:    #ffffff;
  --ap-nav-bg:     rgba(251, 251, 253, 0.8);
  --ap-danger:     #e30000;

  /* accent — واحد فقط بالصفحة */
  --ap-accent:        var(--wt-orange-500, #F06C14);
  --ap-accent-hover:  var(--wt-orange-400, #FA903A);
  --ap-accent-active: var(--wt-orange-600, #DC5A0E);
  --ap-on-accent:     #ffffff;
  --ap-focus:         var(--ap-accent);

  /* type */
  --ap-font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "SF Pro Display",
             "IBM Plex Sans Arabic", "Almarai", "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ap-h-super: 80px;  --ap-h-elev: 64px;  --ap-h: 48px;  --ap-h-reduced: 40px;  --ap-h-small: 32px;
  --ap-intro-elev: 24px;  --ap-intro: 21px;  --ap-tout: 19px;
  --ap-body: 17px;  --ap-body-reduced: 14px;  --ap-caption: 12px;
  --ap-lh-h: 1.08;  --ap-lh-intro: 1.38;  --ap-lh-body: 1.47;  --ap-lh-reduced: 1.43;
  --ap-track-h: -0.009em;  --ap-track-body: -0.022em;  /* لاتيني فقط */

  /* layout */
  --ap-content: 980px;  --ap-wide: 1200px;  --ap-section-y: 96px;  --ap-gap: 20px;
  --ap-r-tile: 12px;  --ap-r-card: 18px;  --ap-r-pill: 980px;  --ap-r-btn: 12px;  /* الأزرار: قرار المالك 2026-10-23 زاوية أخف من كبسولة أبل */

  /* motion */
  --ap-ease: cubic-bezier(.4, 0, .6, 1);
  --ap-ease-in: cubic-bezier(0, 0, .2, 1);
  --ap-ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ap-t-color: 100ms;  --ap-t-move: 300ms;  --ap-t-reveal: 600ms;

  /* shadow — نادر */
  --ap-shadow-thumb: 0 1px 2px rgba(0, 0, 0, .12);
  --ap-shadow-sheet: 0 4px 12px rgba(0, 0, 0, .08);
}
.ap { font-family: var(--ap-font); color: var(--ap-ink); background: var(--ap-surface); -webkit-font-smoothing: antialiased; }
.ap, .ap * { letter-spacing: 0; }
.ap:lang(ar), :lang(ar) .ap, .ap:lang(ar) .ap-btn, .ap:lang(ar) .ap-seg__btn {
  --ap-font: "IBM Plex Sans Arabic", "Almarai", -apple-system, BlinkMacSystemFont, system-ui, "SF Arabic", sans-serif;
  font-family: var(--ap-font);
}
.ap:lang(en) .ap-h, .ap:lang(en) .ap-h-elev, .ap:lang(en) .ap-h-super { letter-spacing: var(--ap-track-h); }
.ap:lang(en) .ap-body { letter-spacing: var(--ap-track-body); }
.ap-wrap { width: min(var(--ap-content), 92vw); margin-inline: auto; }
.ap-wrap--wide { width: min(var(--ap-wide), 92vw); margin-inline: auto; }
.ap-section { padding-block: var(--ap-section-y); }
.ap-section--fill { background: var(--ap-fill); }
@media (max-width: 1068px) {
  :root { --ap-h-super: 56px; --ap-h-elev: 48px; --ap-h: 40px; --ap-section-y: 72px; }
}
@media (max-width: 734px) {
  :root { --ap-h-super: 40px; --ap-h-elev: 36px; --ap-h: 32px; --ap-h-reduced: 28px; --ap-intro: 19px; --ap-section-y: 56px; }
}
.ap-h-super { font-size: var(--ap-h-super); line-height: 1.05; font-weight: 600; margin: 0; }
.ap-h-elev  { font-size: var(--ap-h-elev);  line-height: 1.0625; font-weight: 600; margin: 0; }
.ap-h       { font-size: var(--ap-h);       line-height: var(--ap-lh-h); font-weight: 600; margin: 0; }
.ap-h-reduced { font-size: var(--ap-h-reduced); line-height: 1.1; font-weight: 600; margin: 0; }
.ap-h-small { font-size: var(--ap-h-small); line-height: 1.125; font-weight: 600; margin: 0; }
.ap-intro   { font-size: var(--ap-intro); line-height: var(--ap-lh-intro); font-weight: 400; color: var(--ap-ink); margin: 0; }
.ap-tout    { font-size: var(--ap-tout); line-height: 1.21; font-weight: 600; margin: 0; }
.ap-body    { font-size: var(--ap-body); line-height: var(--ap-lh-body); font-weight: 400; margin: 0; }
.ap-body-reduced { font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); margin: 0; }
.ap-caption { font-size: var(--ap-caption); line-height: 1.33; color: var(--ap-ink-2); margin: 0; }
.ap-muted   { color: var(--ap-ink-2); }
.ap-eyebrow { font-size: var(--ap-body-reduced); font-weight: 600; color: var(--ap-ink-2); margin: 0 0 8px; }
.ap-btn {
  --bg: var(--ap-accent); --bg-h: var(--ap-accent-hover); --bg-a: var(--ap-accent-active); --fg: var(--ap-on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 400 var(--ap-body) / 1.235 var(--ap-font); letter-spacing: 0;
  background: var(--bg); color: var(--fg); border: 1px solid transparent; border-radius: var(--ap-r-btn);
  padding: 11px 21px; min-width: 28px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--ap-t-color) linear, color var(--ap-t-color) linear;
}
.ap-btn:hover  { background: var(--bg-h); text-decoration: none; }
.ap-btn:active { background: var(--bg-a); }
.ap-btn:disabled, .ap-btn[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.ap-btn:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: 3px; }
.ap-btn--lg { padding: 17px 30px; font-size: var(--ap-body); border-radius: 14px; }
.ap-btn--sm { padding: 8px 15px; font-size: var(--ap-body-reduced); border-radius: 10px; }
.ap-btn--secondary { --bg: transparent; --bg-h: var(--ap-accent-hover); --bg-a: var(--ap-accent-active); --fg: var(--ap-accent); border-color: var(--ap-accent); }
.ap-btn--secondary:hover { color: var(--ap-on-accent); border-color: transparent; }
.ap-btn--neutral { --bg: var(--ap-ink); --bg-h: #272729; --bg-a: #18181a; }
.ap-btn--block { width: 100%; }
.ap-link { color: var(--ap-accent); text-decoration: none; font-size: var(--ap-body); }
.ap-link:hover { text-decoration: underline; }
.ap-link::after { content: "\203A"; margin-inline-start: .24em; position: relative; top: -.04em; }
.ap-tile { position: relative; margin-top: 14px; list-style: none; }
.ap-tile__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ap-tile__label {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%;
  min-height: 83px; padding: 20px 24px; background: var(--ap-surface); color: var(--ap-ink);
  border: 1px solid var(--ap-ink-3); border-radius: var(--ap-r-tile); text-align: start; cursor: pointer;
}
.ap-tile__input:hover ~ .ap-tile__label { border-color: #8f8f94; }
.ap-tile__input:checked ~ .ap-tile__label { border-color: var(--ap-accent); border-width: 2px; padding: 19px 23px; }
.ap-tile__input:disabled ~ .ap-tile__label { border-color: var(--ap-ink-3); opacity: .42; }
.ap-tile__input:focus-visible ~ .ap-tile__label { outline: 2px solid var(--ap-focus); outline-offset: 3px; }
.ap-tile__title { display: block; font-size: var(--ap-body); font-weight: 600; line-height: 1.24; }
.ap-tile__sub   { display: block; font-size: var(--ap-body-reduced); color: var(--ap-ink-2); margin-top: 3px; }
.ap-tile__end   { text-align: end; font-size: var(--ap-body-reduced); color: var(--ap-ink); line-height: 1.43; white-space: nowrap; }
.ap-tile__end strong { display: block; font-size: var(--ap-body); font-weight: 400; }
.ap-tile--center .ap-tile__label { flex-direction: column; justify-content: center; text-align: center; padding: 15px; min-height: 83px; }
.ap-tile--center .ap-tile__input:checked ~ .ap-tile__label { padding: 14px; }
.ap-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; background: var(--ap-fill-2); border-radius: var(--ap-r-pill); isolation: isolate; }
.ap-seg__thumb { position: absolute; top: 2px; bottom: 2px; inset-inline-start: 2px; width: calc((100% - 4px) / var(--ap-seg-n, 3)); background: var(--ap-surface); border-radius: var(--ap-r-pill); box-shadow: var(--ap-shadow-thumb); transition: transform var(--ap-t-move) var(--ap-ease); z-index: -1; }
.ap-seg__btn { appearance: none; background: none; border: 0; padding: 7px 18px; font: 400 var(--ap-body-reduced) / 1.29 var(--ap-font); color: var(--ap-ink); border-radius: var(--ap-r-pill); cursor: pointer; white-space: nowrap; transition: color var(--ap-t-color) linear; }
.ap-seg__btn[aria-pressed="true"] { font-weight: 600; }
.ap-seg__btn:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: 2px; }
.ap-card { background: var(--ap-fill); border-radius: var(--ap-r-card); padding: 32px; }
.ap-section--fill .ap-card { background: var(--ap-surface); }
.ap-hairline { border: 0; border-top: 1px solid var(--ap-hairline); margin: 0; }
.ap-nav { position: sticky; top: 0; z-index: 200; height: 48px; background: var(--ap-nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.ap-nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ap-nav__links { display: flex; gap: 32px; font-size: var(--ap-caption); }
.ap-nav__links a { color: var(--ap-ink); opacity: .8; text-decoration: none; }
.ap-nav__links a:hover { opacity: 1; text-decoration: none; }
.ap-reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--ap-t-reveal) var(--ap-ease), transform var(--ap-t-reveal) var(--ap-ease); }
.ap-reveal.is-in { opacity: 1; transform: none; }
.ap-summary { position: sticky; top: 64px; }
@media (prefers-reduced-motion: reduce) {
  .ap-reveal { opacity: 1; transform: none; transition: none; }
  .ap *, .ap *::before, .ap *::after { animation: none !important; transition-duration: 0ms !important; }
}
.ap-nav__logo { display: flex; align-items: center; flex: none; }
.ap-nav__logo img { height: 28px; width: auto; display: block; }
.ap-nav__links { flex: 1; justify-content: center; }
.ap-nav .ap-btn--sm { flex: none; }
@media (max-width: 734px) {
  .ap-nav__links { display: none; }
  .ap-nav__inner { justify-content: space-between; }
}
.foot { background: var(--ap-fill); padding: 40px 0 24px; font-size: 12px; color: var(--ap-ink-2); }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 24px; }
.foot__col h3 { font-size: 12px; font-weight: 600; color: var(--ap-ink); margin: 0 0 10px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__col a { color: var(--ap-ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--ap-ink); text-decoration: underline; }
.foot__badges { display: flex; gap: 8px; margin-top: 16px; }
.foot__badges img { height: 36px; width: auto; display: block; }
.foot__creds { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 16px 0; }
.foot__cred { display: inline-flex; align-items: center; gap: 8px; color: var(--ap-ink-2); }
.foot__cred img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.foot__cred strong { font-weight: 600; color: var(--ap-ink); }
.foot__pay { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-inline-start: auto; max-width: 100%; }
.foot__pay img { height: 24px; width: auto; display: block; background: #fff; border: 1px solid var(--ap-hairline); border-radius: 6px; padding: 3px 7px; box-sizing: content-box; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }
.foot__legal-links { display: flex; gap: 0; }
.foot__legal-links a { color: var(--ap-ink-2); text-decoration: none; padding-inline: 10px; border-inline-start: 1px solid var(--ap-hairline); }
.foot__legal-links a:first-child { border: 0; padding-inline-start: 0; }
@media (max-width: 1068px) {
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__pay { margin-inline-start: 0; }
}
@media (max-width: 734px) {
  .foot { padding-bottom: calc(24px + var(--bar-h, 72px)); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}
.ap-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ap-ink); text-decoration: none; }
.ap-brand img { width: 26px; height: 26px; display: block; }
.ap-brand__word { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.ap-nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.ap-nav__utils { display: flex; align-items: center; gap: 18px; }
.util { display: inline-flex; align-items: center; color: var(--ap-ink); opacity: .8; text-decoration: none; font-size: 12px; background: none; border: 0; padding: 0; cursor: pointer; }
.util:hover { opacity: 1; text-decoration: none; }
.util--lang { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .02em; padding: 4px 6px; border: 1px solid var(--ap-ink-3); border-radius: 5px; opacity: .9; }
.util--lang:hover { border-color: var(--ap-ink); }
.util--menu { display: none; }
.ap-menu { display: grid; gap: 0; padding: 8px 4vw 16px; background: var(--ap-nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ap-hairline); }
.ap-menu a { padding: 12px 0; font-size: 17px; color: var(--ap-ink); text-decoration: none; border-bottom: 1px solid var(--ap-hairline); }
.ap-menu a:last-child { border: 0; }
.localnav { position: sticky; top: 48px; z-index: 190; height: 52px; background: var(--ap-nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--ap-hairline); }
.localnav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.localnav__title { font-size: 21px; font-weight: 600; }
.localnav__actions { display: flex; align-items: center; gap: 20px; }
.localnav__actions .ap-btn { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--ap-t-move) var(--ap-ease), transform var(--ap-t-move) var(--ap-ease); }
.localnav.is-past .localnav__actions .ap-btn { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 1068px) {
  .localnav__actions .ap-btn { display: none; }
}
.localnav__link { font-size: 12px; color: var(--ap-ink); opacity: .8; text-decoration: none; }
.localnav__link:hover { opacity: 1; text-decoration: none; }
@media (max-width: 734px) {
  .ap-nav__links { display: none; }
  .util--menu { display: inline-flex; }
  .localnav__link { display: none; }
  .localnav__title { font-size: 19px; }
}
.ap-reveal.is-in{opacity:1;transform:none}
.ap a:hover, .ap a:focus-visible { text-decoration: none !important; }
.ap-link:hover { color: var(--ap-accent-hover); }
.ap-brand img.ap-brand__logo { width: auto; height: 30px; display: block; }
.ap-nav__links { gap: 26px; align-items: center; }
.nav-dd { position: relative; }
.nav-dd__btn { appearance: none; background: none; border: 0; padding: 0; margin: 0; height: 48px; font: inherit; font-size: var(--ap-caption); color: var(--ap-ink); opacity: .8; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-dd__btn:hover, .nav-dd.is-open .nav-dd__btn, .nav-dd:focus-within .nav-dd__btn { opacity: 1; }
.nav-dd__btn svg { transition: transform var(--ap-t-move) var(--ap-ease); }
.nav-dd.is-open .nav-dd__btn svg, .nav-dd:hover .nav-dd__btn svg { transform: rotate(180deg); }
.nav-dd__panel { position: absolute; top: calc(100% - 6px); inset-inline-start: -12px; z-index: 210; width: min(580px, calc(100vw - 32px)); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 10px; box-sizing: border-box; background: #fff; border: 1px solid var(--ap-hairline); border-radius: var(--ap-r-card); box-shadow: var(--ap-shadow-sheet); }
.nav-dd:hover .nav-dd__panel, .nav-dd:focus-within .nav-dd__panel, .nav-dd.is-open .nav-dd__panel { display: grid; animation: dd-in 200ms var(--ap-ease-in); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-dd__panel a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ap-ink); opacity: 1; text-decoration: none; }
.nav-dd__panel a:hover { background: var(--ap-fill); }
.nav-dd__panel strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.nav-dd__panel span { display: block; margin-top: 2px; font-size: var(--ap-caption); line-height: 1.4; color: var(--ap-ink-2); }
.nav-cta { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--ap-t-move) var(--ap-ease), transform var(--ap-t-move) var(--ap-ease); }
.ap-nav.is-past .nav-cta { opacity: 1; transform: none; pointer-events: auto; }
.ap-menu__group summary { padding: 12px 0; font-size: 17px; color: var(--ap-ink); cursor: pointer; border-bottom: 1px solid var(--ap-hairline); list-style: none; }
.ap-menu__group summary::-webkit-details-marker { display: none; }
.ap-menu__group a { padding-inline-start: 16px; font-size: 15px; color: var(--ap-ink-2); }
@media (max-width: 1068px) {
  .ap-nav__links { display: none; }
  .util--menu { display: inline-flex; }
  .nav-cta { display: none; }
}
.ap-skip { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300; padding: 10px 16px; background: var(--ap-ink); color: #fff; border-radius: 0 0 10px 10px; font-size: var(--ap-body-reduced); text-decoration: none; }
.ap-skip:focus { inset-inline-start: 16px; }
.ap-menu[hidden] { display: none; }
.ap-hairline { border: 0; border-top: 1px solid var(--ap-hairline); margin: 0; }

/* قائمة الجوال: خلفية شبه معتمة + عناصر المجموعة تحت بعضها + تمرير عند الطول */
.ap-menu { background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: none; backdrop-filter: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--ap-shadow-sheet); }
.ap-menu__group { display: block; border-bottom: 1px solid var(--ap-hairline); }
.ap-menu__group summary { display: block; border-bottom: 0; }
.ap-menu__group a { display: block; padding: 10px 0; padding-inline-start: 16px; border-bottom: 0; font-size: 15px; line-height: 1.4; color: var(--ap-ink-2); }
.ap-menu__group a:last-child { padding-bottom: 14px; }

/* قائمة الجوال معتمة تماماً + إخفاء شريط واتساب السفلي القديم أثناء فتحها */
.ap-menu { background: #fff; }
html.ap-menu-open .wt-mobile-cta { display: none; }

/* قائمة ثابتة: الروابط في منتصف الشريط بغض النظر عن عرض الشعار/الأزرار، والرابط الحالي بلا تغيير عرض */
@media (min-width: 1069px) {
  .ap-nav__inner { position: relative; }
  .ap-nav__links { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; flex: none; justify-content: center; }
}
.ap-nav__links a[aria-current="page"] { font-weight: 400; opacity: 1; }
.ap-nav { view-transition-name: ap-nav; }

/* خط الهيدر والفوتر ثابت على كل الصفحات (القاعدة القديمة تفرض Almarai على nav/header/footer) */
header.ap, header.ap *, footer.ap, footer.ap *, .ap-skip, .ap-nav__links, .ap-nav__links * { font-family: var(--ap-font) !important; letter-spacing: 0; }

/* عناصر «إضافات»: أيقونة + عنوان + شرح (سطح المكتب والجوال) */
.ap-ic { display: block; flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ap-ink); font-style: normal; }
.ap-ic .wt-icon { display: block; width: 22px; height: 22px; fill: currentColor; color: inherit; vertical-align: 0; }
.nav-dd__panel a { display: flex; align-items: flex-start; gap: 12px; }
.nav-dd__panel .ap-ic__txt { display: block; margin: 0; font-size: inherit; color: inherit; min-width: 0; }
.nav-dd__panel small, .ap-menu__group small { display: block; margin-top: 2px; font-size: var(--ap-caption); line-height: 1.4; color: var(--ap-ink-2); font-weight: 400; }
.ap-ic__txt strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ap-ink); }

/* قائمة الجوال: شفافية أخف (لا معتمة تماماً) + «إضافات» بعمودين */
.ap-menu { background: rgba(251, 251, 253, .94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.ap-menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; padding-bottom: 14px; }
.ap-menu__group a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 12px; border: 0; font-size: 14px; color: var(--ap-ink); }
.ap-menu__group a:last-child { padding-bottom: 12px; }
.ap-menu__group a:hover { background: var(--ap-fill); }

/* يغلب قاعدة الخط القديمة ([dir=rtl] :not(...) !important) على الصفحات التي ما زال محتواها قديماً */
:root:root:root header.ap, :root:root:root header.ap *, :root:root:root footer.ap, :root:root:root footer.ap *, :root:root:root .ap-skip { font-family: var(--ap-font) !important; letter-spacing: 0 !important; }

/* قائمة الجوال: شفافية خفيفة جداً (الخلفية شبه معتمة، لا معتمة تماماً) */
.ap-menu { background: rgba(251, 251, 253, .975); }

/* خط واحد لكل الموقع بالعربي والإنكليزي: IBM Plex Sans Arabic (يشمل الحروف اللاتينية) */
:root {
  --ap-font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --wt-font-rtl: var(--ap-font); --wt-font-ltr: var(--ap-font);
  --wt-font-display-rtl: var(--ap-font); --wt-font-display-ltr: var(--ap-font);
  --font-family-ar: var(--ap-font); --font-family-en: var(--ap-font);
}
.ap:lang(ar), :lang(ar) .ap, .ap:lang(ar) .ap-btn, .ap:lang(ar) .ap-seg__btn { --ap-font: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif; }
:root:root:root body,
:root:root:root body *:not(code):not(pre):not(kbd):not(samp):not(.wt-icon):not([class*="fa-"]) { font-family: var(--ap-font) !important; }

/* قاعدة أبل: الإنكليزي بخط النظام (SF Pro على أجهزة أبل)، والعربي IBM Plex Sans Arabic. Plex يبقى بديلاً للحروف العربية داخل نص إنكليزي */
:root:lang(en) { --ap-font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, "IBM Plex Sans Arabic", sans-serif; }

/* شريط الجوال (صفحات أبل): زر فعل واحد + واتساب كزر ثانوي؛ يختفي مع القائمة وعند ظهور الـCTA الختامي وعند شريط ملخص الأسعار */
.ap-mbar { display: none; }
.foot__badge--soon { display: inline-block; opacity: .42; }
@media (max-width: 1068px) {
  .ap-mbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 150; display: flex; gap: 10px; align-items: center; padding: 10px max(16px, 4vw) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ap-nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--ap-hairline); transition: transform var(--ap-t-move) var(--ap-ease), opacity var(--ap-t-move) var(--ap-ease); }
  .ap-mbar .ap-btn { flex: 1; padding-block: 13px; }
  .ap-mbar__wa { flex: 0 0 auto; min-width: 112px; }
  body.ap.has-mbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html.ap-menu-open .ap-mbar, body.bar-on .ap-mbar, .ap-mbar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
