/* Shopyzee mobile bottom bar v2 (App\Services\MobileBar, SZ_MOBILE_BAR_V2, 2026-11-27).
   Looks: .sz-mb-float (floating rounded bar, the default) | .sz-mb-classic (full width, the old look).
   Colours: .sz-mb-light | .sz-mb-dark | .sz-mb-brand (the store's main colour) | .sz-mb-theme (the theme's heading colour).
   The root keeps .mobile-nav so the vendor rules hide it on desktop and the scripts that look for it (cookie notice,
   product page, checkout) still find it. Sheets: .sz-mb-sheet. Buy bar on a product page: .sz-mb-buybar.
   The looks are drawn outside the media query so the merchant screen's preview (.sz-mb-pv) uses the same rules. */

/* ── the bar ─────────────────────────────────────────────────────────────────────────────────────── */
.sz-mb {
  --sz-mb-c: var(--main-color-one, #F97316);
  --sz-mb-fg: #475569;
  --sz-mb-strong: #0F172A;
  --sz-mb-bg: rgba(255, 255, 255, .92);
  --sz-mb-solid: #fff;
  --sz-mb-line: rgba(15, 27, 61, .08);
  --sz-mb-on-fg: var(--sz-mb-c);
  --sz-mb-on-bg: rgba(15, 27, 61, .06);
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  color: var(--sz-mb-fg);
  background: var(--sz-mb-bg);
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.sz-mb *, .sz-mb *::before, .sz-mb *::after { box-sizing: border-box; }
.sz-mb.sz-mb-float {
  height: 64px;
  padding: 6px;
  border: 1px solid var(--sz-mb-line);
  border-radius: 22px;
  box-shadow: 0 14px 34px -14px rgba(15, 27, 61, .42), 0 2px 8px rgba(15, 27, 61, .06);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
}
.sz-mb.sz-mb-float.sz-mb-nolabels { height: 58px; }
.sz-mb.sz-mb-classic {
  height: 62px;
  padding: 5px 6px;
  border: 0;
  border-top: 1px solid var(--sz-mb-line);
  border-radius: 0;
  box-shadow: 0 -6px 24px rgba(15, 27, 61, .07);
}
.sz-mb.sz-mb-classic.sz-mb-nolabels { height: 56px; }

.sz-mb .sz-mb-i {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, transform .12s;
}
.sz-mb .sz-mb-i:hover, .sz-mb .sz-mb-i:focus { color: inherit; text-decoration: none; }
.sz-mb .sz-mb-i:active { transform: scale(.93); }
.sz-mb .sz-mb-i:focus-visible { outline: 2px solid var(--sz-mb-c); outline-offset: -2px; }
.sz-mb .sz-mb-ic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  transition: background-color .2s, color .2s;
}
.sz-mb .sz-mb-ic svg { display: block; width: 23px; height: 23px; }
.sz-mb .sz-mb-t {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.sz-mb .sz-mb-i.is-active { color: var(--sz-mb-on-fg); }
.sz-mb .sz-mb-i.is-active .sz-mb-ic { background: var(--sz-mb-on-bg); }
.sz-mb .sz-mb-i.is-active .sz-mb-t { font-weight: 800; }
.sz-mb .sz-mb-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--sz-mb-solid);
  border-radius: 9px;
  background: var(--sz-mb-c);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}
.sz-mb .sz-mb-badge.is-bump { animation: sz-mb-bump .45s ease; }
@keyframes sz-mb-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.sz-mb .sz-mb-k-whatsapp .sz-mb-ic { color: #25D366; }
.sz-mb.sz-mb-nolabels .sz-mb-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sz-mb.sz-mb-nolabels .sz-mb-ic { width: 52px; height: 38px; border-radius: 19px; }
.sz-mb.sz-mb-nolabels .sz-mb-ic svg { width: 25px; height: 25px; }
html:not(.sz-pwa-installable) .sz-mb .sz-mb-install, html:not(.sz-pwa-installable) .sz-mb-sheet .sz-mb-install { display: none; } /* only when the phone can install */

/* colours */
.sz-mb.sz-mb-light { --sz-mb-fg: #475569; --sz-mb-bg: rgba(255, 255, 255, .92); }
.sz-mb.sz-mb-theme { --sz-mb-fg: var(--heading-color, #1F2937); --sz-mb-bg: rgba(255, 255, 255, .95); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .sz-mb.sz-mb-light, .sz-mb.sz-mb-theme { --sz-mb-on-bg: color-mix(in srgb, var(--sz-mb-c) 14%, transparent); }
}
.sz-mb.sz-mb-dark { --sz-mb-fg: rgba(255, 255, 255, .74); --sz-mb-strong: #fff; --sz-mb-bg: rgba(15, 27, 61, .95); --sz-mb-solid: #0F1B3D; --sz-mb-line: rgba(255, 255, 255, .08); --sz-mb-on-fg: #fff; }
.sz-mb.sz-mb-dark .sz-mb-i.is-active .sz-mb-ic { background: var(--sz-mb-c); color: #fff; }
.sz-mb.sz-mb-brand { --sz-mb-fg: rgba(255, 255, 255, .82); --sz-mb-strong: #fff; --sz-mb-bg: var(--sz-mb-c); --sz-mb-solid: var(--sz-mb-c); --sz-mb-line: rgba(255, 255, 255, .16); --sz-mb-on-fg: #fff; }
.sz-mb.sz-mb-brand .sz-mb-i.is-active .sz-mb-ic { background: #fff; color: var(--sz-mb-c); }
.sz-mb.sz-mb-brand .sz-mb-badge { background: #fff; color: var(--sz-mb-c); }
.sz-mb.sz-mb-brand .sz-mb-k-whatsapp .sz-mb-ic { color: #fff; }

/* ── the buy bar (product page) ──────────────────────────────────────────────────────────────────── */
.sz-mb.sz-mb-buybar { align-items: center; gap: 8px; padding: 7px; }
.sz-mb.sz-mb-buybar.sz-mb-float, .sz-mb.sz-mb-buybar.sz-mb-classic { height: 66px; }
.sz-mb-buybar .sz-mb-wa {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  transition: transform .12s;
}
.sz-mb-buybar .sz-mb-wa:hover, .sz-mb-buybar .sz-mb-wa:focus { color: #fff; }
.sz-mb-buybar .sz-mb-wa:active { transform: scale(.93); }
.sz-mb-buybar .sz-mb-price { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding-inline: 4px; text-align: start; }
.sz-mb-buybar .sz-mb-price small { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--sz-mb-fg); }
.sz-mb-buybar .sz-mb-price span { display: flex; align-items: baseline; gap: 6px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.sz-mb-buybar .sz-mb-price b { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--sz-mb-strong); }
.sz-mb-buybar .sz-mb-price s { font-size: 12px; color: #94A3B8; }
.sz-mb-buybar .sz-mb-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: var(--sz-mb-c);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px var(--sz-mb-c);
  transition: transform .12s, filter .2s;
}
.sz-mb-buybar .sz-mb-cta:active { transform: scale(.96); }
.sz-mb-buybar .sz-mb-cta svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sz-mb-buybar.sz-mb-brand .sz-mb-cta { background: #fff; color: var(--sz-mb-c); box-shadow: none; }
.sz-mb-buybar.sz-mb-dark .sz-mb-price s, .sz-mb-buybar.sz-mb-brand .sz-mb-price s { color: rgba(255, 255, 255, .55); }
@media (max-width: 359.98px) {
  .sz-mb-buybar .sz-mb-cta { padding: 0 13px; font-size: 14px; }
  .sz-mb-buybar .sz-mb-cta svg { display: none; }
}

/* ── on the storefront: phones and small tablets only ────────────────────────────────────────────── */
html.sz-mb-look-float { --sz-mb-space: calc(74px + env(safe-area-inset-bottom, 0px)); }
html.sz-mb-look-classic { --sz-mb-space: calc(62px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 991.98px) {
  html.sz-mb-on .sz-mb {
    position: fixed;
    z-index: 1035;
    width: auto;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s;
  }
  html.sz-mb-on .sz-mb.sz-mb-float {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 560px;
    margin-inline: auto;
  }
  html.sz-mb-on .sz-mb.sz-mb-classic {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
  }
  html.sz-mb-on .sz-mb.sz-mb-classic.sz-mb-nolabels { height: calc(56px + env(safe-area-inset-bottom, 0px)); }
  html.sz-mb-on .sz-mb.sz-mb-classic.sz-mb-buybar { height: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  html.sz-mb-on .sz-mb.is-away, html.sz-mb-on .sz-mb.is-kbd, html.sz-mb-on .sz-mb.is-off {
    transform: translateY(calc(100% + 18px + env(safe-area-inset-bottom, 0px)));
    opacity: 0;
    pointer-events: none;
  }
  html.sz-mb-on body { padding-bottom: calc(var(--sz-mb-space, 84px) + 8px); }
  /* what else sits at the bottom of the screen moves above the bar */
  html.sz-mb-on .sz-cc { inset-block-end: calc(var(--sz-mb-space, 84px) + 14px) !important; } /* its entrance comes up from 12px lower */
  html.sz-mb-on .sz-pwa-sheet { bottom: var(--sz-mb-space, 84px) !important; }
  html.sz-mb-on .whatsapp-integration-wrap a { bottom: calc(var(--sz-mb-space, 84px) + 12px) !important; }
  html.sz-mb-on .back-to-top, html.sz-mb-on .back-to-top.forMobile-nav { bottom: calc(var(--sz-mb-space, 84px) + 12px) !important; }
  /* the product page's own sticky bar says the same as the buy bar: one bar */
  html.sz-mb-buy #ar-sticky-buy { display: none !important; }
}
@media (min-width: 992px) {
  html.sz-mb-on .sz-mb, html.sz-mb-on .sz-mb-sheet { display: none !important; }
}

/* ── the bottom sheets («الأقسام» / «المزيد») ───────────────────────────────────────────────────── */
.sz-mb-sheet { position: fixed; inset: 0; z-index: 100040; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-family: inherit; }
.sz-mb-sheet[hidden], .sz-mb-sheet [hidden] { display: none !important; }
.sz-mb-sheet *, .sz-mb-sheet *::before, .sz-mb-sheet *::after { box-sizing: border-box; }
.sz-mb-sheet-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); opacity: 0; transition: opacity .25s; }
.sz-mb-sheet-in {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: #0F172A;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, .22);
  text-align: start;
  transform: translateY(104%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sz-mb-sheet.is-open .sz-mb-sheet-bg { opacity: 1; }
.sz-mb-sheet.is-open .sz-mb-sheet-in { transform: none; }
.sz-mb-sheet.is-drag .sz-mb-sheet-in { transition: none; }
.sz-mb-sheet .sz-mb-grab { width: 42px; height: 5px; margin: 4px auto 10px; border-radius: 3px; background: #E2E8F0; }
.sz-mb-sheet .sz-mb-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sz-mb-sheet .sz-mb-sheet-h h2 { margin: 0; padding: 0; font-size: 18px; font-weight: 800; line-height: 1.3; color: #0F172A; }
.sz-mb-sheet .sz-mb-x { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #F1F5F9; color: #334155; cursor: pointer; }
.sz-mb-sheet .sz-mb-search { display: flex; align-items: center; gap: 8px; height: 48px; margin: 0 0 18px; padding: 0 14px; border-radius: 15px; background: #F1F5F9; color: #64748B; }
.sz-mb-sheet .sz-mb-search svg { flex: 0 0 auto; }
.sz-mb-sheet .sz-mb-search input { flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: #0F172A; font: inherit; font-size: 16px; }
.sz-mb-sheet .sz-mb-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 480px) { .sz-mb-sheet .sz-mb-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sz-mb-sheet .sz-mb-cat { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #0F172A; text-decoration: none; }
.sz-mb-sheet .sz-mb-cat:active { opacity: .7; }
.sz-mb-sheet .sz-mb-cat-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 18px; background: #F1F5F9; color: var(--main-color-one, #F97316); font-size: 24px; font-weight: 800; }
.sz-mb-sheet .sz-mb-cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sz-mb-sheet .sz-mb-cat-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: center; }
.sz-mb-sheet .sz-mb-empty { margin: 4px 0 0; color: #64748B; font-size: 14px; }
.sz-mb-sheet .sz-mb-all { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; margin: 18px 0 0; border: 1.5px solid #E2E8F0; border-radius: 15px; color: #0F172A; font-size: 14.5px; font-weight: 800; text-decoration: none; }
.sz-mb-sheet .sz-mb-rows { margin: 0; padding: 0; list-style: none; }
.sz-mb-sheet .sz-mb-rows li { margin: 0; padding: 0; list-style: none; }
.sz-mb-sheet .sz-mb-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 4px; border-bottom: 1px solid #F1F5F9; color: #0F172A; font-size: 15px; font-weight: 600; text-decoration: none; }
.sz-mb-sheet .sz-mb-row:active { background: #F8FAFC; }
.sz-mb-sheet .sz-mb-row-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #F1F5F9; color: #475569; }
.sz-mb-sheet .sz-mb-row-whatsapp { background: #E8FBEF; color: #1FA855; }
.sz-mb-sheet .sz-mb-row-t { flex: 1 1 auto; min-width: 0; }
.sz-mb-sheet .sz-mb-row-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--main-color-one, #F97316); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 22px; text-align: center; }
.sz-mb-sheet .sz-mb-chev { flex: 0 0 auto; display: inline-flex; color: #CBD5E1; }
html[dir="rtl"] .sz-mb-sheet .sz-mb-chev svg, html[dir="rtl"] .sz-mb-sheet .sz-mb-all svg, [dir="rtl"] .sz-mb-pv .sz-mb-chev svg, [dir="rtl"] .sz-mb-pv .sz-mb-all svg { transform: scaleX(-1); }
.sz-mb-sheet .sz-mb-group { margin: 20px 4px 6px; color: #94A3B8; font-size: 12px; font-weight: 800; }
.sz-mb-sheet .sz-mb-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; }
.sz-mb-sheet .sz-mb-lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1.5px solid #E2E8F0; border-radius: 20px; color: #0F172A; font-size: 14px; font-weight: 700; text-decoration: none; }
.sz-mb-sheet .sz-mb-lang.is-on { border-color: var(--main-color-one, #F97316); color: var(--main-color-one, #F97316); }
html.sz-mb-lock, html.sz-mb-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .sz-mb, .sz-mb .sz-mb-i, .sz-mb-sheet-in, .sz-mb-sheet-bg { transition: none !important; }
  .sz-mb .sz-mb-badge.is-bump { animation: none; }
}

/* ── the merchant screen's preview (resources/views/tenant/admin/pages/appearance/mobile-bar.blade.php) ── */
.sz-mb-pv { position: relative; overflow: hidden; }
.sz-mb-pv .sz-mb { position: absolute; z-index: 3; }
.sz-mb-pv .sz-mb.sz-mb-float { left: 10px; right: 10px; bottom: 10px; }
.sz-mb-pv .sz-mb.sz-mb-classic { left: 0; right: 0; bottom: 0; }
.sz-mb-pv .sz-mb-sheet { position: absolute; z-index: 5; }
.sz-mb-pv .sz-mb-sheet-in { max-height: 82%; }
