
/* BOTÃO FLUTUANTE DO CARRINHO */

.botao-flutuante-carrinho {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 54px;
  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;

  background: #735642;
  color: #ffffff;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 5px 18px rgba(45, 30, 20, 0.25);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.botao-flutuante-carrinho:hover {
  background: #5d4433;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(45, 30, 20, 0.3);
}

.botao-flutuante-carrinho:focus-visible {
  outline: 3px solid #b58b68;
  outline-offset: 4px;
}

.icone-flutuante-carrinho {
  font-size: 1.25rem;
  line-height: 1;
}

.contador-flutuante-carrinho {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  height: 24px;
  padding: 0 5px;

  border-radius: 50px;
  background: #ffffff;
  color: #735642;

  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ADAPTAÇÃO PARA CELULARES */

@media (max-width: 600px) {
  .botao-flutuante-carrinho {
    right: 14px;
    bottom: 18px;
    min-height: 50px;
    padding: 11px 15px;
    gap: 8px;
    font-size: 0.9rem;
  }

  .icone-flutuante-carrinho {
    font-size: 1.2rem;
  }
}

/* RESPEITA A PREFERÊNCIA POR MENOS ANIMAÇÃO */

@media (prefers-reduced-motion: reduce) {
  .botao-flutuante-carrinho {
    transition: none;
  }
}
