/* 16Bazar modern mobile navigation drawer — isolated from desktop and bottom bar */
@media (max-width: 991.98px) {
  body .mobile-menu-overlay {
    background:rgba(1,20,13,.55) !important;
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }
  body .mobile-nav-drawer {
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
    width:min(315px, 88vw) !important;
    max-width:88vw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    background:#f7faf8 !important;
    border-radius:0 22px 22px 0 !important;
    box-shadow:12px 0 48px rgba(0,30,18,.22) !important;
    overflow:hidden !important;
    z-index:13001 !important;
    padding:0 !important;
  }
  body .mobile-nav-drawer .mobile-nav-header.bazar-drawer-header {
    flex:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:9px !important;
    min-height:104px !important;
    box-sizing:border-box !important;
    padding:calc(15px + env(safe-area-inset-top,0px)) 15px 18px !important;
    margin:0 !important;
    background:linear-gradient(135deg,#06472e,#087349 75%,#09a660) !important;
    border:0 !important;
    position:relative !important;
    isolation:isolate;
  }
  body .bazar-drawer-header::after {
    content:"";
    pointer-events:none;
    position:absolute;
    right:5px;bottom:-36px;
    width:110px;height:110px;
    background:rgba(255,255,255,.06);
    border-radius:50%;
    z-index:-1;
  }
  body .bazar-drawer-brand {
    display:flex !important; align-items:center !important;
    min-width:0; gap:10px;
  }
  body .bazar-drawer-logo-wrap {
    display:flex;align-items:center;justify-content:center;
    width:63px; height:48px; padding:6px;
    flex:none;
    border-radius:13px;
    background:#fff;
    box-shadow:0 5px 16px rgba(0,0,0,.10);
  }
  body .bazar-drawer-logo-wrap img {
    max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;
  }
  body .bazar-drawer-brand-text {
    min-width:0;display:flex;flex-direction:column;gap:3px;
    text-align:left;
  }
  body .bazar-drawer-brand-text strong {
    color:#fff!important;font-size:14px!important;line-height:1.2!important;
    font-weight:800!important;white-space:nowrap;letter-spacing:-.1px;
  }
  body .bazar-drawer-brand-text small {
    color:rgba(255,255,255,.79)!important;font-size:10px!important;
    line-height:1.3!important;white-space:nowrap;
  }
  body .mobile-nav-drawer .mobile-nav-close.bazar-drawer-close {
    flex:none;
    display:inline-flex !important;align-items:center !important;justify-content:center !important;
    margin:0 !important;padding:0 !important;
    width:33px !important;height:33px !important;
    border:1px solid rgba(255,255,255,.2) !important;
    border-radius:11px !important;
    background:rgba(255,255,255,.15) !important;
    color:#fff !important;
    font-size:16px!important;
    cursor:pointer;
    touch-action:manipulation;
  }
  body .mobile-nav-drawer .mobile-nav-close:hover {background:rgba(255,255,255,.24)!important;}
  body .mobile-nav-drawer .mobile-nav-links {
    box-sizing:border-box !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:15px 13px calc(25px + env(safe-area-inset-bottom,0px)) !important;
    background:#f7faf8 !important;
    scrollbar-width:thin;
    scrollbar-color:#c3ddce transparent;
    overscroll-behavior:contain;
  }
  body .mobile-nav-drawer .mobile-nav-title {
    display:flex!important;align-items:center!important;gap:8px!important;
    font-size:10.5px!important;
    line-height:1.3!important;
    text-transform:uppercase!important;
    letter-spacing:.12em!important;
    font-weight:800!important;
    color:#0d8650!important;
    padding:5px 10px!important;
    margin:12px 0 8px!important;
    background:transparent!important;
    border:0!important;
  }
  body .mobile-nav-drawer .mobile-nav-title:first-child {margin-top:0!important;}
  body .mobile-nav-drawer .mobile-nav-title i {
    width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;
    border-radius:7px;background:#e2f6ea;color:#07884c;
    font-size:10px;
  }
  body .mobile-nav-drawer .mobile-nav-row {
    display:flex!important;
    gap:5px!important;
    align-items:center!important;
    min-height:0!important;
    box-sizing:border-box!important;
    margin:0 0 5px!important;
    padding:0!important;
    border:0!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 1px 4px rgba(18,56,36,.035)!important;
    border:1px solid #e8f0eb!important;
    overflow:hidden;
  }
  body .mobile-nav-drawer .mobile-nav-row:has(> a.is-active) {
    border-color:#bee8d0!important;
    background:#e9f9ef!important;
    box-shadow:inset 3px 0 0 #0aa158!important;
  }
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-main-link,
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-subcat-link,
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-childcat-link {
    box-sizing:border-box!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    border:0!important;
    background:transparent!important;
    padding:11px 10px!important;
    margin:0!important;
    min-height:41px!important;
    font-size:12.5px!important;
    line-height:1.3!important;
    font-weight:600!important;
    color:#263d32!important;
    text-align:left!important;
    text-transform:none!important;
    letter-spacing:0!important;
    text-decoration:none!important;
    white-space:normal!important;
    flex:1 1 auto;
  }
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-main-link:hover,
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-subcat-link:hover,
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-childcat-link:hover {
    color:#087747!important;
    background:#edf9f2!important;
  }
  body .mobile-nav-drawer .mobile-nav-links a.is-active {
    color:#087d49!important;
    font-weight:800!important;
  }
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-main-link i {
    flex:none;
    width:27px;height:27px;
    border-radius:8px;
    background:#e7f7ed;
    color:#098f51;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
  }
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-main-link:not(:has(i))::before {
    content:"";
    width:6px;height:6px;
    border:2px solid #39b978;
    background:#e6fff0;
    border-radius:50%;
    flex:none;
    margin:0 10px 0 9px;
  }
  body .mobile-nav-drawer .mobile-nav-toggle {
    flex:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:29px!important;height:29px!important;
    line-height:1!important;
    padding:0!important;margin:0 9px 0 0!important;
    font-size:18px!important;font-weight:600!important;
    color:#0b9253!important;
    background:#e9f8ef!important;
    border:1px solid #d7eddf!important;
    border-radius:9px!important;
    cursor:pointer;
  }
  body .mobile-nav-drawer .mobile-nav-toggle-placeholder {
    display:none!important;
  }
  body .mobile-nav-drawer .mobile-nav-category-list {margin:0!important;padding:0!important;}
  body .mobile-nav-drawer .mobile-nav-subcat-list,
  body .mobile-nav-drawer .mobile-nav-childcat-list {
    list-style:none!important;
    margin:0 0 8px 12px!important;
    padding:2px 0 2px 10px!important;
    border-left:2px solid #d6efdf!important;
    background:transparent!important;
  }
  body .mobile-nav-drawer .mobile-nav-subcat-list li,
  body .mobile-nav-drawer .mobile-nav-childcat-list li {list-style:none!important;}
  body .mobile-nav-drawer .mobile-nav-subcat-row {
    background:#f0faf4!important;
    border-color:#e2f2e8!important;
  }
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-subcat-link,
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-childcat-link {
    min-height:34px!important;
    padding:9px 10px!important;
    font-size:11.5px!important;
    color:#365548!important;
  }
  body .mobile-nav-drawer .mobile-nav-childcat-list li a {
    padding:8px 10px!important;
    border-radius:8px!important;
    margin-bottom:3px!important;
  }
  body .mobile-nav-drawer .mobile-nav-close:focus-visible,
  body .mobile-nav-drawer .mobile-nav-toggle:focus-visible,
  body .mobile-nav-drawer a:focus-visible {
    outline:2px solid #17b267!important;
    outline-offset:2px!important;
  }
}
@media (max-width:360px) {
  body .mobile-nav-drawer {width:min(296px,88vw)!important;}
  body .bazar-drawer-brand-text strong {font-size:12.5px!important;}
  body .mobile-nav-drawer .mobile-nav-links a.mobile-nav-main-link {font-size:12px!important;}
}

/* FIX: main site's overlay is 12000; drawer must be higher, not blurred. */
@media (max-width: 991.98px) {
  html body #mobileMenuOverlay.mobile-menu-overlay {
    position: fixed !important;
    z-index: 12000 !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
  }
  html body #mobileNavDrawer.mobile-nav-drawer {
    position: fixed !important;
    z-index: 13001 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html body #mobileNavDrawer.mobile-nav-drawer.open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
