/* ============================================
   BOTTOM NAVIGATION — Expanding Pill Style
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 72px;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-3);
}

/* --- Each Tab --- */
.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  color: #aaaaaa;
  text-decoration: none;
  position: relative;
  border-radius: 999px;
  padding: 0 12px;
  min-width: 44px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* --- Inactive circles --- */
.nav-item:not(.active) {
  background: #F5F5F5;
  width: 44px;
  padding: 0;
  justify-content: center;
  align-items: center;
}

/* --- Active pill --- */
.nav-item.active {
  background: #FF1E8C;
  color: #ffffff;
  padding: 0 20px;
  box-shadow: 0 4px 16px rgba(255, 30, 140, 0.4);
}

/* --- Icon --- */
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}

/* --- Label --- */
.nav-label {
  font-size: 13px;
  font-weight: 700;
  font-family: sans-serif;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Show label only on active tab */
.nav-item.active .nav-label {
  max-width: 80px;
  opacity: 1;
}

/* --- Cart Badge --- */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #E03131;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  font-family: sans-serif;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  z-index: 10;
}

.nav-item.active .cart-badge {
  border-color: #FF1E8C;
  top: -4px;
  right: -4px;
}

/* --- Badge Bounce --- */
.cart-badge.bounce {
  animation: badge-bounce 0.35s ease;
}

@keyframes badge-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}