/*
 * === produtos.css ===
 * Estilo visual da página de produtos da loja Valhalla.
 * Inclui botões de tamanho, caixas de seleção de tamanhos adicionais,
 * layout responsivo e efeitos visuais (hover, foco, destaque).
 */


main {
 text-align: center;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  background-color: #0a0a0a;
  color: #f5f5f5;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  background-color: #111;
}

header nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
}

.produto-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  gap: 2rem;
}

.imagem-produto {
  flex: 1;
  min-width: 300px;
}

.imagem-produto img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
  margin-top: 9vh;
}

.imagem-produto img:hover {
  transform: scale(1.1);
}

.detalhes-produto {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preco {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8a2be2;
}

.tamanhos button {
  background-color: transparent;
  border: 2px solid #8a2be2;
  color: #fff;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.tamanhos button:hover {
  background-color: #8a2be2;
}

input[type="text"], input[type="number"] {
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #111;
  color: #fff;
  height: auto;
  margin-right: 204px;
  margin-left: 207px;
}

button.comprar {
  background-color: #8a2be2;
  border: none;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button.comprar:hover {
  background-color: #5f19b7;
}

.tamanhos-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tamanhos-extra select {
  padding: 0.5rem;
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  flex: 1 1 100px;
}




/* Neon e hover para botões */
button, .btn-finalizar, .btn-tamanho, .btn-ver-produto {
  background: linear-gradient(90deg, #00f0ff, #7f00ff);
  
}

button:hover, .btn-finalizar:hover, .btn-tamanho:hover, .btn-ver-produto:hover {
  background: linear-gradient(90deg, #7f00ff, #00f0ff);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(127, 0, 255, 0.7);
}

/* Tamanho botão */
.btn-tamanho {
  padding: 8px 14px;
  font-size: 0.9em;
}

.tamanhos button.selecionado {
    background-color: #4CAF50;
    color: #ff3b4e;
    font-weight: bold;
    box-shadow: 0 0 10px #f5f5f5;
}


.tamanhos-extras select:focus {
  border-color: #8a2be2;
  box-shadow: 0 0 8px #8a2be2;
  outline: none;
  font-weight: bold;
}


/* Estilização para as caixas de seleção de tamanhos extras */
.tamanhos-extras select {
  padding: 0.5rem;
  background-color: #0a0a0a;
  color: #fff;
  border: 2px solid #8a2be2;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.tamanhos-extras select:focus {
  outline: none;
  border-color: #b565ff;
  box-shadow: 0 0 10px #8a2be2;
}



/* Estilo para os selects de tamanhos extras */
.tamanhos-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-start;
}

.tamanhos-extras select {
  background: linear-gradient(90deg, #00ffff, #8a2be2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  appearance: none;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  transition: box-shadow 0.3s ease;
}

.tamanhos-extras select:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}


/* Estilo aplicado diretamente à classe dos selects adicionais */
.tamanho-extra-select {
  background: linear-gradient(90deg, #00ffff, #8a2be2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  appearance: none;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  transition: box-shadow 0.3s ease;
  flex: 1 1 120px;
}

.tamanho-extra-select:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}


/* Estilo corrigido para os selects de tamanhos extras (classe correta do JS: tamanho-extra) */
.tamanho-extra {
    background: linear-gradient(90deg, #00ffff, #8a2be2);
    color: #282828;
    padding: 4px 8px;
    border-radius: -21px;
    border: none;
    font-weight: bold;
    appearance: none;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    transition: box-shadow 0.3sease;
    flex: -3 3 91px;
}

button, .btn-finalizar, .btn-tamanho, .btn-ver-produto {
  background: linear-gradient(90deg, #00f0ff, #7f00ff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.tamanho-extra:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}


/* Organizar tamanhos extras lado a lado */
#tamanhosExtrasContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-start;
}



@media only screen and (max-width: 768px) {
  input[type="text"], input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 7px;
    background-color: #111;
    color: #fff;
    height: auto;
    margin: 10px auto;
    width: 80%;
    text-align: center;
    display: block;
  }
}
