/*
 * Storefront header (frontend/layouts/header.blade.php): bar, account menu, cart drawer, phone menu drawer.
 * The theme pins "header" to a fixed 100px (60px + position:fixed on phones); this header sizes itself and
 * sticks to the top inside the page flow, so it never covers content.
 */
header.zx-header { height: auto !important; min-height: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; position: sticky !important; top: 0 !important; z-index: 1030 !important; width: 100%; }
:where(.zx-header) span, :where(.zx-header) p, :where(.zx-header) small, :where(.zx-header) b { color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; padding: 0; }
:where(.zx-header) a, :where(.zx-header) button { min-height: 0; min-width: 0; text-decoration: none; }
.zx-header *, .zx-header *::before, .zx-header *::after { box-sizing: border-box; }

/* ---------- bar ---------- */
.zx-h-bar { background: linear-gradient(120deg, #0a74b3 0%, #0b84c6 55%, #0a92d6 100%); color: #fff; transition: box-shadow .2s, padding .2s; padding: 12px 0; }
.zx-header.is-stuck .zx-h-bar { box-shadow: 0 8px 24px rgba(2, 46, 77, .22); padding: 8px 0; }
.zx-h-row { display: flex; align-items: center; gap: 18px; }
.zx-h-logo { flex-shrink: 0; display: flex; align-items: center; color: #fff !important; }
.zx-h-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; transition: height .2s; }
.zx-header.is-stuck .zx-h-logo img { height: 34px; }
.zx-h-logo b { font-size: 24px; font-weight: 800; letter-spacing: .02em; }

.zx-h-search { position: relative; flex: 1; max-width: 680px; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 4px 14px rgba(2, 46, 77, .15); transition: box-shadow .15s; }
.zx-h-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 4px 14px rgba(2, 46, 77, .15); }
.zx-h-search > i { position: absolute; inset-inline-start: 18px; color: #94a3b8; font-size: 15px; pointer-events: none; }
.zx-h-search input { flex: 1; min-width: 0; height: 42px; border: 0; outline: none; background: transparent; padding-inline: 44px 10px; font-size: 15px !important; color: #0f172a; }
.zx-h-search input::placeholder { color: #94a3b8; }
.zx-h-search input::-webkit-search-cancel-button { cursor: pointer; }
.zx-h-search button { flex-shrink: 0; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: #ff7a1a; color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: background .15s; }
.zx-h-search button:hover { background: #f26a06; }

.zx-h-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.zx-h-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; color: #fff !important; font-weight: 700; font-size: 14px; background: transparent; border: 0; cursor: pointer; white-space: nowrap; transition: background .15s; }
.zx-h-link:hover, .zx-h-icon:hover, .zx-h-cart:hover { background: rgba(255, 255, 255, .14); }
.zx-h-link i { font-size: 16px; }
/* language switch: EN | ع pill, the current language on a white knob */
.zx-h-lang { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 10px 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff !important; text-decoration: none !important; transition: background .15s, box-shadow .15s; }
.zx-h-lang:hover { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.zx-h-lang:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zx-h-lang > i { font-size: 15px; opacity: .9; transition: transform .5s; }
.zx-h-lang:hover > i { transform: rotate(-25deg); }
.zx-lang-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 72px; height: 32px; padding: 2px; border-radius: 999px; background: rgba(2, 46, 77, .28); direction: ltr; }
.zx-lang-seg b { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(255, 255, 255, .78); transition: color .25s; }
.zx-lang-seg b.en { font: 800 12.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; }
.zx-lang-seg b.ar { font: 700 16px/1 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; padding-bottom: 2px; }
.zx-lang-knob { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(2, 46, 77, .3); transition: transform .3s cubic-bezier(.4, 1.3, .5, 1); }
.zx-h-lang.is-en b.en, .zx-h-lang.is-ar b.ar { color: #0b84c6; }
.zx-h-lang.is-ar .zx-lang-knob { transform: translateX(100%); }
/* hover previews the switch: the knob slides toward the other language */
.zx-h-lang.is-en:hover .zx-lang-knob { transform: translateX(14%); }
.zx-h-lang.is-ar:hover .zx-lang-knob { transform: translateX(86%); }
@media (prefers-reduced-motion: reduce) { .zx-lang-knob, .zx-h-lang > i { transition: none; } }
.zx-h-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; background: transparent; border: 0; cursor: pointer; font-size: 19px; flex-shrink: 0; transition: background .15s; }
.zx-h-burger { display: none; }
.zx-h-badge { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #ff7a1a; color: #fff !important; font: 800 11px/19px system-ui, sans-serif !important; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #0b84c6; transition: transform .2s; }
.zx-h-badge.is-zero { display: none; }
.zx-h-badge.bump { animation: zx-bump .45s ease; }
@keyframes zx-bump { 40% { transform: scale(1.45); } }

.zx-h-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .22) center / cover; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.zx-h-avatar.lg { width: 46px; height: 46px; font-size: 18px; background-color: #e6f4fb; color: #0b84c6; box-shadow: none; }
.zx-h-account-txt, .zx-h-cart-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: start; }
.zx-h-account-txt small, .zx-h-cart-txt small { font-size: 11.5px; opacity: .85; font-weight: 600; }
.zx-h-account-txt b, .zx-h-cart-txt b { font-size: 14px; font-weight: 800; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zx-h-caret { font-size: 10px !important; opacity: .8; }

.zx-h-cart { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 8px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; cursor: pointer; transition: background .15s; }
html[lang="ar"] .zx-h-cart { padding: 0 8px 0 14px; }
.zx-h-cart-ico { position: relative; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.zx-h-cart-ico .zx-h-badge { top: -4px; inset-inline-end: -6px; }

/* account dropdown */
.zx-h-menu { position: relative; }
.zx-h-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 250px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .22); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 20; }
.zx-h-menu.open .zx-h-pop { opacity: 1; visibility: visible; transform: none; }
.zx-h-pop::before { content: ''; position: absolute; top: -6px; inset-inline-end: 22px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.zx-h-pop-head { padding: 10px 12px 12px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.zx-h-pop-head b { display: block; color: #0f172a; font-weight: 800; font-size: 14.5px; }
.zx-h-pop-head small { display: block; color: #64748b; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zx-h-pop a, .zx-h-pop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #334155 !important; font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: start; }
.zx-h-pop a i, .zx-h-pop button i { width: 18px; color: #94a3b8; text-align: center; }
.zx-h-pop a:hover, .zx-h-pop button:hover { background: #f1f5f9; color: #0f172a !important; }
.zx-h-pop .zx-h-logout { color: #dc2626 !important; border-top: 1px solid #eef1f5; border-radius: 0 0 10px 10px; margin-top: 6px; }
.zx-h-pop .zx-h-logout i { color: #dc2626; }

/* ---------- drawers ---------- */
.zx-drawer { position: fixed; inset: 0; z-index: 1060; visibility: hidden; }
.zx-drawer.open { visibility: visible; }
.zx-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .25s; }
.zx-drawer.open .zx-drawer-backdrop { opacity: 1; }
.zx-drawer-panel { position: absolute; top: 0; bottom: 0; width: 420px; max-width: 92vw; background: #fff; display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 50px rgba(15, 23, 42, .25); }
.zx-drawer-end .zx-drawer-panel { inset-inline-end: 0; transform: translateX(100%); }
.zx-drawer-start .zx-drawer-panel { inset-inline-start: 0; width: 340px; transform: translateX(-100%); }
html[lang="ar"] .zx-drawer-end .zx-drawer-panel { transform: translateX(-100%); }
html[lang="ar"] .zx-drawer-start .zx-drawer-panel { transform: translateX(100%); }
.zx-drawer.open .zx-drawer-panel { transform: none !important; }
.zx-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #eef1f5; }
.zx-drawer-head > b { font-size: 17px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.zx-drawer-head > b i { color: #0b84c6; }
.zx-drawer-head > b em { font-style: normal; font-size: 12px; background: #e6f4fb; color: #0b84c6; padding: 1px 9px; border-radius: 999px; }
.zx-drawer-x { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #f1f5f9; color: #475569; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.zx-drawer-x:hover { background: #e2e8f0; color: #0f172a; }
.zx-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.zx-drawer-foot { border-top: 1px solid #eef1f5; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.zx-drawer-foot[hidden], .zx-cart-empty[hidden] { display: none !important; }
body.zx-locked { overflow: hidden; }

/* cart items */
.zx-cart-list { list-style: none; margin: 0; padding: 6px 18px; }
.zx-ci { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; position: relative; transition: opacity .2s; }
.zx-ci:last-child { border-bottom: 0; }
.zx-ci.busy { opacity: .5; pointer-events: none; }
.zx-ci-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f6f8fb; display: flex; align-items: center; justify-content: center; color: #cbd5e1; border: 1px solid #eef1f5; }
.zx-ci-img { position: relative; }
.zx-ci-img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.zx-ci-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zx-ci-name { color: #0f172a !important; font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-inline-end: 26px; }
.zx-ci-name:hover { color: #0b84c6 !important; }
.zx-ci-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.zx-ci-opts span { font-size: 11.5px; background: #f1f5f9; color: #475569; padding: 1px 7px; border-radius: 6px; }
.zx-ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.zx-ci-total { font-size: 15.5px; font-weight: 800; color: #0f172a; }
.zx-ci-del { position: absolute; top: 12px; inset-inline-end: 0; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; }
.zx-ci-del:hover { background: #fef2f2; color: #dc2626; }
.zx-qty { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; height: 34px; }
.zx-qty button { width: 32px; height: 100%; border: 0; background: #fff; color: #334155; cursor: pointer; font-size: 11px; }
.zx-qty button:hover:not(:disabled) { background: #f1f5f9; }
.zx-qty button:disabled { color: #cbd5e1; cursor: not-allowed; }
.zx-qty span { min-width: 32px; text-align: center; font-weight: 800; font-size: 14px; color: #0f172a; }
.zx-cart-empty { text-align: center; padding: 60px 30px; }
.zx-cart-empty > span { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: #e6f4fb; color: #0b84c6; font-size: 32px; }
.zx-cart-empty b { display: block; font-size: 18px; font-weight: 800; color: #0f172a; }
.zx-cart-empty p { margin: 6px 0 18px; color: #64748b; font-size: 14px; }
.zx-cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: #475569; font-weight: 600; }
.zx-cart-sum b { font-size: 21px; font-weight: 800; color: #0f172a; }
.zx-cart-note { display: block; margin: 4px 0 12px; color: #94a3b8; font-size: 12.5px; }
.zx-cart-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.zx-btn-dark, .zx-btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 800; font-size: 15px; transition: background .15s; }
.zx-btn-dark { background: #0f172a; color: #fff !important; }
.zx-btn-dark:hover { background: #0b84c6; }
.zx-btn-light { background: #fff; color: #0f172a !important; border: 1px solid #e2e8f0; }
.zx-btn-light:hover { background: #f8fafc; }

/* phone menu */
.zx-menu-head { background: linear-gradient(120deg, #0a74b3, #0b84c6); border-bottom: 0; }
.zx-menu-head .zx-drawer-x { background: rgba(255, 255, 255, .18); color: #fff; }
.zx-menu-user { display: flex; align-items: center; gap: 12px; color: #fff !important; min-width: 0; }
.zx-menu-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.zx-menu-user small { font-size: 12.5px; opacity: .85; }
.zx-menu-user b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zx-menu-body { padding: 14px 16px 20px; }
.zx-menu-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zx-menu-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: #f6f8fb; color: #334155 !important; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.zx-menu-quick a i { font-size: 18px; color: #0b84c6; }
.zx-menu-quick a.hot i { color: #e11d48; }
.zx-menu-title { margin: 20px 4px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; }
.zx-menu-cats { list-style: none; margin: 0; padding: 0; border: 1px solid #eef1f5; border-radius: 14px; overflow: hidden; }
.zx-menu-cats > li + li { border-top: 1px solid #eef1f5; }
.zx-menu-cats summary, .zx-menu-cat { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; list-style: none; color: #0f172a !important; font-weight: 600; font-size: 14.5px; }
.zx-menu-cats summary::-webkit-details-marker { display: none; }
.zx-menu-cats summary > i:first-child, .zx-menu-cat > i { width: 22px; text-align: center; color: #0b84c6; }
.zx-menu-cats summary span, .zx-menu-cat span { flex: 1; }
.zx-menu-caret { font-size: 11px; color: #94a3b8; transition: transform .2s; }
.zx-menu-cats details[open] .zx-menu-caret { transform: rotate(180deg); }
.zx-menu-cats details[open] summary { background: #f8fafc; }
.zx-menu-subs { display: grid; padding: 4px 14px 10px 48px; background: #f8fafc; }
html[lang="ar"] .zx-menu-subs { padding: 4px 48px 10px 14px; }
.zx-menu-subs a { padding: 8px 0; color: #475569 !important; font-size: 14px; border-bottom: 1px dashed #e2e8f0; }
.zx-menu-subs a:last-child { border-bottom: 0; }
.zx-menu-subs a.all { color: #0b84c6 !important; font-weight: 700; }
.zx-menu-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zx-menu-links a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #334155 !important; font-weight: 600; font-size: 14px; background: #f6f8fb; }
.zx-menu-links a i { color: #64748b; width: 16px; text-align: center; }
.zx-menu-foot { display: flex; flex-direction: column; gap: 6px; }
.zx-menu-foot a, .zx-menu-foot button { display: flex; align-items: center; gap: 10px; color: #475569 !important; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: start; }
.zx-menu-foot a i { color: #0b84c6; width: 16px; }
.zx-menu-foot button { color: #dc2626 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .zx-h-hide-md.zx-h-link { padding: 0; width: 44px; justify-content: center; }
  .zx-h-hide-md.zx-h-link span { display: none; }
  .zx-h-row { gap: 12px; }
}
@media (max-width: 991.98px) {
  .zx-h-bar { padding: 8px 0 10px; }
  .zx-header.is-stuck .zx-h-bar { padding: 6px 0 8px; }
  .zx-h-row { flex-wrap: wrap; gap: 6px 4px; }
  .zx-h-burger { display: inline-flex; order: 0; }
  .zx-h-logo { order: 1; flex: 1; justify-content: center; }
  .zx-h-logo img { height: 32px; max-width: 150px; }
  .zx-header.is-stuck .zx-h-logo img { height: 28px; }
  .zx-h-actions { order: 2; gap: 0; margin: 0; }
  .zx-h-search { order: 3; flex-basis: 100%; max-width: none; padding: 3px; margin-top: 4px; }
  .zx-header.is-stuck .zx-h-search { margin-top: 2px; }
  .zx-h-search input { height: 40px; }
  .zx-h-search button { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .zx-h-hide-md { display: none !important; }
  /* language: a compact EN | ع pill stays in the top bar on phones */
  .zx-h-lang { height: 36px; padding: 2px; gap: 0; margin-inline-end: 2px; }
  .zx-h-lang > i { display: none; }
  .zx-h-lang .zx-lang-seg { width: 60px; height: 32px; }
  .zx-h-lang .zx-lang-seg b.en { font-size: 11.5px; }
  .zx-h-lang .zx-lang-seg b.ar { font-size: 15px; }
  .zx-h-lang:hover .zx-lang-knob { transform: none; }
  .zx-h-lang.is-ar:hover .zx-lang-knob { transform: translateX(100%); }
  .zx-h-signin { padding: 0; width: 44px; justify-content: center; font-size: 19px; }
  .zx-h-account { padding: 0 6px; }
  .zx-h-cart { height: 44px; width: 44px; padding: 0; justify-content: center; background: transparent; border: 0; }
  .zx-h-cart-ico .zx-h-badge { top: -2px; inset-inline-end: -4px; }
}
@media (max-width: 575.98px) {
  .zx-h-search button { display: none; }
  .zx-drawer-panel { max-width: 100vw; }
  .zx-drawer-end .zx-drawer-panel { width: 100%; }
  .zx-drawer-start .zx-drawer-panel { width: 88vw; }
}
@media (prefers-reduced-motion: reduce) { .zx-drawer-panel, .zx-drawer-backdrop, .zx-h-pop, .zx-h-bar { transition: none; } .zx-h-badge.bump { animation: none; } }

/* ================= desktop menu bar (frontend/layouts/menu.blade.php) ================= */
.zx-nav { background: #fff; border-bottom: 1px solid #e8edf3; position: relative; z-index: 1020; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
:where(.zx-nav) ul, :where(.zx-nav) li { margin: 0; padding: 0; list-style: none; }
:where(.zx-nav) span, :where(.zx-nav) p, :where(.zx-nav) b { color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; padding: 0; }
:where(.zx-nav) a, :where(.zx-nav) button { min-height: 0; min-width: 0; text-decoration: none; }
.zx-nav *, .zx-nav *::before, .zx-nav *::after { box-sizing: border-box; }
.zx-nav-row { display: flex; align-items: center; gap: 12px; height: 54px; }
@media (max-width: 991.98px) { .zx-nav { display: none; } }

/* all categories */
.zx-mega { position: static; flex-shrink: 0; height: 100%; display: flex; align-items: center; }
.zx-mega-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: #0f172a; color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .15s; }
.zx-mega-btn:hover, .zx-mega.open .zx-mega-btn { background: #0b84c6; }
.zx-mega-caret { font-size: 10px; transition: transform .2s; }
.zx-mega.open .zx-mega-caret { transform: rotate(180deg); }
.zx-mega-panel { position: absolute; top: 100%; left: 0; right: 0; margin: 0 auto; width: min(1296px, calc(100vw - 24px)); display: grid; grid-template-columns: 270px 1fr; background: #fff; border: 1px solid #e8edf3; border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 24px 50px rgba(15, 23, 42, .16); height: min(470px, calc(100vh - 160px)); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; overflow: hidden; }
.zx-mega.open .zx-mega-panel { opacity: 1; visibility: visible; transform: none; }
.zx-mega-cats { overflow-y: auto; padding: 10px; background: #f8fafc; border-inline-end: 1px solid #eef1f5; }
.zx-mega-cats a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #334155 !important; font-weight: 600; font-size: 14px; transition: background .12s, color .12s; }
.zx-mega-cats a > i:first-child { width: 20px; text-align: center; color: #94a3b8; transition: color .12s; }
.zx-mega-cats a span { flex: 1; }
.zx-mega-arrow { font-size: 10px; color: #cbd5e1; }
.zx-mega-cats a.on, .zx-mega-cats a:hover { background: #fff; color: #0b84c6 !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.zx-mega-cats a.on > i, .zx-mega-cats a:hover > i { color: #0b84c6; }
.zx-mega-pane { overflow-y: auto; padding: 18px 24px 24px; }
.zx-mega-pane[hidden] { display: none; }
.zx-mega-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.zx-mega-pane-head b { font-size: 19px; font-weight: 800; color: #0f172a; }
.zx-mega-pane-head a { color: #0b84c6 !important; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.zx-mega-pane-head a i { font-size: 11px; }
.zx-mega-grid { columns: 4 190px; column-gap: 24px; }
.zx-mega-group { break-inside: avoid; display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.zx-mega-sub { color: #0f172a !important; font-weight: 800; font-size: 14.5px; padding: 4px 0; }
.zx-mega-sub:hover { color: #0b84c6 !important; }
.zx-mega-child { color: #64748b !important; font-size: 13.5px; padding: 3px 0; transition: color .12s, padding .12s; }
.zx-mega-child:hover { color: #0b84c6 !important; padding-inline-start: 4px; }
.zx-mega-more { color: #0b84c6 !important; font-size: 13px; font-weight: 700; padding: 3px 0; }
.zx-mega-empty { color: #64748b; font-size: 14px; }

/* quick links */
.zx-nav-links { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; }
.zx-nav-track { display: flex; align-items: center; gap: 2px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; height: 100%; white-space: nowrap; }
.zx-nav-track::-webkit-scrollbar { display: none; }
.zx-nav-track a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 54px; padding: 0 12px; color: #334155 !important; font-weight: 700; font-size: 14px; transition: color .12s; }
.zx-nav-track a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #0b84c6; transform: scaleX(0); transition: transform .18s; }
.zx-nav-track a:hover { color: #0b84c6 !important; }
.zx-nav-track a:hover::after, .zx-nav-track a.on::after { transform: scaleX(1); }
.zx-nav-track a.on { color: #0b84c6 !important; }
.zx-nav-track a.zx-nav-hot { color: #e11d48 !important; }
.zx-nav-track a.zx-nav-hot::after { background: #e11d48; }
.zx-nav-track a i { font-size: 12px; }
.zx-nav-track a .fa-fire { color: #f97316; }
.zx-nav-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, .1); font-size: 11px; }
.zx-nav-arrow:hover { color: #0b84c6; }
.zx-nav-arrow[hidden] { display: none; }
.zx-nav-arrow.prev { inset-inline-start: -4px; }
.zx-nav-arrow.next { inset-inline-end: -4px; }
.zx-nav-links::before, .zx-nav-links::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; width: 40px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.zx-nav-links::before { inset-inline-start: 0; background: linear-gradient(to var(--zx-to-end, right), #fff, rgba(255, 255, 255, 0)); }
.zx-nav-links::after { inset-inline-end: 0; background: linear-gradient(to var(--zx-to-start, left), #fff, rgba(255, 255, 255, 0)); }
html[lang="ar"] .zx-nav-links { --zx-to-end: left; --zx-to-start: right; }
.zx-nav-links.can-prev::before, .zx-nav-links.can-next::after { opacity: 1; }
.zx-nav-shops { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #e2e8f0; color: #0f172a !important; font-weight: 700; font-size: 14px; transition: border-color .15s, color .15s; }
.zx-nav-shops:hover, .zx-nav-shops.on { border-color: #b9dcf0; color: #0b84c6 !important; }
.zx-nav-shops i { color: #0b84c6; }
/* "Sell on ZARTTEX" in the menu bar: a white pill inside a slowly turning colour ring */
@property --zx-sell-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.zx-nav-sell { position: relative; flex-shrink: 0; display: inline-flex; padding: 2px; margin-inline-start: 10px; border-radius: 999px; background: conic-gradient(from var(--zx-sell-a), #ff7a1a, #f43f5e, #7c3aed, #0891d1, #ff7a1a); animation: zx-sell-turn 5s linear infinite; box-shadow: 0 6px 18px rgba(124,58,237,.18); transition: box-shadow .2s, transform .2s; }
@keyframes zx-sell-turn { to { --zx-sell-a: 360deg; } }
.zx-nav-sell:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(244,63,94,.28); }
.zx-sell-in { display: inline-flex !important; align-items: center; gap: 8px; height: 36px; padding-inline: 5px 12px; border-radius: 999px; background: #fff; color: #0f172a !important; font-size: 13.5px !important; line-height: 1 !important; white-space: nowrap; transition: background .2s; }
.zx-nav-sell:hover .zx-sell-in, .zx-nav-sell.on .zx-sell-in { background: #fff7f3; }
.zx-sell-ico { width: 27px; height: 27px; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff7a1a, #f43f5e 60%, #7c3aed); color: #fff !important; font-size: 11.5px !important; box-shadow: 0 3px 8px rgba(244,63,94,.35); transition: transform .3s; }
.zx-nav-sell:hover .zx-sell-ico { transform: rotate(-18deg) scale(1.08); }
.zx-sell-label { color: #334155 !important; font-weight: 600 !important; font-size: 13.5px !important; }
.zx-sell-label b { font-weight: 900; background: linear-gradient(90deg, #f43f5e, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zx-nav-sell em { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: #dcfce7; color: #15803d; }
.zx-sell-go { width: 0; opacity: 0; font-size: 11px; color: #f43f5e; transition: width .2s, opacity .2s, margin .2s; margin-inline-start: -4px; }
.zx-nav-sell:hover .zx-sell-go { width: 11px; opacity: 1; margin-inline-start: 0; }
/* browsers without @property: a still gradient ring */
@supports not (background: conic-gradient(from var(--x), red, blue)) { .zx-nav-sell { background: linear-gradient(120deg, #ff7a1a, #f43f5e, #7c3aed); } }
@media (prefers-reduced-motion: reduce) { .zx-nav-sell { animation: none; } }
@media (max-width: 1199.98px) { .zx-nav-sell em { display: none; } }
/* button content: icon · two-line label · round arrow chip (drawn in SVG, so it never depends on the icon font) */
.zx-nav-sell .zx-sell-in { height: 40px; gap: 9px; padding-inline: 4px 5px; }
.zx-nav-sell .zx-sell-ico { width: 32px; height: 32px; font-size: 13px !important; }
.zx-sell-txt { display: flex !important; flex-direction: column; justify-content: center; line-height: 1.15 !important; text-align: start; }
.zx-sell-txt small { display: flex !important; align-items: center; gap: 5px; font-size: 10.5px !important; font-weight: 700; color: #64748b !important; letter-spacing: .01em; }
.zx-sell-txt small i { display: none; width: 6px; height: 6px; border-radius: 50%; }
.zx-sell-txt small.wait, .zx-sell-txt small.warn { font-weight: 800; }
.zx-sell-txt small.wait { color: #b45309 !important; } .zx-sell-txt small.wait i { display: inline-block; background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.zx-sell-txt small.warn { color: #be123c !important; } .zx-sell-txt small.warn i { display: inline-block; background: #f43f5e; box-shadow: 0 0 0 3px #ffe4e6; }
.zx-sell-txt b { font-size: 13.5px !important; font-weight: 800; color: #0f172a !important; }
.zx-sell-txt b span { font-weight: 900; background: linear-gradient(90deg, #f43f5e, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.zx-sell-arrow { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; background: #f1f5f9; color: #475569 !important; transition: background .2s, color .2s, transform .25s; }
.zx-nav-sell:hover .zx-sell-arrow, .zx-sell-menu.open .zx-sell-arrow { background: linear-gradient(135deg, #f43f5e, #7c3aed); color: #fff !important; }
.zx-sell-menu.open .zx-sell-arrow { transform: rotate(180deg); }
a.zx-nav-sell:hover .zx-sell-arrow { transform: translateX(2px); }
[dir="rtl"] a.zx-nav-sell:hover .zx-sell-arrow { transform: translateX(-2px); }
.zx-sell-menu .zx-nav-sell:focus-visible { outline: 3px solid rgba(124, 58, 237, .35); outline-offset: 2px; }
@media (max-width: 1299.98px) { .zx-sell-txt small { display: none !important; } }
/* the "Sell on" button opens a chooser: startup (individuals) or business */
.zx-sell-menu { flex-shrink: 0; margin-inline-start: 10px; }
.zx-sell-menu .zx-nav-sell { margin-inline-start: 0; border: 0; cursor: pointer; font: inherit; }
.zx-sell-menu.open .zx-sell-in { background: #fff7f3; }
.zx-nav-sell em.wait { background: #fef3c7; color: #b45309; }
.zx-nav-sell em.warn { background: #ffe4e6; color: #be123c; }
.zx-sell-pop { display: block !important; position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 60; width: 360px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .28), 0 0 0 1px rgba(15, 23, 42, .04); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s, transform .18s, visibility .18s; white-space: normal; }
[dir="rtl"] .zx-sell-pop { transform-origin: top left; }
.zx-sell-pop::before { content: ""; position: absolute; top: -6px; inset-inline-end: 40px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; box-shadow: -1px -1px 0 rgba(15, 23, 42, .04); }
.zx-sell-menu.open .zx-sell-pop { opacity: 1; visibility: visible; transform: none; }
.zx-sell-pop-head, .zx-sell-pop-foot { display: block !important; text-align: start; }
.zx-sell-pop-head { margin: 4px 8px 10px !important; }
.zx-sell-pop-head b { display: block; font-size: 15px; font-weight: 800; color: #0f172a; }
.zx-sell-pop-head small { display: block; font-size: 12.5px; color: #64748b; margin-top: 2px; }
.zx-sell-opt { display: flex !important; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid #eef2f7; color: #0f172a !important; text-decoration: none !important; transition: border-color .15s, background .15s, transform .12s; }
.zx-sell-opt + .zx-sell-opt { margin-top: 8px; }
.zx-sell-opt:hover, .zx-sell-opt:focus-visible { transform: translateY(-1px); }
.zx-sell-opt.startup:hover, .zx-sell-opt.startup:focus-visible { border-color: #ddd0fe; background: #faf7ff; }
.zx-sell-opt.business:hover, .zx-sell-opt.business:focus-visible { border-color: #bae6fd; background: #f0f9ff; }
.zx-sell-opt-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: flex !important; align-items: center; justify-content: center; color: #fff !important; font-size: 17px; }
.zx-sell-opt.startup .zx-sell-opt-ico { background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 6px 14px -6px rgba(219, 39, 119, .7); }
.zx-sell-opt.business .zx-sell-opt-ico { background: linear-gradient(135deg, #0369a1, #2563eb); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .7); }
.zx-sell-opt-txt { flex: 1; min-width: 0; display: block !important; text-align: start; }
.zx-sell-opt-txt b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14.5px; font-weight: 800; }
.zx-sell-opt-txt b em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fdf2f8; color: #db2777; }
.zx-sell-opt-txt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: #64748b; }
.zx-sell-opt > i { font-size: 11px; color: #cbd5e1; transition: transform .15s, color .15s; }
.zx-sell-opt:hover > i { color: #64748b; transform: translateX(2px); }
[dir="rtl"] .zx-sell-opt:hover > i { transform: translateX(-2px); }
.zx-sell-pop-foot { margin: 10px 8px 2px !important; font-size: 12px; color: #64748b; }
.zx-sell-pop-foot i { margin-inline-end: 4px; }
@media (prefers-reduced-motion: reduce) { .zx-sell-pop, .zx-sell-opt { transition: none; } }
/* phone menu: the same two choices */
.zx-menu-sellbox { margin: 14px 0 6px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #fff7f3, #faf5ff); border: 1px solid #f3e8ff; }
.zx-menu-sellbox > p { margin: 0 2px 8px !important; }
.zx-menu-sellbox > p b { display: block; font-size: 14.5px; font-weight: 800; color: #0f172a; }
.zx-menu-sellbox > p small { display: block; font-size: 12px; color: #64748b; }
.zx-menu-sellbox .zx-menu-sell { margin: 0; }
.zx-menu-sellbox .zx-menu-sell + .zx-menu-sell { margin-top: 8px; }
.zx-menu-sell.biz { background: linear-gradient(120deg, #0369a1, #2563eb) !important; }
/* phone menu: seller invitation card */
.zx-menu-sell { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; color: #fff !important; background: linear-gradient(120deg, #ff7a1a, #f43f5e 55%, #7c3aed); box-shadow: 0 8px 20px rgba(244,63,94,.25); }
.zx-menu-sell > span:first-child { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.2); display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
.zx-menu-sell > span:nth-child(2) { flex: 1; min-width: 0; }
.zx-menu-sell b { display: block; font-size: 14.5px; font-weight: 800; color: #fff; }
.zx-menu-sell small { display: block; font-size: 12px; color: rgba(255,255,255,.88); }
.zx-menu-sell span { color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .zx-mega-panel, .zx-nav-track { transition: none; scroll-behavior: auto; } }

/* ================= footer (frontend/layouts/footer.blade.php) ================= */
.zx-foot { background: #0b1220; color: #cbd5e1; margin-top: 56px; padding-top: 0; position: relative; }
:where(.zx-foot) span, :where(.zx-foot) p, :where(.zx-foot) li, :where(.zx-foot) b, :where(.zx-foot) h3 { color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; padding: 0; }
:where(.zx-foot) ul { list-style: none; margin: 0; padding: 0; }
:where(.zx-foot) a, :where(.zx-foot) button { min-height: 0; min-width: 0; text-decoration: none; }
.zx-foot *, .zx-foot *::before, .zx-foot *::after { box-sizing: border-box; }
.zx-foot { line-height: 1.55; }

/* newsletter band — overlaps the top edge */
.zx-foot-news { position: relative; top: -40px; margin-bottom: -10px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: 22px; background: linear-gradient(120deg, #0a74b3 0%, #0b84c6 50%, #6d5ce8 100%); color: #fff; box-shadow: 0 20px 40px rgba(11, 132, 198, .28); overflow: hidden; }
.zx-foot-news::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -170px; inset-inline-end: 22%; pointer-events: none; }
.zx-foot-news-txt { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.zx-foot-news-ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.zx-foot-news h3 { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.3; }
.zx-foot-news p { font-size: 14px; color: rgba(255, 255, 255, .85); margin-top: 3px; }
.zx-foot-news-form { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 5px; width: min(460px, 100%); box-shadow: 0 8px 20px rgba(2, 46, 77, .2); }
.zx-foot-news-form > i { position: absolute; top: 25px; inset-inline-start: 20px; transform: translateY(-50%); color: #94a3b8; }
.zx-foot-news-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; padding-inline: 44px 10px; font-size: 15px !important; color: #0f172a; }
.zx-foot-news-form button { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s; }
.zx-foot-news-form button:hover { background: #ff7a1a; }
.zx-foot-news-form button[disabled] { opacity: .7; cursor: wait; }
html[lang="ar"] .zx-foot-news-form button i { transform: scaleX(-1); }
.zx-foot-news-msg { flex-basis: 100%; font-size: 13px !important; font-weight: 700; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .2s, padding .2s; }
.zx-foot-news-msg.show { max-height: 60px; padding: 6px 16px 4px; }
.zx-foot-news-msg.ok { color: #047857; }
.zx-foot-news-msg.bad { color: #dc2626; }

/* columns */
.zx-foot-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-top: 18px; padding-bottom: 40px; }
.zx-foot-logo { display: inline-flex; color: #fff !important; }
.zx-foot-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.zx-foot-logo b { font-size: 26px; font-weight: 800; }
.zx-foot-about { margin-top: 14px !important; font-size: 14px; color: #94a3b8; max-width: 340px; }
.zx-foot-contact { display: grid; gap: 10px; margin-top: 18px !important; }
.zx-foot-contact a { display: flex; align-items: flex-start; gap: 12px; color: #e2e8f0 !important; font-size: 14.5px; transition: color .15s; }
.zx-foot-contact a:hover { color: #fff !important; }
.zx-foot-contact i { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: #38bdf8; font-size: 14px; margin-top: -6px; }
.zx-foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.zx-foot-social a { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0 !important; font-size: 16px; transition: background .15s, transform .15s, color .15s; }
.zx-foot-social a:hover { background: #0b84c6; border-color: #0b84c6; color: #fff !important; transform: translateY(-2px); }
.zx-foot-col summary { list-style: none; color: #fff; font-weight: 800; font-size: 15.5px; margin-bottom: 14px; cursor: default; display: flex; align-items: center; justify-content: space-between; }
.zx-foot-col summary::-webkit-details-marker { display: none; }
.zx-foot-col summary i { display: none; font-size: 12px; color: #64748b; transition: transform .2s; }
.zx-foot-col ul { display: grid; gap: 9px; }
.zx-foot-col a { color: #94a3b8 !important; font-size: 14.5px; transition: color .15s, padding .15s; display: inline-block; }
.zx-foot-col a:hover, .zx-foot-col a.on { color: #fff !important; padding-inline-start: 4px; }
.zx-foot-col a.zx-foot-hot { color: #fb7185 !important; font-weight: 700; }

/* bottom bar */
.zx-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: #080e1a; }
.zx-foot-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.zx-foot-copy { font-size: 13.5px; color: #64748b; }
.zx-foot-legal { display: inline-block; margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid rgba(148,163,184,.35); color: #94a3b8; text-decoration: none; white-space: nowrap; }
.zx-foot-legal i { margin-inline-end: 4px; }
.zx-foot-legal:hover { color: #fff; text-decoration: underline; }
.zx-foot-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zx-foot-pay li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #e2e8f0; font-size: 20px; }
.zx-foot-pay li .fa-money-bill-wave { font-size: 15px; color: #4ade80; }
.zx-foot-cod { font-size: 11.5px !important; font-weight: 800 !important; color: #e2e8f0 !important; }
.zx-foot-tools { display: flex; align-items: center; gap: 10px; }
.zx-foot-lang { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); color: #e2e8f0 !important; font-size: 13.5px; font-weight: 700; }
.zx-foot-lang:hover { border-color: #38bdf8; color: #fff !important; }
.zx-foot-top { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #0b84c6; color: #fff; cursor: pointer; transition: transform .15s; }
.zx-foot-top:hover { transform: translateY(-2px); }

@media (max-width: 991.98px) {
  .zx-foot-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  .zx-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .zx-foot { margin-top: 48px; }
  .zx-foot-news { top: -30px; padding: 20px 18px; border-radius: 18px; gap: 16px; }
  .zx-foot-news-ico { width: 46px; height: 46px; font-size: 18px; border-radius: 14px; }
  .zx-foot-news h3 { font-size: 18px; }
  .zx-foot-news p { font-size: 13px; }
  .zx-foot-news-form button span { display: none; }
  .zx-foot-news-form button { padding: 0 16px; }
  .zx-foot-main { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 24px; }
  .zx-foot-brand { padding-bottom: 22px; }
  /* phones: link columns fold */
  .zx-foot-col { border-top: 1px solid rgba(255, 255, 255, .08); }
  .zx-foot-col summary { margin: 0; padding: 16px 0; cursor: pointer; }
  .zx-foot-col summary i { display: inline-block; }
  .zx-foot-col[open] summary i { transform: rotate(180deg); }
  .zx-foot-col ul { padding-bottom: 16px; }
  .zx-foot-bottom-row { flex-direction: column; text-align: center; gap: 12px; }
}

/* ================= phones: compact top bar + app-style tab bar ================= */
.zx-tabbar { display: none; }
@media (max-width: 991.98px) {
  /* top bar: ☰ · logo · EN|ع · ♡ — cart and account live in the tab bar */
  .zx-h-bar { padding: 6px 0 8px; transition: transform .25s ease, box-shadow .2s, padding .2s; }
  .zx-header.is-stuck .zx-h-bar { padding: 5px 0 7px; }
  .zx-h-row { gap: 4px 2px; }
  .zx-h-icon, .zx-h-signin { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
  .zx-h-logo img { height: 28px; max-width: 130px; }
  .zx-header.is-stuck .zx-h-logo img { height: 26px; }
  .zx-h-logo b { font-size: 21px; }
  .zx-h-search { margin-top: 2px; }
  .zx-h-search input { height: 38px; font-size: 14px !important; padding-inline: 40px 8px; }
  .zx-h-search > i { inset-inline-start: 15px; font-size: 14px; }
  .zx-h-search button { height: 38px; }
  .zx-h-cart, .zx-h-account, .zx-h-signin, .zx-h-actions .zx-h-menu { display: none !important; }

  /* scrolling down tucks the top row away and keeps the search; scrolling up brings it back */
  .zx-header.is-compact .zx-h-bar { transform: translateY(calc(-1 * var(--zx-hide, 46px))); }
  .zx-header.is-compact { pointer-events: none; }
  .zx-header.is-compact > * { pointer-events: auto; }

  .zx-tabbar { position: fixed; z-index: 1029; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e6ebf2; box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }
  .zx-tabbar a, .zx-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 52px; margin: 0; padding: 0;
    border: 0; border-radius: 12px; background: none; color: #64748b !important; font: 600 11px/1.1 inherit; text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .zx-tabbar i { position: relative; font-size: 19px; transition: transform .15s; }
  .zx-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .zx-tabbar .on { color: #0b84c6 !important; }
  .zx-tabbar .on::before { content: ""; position: absolute; top: -4px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: #0b84c6; }
  .zx-tabbar a:active i, .zx-tabbar button:active i { transform: scale(.9); }
  /* signed-in shopper's photo in the Account tab */
  .zx-tab-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
    background: #0b84c6 center / cover no-repeat; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0; transition: box-shadow .2s, transform .15s; }
  .zx-tabbar .on .zx-tab-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0b84c6; }
  .zx-tabbar a:active .zx-tab-av { transform: scale(.9); }
  .zx-tabbar .zx-h-badge { top: -7px; inset-inline-end: -11px; box-shadow: 0 0 0 2px #fff; font-style: normal; }
  body:has(> .zx-tabbar) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .wsus__scroll_btn { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }

  /* pages with their own bottom action bar keep it; cart and account come back to the top bar there */
  body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) .zx-tabbar { display: none; }
  body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) { padding-bottom: 0; }
  body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) .zx-h-cart { display: inline-flex !important; }
  body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) .zx-h-actions .zx-h-menu { display: block !important; }
  body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) .zx-h-account, body:has(.pd-sticky, .ct-sticky, .ck-sticky, .py-sticky) .zx-h-signin { display: inline-flex !important; }
  body:has(.zx-drawer.open) .zx-tabbar { display: none; }
}
@media (max-width: 359.98px) { .zx-tabbar span { font-size: 10px; } .zx-h-logo img { max-width: 104px; } }
@media (prefers-reduced-motion: reduce) { .zx-h-bar, .zx-tabbar i { transition: none; } }
