/* JBA v15.2.66 - Mobile Shop Experience */
@media (max-width: 900px), (pointer: coarse) {
  :root{
    --jba166-navy:#062550;
    --jba166-navy2:#0a356f;
    --jba166-gold:#f7c374;
    --jba166-bg:#f5f7fb;
    --jba166-text:#17233a;
    --jba166-muted:#778399;
    --jba166-nav-h:70px;
  }
  html.jba-v15266-mobile-shop body{padding-bottom:calc(var(--jba166-nav-h) + env(safe-area-inset-bottom,0px) + 10px)!important}
  html.jba-v15266-layer-open,html.jba-v15266-layer-open body{overscroll-behavior:none}

  body .menu-bot-mob.jba-v15266-mobile-nav{
    position:fixed!important;inset:auto 0 0 0!important;width:100%!important;height:calc(var(--jba166-nav-h) + env(safe-area-inset-bottom,0px))!important;
    min-height:0!important;padding:6px 8px env(safe-area-inset-bottom,0px)!important;margin:0!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;gap:3px!important;
    direction:rtl!important;background:rgba(255,255,255,.97)!important;border-top:1px solid rgba(6,37,80,.10)!important;
    box-shadow:0 -12px 34px rgba(6,37,80,.15)!important;backdrop-filter:blur(14px)!important;z-index:999850!important;
  }
  body .jba-v15266-mobile-nav .jba-v15266-nav-item{
    position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;min-width:0!important;height:58px!important;margin:0!important;padding:5px 2px!important;border:0!important;border-radius:16px!important;
    color:#758099!important;background:transparent!important;text-decoration:none!important;font-family:IRANSans,Estedad,Tahoma,sans-serif!important;
    transition:background .16s ease,color .16s ease,transform .12s ease!important;cursor:pointer!important;overflow:visible!important;
  }
  body .jba-v15266-mobile-nav .jba-v15266-nav-item.is-active{color:var(--jba166-navy)!important;background:rgba(6,37,80,.075)!important}
  body .jba-v15266-mobile-nav .jba-v15266-nav-item:active{transform:scale(.96)!important}
  body .jba-v15266-nav-icon{display:flex!important;width:23px!important;height:23px!important;align-items:center!important;justify-content:center!important}
  body .jba-v15266-nav-icon svg{display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  body .jba-v15266-nav-icon svg path[d^="M4 4"]{fill:currentColor!important;stroke:none!important}
  body .jba-v15266-nav-label{display:block!important;max-width:100%!important;font-size:10.8px!important;font-weight:850!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body .jba-v15266-cart-badge{position:absolute!important;top:2px!important;left:calc(50% + 5px)!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border:2px solid #fff!important;border-radius:999px!important;background:#c6283d!important;color:#fff!important;font-size:9.5px!important;font-weight:950!important;line-height:1!important;z-index:2!important}

  .jba-v15266-search-overlay{
    position:fixed;inset:0;display:flex;flex-direction:column;direction:rtl;background:var(--jba166-bg);opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(16px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:1000200;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)
  }
  .jba-v15266-search-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
  .jba-v15266-search-head{display:flex;align-items:center;gap:12px;padding:16px 16px 10px;background:#fff;border-bottom:1px solid rgba(6,37,80,.08)}
  .jba-v15266-search-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}
  .jba-v15266-search-head strong{font-size:18px;color:var(--jba166-text);font-weight:950}
  .jba-v15266-search-head span{font-size:11px;color:var(--jba166-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .jba-v15266-layer-close{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:14px;background:#f0f3f8;color:var(--jba166-navy);display:flex;align-items:center;justify-content:center}
  .jba-v15266-layer-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .jba-v15266-search-form{position:relative;margin:14px 16px 6px;height:54px;display:flex;align-items:center;background:#fff;border:1px solid rgba(6,37,80,.12);border-radius:18px;box-shadow:0 8px 22px rgba(6,37,80,.07);overflow:hidden}
  .jba-v15266-search-form input{width:100%;height:100%;border:0!important;outline:0!important;background:transparent!important;padding:0 48px!important;color:var(--jba166-text)!important;font-size:15px!important;font-weight:700!important;box-shadow:none!important}
  .jba-v15266-search-leading{position:absolute;right:16px;width:23px;height:23px;color:var(--jba166-navy);display:flex}
  .jba-v15266-search-leading svg,.jba-v15266-search-clear svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .jba-v15266-search-clear{position:absolute;left:8px;width:38px;height:38px;border:0;border-radius:12px;background:#eef2f7;color:#8390a4;display:none;align-items:center;justify-content:center}
  .jba-v15266-search-clear.is-visible{display:flex}
  .jba-v15266-search-state{min-height:28px;padding:3px 20px;color:var(--jba166-muted);font-size:11.5px;display:flex;align-items:center;gap:8px}
  .jba-v15266-mini-loader{width:15px;height:15px;border:2px solid rgba(6,37,80,.18);border-top-color:var(--jba166-navy);border-radius:50%;animation:jba166spin .7s linear infinite}
  @keyframes jba166spin{to{transform:rotate(360deg)}}
  .jba-v15266-search-results{flex:1;overflow:auto;padding:4px 14px 28px;-webkit-overflow-scrolling:touch}
  .jba-v15266-search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;margin:0 0 9px;padding:11px 14px;background:#fff;border:1px solid rgba(6,37,80,.08);border-radius:18px;color:var(--jba166-text)!important;text-decoration:none!important;box-shadow:0 6px 18px rgba(6,37,80,.055)}
  .jba-v15266-search-result:active{transform:scale(.985);background:#f9fbff}
  .jba-v15266-search-result-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
  .jba-v15266-search-result-copy strong{font-size:14px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .jba-v15266-search-result-copy small{font-size:10.5px;color:var(--jba166-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .jba-v15266-search-result-arrow{display:flex;flex:0 0 30px;width:30px;height:30px;align-items:center;justify-content:center;border-radius:10px;background:rgba(6,37,80,.06);color:var(--jba166-navy)}
  .jba-v15266-search-result-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1)}

  .jba-v15266-filter-trigger{position:fixed;right:14px;bottom:calc(var(--jba166-nav-h) + env(safe-area-inset-bottom,0px) + 12px);height:46px;padding:0 17px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--jba166-navy),var(--jba166-navy2));color:#fff;display:flex;align-items:center;gap:8px;box-shadow:0 10px 26px rgba(6,37,80,.28);z-index:999700}
  .jba-v15266-filter-trigger span{display:flex;width:20px;height:20px}.jba-v15266-filter-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .jba-v15266-filter-trigger strong{font-size:12px;font-weight:950}
  .jba-v15266-filter-sheet{position:fixed;inset:0;visibility:hidden;pointer-events:none;z-index:1000150}
  .jba-v15266-filter-sheet.is-open{visibility:visible;pointer-events:auto}
  .jba-v15266-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(4,17,42,.48);opacity:0;transition:opacity .18s ease}
  .jba-v15266-filter-sheet.is-open .jba-v15266-sheet-backdrop{opacity:1}
  .jba-v15266-sheet-panel{position:absolute;right:0;bottom:0;left:0;height:min(86vh,760px);padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -18px 50px rgba(4,17,42,.25);transform:translateY(104%);transition:transform .24s cubic-bezier(.22,.8,.26,1);overflow:hidden;display:flex;flex-direction:column;direction:rtl}
  .jba-v15266-filter-sheet.is-open .jba-v15266-sheet-panel{transform:none}
  .jba-v15266-sheet-handle{width:44px;height:5px;margin:8px auto 2px;border-radius:999px;background:#d9dfe9}
  .jba-v15266-sheet-panel header{display:flex;align-items:center;justify-content:space-between;padding:9px 16px 12px;border-bottom:1px solid #edf0f5}
  .jba-v15266-sheet-panel header>div{display:flex;flex-direction:column;gap:3px}.jba-v15266-sheet-panel header strong{font-size:16px;color:var(--jba166-text);font-weight:950}.jba-v15266-sheet-panel header span{font-size:10.5px;color:var(--jba166-muted)}
  .jba-v15266-sheet-content{flex:1;overflow:auto;padding:0 12px 24px;-webkit-overflow-scrolling:touch}
  .jba-v15266-sheet-sidebar{display:block!important;float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .jba-v15266-sheet-sidebar #sidebar-flow{margin:0!important}.jba-v15266-sheet-sidebar .hide-xs{display:block!important}.jba-v15266-sheet-sidebar .visible-xs{display:block!important}
  .jba-v15266-sheet-sidebar .panel{border:1px solid #e7ebf2!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important;margin-top:12px!important}
  .jba-v15266-sheet-sidebar .panel-heading{background:#f7f9fc!important;border:0!important;padding:12px 14px!important}.jba-v15266-sheet-sidebar .panel-title{font-size:13px!important;color:var(--jba166-text)!important;font-weight:900!important}
  .jba-v15266-sheet-sidebar .panel-body{padding:6px 10px!important}

  .jba-v15266-sticky-buy{position:fixed;right:10px;left:10px;bottom:calc(var(--jba166-nav-h) + env(safe-area-inset-bottom,0px) + 8px);height:64px;padding:7px;display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.97);border:1px solid rgba(6,37,80,.10);border-radius:20px;box-shadow:0 12px 34px rgba(6,37,80,.20);backdrop-filter:blur(12px);z-index:999720;opacity:0;visibility:hidden;transform:translateY(16px);transition:.18s ease}
  .jba-v15266-sticky-buy.is-visible{opacity:1;visibility:visible;transform:none}
  .jba-v15266-sticky-price{flex:1;min-width:0;padding:0 8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;direction:rtl}
  .jba-v15266-sticky-price span{font-size:9.5px;color:var(--jba166-muted)}.jba-v15266-sticky-price strong{max-width:100%;font-size:12.5px;color:var(--jba166-text);font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .jba-v15266-sticky-action{flex:0 0 52%;height:50px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--jba166-navy),var(--jba166-navy2));color:#fff;font-size:12.5px;font-weight:950;box-shadow:0 8px 18px rgba(6,37,80,.22)}
  .jba-v15266-sticky-action:active{transform:scale(.98)}
  body:has(.jba-v15266-sticky-buy.is-visible) .jba-v15266-filter-trigger{display:none!important}

  @media (prefers-reduced-motion:reduce){.jba-v15266-search-overlay,.jba-v15266-sheet-panel,.jba-v15266-sheet-backdrop,.jba-v15266-sticky-buy{transition:none!important}}
}
@media (min-width:901px) and (pointer:fine){.jba-v15266-search-overlay,.jba-v15266-filter-sheet,.jba-v15266-filter-trigger,.jba-v15266-sticky-buy{display:none!important}}

/* JBA v16.11.0 — mobile filter sheet content and floating-control spacing. */
@media (max-width:900px), (pointer:coarse){
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter.jba-v15266-sheet-sidebar{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    float:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:12px 0 18px!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
    border:0!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:none!important;
    z-index:auto!important;
  }
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter.jba-v15266-sheet-sidebar > .jba-adv-sidebar-head{
    display:none!important;
  }
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter.jba-v15266-sheet-sidebar > .jba-adv-sidebar-body{
    display:block!important;
    width:100%!important;
    max-height:none!important;
    margin:0!important;
    padding:12px!important;
    overflow:visible!important;
    border:1px solid #e4eaf3!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#fff,#fbfcff)!important;
    box-shadow:0 8px 24px rgba(6,37,80,.07)!important;
  }
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter .jba-side-filter-row,
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter .jba-side-filter-prices,
  .jba-v15266-sheet-content > #jba-adv-sidebar-filter .jba-side-filter-actions{
    width:100%!important;
    max-width:none!important;
  }
  body.jba-v16110-has-filter-sheet #jba-v137-backtop{
    right:16px!important;
    left:auto!important;
    bottom:calc(164px + env(safe-area-inset-bottom,0px))!important;
  }
}
