/* ========================================
   COMPONENTES GENÉRICOS - PEDIDOS
   Estilos reutilizáveis para badges e links de pedidos
   ======================================== */

/* Link de Pedidos */
.pedidos-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  font-size: 2.1rem;
  padding: 0 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: transform 0.2s;
}

.pedidos-link:hover {
  transform: scale(1.1);
}

.pedidos-link.has-pedidos {
  animation: pedidosBounce 2s ease-in-out infinite;
}

@keyframes pedidosBounce {
  0%, 100% { transform: translateY(0); }
  10% { transform: translateY(-8px); }
  20% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
  40% { transform: translateY(0); }
}

/* Badge de Pedidos */
.pedidos-badge {
  position: absolute;
  top: -1px;
  right: 36px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 1.69rem;
  font-weight: 700;
  width: fit-content;
  height: fit-content;
  border-radius: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Wrapper de Pedidos */
.pedidos-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsivo */
@media (max-width: 768px) {
  .pedidos-link {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .pedidos-badge {
    font-size: 1.4rem;
    width: fit-content;
    height: fit-content;
    top: -1px;
    right: 36px;
  }
}
