/* ========================================
   FOOTER CLIENTE - NAVEGAÇÃO MOBILE
   Estilos dedicados para o footer do app cliente
   ======================================== */

/* ========== VARIÁVEIS DO FOOTER ========== */
:root {
  --footer-height: 70px;
  --footer-safe-area: env(safe-area-inset-bottom, 0px);
  --fab-size: 60px;
  --fab-elevation: 8px;
}

/* ========== FOOTER WRAPPER ========== */
/* Posicionamento definido em cliente_layout.css */

/* ========== FOOTER NAVIGATION (CONTEÚDO) ========== */
nav.cliente-footer {
  /* Removido position: fixed - agora está no wrapper */
  width: 100%;
  height: calc(var(--footer-height) + var(--footer-safe-area));
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 0 0.8rem;
  padding-bottom: var(--footer-safe-area);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: linear-gradient(0deg, rgb(211 208 208) 25%, #fbfbfb 100%);
  border-top: 1px dashed #fbfbfb;
  animation: fadeInFooter 0.3s ease;
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  height: var(--footer-height);
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.8rem 0;
}

.footer-nav-item:hover {
  color: var(--color-primary-hover);
}

.footer-nav-item.active {
  color: var(--color-primary);
}

.footer-nav-icon {
  font-size: 2.4rem;
  position: relative;
}

.footer-nav-label {
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Badge nos ícones do footer */
.footer-nav-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, #ef4444 0%, #961f1f 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

/* ========== CARRINHO FAB (Centro do Footer) ========== */
.footer-nav-item.cart-fab {
  position: relative;
  margin-top: calc(-1 * var(--fab-elevation) - 20px);
}

.cart-fab-button {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(25, 58, 132, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.cart-fab-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.cart-fab-button:active {
  transform: scale(0.95);
}

.cart-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ef4444 0%, #8f0d0d 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  border: 2px solid #ffffff;
}

/* ========== RESPONSIVO ========== */
@media (min-width: 768px) {
  nav.cliente-footer {
    max-width: 540px;
    margin: 0 auto;
  }
}

/* Ocultar footer quando teclado aparecer (iOS/Android) */
@media (max-height: 500px) and (orientation: landscape) {
  nav.cliente-footer {
    display: none;
  }
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
