/* GAINVO Storefront v0.10.43 — authoritative professional bottom navigation
   One positioning model only. Loaded after all legacy/page-specific layers. */

@media (max-width:759px){
  :root{
    --gv-bottom-nav-width:520px;
    --gv-bottom-nav-gutter:12px;
    --gv-bottom-nav-gap:8px;
    --gv-bottom-nav-radius:22px;
    --gv-bottom-nav-height:70px;
  }

  /* Reserve content below every main screen so the floating card never covers content. */
  .main{
    padding-bottom:calc(98px + env(safe-area-inset-bottom))!important;
  }

  .bottom-nav,
  body:has(.home-v098.active) .bottom-nav,
  body:has(.home-v0911.active) .bottom-nav,
  body:has(.screen[data-screen="home"].active) .bottom-nav,
  body:has(.screen[data-screen="search"].active) .bottom-nav,
  body:has(.screen[data-screen="shops"].active) .bottom-nav,
  body:has(.screen[data-screen="orders"].active) .bottom-nav,
  body:has(.screen[data-screen="account"].active) .bottom-nav,
  body[data-active-screen="shop"] .bottom-nav{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    transform:translateX(-50%)!important;
    width:calc(100% - (var(--gv-bottom-nav-gutter) * 2))!important;
    max-width:var(--gv-bottom-nav-width)!important;
    min-height:var(--gv-bottom-nav-height)!important;
    height:auto!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:3px!important;
    margin:0!important;
    padding:6px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(145,161,176,.28)!important;
    border-radius:var(--gv-bottom-nav-radius)!important;
    background:rgba(255,255,255,.94)!important;
    -webkit-backdrop-filter:blur(22px) saturate(1.25)!important;
    backdrop-filter:blur(22px) saturate(1.25)!important;
    box-shadow:0 12px 34px rgba(13,35,60,.16),0 2px 8px rgba(13,35,60,.06)!important;
    overflow:hidden!important;
    z-index:70!important;
  }

  .bottom-nav .nav-item{
    position:relative!important;
    min-width:0!important;
    width:100%!important;
    min-height:56px!important;
    margin:0!important;
    padding:6px 2px 5px!important;
    border:0!important;
    border-radius:16px!important;
    background:transparent!important;
    color:#65798d!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    text-align:center!important;
    line-height:1!important;
    box-sizing:border-box!important;
    transition:background-color .16s ease,color .16s ease,transform .16s ease!important;
    -webkit-tap-highlight-color:transparent;
  }

  .bottom-nav .nav-item .nav-icon{
    width:23px!important;
    height:23px!important;
    flex:0 0 23px!important;
    display:grid!important;
    place-items:center!important;
  }
  .bottom-nav .nav-item .nav-icon svg{
    width:23px!important;
    height:23px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.85!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  .bottom-nav .nav-item small{
    display:block!important;
    max-width:100%!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.08!important;
    font-weight:700!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .bottom-nav .nav-item.active{
    color:#087f73!important;
    background:#e8f6f3!important;
    box-shadow:inset 0 0 0 1px rgba(8,127,115,.05)!important;
  }
  .bottom-nav .nav-item.active .nav-icon svg{
    stroke-width:2.05!important;
  }
  .bottom-nav .nav-item[data-nav="home"].active .nav-icon svg{
    fill:#087f73!important;
    stroke:#087f73!important;
  }
  .bottom-nav .nav-item:active{transform:scale(.97)!important}
  .bottom-nav .nav-item:focus-visible{
    outline:2px solid rgba(8,127,115,.32)!important;
    outline-offset:-2px!important;
  }

  html[data-theme="dark"] .bottom-nav,
  html[data-theme="dark"] body:has(.home-v098.active) .bottom-nav,
  html[data-theme="dark"] body:has(.home-v0911.active) .bottom-nav,
  html[data-theme="dark"] body:has(.screen[data-screen="search"].active) .bottom-nav,
  html[data-theme="dark"] body:has(.screen[data-screen="shops"].active) .bottom-nav,
  html[data-theme="dark"] body:has(.screen[data-screen="orders"].active) .bottom-nav,
  html[data-theme="dark"] body:has(.screen[data-screen="account"].active) .bottom-nav,
  html[data-theme="dark"] body[data-active-screen="shop"] .bottom-nav{
    background:rgba(10,20,29,.94)!important;
    border-color:rgba(113,139,157,.28)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.42),0 2px 8px rgba(0,0,0,.22)!important;
  }
  html[data-theme="dark"] .bottom-nav .nav-item{color:#8fa2b1!important;background:transparent!important}
  html[data-theme="dark"] .bottom-nav .nav-item.active{color:#67d7c8!important;background:#123a34!important}
  html[data-theme="dark"] .bottom-nav .nav-item[data-nav="home"].active .nav-icon svg{fill:#67d7c8!important;stroke:#67d7c8!important}
}

@media (max-width:359px){
  :root{--gv-bottom-nav-gutter:8px;--gv-bottom-nav-radius:20px}
  .bottom-nav{padding:5px!important;gap:1px!important}
  .bottom-nav .nav-item{min-height:54px!important;padding-inline:1px!important;border-radius:14px!important}
  .bottom-nav .nav-item .nav-icon,.bottom-nav .nav-item .nav-icon svg{width:22px!important;height:22px!important}
  .bottom-nav .nav-item small{font-size:10px!important}
}

@media (min-width:430px) and (max-width:759px){
  :root{--gv-bottom-nav-gutter:16px;--gv-bottom-nav-width:540px}
  .bottom-nav .nav-item small{font-size:11.5px!important}
}

@media (min-width:760px){
  /* Desktop/tablet navigation remains governed by its existing layout. */
}

@media (prefers-reduced-motion:reduce){
  .bottom-nav .nav-item{transition:none!important}
}
