#btnAbrirCarrinho {
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.item-carrinho {
  border: 1px solid rgb(105, 105, 105);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px -10px rgba(0,0,0,0.75);
}

/* Estilo principal do carrinho lateral */
.carrinho-lateral {
  position: fixed;
  top: 0;
  right: -100%;
  width: 550px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  transition: right 0.5s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.carrinho-lateral.aberto {
  right: 0;
}

.carrinho-lateral.fechado {
  right: -100%;
}


.carrinho-corpo {
  flex: 1;
  overflow-y: auto;
}

.carrinho-corpo span {
  color: #5f5f5f;
}

.carrinho-header {
  border-bottom: 1px solid #dee2e6;
  color: white;
  padding: 50px;
}

.carrinho-header button {
    color: white;
}

.carrinho-footer {
  background-color: #fff;
  padding: 30px;
}

/* Responsividade */
@media (max-width: 768px) {
  .carrinho-lateral {
    width: 100%;
  }

  #btnAbrirCarrinho {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .carrinho-lateral {
    width: 100%;
  }

  .carrinho-header,
  .carrinho-footer,
  .carrinho-corpo {
    padding: 1rem;
  }
}

/* === Overlay escuro === */
.overlay-carrinho {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6); /* Fundo escuro */
  z-index: 998; /* abaixo do carrinho (9999) */
  display: none;
  transition: opacity 0.6s ease;
}

