/* Estilo do Ícone do Carrinho */
.carrinho-icon {
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 16px;
  display: inline-block;
  margin-right: 20px;
  z-index: 10000;
}

.carrinho-icon img {
  width: 45px;
  height: 45px;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid var(--main-color);
  background-color: var(--text-color);
}

/* Estilo do Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.modal-conteudo {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
}

.modal h2 {
  margin-top: 6px;
  margin-bottom: 8px;
}

.modal ul {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.modal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

.fechar {
  color: #1d1d1d;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 30rem;
  transition: 0.2s;
  width: 1.8rem;
  height: 1.8rem;
  text-align: center;
  line-height: 1.8rem;
  border-radius: 4px;
}

.fechar:hover,
.fechar:focus {
  transition: 0.3s;
  background-color: var(--main-color);
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

.remover {
  color: var(--main-color);
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 1rem;
  background: none;
  border: none;
}

/* Estilo da Notificação Toast */
.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #caffdc;
  color: #1e503d;
  border-left: 4px solid #088b4a;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 200;
  right: 0.6rem;
  top: 7rem;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

#carrinho-itens-modal img {
  width: 78px;
}

/* Estilo do Badge (Número de Itens no Carrinho) */
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

/* Botão Finalizar Compra */
.finalizarCompra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.finalizarCompra button {
  padding: 10px 20px;
  background-color: var(--main-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.3s;
}


.finalizarCompra button:hover {
    background-color: var(--text-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}