@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");

/* Cores e fonte da Loja Silva */

:root {
  --fonte: "Lora", Georgia, serif;
  --texto: #292623;
  --texto-suave: #625b55;
  --bege: #faf7f2;
  --bege-destaque: #f5eee5;
  --dourado: #79591f;
  --borda: #e8e3dd;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
}

/* Cabeçalho e logo */

.cabecalho {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--borda);
}

.cabecalho img {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto;
}

.cabecalho p {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Página inicial */

.capa {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background-color: var(--bege);
}

.texto-capa {
  align-self: center;
  padding: 32px clamp(24px, 7vw, 112px);
}

.texto-capa h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 400;
  line-height: 1.12;
}

.texto-capa p {
  max-width: 38ch;
  margin: 20px 0 0;
  color: var(--texto-suave);
}

/* Carrossel de fotos da capa */

.carrossel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #eee8e0;
}

.foto-capa {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c8bda9;
  border-radius: 50%;
  background-color: #ffffffeb;
  color: var(--texto);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.seta:hover {
  background-color: #ffffff;
}

.anterior {
  left: 12px;
}

.proxima {
  right: 12px;
}

.contador {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 16px;
  background-color: #ffffffeb;
  color: var(--texto);
  font-size: 12px;
}

/* Botões e links */

.botao-catalogo {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 4px;
  background-color: var(--texto);
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.botao-catalogo:hover {
  background-color: #403a35;
}

.voltar {
  display: inline-block;
  color: var(--texto-suave);
  text-underline-offset: 3px;
}

/* Catálogo */

.catalogo {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.catalogo h1 {
  margin: 32px 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
}

.grade-vestidos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  margin-top: 28px;
}

.cartao-vestido {
  overflow: hidden;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background-color: #ffffff;
}

.cartao-vestido a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cartao-vestido img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background-color: var(--bege);
}

.dados-vestido {
  padding: 16px;
}

.dados-vestido h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
}

.dados-vestido p {
  margin: 8px 0 0;
  color: var(--texto-suave);
}

/* Página individual do vestido */

.pagina-vestido {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.foto-detalhe {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 0;
  border-radius: 8px;
}

.pagina-vestido h1 {
  margin: 22px 0 18px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

/* Cor e tamanho */

.informacoes-vestido {
  margin: 0;
}

.informacoes-vestido > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.informacoes-vestido dt {
  font-weight: 600;
}

.informacoes-vestido dt::after {
  content: ":";
}

.informacoes-vestido dd {
  margin: 0;
}

/* Descrição da peça */

.informacoes-vestido > .descricao-vestido {
  display: block;
  margin: 18px 0;
}

.descricao-vestido dt::after {
  content: "";
}

.descricao-vestido dd {
  margin: 4px 0 0;
  color: var(--texto-suave);
}

/* Bloco bege com o valor da locação */

.informacoes-vestido > div:last-child {
  display: block;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 8px;
  background-color: var(--bege-destaque);
}

.informacoes-vestido > div:last-child dt {
  margin-bottom: 5px;
  color: var(--dourado);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.informacoes-vestido > div:last-child dt::after {
  content: "";
}

.informacoes-vestido > div:last-child dd {
  color: var(--texto);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.informacoes-vestido > div:last-child strong {
  font-weight: inherit;
}

/* Mensagem de compra e botão do WhatsApp */

.mensagem-compra {
  margin: 14px 0 0;
  color: var(--texto-suave);
  font-size: 15px;
  line-height: 1.6;
}

.contato-vestido {
  display: block;
  width: 100%;
  margin-top: 18px;
  font-size: 16px;
}

/* Ajustes para celular */

@media (max-width: 700px) {
  .capa {
    grid-template-columns: 1fr;
  }

  .texto-capa {
    padding: 32px 24px;
  }

  .catalogo {
    padding: 24px 18px 40px;
  }

  .pagina-vestido {
    padding: 20px 18px 40px;
  }
}