/* Doc 567 — site-wide top menu (partials/mz/header_landing).
 * Default: solid white, sticky. .sh--over (homepage): fixed and transparent over the
 * hero; .is-solid (scrolled) / .is-open (a panel is open) turn it white.
 * Logical properties throughout so Arabic (RTL) mirrors.
 */
.sh {
    --sh-h: 72px; --sh-ink: #0B1220; --sh-ink2: #475569; --sh-muted: #5B6577; --sh-line: #E4E9F0;
    --sh-soft: #F6F8FB; --sh-primary: #2563EB; --sh-primary-ink: #1D4ED8; --sh-primary-soft: #DBEAFE;
    position: sticky; top: 0; z-index: 60; color: var(--sh-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; transition: color .2s ease;
}
/* The frosted bar is a pseudo-element: backdrop-filter on .sh itself would make it the
   containing block of the position:fixed drawer and clip it to the bar's height. */
.sh::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
              background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
              box-shadow: 0 1px 0 var(--sh-line); transition: opacity .2s ease; }
html[dir="rtl"] .sh { font-family: Tajawal, Inter, system-ui, sans-serif; }
.sh--over { position: fixed; inset: 0 0 auto; color: #fff; }
.sh--over::before { opacity: 0; }
.sh--over.is-solid, .sh--over.is-open { color: var(--sh-ink); }
.sh--over.is-solid::before, .sh--over.is-open::before { opacity: 1; }

.sh-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: var(--sh-h); display: flex; align-items: center; gap: 24px; }
.sh-logo { display: flex; align-items: center; flex: 0 0 auto; }
.sh-logo img { height: 28px; width: auto; }
.sh-logo-light { display: none; }
.sh--over:not(.is-solid):not(.is-open) .sh-logo-dark { display: none; }
.sh--over:not(.is-solid):not(.is-open) .sh-logo-light { display: block; }

.sh-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 12px; }
.sh-trig, .sh-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 600;
                     padding: 10px 13px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sh-trig:hover, .sh-link:hover, .sh-trig[aria-expanded="true"] { background: rgba(127, 127, 127, .13); color: inherit; }
.sh-trig:focus-visible, .sh-link:focus-visible, .sh-btn:focus-visible, .sh-burger:focus-visible, .sh-item:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 2px; }
.sh-chev { width: 12px; height: 12px; opacity: .7; transition: transform .2s ease; }
.sh-trig[aria-expanded="true"] .sh-chev { transform: rotate(180deg); }

.sh-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.sh-auth { display: inline-flex; align-items: center; gap: 6px; }
.sh-auth[hidden], .sh-acc-btns[hidden] { display: none; }
.sh-signout { display: inline; margin: 0; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
          background: var(--sh-primary); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
          box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px rgba(37, 99, 235, .32); transition: background .15s, transform .15s; }
.sh-btn:hover { background: var(--sh-primary-ink); color: #fff; transform: translateY(-1px); }
.sh-btn--ghost { background: #fff; color: var(--sh-ink); border: 1px solid var(--sh-line); box-shadow: none; }
.sh-btn--ghost:hover { background: var(--sh-soft); color: var(--sh-ink); }
/* the shared language switcher on a transparent bar */
.sh--over:not(.is-solid):not(.is-open) .lang-btn { color: #fff; }
.sh--over:not(.is-solid):not(.is-open) .lang-btn:hover { background: rgba(255, 255, 255, .14); }

.sh-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(127, 127, 127, .13); color: inherit; cursor: pointer; place-items: center; }
.sh-burger svg { width: 22px; height: 22px; }
.sh-burger .sh-ic-close, .sh-burger[aria-expanded="true"] .sh-ic-open { display: none; }
.sh-burger[aria-expanded="true"] .sh-ic-close { display: block; }

/* ── mega panels ── */
.sh-panel { position: absolute; inset: var(--sh-h) 0 auto; background: #fff; color: var(--sh-ink); border-top: 1px solid var(--sh-line);
            box-shadow: 0 30px 60px rgba(11, 18, 32, .12); animation: sh-drop .18s ease; }
.sh-panel[hidden] { display: none; }
@keyframes sh-drop { from { opacity: 0; transform: translateY(-6px); } }
.sh-panel-in { max-width: 1240px; margin: 0 auto; padding: 26px 32px 30px; display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 24px; }
/* group label (a div, not a heading: the menu sits before the page's h1) */
.sh-col-h { margin: 0 0 10px; padding-inline-start: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); }
html[dir="rtl"] .sh-col-h { letter-spacing: 0; }
.sh-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; color: var(--sh-ink); text-decoration: none; }
.sh-item:hover { background: var(--sh-soft); color: var(--sh-ink); }
.sh-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--sh-primary-soft); color: var(--sh-primary-ink); display: grid; place-items: center; }
.sh-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-item b { display: block; font-size: 15px; font-weight: 700; }
.sh-item small { display: block; color: var(--sh-muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.sh-soon { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #FEF3C7; color: #92400E;
           padding: 2px 7px; border-radius: 999px; margin-inline-start: 6px; vertical-align: 2px; }
.sh-feature { position: relative; display: block; min-height: 210px; border-radius: 18px; overflow: hidden; background: #0B1220; color: #fff; text-decoration: none; }
.sh-feature picture, .sh-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-feature img { opacity: .62; transition: transform .5s ease; }
.sh-feature:hover img { transform: scale(1.04); }
.sh-feature > span { position: absolute; inset: auto 0 0; padding: 16px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.sh-feature small { display: block; font-size: 13px; opacity: .85; }
.sh-feature b { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; color: #fff; }
.sh-arrow { display: inline-block; }
html[dir="rtl"] .sh-arrow { transform: scaleX(-1); }
.sh-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 16px; border-top: 1px solid var(--sh-line); }
.sh-more-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-muted); margin-inline-end: 6px; }
.sh-more a { font-size: 13.5px; font-weight: 600; color: var(--sh-ink2); text-decoration: none; padding: 6px 10px; border-radius: 999px; background: var(--sh-soft); }
.sh-more a:hover { background: var(--sh-primary-soft); color: var(--sh-primary-ink); }
.sh-more a.sh-quick-main { background: var(--sh-ink); color: #fff; }

/* ── drawer (< 1100px) ── */
.sh-drawer { position: fixed; inset: var(--sh-h) 0 0; z-index: 59; background: #fff; color: var(--sh-ink); display: flex; flex-direction: column; }
.sh-drawer[hidden] { display: none; }
.sh-drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px 20px; -webkit-overflow-scrolling: touch; }
.sh-xp { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--sh-soft); color: var(--sh-ink); text-decoration: none; margin-bottom: 8px; }
.sh-xp b { display: block; font-size: 16px; } .sh-xp small { display: block; color: var(--sh-muted); font-size: 13px; }
.sh-free { margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #065F46; background: #D1FAE5; padding: 3px 8px; border-radius: 999px; }
.sh-acc { border-bottom: 1px solid #EEF2F7; }
.sh-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 6px; font-size: 18px; font-weight: 700; cursor: pointer; }
.sh-acc summary::-webkit-details-marker { display: none; }
.sh-acc[open] summary .sh-chev { transform: rotate(180deg); }
.sh-acc-in { padding: 0 0 12px; }
.sh-acc-in .sh-more { border-top: 0; padding: 8px 6px 0; }
.sh-acc-link { display: block; padding: 16px 6px; font-size: 18px; font-weight: 700; color: var(--sh-ink); text-decoration: none; border-bottom: 1px solid #EEF2F7; }
.sh-drawer-foot { border-top: 1px solid var(--sh-line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: #fff; }
.sh-acc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-acc-btns--one { grid-template-columns: 1fr; }
.sh-acc-btns .sh-btn, .sh-acc-btns form, .sh-acc-btns form .sh-btn { width: 100%; height: 48px; }
.sh-langs { display: flex; gap: 6px; justify-content: center; }
.sh-langs a { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--sh-ink2); text-decoration: none; }
.sh-langs a.active { background: var(--sh-primary-soft); color: var(--sh-primary-ink); }

@media (max-width: 1099px) {
    .sh-nav, .sh-end .lang, .sh-signin, .sh-signout { display: none; }
    .sh-burger { display: grid; }
    .sh-panel { display: none !important; }
}
@media (max-width: 640px) {
    .sh { --sh-h: 64px; }
    .sh-in { padding: 0 16px; gap: 10px; }
    .sh-btn { height: 40px; padding: 0 14px; font-size: 14px; }
    .sh-logo img { height: 24px; }
}
body.mz-drawer-open { overflow: hidden; }
/* Microstore return banner (partials/shop/microstore-return-banner, in flow above the bar):
   over the homepage hero the bar is fixed, so the banner is pinned on top and the bar moves under it. */
body:has(.mz-ms-return-banner) { --sh-ms: 36px; }
.mz-ms-return-banner:has(~ .sh--over) { position: fixed; inset: 0 0 auto; z-index: 61; }
body:has(.mz-ms-return-banner) .sh--over { top: var(--sh-ms); }
body:has(.mz-ms-return-banner) .sh--over .sh-drawer { top: calc(var(--sh-h) + var(--sh-ms)); }
@media (max-width: 640px) { body:has(.mz-ms-return-banner) { --sh-ms: 32px; } }
@media (prefers-reduced-motion: reduce) {
    .sh, .sh::before, .sh-panel, .sh-chev, .sh-btn, .sh-feature img { transition: none; animation: none; }
}
