@import "style-home.css";
@import "global.css";
@import "style-carrinho.css";

/* CONTÊINER DAS OPÇÕES */
.options {
  background: #fffaf7;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* TÍTULOS DAS OPÇÕES */
.options p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #5a4033;
}

/* GRUPO DE BOTÕES DE RADIO */
.botao-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ESCONDE OS RADIOS NATIVOS */
.botao-opcoes input[type="radio"] {
  display: none;
}

/* ESTILO VISUAL DOS LABELS COMO BOTÕES */
.botao-opcoes label {
  border: 1px solid #d6a77a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  background-color: #fdf1e6;
  color: #5a4033;
  transition: all 0.2s ease;
}

.botao-opcoes label:hover {
  background-color: #f1e0d2;
}


/* QUANDO O RADIO ESTÁ SELECIONADO */
.botao-opcoes input[type="radio"]:checked+label {
  background-color: #d6a77a;
  color: #fff;
  border: 1px solid #b57b50;
}

/* CHECKBOXES DE ADICIONAIS */
.options label input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #d6a77a;
}

.options label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

/* SELECT PARA BRIGADEIROS */
select#brig {
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: 1px solid #d6a77a;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  background-color: #fffaf7;
  color: #5a4033;
  width: 100%;
  max-width: 300px;
}

/* PREÇO */
#preco-calculado {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b3a3a;
  margin: 1rem 0;
}

/* BOTÃO ADICIONAR AO CARRINHO */
.produto button {
  padding: 0.75rem 1.5rem;
  background-color: #8b3a3a;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s;
}



/* MARCAÇÃO DE CHECKBOXES (como Flores, Topo) */
.options label input[type="checkbox"] {
  margin-right: 8px;
}

button {
  background: #D6A77A;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.produto-detalhe {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1rem;
}

.imagem-produto h3 {
  margin-top: 15px;
  color: #5a4033;
}

.imagem-produto img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.descricaoitem {
  font-size: smaller;
  text-transform: uppercase;
}

.texto-limite {
  max-width: 400px;
  margin: 0.5rem 0;
  /* Espaçamento interno entre os textos */
  word-wrap: break-word;
  /* Quebra se o texto for grande */
}

.detalhes-produto {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .produto-detalhe {
    flex-direction: column;
    align-items: center;
  }

  .imagem-produto {
    max-width: 100%;
    /* Permite a imagem e o texto abaixo ocuparem 100% da tela no mobile */
    padding: 0 1rem;
    /* Opcional: adiciona uma margem interna lateral para não colar na borda */
  }

  .imagem-produto img {
    width: 100%;
    height: auto;
  }

  .texto-limite {
    max-width: 100%;
  }

  .options {
    align-items: center;
  }

  .botao-opcoes {
    flex-direction: column;
    gap: 0.4rem;
  }

  select#brig {
    max-width: 100%;
  }
}