/* =====================================================================
   ESTILO — "a Lari que fez"
   Para trocar as CORES do site inteiro, mude só os valores abaixo.
   ===================================================================== */
:root {
  --fundo:        #FBF7F1; /* creme (fundo principal) */
  --fundo-2:      #F4EDE3; /* creme mais escuro (faixas) */
  --rosa:         #F3E6E4; /* rosé claro (seções rosadas) */
  --rosa-medio:   #C9A9AC; /* rosé do coração do logo (detalhes) */
  --rosa-texto:   #8A5A60; /* rosé escuro (textos em destaque) */
  --dourado:      #A9823F; /* dourado das letras nas caixas */
  --tinta:        #1F1A17; /* preto do logo (textos e botões) */
  --tinta-suave:  #5B524C; /* textos secundários */
  --papel:        #FFFFFF; /* moldura das polaroides */
  --linha:        #E6DCD0; /* bordas finas */

  --fonte-titulo: "Cormorant Garamond", Georgia, serif;
  --fonte-texto:  "Jost", system-ui, sans-serif;
  --fonte-nome:   "Allura", cursive;

  --raio: 14px;
  --sombra: 0 10px 30px rgba(31, 26, 23, .10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; font-variant-numeric: lining-nums; }
.cesta__preco, .detalhe__preco, .faixa strong { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.centro { text-align: center; }

.cursiva {
  font-family: var(--fonte-nome);
  font-weight: 400;
  color: var(--rosa-texto);
  font-size: 1.15em;
  line-height: 1;
}
.sobretitulo {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rosa-texto);
  font-weight: 500;
  margin-bottom: .8em;
}
.link { color: var(--rosa-texto); font-weight: 500; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--rosa-texto); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.5em;
  background: var(--tinta); color: #fff;
  border: 1.5px solid var(--tinta); border-radius: 999px;
  font: 500 1rem var(--fonte-texto); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.botao:hover { transform: translateY(-2px); }
.botao--pequeno { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.botao--largo { width: 100%; }
.botao--contorno { background: transparent; color: var(--tinta); }
.botao--contorno:hover { background: var(--tinta); color: #fff; }
.botao--claro { background: var(--fundo); color: var(--tinta); border-color: var(--fundo); }

.icone-whats {
  width: 1.15em; height: 1.15em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.2-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.3zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4C2.7 15.6 2.2 13.8 2.2 12 2.2 6.6 6.6 2.2 12 2.2S21.8 6.6 21.8 12 17.4 21.8 12 21.8zM20.5 3.5C18.2 1.2 15.2 0 12 0 5.4 0 .1 5.3.1 11.9c0 2.1.6 4.2 1.6 6L0 24l6.3-1.6c1.7 1 3.7 1.4 5.7 1.4 6.6 0 11.9-5.3 11.9-11.9 0-3.2-1.2-6.2-3.4-8.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.2-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.6-.3zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4C2.7 15.6 2.2 13.8 2.2 12 2.2 6.6 6.6 2.2 12 2.2S21.8 6.6 21.8 12 17.4 21.8 12 21.8zM20.5 3.5C18.2 1.2 15.2 0 12 0 5.4 0 .1 5.3.1 11.9c0 2.1.6 4.2 1.6 6L0 24l6.3-1.6c1.7 1 3.7 1.4 5.7 1.4 6.6 0 11.9-5.3 11.9-11.9 0-3.2-1.2-6.2-3.4-8.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Polaroide (moldura das fotos) ---------- */
.polaroide {
  margin: 0;
  background: var(--papel);
  padding: 10px 10px 0;
  box-shadow: var(--sombra);
  border-radius: 3px;
}
.polaroide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.polaroide figcaption {
  font-family: var(--fonte-nome);
  color: var(--dourado);
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  padding: .35em .2em .45em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .3s;
}
.polaroide figcaption.tem-nome { color: var(--rosa-texto); }

/* ---------- 1. Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 241, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo__linha { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.topo__logo img { width: 92px; }
.topo__menu { display: flex; gap: 26px; margin-left: auto; }
.topo__menu a { text-decoration: none; font-size: .95rem; color: var(--tinta-suave); }
.topo__menu a:hover { color: var(--tinta); }

/* ---------- 2. Abertura ---------- */
.abertura { padding: 56px 0 40px; overflow: hidden; }
.abertura__grade { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.abertura h1 .cursiva { display: inline-block; margin-top: .2em; font-size: 1em; }
.abertura__sub { font-size: 1.12rem; color: var(--tinta-suave); max-width: 33em; }

.nome-presente {
  margin-top: 28px; padding: 20px; max-width: 520px;
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
}
.nome-presente label { display: block; font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.nome-presente__linha { display: flex; gap: 10px; }
.nome-presente input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px;
  border: 1.5px solid var(--linha); border-radius: 999px; background: var(--fundo);
  font: 400 1.05rem var(--fonte-texto); color: var(--tinta);
}
.nome-presente input:focus { outline: none; border-color: var(--rosa-texto); }
.nome-presente__dica { font-size: .88rem; color: var(--tinta-suave); margin: 10px 0 0; }

.abertura__fotos { position: relative; height: 540px; }
.abertura__fotos .polaroide { position: absolute; width: 46%; }
.polaroide--a { left: 2%;  top: 40px;  transform: rotate(-6deg); }
.polaroide--b { left: 30%; top: 0;     transform: rotate(3deg); z-index: 2; }
.polaroide--c { right: 0;  top: 150px; transform: rotate(7deg); }

.faixa {
  list-style: none; margin: 48px 0 0; padding: 18px 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  text-align: center; font-size: .95rem; color: var(--tinta-suave);
}
.faixa strong { display: block; font-family: var(--fonte-titulo); font-size: 1.4rem; color: var(--tinta); }

/* ---------- Seções ---------- */
.secao { padding: 88px 0; }
.secao--rosa { background: var(--rosa); }
.secao--creme-escuro { background: var(--fundo-2); }
.secao--escura { background: var(--tinta); color: #F4EEE8; }
.secao--escura .sobretitulo, .secao--escura .cursiva { color: #E2C6C8; }
.secao__cabeca { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.secao__cabeca p:last-child { color: var(--tinta-suave); }

/* ---------- 3. Catálogo ---------- */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filtros button {
  min-height: 44px; padding: 0 1.2em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--linha); background: var(--papel); color: var(--tinta);
  font: 500 .95rem var(--fonte-texto);
}
.filtros button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.grade-cestas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 28px; }
.cesta { display: flex; flex-direction: column; }
.cesta__foto { all: unset; cursor: pointer; display: block; position: relative; }
.cesta__foto .polaroide { transform: rotate(var(--giro, -1.5deg)); transition: transform .25s; }
.cesta:nth-child(even) .cesta__foto .polaroide { --giro: 1.5deg; }
.cesta__foto:hover .polaroide, .cesta__foto:focus-visible .polaroide { transform: rotate(0) translateY(-4px); }
.selo {
  position: absolute; top: -10px; left: -6px; z-index: 2;
  background: var(--rosa-texto); color: #fff; font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.cesta__info { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.cesta__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cesta h3 { font-size: 1.45rem; margin: 0; }
.cesta__preco { font-family: var(--fonte-titulo); font-size: 1.45rem; font-weight: 600; white-space: nowrap; }
.cesta__serve { font-size: .85rem; color: var(--rosa-texto); margin: 2px 0 6px; min-height: 1.2em; }
.cesta__frase { color: var(--tinta-suave); font-size: .97rem; flex: 1; }
.cesta__acoes { display: flex; gap: 8px; }
.cesta__acoes .botao { flex: 1; min-height: 46px; padding: 0 .8em; font-size: .93rem; }

.cesta--adicional .polaroide figcaption { color: var(--rosa-texto); }

/* Janela de detalhes */
.detalhe {
  width: min(920px, 100% - 24px); max-height: calc(100% - 24px);
  border: 0; border-radius: 18px; padding: 0; background: var(--fundo); color: var(--tinta);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.detalhe::backdrop { background: rgba(31, 26, 23, .55); }
.detalhe__grade { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; padding: 36px; }
.polaroide--reta { align-self: start; position: sticky; top: 0; }
.detalhe__fechar {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--papel); font-size: 1.8rem; line-height: 1; color: var(--tinta);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.detalhe h3 { font-size: 2.1rem; margin-bottom: .1em; padding-right: 40px; }
.detalhe h4 { font-family: var(--fonte-texto); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa-texto); font-weight: 500; margin: 1.4em 0 .6em; }
.detalhe__preco { font-family: var(--fonte-titulo); font-size: 1.7rem; font-weight: 600; margin: 0; }
.detalhe__serve { color: var(--rosa-texto); font-size: .92rem; }
.lista-itens { margin: 0 0 1em; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: .95rem; }
.lista-itens li { break-inside: avoid; padding: 3px 0 3px 18px; position: relative; }
.lista-itens li::before { content: "♡"; position: absolute; left: 0; color: var(--rosa-medio); font-size: .85em; top: 5px; }
.detalhe__embalagem { font-size: .95rem; color: var(--tinta-suave); }
.detalhe__extra { background: var(--rosa); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.detalhe__extra:empty { display: none; }
.detalhe__aviso { font-size: .8rem; color: var(--tinta-suave); margin: 12px 0 0; }

/* ---------- 4. Como funciona ---------- */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.passos li { background: var(--fundo); border-radius: var(--raio); padding: 28px; }
.passos__num { font-family: var(--fonte-nome); font-size: 3.2rem; color: var(--rosa-texto); line-height: 1; display: block; margin-bottom: 6px; }
.passos p { color: var(--tinta-suave); margin: 0; }

/* ---------- 5. Empresas ---------- */
.empresas { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.empresas__fotos { position: relative; height: 470px; }
.empresas__fotos .polaroide { position: absolute; width: 50%; }
.empresas__fotos .polaroide--a { left: 0; top: 30px; }
.empresas__fotos .polaroide--b { left: 48%; top: 0; }
.empresas__texto p { color: #DCD3CB; font-size: 1.08rem; }

/* ---------- 6. Sobre ---------- */
.sobre { display: grid; grid-template-columns: 150px 1fr; gap: 48px; align-items: start; max-width: 900px; }
.sobre__foto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 8px solid var(--papel); box-shadow: var(--sombra); }
.sobre p:not(.sobretitulo) { color: var(--tinta-suave); }
.assinatura { font-family: var(--fonte-nome); font-size: 3rem; color: var(--rosa-texto) !important; line-height: 1; margin: 0; }

/* ---------- 7. Avaliações ---------- */
.avaliacoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.avaliacao { margin: 0; background: var(--papel); border-radius: var(--raio); padding: 28px; display: flex; flex-direction: column; }
.avaliacao__estrelas { color: var(--dourado); letter-spacing: 3px; margin-bottom: 10px; }
.avaliacao blockquote { margin: 0 0 16px; font-family: var(--fonte-titulo); font-size: 1.3rem; line-height: 1.35; flex: 1; }
.avaliacao figcaption { font-size: .9rem; color: var(--tinta-suave); }

/* ---------- 8. A Lari ensina ---------- */
.ensina { text-align: center; max-width: 720px; }
.ensina p:not(.sobretitulo) { color: var(--tinta-suave); font-size: 1.08rem; }
.ensina__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- 9. Contato ---------- */
.contato { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contato__lista { list-style: none; padding: 0; margin: 28px 0 0; }
.contato__lista li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.contato__lista li > span:first-child { width: 92px; flex: none; color: var(--tinta-suave); font-size: .9rem; padding-top: 2px; }
.contato__lista a { text-underline-offset: 4px; }
.horario { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.horario td { padding: 12px 0; border-bottom: 1px solid var(--linha); }
.horario td:last-child { text-align: right; font-weight: 500; }
.politica { background: var(--papel); border-radius: var(--raio); padding: 16px 20px; }
.politica summary { cursor: pointer; font-weight: 500; min-height: 28px; }
.politica p { font-size: .93rem; color: var(--tinta-suave); margin: .8em 0 0; }

/* ---------- 10. Rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 28px 0 40px; }
.rodape__linha { display: flex; align-items: center; gap: 20px; font-size: .85rem; color: var(--tinta-suave); }
.rodape img { width: 70px; }
.rodape p { margin: 0; }


/* ---------- Celular e tablet ---------- */
@media (max-width: 960px) {
  .topo__menu { display: none; }
  .topo__linha .botao { margin-left: auto; }
  .abertura__grade, .empresas, .contato { grid-template-columns: 1fr; gap: 36px; }
  .abertura__fotos { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
  .empresas__fotos { height: 380px; max-width: 480px; width: 100%; margin: 0 auto; order: 2; }
  .passos, .avaliacoes { grid-template-columns: 1fr; }
  .detalhe__grade { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .polaroide--reta { position: static; max-width: 240px; margin: 0 auto; }
  #detalhe-pedir { position: sticky; bottom: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topo__linha { min-height: 64px; }
  .topo__logo img { width: 78px; }
  .abertura { padding-top: 32px; }
  .nome-presente { padding: 16px; }
  .nome-presente__linha { flex-direction: column; }
  .abertura__fotos { height: 360px; }
  .abertura__fotos .polaroide--c { top: 96px; }
  .polaroide figcaption { font-size: 1.5rem; }
  .faixa { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .secao { padding: 64px 0; }
  /* No celular: 2 cestas por linha; tocar na foto abre os detalhes */
  .grade-cestas { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .cesta .polaroide { padding: 6px 6px 0; }
  .cesta .polaroide figcaption { font-size: 1.15rem; }
  .selo { font-size: .62rem; padding: 4px 8px; }
  .cesta__info { padding-top: 12px; }
  .cesta__topo { flex-direction: column; gap: 0; }
  .cesta h3 { font-size: 1.15rem; }
  .cesta__preco { font-size: 1.15rem; }
  .cesta__serve { font-size: .78rem; min-height: 0; }
  .cesta__frase { display: none; }
  .cesta__acoes { margin-top: auto; padding-top: 8px; }
  .cesta__acoes .js-ver { display: none; }
  .cesta__acoes .botao { min-height: 44px; font-size: .9rem; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .filtros button { flex: none; }
  .lista-itens { columns: 1; }
  .sobre { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .sobre__foto { margin: 0 auto; width: 150px; height: 150px; }
  .rodape__linha { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
