/* ==========================================================================
   MZF Store — Mobile Bottom Navigation (app-style)
   ========================================================================== */

/* Only visible on mobile (<= 768px) */
.mzf-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  /* Safe area for iOS notch */
}

.mzf-bottom-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 600px;
  margin-inline: auto;
}

.mzf-bottom-nav__item {
  flex: 1 1 0;
  text-align: center;
}

.mzf-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  transition: color .18s ease, transform .18s ease;
  position: relative;
}

.mzf-bottom-nav__link:active {
  transform: scale(0.94);
}

.mzf-bottom-nav__link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 2;
}

/* Active state */
.mzf-bottom-nav__link.is-active,
.mzf-bottom-nav__link:hover {
  color: var(--brand);
}

/* Badge (cart count) */
.mzf-bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(10px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(190, 34, 46, .4);
}

.mzf-bottom-nav__badge[data-empty="1"] {
  display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mzf-bottom-nav {
    display: block;
  }

  /* Add padding to body so content doesn't hide behind the nav */
  body {
    padding-bottom: 68px;
  }

  /* Hide desktop burger on mobile when bottom nav is active */
  .mzf-burger {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .mzf-bottom-nav__link {
    font-size: .68rem;
    gap: 3px;
  }
  .mzf-bottom-nav__link svg {
    width: 22px;
    height: 22px;
  }
}
