/* Anahata v2 — nav icons (the tab bar's Home / Cart / Me as header icons). */

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--a-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-icons__item {
  position: relative;
  display: flex;
  padding: var(--a-space-2);
  color: var(--a-ink-slate);
  text-decoration: none;
}

/* the lit one: a short rule under the icon, like v1's current-page cue */
.nav-icons__item.is-active::after {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
}

.nav-icons__count {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--a-space-1);
  border-radius: var(--a-radius-round);
  background: var(--a-danger);
  color: var(--a-surface);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-caption);
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nav-icons__count[hidden] {
  display: none;
}

.nav-icons__item:focus-visible {
  outline: 2px solid var(--a-ink);
  outline-offset: 2px;
}
