/* ==========================================================================
   BOTTOM APP BAR (NAVIGATION MOBILE AU POUCE)
   ========================================================================== */

.pulsat-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--bottom-bar-height) + var(--safe-area-bottom));
  background-color: var(--color-white);
  box-shadow: var(--shadow-bottom-bar);
  border-top: 1px solid var(--gray-200);
  z-index: var(--z-bottom-bar);
  padding-bottom: var(--safe-area-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 1024px) {
  .pulsat-bottom-bar {
    display: none; /* Invisible sur grand écran */
  }
}

.bottom-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--bottom-bar-height);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.688rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.bottom-bar-item:active {
  transform: scale(0.95);
}

.bottom-bar-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: all var(--transition-fast);
}

.bottom-bar-label {
  line-height: 1;
}

.bottom-bar-item.active {
  color: var(--pulsat-red);
  font-weight: var(--font-weight-bold);
}

.bottom-bar-item.active .bottom-bar-icon {
  transform: translateY(-1px);
}

/* Badge Panier sur la barre du bas */
.bottom-bar-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--pulsat-red);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: var(--font-weight-bold);
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--color-white);
}

.bottom-bar-item.whatsapp-tab {
  color: #128C7E;
}

.bottom-bar-item.whatsapp-tab.active {
  color: #075E54;
}
