/* ═══════════════════════════════════════════════════════════════
   KanaStore — Modular Bottom Navigation Bar
   ═══════════════════════════════════════════════════════════════ */
.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  height: calc(var(--nav-h, 60px) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line, #D4E4F2);
  box-shadow: 0 -2px 0 var(--line, #D4E4F2);
}

.bnav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--nav-h, 60px);
  max-width: 520px;
}

.bnav li {
  position: relative;
  min-width: 0;
}

.bnav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  padding: 6px 4px 4px;
  color: var(--muted, #7A9BBF);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.bnav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.bnav a[aria-current="page"] {
  color: var(--accent-d, #006DD6);
  font-weight: 800;
}

.bnav a[aria-current="page"] svg {
  fill: var(--accent-bg, #EBF5FF);
  stroke-width: 2.2;
}

.bnav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent, #0088FF);
}

.bnav li.center a {
  justify-content: flex-end;
  padding-bottom: 5px;
  color: var(--accent, #0088FF);
  font-weight: 800;
}

.bnav-fab {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent, #0088FF), var(--accent-d, #006DD6));
  border: 4px solid var(--bg, #F0F7FF);
  box-shadow: 0 8px 20px rgba(0, 136, 255, 0.38);
  transition: transform 0.15s, box-shadow 0.15s;
}

.bnav-fab svg {
  width: 21px;
  height: 21px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
}

.bnav li.center a[aria-current="page"]::before {
  display: none;
}

.bnav li.center a:active .bnav-fab {
  transform: translateX(-50%) scale(0.93);
}

@media (min-width: 600px) {
  .bnav {
    left: 50%;
    right: auto;
    width: 520px;
    transform: translateX(-50%);
  }
  .bnav ul {
    max-width: none;
  }
}
