/* =========================================================
   DIPAYUDA - MOBILE BOTTOM NAV (Professional & Premium)
   Loaded AFTER style.css (see layout.php) so it replaces
   every older bottom-nav version. 5 items: Home, Stores, Products, Messages, Profile.
   Style: bar stuck to the bottom of the screen, rounded top corners, semi-transparent
   white background (blur), thin 22px stroke icons, active item = a soft green "pill"
   behind the icon + bold label. No indicator line.
   ========================================================= */
@media(max-width:800px){
  nav.bottom-nav.mobile-only{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    width:100%!important;max-width:none!important;transform:none!important;
    height:calc(66px + env(safe-area-inset-bottom,0px))!important;
    padding:6px 8px env(safe-area-inset-bottom,0px)!important;gap:0!important;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch;
    background:rgba(255,255,255,.94)!important;
    -webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);
    border:0!important;border-top:1px solid rgba(20,65,57,.08)!important;
    border-radius:22px 22px 0 0!important;
    box-shadow:0 -10px 30px rgba(14,56,48,.08),0 -1px 0 rgba(255,255,255,.7) inset!important;
    z-index:80;
  }
  nav.bottom-nav.mobile-only::after,nav.bottom-nav.mobile-only button::before{content:none!important;display:none!important}

  nav.bottom-nav.mobile-only button{
    position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    gap:3px!important;height:100%!important;min-height:0!important;min-width:0;padding:0!important;
    border:0;border-radius:14px!important;background:transparent!important;color:#7a8c86!important;
    font-size:11px!important;font-weight:600!important;line-height:1.1;letter-spacing:.1px;
    -webkit-tap-highlight-color:transparent;transition:color .2s ease;
  }
  nav.bottom-nav.mobile-only button .ico{
    position:relative!important;display:flex!important;align-items:center;justify-content:center;
    width:54px!important;height:30px!important;margin:0!important;border-radius:15px;
    background:transparent!important;box-shadow:none!important;color:inherit;
    transition:background-color .22s ease,transform .22s ease;
  }
  nav.bottom-nav.mobile-only button .ico svg{
    width:22px!important;height:22px!important;fill:none;stroke:currentColor;
    stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:stroke-width .2s ease;
  }
  nav.bottom-nav.mobile-only button span:last-child{
    max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  nav.bottom-nav.mobile-only button:active .ico{transform:scale(.92);background:var(--tint)!important}
  nav.bottom-nav.mobile-only button.active{background:transparent!important;color:var(--green-dark,var(--green))!important;font-weight:700!important}
  nav.bottom-nav.mobile-only button.active .ico{background:var(--green3)!important;color:var(--green)}
  nav.bottom-nav.mobile-only button.active .ico svg{stroke-width:2}

  /* Cart in the middle: prominent round button */
  nav.bottom-nav.mobile-only button.nav-cart{justify-content:flex-end;padding-bottom:7px!important;gap:2px!important;color:var(--green-dark,var(--green))!important}
  nav.bottom-nav.mobile-only button.nav-cart .ico{
    width:54px!important;height:54px!important;border-radius:50%;
    background:linear-gradient(145deg,var(--green) 0%,var(--green-dark,var(--green)) 100%)!important;color:#fff;
    border:4px solid #fff;box-shadow:0 10px 22px rgba(14,90,70,.34),0 2px 6px rgba(14,56,48,.14)!important;
  }
  nav.bottom-nav.mobile-only button.nav-cart .ico svg{width:23px!important;height:23px!important;stroke-width:1.9}
  nav.bottom-nav.mobile-only button.nav-cart:active .ico{background:linear-gradient(145deg,var(--green) 0%,var(--green-dark,var(--green)) 100%)!important;transform:scale(.94)}
  nav.bottom-nav.mobile-only button.nav-cart.active .ico{background:linear-gradient(145deg,var(--green-dark,var(--green)) 0%,#063d30 100%)!important;box-shadow:0 10px 22px rgba(6,61,48,.42),0 0 0 4px var(--green3)!important}
  nav.bottom-nav.mobile-only button.nav-cart .bottom-badge{top:-12px!important;left:calc(50% + 10px)!important}

  /* badge: at the icon corner */
  nav.bottom-nav.mobile-only .bottom-badge{
    position:absolute!important;top:2px!important;left:calc(50% + 8px)!important;right:auto!important;
    min-width:17px;height:17px;line-height:13px;padding:0 4px;border-radius:999px;
    font-size:10px!important;font-weight:700;text-align:center;background:#d64545;color:#fff;
    border:2px solid #fff;box-sizing:border-box;
  }

  /* content spacing & floating elements adapt to the nav height */
  .page{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  /* halaman non-.page (blog, bantuan/docs, halaman statis) juga harus lolos dari bottom nav */
  .bl-home,.bd-wrap,.docs-home,.docs-shell,.docs-shell-2{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
  .docs-wa{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  .chat-fab{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:350px){
  nav.bottom-nav.mobile-only{padding-left:4px!important;padding-right:4px!important}
  nav.bottom-nav.mobile-only button{font-size:10px!important}
  nav.bottom-nav.mobile-only button .ico{width:46px!important}
  nav.bottom-nav.mobile-only button .ico svg{width:21px!important;height:21px!important}
}
@media(prefers-reduced-motion:reduce){
  nav.bottom-nav.mobile-only button,nav.bottom-nav.mobile-only button .ico,nav.bottom-nav.mobile-only button .ico svg{transition:none}
}
