/* ================================
   SESSE & CO — Mobile Bottom Navigation
   ================================ */

.mobile-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: var(--white);
  border-top: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 -4px 24px rgba(155, 27, 27, 0.10);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  align-items: stretch;
  justify-content: space-around;
}

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

  /* Push body content up so it doesn't hide behind nav */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* ── Nav Items ── */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 8px 4px;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.2s ease;
}

.mobile-nav-item span:not(.mobile-cart-badge) {
  font-size: 0.65rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Active State ── */
.mobile-nav-item.active,
.mobile-nav-item.active i {
  color: var(--red);
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--red);
  border-radius: 0 0 4px 4px;
}

/* ── Tap feedback ── */
.mobile-nav-item:active {
  transform: scale(0.92);
}

/* ── Cart badge ── */
.mobile-cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(155, 27, 27, 0.35);
  pointer-events: none;
}

/* ── WhatsApp item — accent rouge doux ── */
.mobile-nav-wa {
  color: var(--red);
}

.mobile-nav-wa i {
  color: var(--red);
}

.mobile-nav-wa:hover i,
.mobile-nav-wa:focus i {
  color: var(--red-mid);
}
