/* ============================================================
   Aush — Mobile Bottom Navigation
   Modern Crystal Glass Dock (<= 767.98px)
   ============================================================ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--color-bg-white) 94%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 4px 8px;
}

.mobile-bottom-nav__item {
  flex: 1;
}

.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px 4px;
  color: var(--color-text-light);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.mobile-bottom-nav__link svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: transform 0.2s var(--ease-out), stroke 0.2s var(--ease-out);
}

.mobile-bottom-nav__link.is-active {
  color: var(--color-accent);
}

.mobile-bottom-nav__link.is-active svg {
  stroke: var(--color-accent);
  transform: translateY(-2px);
}

.mobile-bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 163, 255, 0.4);
}

.mobile-bottom-nav__badge[hidden] {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0));
  }

  .wa-fab {
    bottom: calc(68px + env(safe-area-inset-bottom, 0)) !important;
  }

  /* Account + Cart in the top header duplicate the bottom dock
     (Account, Cart) that appears at this same breakpoint — drop
     them from the top bar on mobile only. */
  .header-actions {
    display: none;
  }
}
