/* Container detalhes: imagem e descrição lado a lado */
.detalhes {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  margin: 0 auto;
  max-width: 900px;
  padding: 1rem;
  box-sizing: border-box;
  text-align: left;
}


/* Imagem do produto */
.detalhes figure {
  flex: 0 0 60%; /* ou 55% se quiser mais imagem */
  margin: 0;
  max-width: none; /* permite que cresça com o flex */
}

.detalhes img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}

/* Descrição do produto */


.detalhes-texto {
  flex: 1 1 70%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.5rem 0; /* Opcional */
}

/* Texto fluido */
.detalhes-texto p {
  font-size: 18px;
  line-height: 1.6;
  color: #575657;
  margin: 0 0 1.2rem 0;
  white-space: pre-line;
  text-align: left;
}

/* Container preço e botões */
.comprainfo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #fff;
  margin: 2rem auto;
  padding: 1rem 2rem;
  border-radius: 10px;
  border: 1px solid #9400D3;
  box-shadow: 0 5px 8px rgba(220, 76, 233, 0.2);
  max-width: 400px;
  box-sizing: border-box;
}

/* Preço */
.comprainfo span {
  font-size: 2rem;
  font-weight: 700;
  color: #cd8df4;
  white-space: nowrap;
}

/* Botões de compra */
.comprarbotoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1 1 200px;
}

/* Controles de quantidade */
.quantidade {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.quantidade button {
  display: inline-block;
  padding: 12px 32px;
  background: #cd8df4;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  user-select: none;
}

.quantidade button:hover {
  background-color: #b672e0;
  outline: none;
}

.quantidade input {
  width: 50px;
  text-align: center;
  font-size: 1rem;
  padding: 0.3rem;
  border: 1px solid #cd8df4;
  border-radius: 6px;
}

.quantidade input:focus {
  outline: none;
  border-color: #b672e0;
  box-shadow: 0 0 5px rgba(182, 114, 224, 0.5);
}

/* Botão adicionar ao carrinho */
.comprarbotoes button[type="submit"] {
  background-color: #cd8df4;
  color: #fff5e9;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 18px;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
}

.comprarbotoes button[type="submit"]:hover,
.comprarbotoes button[type="submit"]:focus {
  background-color: #b672e0;
  outline: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .detalhes {
    flex-direction: column;
    max-width: 100%;
    padding: 1rem;
  }

  .detalhes figure,
  .detalhes p {
    flex: 1 1 100%;
  }

  .comprainfo {
    max-width: 100%;
    flex-direction: column;
    padding: 1rem;
  }

  .comprarbotoes {
    width: 100%;
  }

  .quantidade input {
    width: 60px;
  }
}

.produto-indisponivel {
  text-align: center !important;
  color: #ff4d4d !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  margin: 1rem !important;
}

.inf_importantes {
  font-family: 'Open Sauce One', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #cd8df4;
  margin-bottom: 0.5rem;
  display: block;
  text-align: left;
}

.lista-importante {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0 0;
  color: #575657;
  font-size: 18px;
  line-height: 1.5;
  list-style-type: disc;
}

.lista-importante li {
  margin-bottom: 0.8rem;
}

.informacoes{
  margin-top: 20px;
}