/* =========================================================
   BOTTOM NAV MOBILE — Mundo das Compras
   Visual baseado na navegação usada no home.html
   ========================================================= */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;

  width: 100%;
  height: calc(66px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);

  display: flex;
  align-items: stretch;

  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.bottom-nav .nav-item {
  flex: 1 1 20%;
  min-width: 0;

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

  color: #666;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.bottom-nav .nav-item > i {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.bottom-nav .nav-item > span {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav .nav-item.active {
  color: #ff5a00;
}

.bottom-nav .nav-item:active {
  opacity: 0.72;
}

/* Botão central da IA */
.bottom-nav .nav-ia {
  position: relative;
  transform: translateY(-14px);
}

.bottom-nav .nav-ia .circle {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff4a00);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.35);
}

.bottom-nav .nav-ia .circle i {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.bottom-nav .nav-ia > span:last-child {
  color: #666;
}

.bottom-nav .nav-ia.active > span:last-child {
  color: #ff5a00;
}

/* Acessibilidade por teclado */
.bottom-nav .nav-item:focus-visible {
  outline: 2px solid #ff5a00;
  outline-offset: -4px;
  border-radius: 12px;
}

/* Garante espaço para a barra fixa no conteúdo da página */
body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (max-width: 360px) {
  .bottom-nav .nav-item {
    font-size: 11px;
  }

  .bottom-nav .nav-item > i {
    font-size: 21px;
  }

  .bottom-nav .nav-ia .circle {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
}
