
:root {
  --azul: #123c79;
  --azul-escuro: #092b58;
  --laranja: #f47721;
  --fundo: #f6f8fc;
  --texto: #243247;
  --borda: #e4e9f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.cabecalho {
  background: #fff;
  border-bottom: 1px solid var(--borda);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.marca strong {
  display: block;
  color: var(--azul);
  font-size: 25px;
  letter-spacing: -1px;
}

.marca strong span {
  color: var(--laranja);
}

.marca small {
  display: block;
  font-size: 10px;
  color: #667085;
  margin-top: 3px;
}

#botaoCarrinho {
  background: #edf3fb;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 19px;
}

#contadorCarrinho {
  background: var(--laranja);
  color: white;
  border-radius: 20px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
}

#pesquisa {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 15px auto 0;
  padding: 14px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--fundo);
  outline-color: var(--azul);
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 18px 15px 40px;
  min-height: 65vh;
}

.pagina {
  display: none;
}

.pagina.ativa {
  display: block;
}

.boasVindas {
  background: var(--azul);
  color: #fff;
  padding: 32px 23px;
  border-radius: 17px;
  margin-bottom: 28px;
  border-bottom: 5px solid var(--laranja);
}

.boasVindas small {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #ffd4b7;
}

.boasVindas h1 {
  font-size: clamp(23px, 5vw, 35px);
  line-height: 1.18;
  margin: 12px 0;
  max-width: 550px;
}

.boasVindas p {
  margin: 0;
  opacity: .9;
}

h2 {
  font-size: 20px;
  color: var(--azul-escuro);
  margin: 25px 0 15px;
}

h3 {
  font-size: 15px;
  color: var(--azul-escuro);
  margin: 23px 0 12px;
}

.animais {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.animal {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 17px 5px;
  text-align: center;
  color: var(--azul);
  font-weight: bold;
}

.animal span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.animal.ativo {
  border: 2px solid var(--laranja);
  background: #fff7f1;
}

.categorias {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 13px;
  scrollbar-width: thin;
}

.categoria {
  border: 1px solid var(--borda);
  border-radius: 30px;
  background: #fff;
  color: var(--texto);
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: bold;
}

.categoria.ativa {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}

.produtos, .sugestoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cartaoProduto {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 14px;
  overflow: hidden;
  padding: 12px;
}

.imagemProduto {
  background: #f2f5f9;
  border-radius: 10px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 12px;
}

.cartaoProduto h3 {
  font-size: 13px;
  margin: 0 0 8px;
  line-height: 1.4;
}

.cartaoProduto p {
  font-size: 12px;
  color: #667085;
  margin: 0 0 13px;
}

.cartaoProduto button {
  background: var(--azul);
  color: white;
  border: 0;
  border-radius: 9px;
  width: 100%;
  padding: 11px 5px;
  font-size: 12px;
  font-weight: bold;
}

.voltar {
  background: transparent;
  color: var(--azul);
  border: 0;
  padding: 12px 0;
  font-weight: bold;
}

.detalhesProduto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: white;
  border: 1px solid var(--borda);
  border-radius: 17px;
  padding: 20px;
}

.fotoGrande {
  background: #f3f6fa;
  border-radius: 14px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 95px;
}

.observacao {
  font-size: 11px;
  color: #98a2b3;
  text-align: center;
}

.detalhesProduto h1 {
  font-size: 23px;
  color: var(--azul-escuro);
  margin-top: 5px;
}

#informacaoProduto,
#descricaoProduto {
  color: #667085;
  line-height: 1.7;
}

.opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.opcao {
  border: 1px solid var(--borda);
  border-radius: 9px;
  padding: 11px 15px;
  background: #fff;
}

.opcao.ativa {
  border: 2px solid var(--laranja);
  background: #fff7f1;
  color: var(--azul);
  font-weight: bold;
}

.quantidade {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 20px;
}

.quantidade button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #edf3fb;
  color: var(--azul);
  font-size: 22px;
}

.botaoPrincipal {
  display: block;
  width: 100%;
  background: var(--laranja);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 16px;
  font-size: 14px;
  font-weight: bold;
}

#itensCarrinho {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.itemCarrinho {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 16px;
}

footer {
  background: var(--azul-escuro);
  color: white;
  padding: 30px 20px;
  line-height: 1.8;
}

footer h2 {
  color: white;
  margin-top: 0;
}

footer a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 700px) {
  .produtos, .sugestoes {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .detalhesProduto {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .fotoGrande {
    min-height: 230px;
  }

  .boasVindas {
    padding: 26px 19px;
  }

  .animal {
    font-size: 11px;
    padding: 14px 3px;
  }

  .animal span {
    font-size: 25px;
  }
}
