/* ==========================
   ANDROID-STYLE BOTTOM NAV
   - icon top, label below
   - clean Material-like selection
========================== */

/* Make room so content never hides behind nav */
.container{
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

.bottomnav.anav{
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 74px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;

  padding: 10px;
  border-radius: 18px;

  background: rgba(12,18,30,.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.42);

  z-index: 9999;
}

.anav-item{
  height: 54px;
  border-radius: 16px;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);

  transition: transform .10s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.anav-item:active{
  transform: scale(.98);
}

.anav-icwrap{
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.anav-ic{
  width: 22px !important;
  height: 22px !important;
  fill: currentColor;
  display: block;
}

.anav-tx{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1;
  opacity: .95;
}

/* Active (selected) */
.anav-item.active{
  color: #3bf2b6;
  background: rgba(59,242,182,.12);
  border-color: rgba(59,242,182,.35);
  box-shadow: 0 0 0 3px rgba(59,242,182,.10);
}

/* Cart count badge */
.anav-badge{
  position:absolute;
  top: -4px;
  right: -6px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  font-size: 11px;
  font-weight: 900;
  color: #061b13;

  background: #3bf2b6;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

/* subtle top highlight */
.bottomnav.anav::before{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  top: 8px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  pointer-events:none;
}
