

/* CONTAINER FIXO */
.floating-menu-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

/* BOTÃO PEÇA AGORA */
.floating-menu-button {
  background-color: #EF381A;
  color: #F9F0D5;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 20px;
  font-family: var(--font-primary);
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.floating-menu-button:hover {
  transform: scale(1.1);
}

/* BARRA RETA EXPANDÍVEL */
.floating-menu-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
  background-color: #EF381A;
  transition: height 0.4s ease;
  z-index: 998;
}

/* MENU INTERNO - agora centralizado com largura mínima */
.floating-menu-inner {
  display: flex;
  justify-content: center; /* centraliza os itens */
  align-items: center;
  gap: 32px;               /* distância fixa entre os ícones */
  height: 100%;
  max-width: 480px;        /* largura máxima do grupo de ícones */
  margin: 0 auto;
  padding: 0 20px;
}

/* ITENS */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F4E3AE;           /* cor inicial */
  font-family: var(--font-primary);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease; /* animação suave */
}

.menu-item img {
fill: #F4E3AE;                 /* muda a cor do texto */
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* HOVER nos itens */
.menu-item:hover {
  color: #92402D;                  /* muda a cor do texto */
  transform: translateY(-4px) scale(1.05); /* sobe e aumenta levemente */
}

.menu-item:hover img {
  fill: #92402D                /* muda a cor do texto */
  transform: translateY(-4px) scale(1.05); /* aplica também na imagem */
}

/* BOTÃO X - maior e na mesma posição do botão */
.floating-menu-close {
  position: absolute;
  top: -12px;   /* ajusta para ficar centralizado sobre a barra expandida */
  right: 0;     /* mesma posição horizontal do botão PEÇA AGORA */
  width: 80px;
  height: 80px;
  background-color: #EF381A;
  border: none;
  border-radius: 50%;
  font-size: 36px;
  color: #F9F0D5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* CLASSE ATIVA - barra abre */
.floating-menu-container.active .floating-menu-bar {
  height: 120px; /* maior para cobrir o botão */
}

/* MOBILE — close button sem fundo (pra não cobrir o icone "Retirada")
   + bar com padding lateral pros 4 ícones respirarem */
@media (max-width: 768px) {
  .floating-menu-close {
    top: 4px;
    right: 4px;
    width: 48px;
    height: 48px;
    background-color: transparent;
    box-shadow: none;
    font-size: 32px;
    z-index: 2;
  }
  .floating-menu-inner {
    gap: 16px;
    padding: 0 56px 0 12px; /* deixa espaço pro X à direita */
  }
  .floating-menu-container.active .floating-menu-bar {
    height: 108px;
  }
  .menu-item { font-size: 12px; }
  .menu-item img { width: 28px; height: 28px; }
}

/* Animação de pulsar */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.05);
  }
}

/* Aplica ao botão PEÇA AGORA */
.floating-menu-button {
  animation: heartbeat 1.2s infinite ease-in-out;
  transform-origin: center;
}

/* Esconde botão PEÇA AGORA quando o menu superior abre */
.menu-open .floating-menu-button {
  display: none;
}

/* cursor padrão */
body {
  cursor: url('../img/cursor/cursor_point.png'), auto;
}

/* cursor para todos elementos clicáveis */
a,
button,
input[type="button"],
input[type="submit"],
.menu-category,
.floating-menu-button,
.floating-menu-close,
.product-card .order-button {
  cursor: url('../img/cursor/cursor_hand.png'), pointer;
}

/* opcional: força também em hover */
a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.menu-category:hover,
.floating-menu-button:hover,
.floating-menu-close:hover,
.product-card .order-button:hover {
  cursor: url('../img/cursor/cursor_hand.png'), pointer;
}
