/* Café Doces Memórias — Site institucional (/)
   Tema claro creme + marrom + dourado, seguindo o mockup da home.
   Títulos: Playfair Display (serif). Corpo: Nunito. */

:root {
  --creme: #f5ead9;        /* fundo da página */
  --creme-2: #fbf5ea;      /* cards claros */
  --marrom: #4a2c1a;       /* painéis escuros, rodapé */
  --marrom-2: #5b3a24;     /* variação dos cards */
  --marrom-texto: #3c2415; /* texto principal */
  --gold: #b98a3d;
  --gold-claro: #d3aa60;
  --gold-escuro: #96702f;
  --sage: #8fa383;         /* verde dos cards */
  --branco: #fff8ee;
  --verde-whats: #22b358;
  --raio: 14px;
  --rodape-altura: 86px; /* fallback; o JS ajusta pro tamanho real */
  --largura: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-altura, 74px) + var(--atalhos-altura, 0px) + 12px); }
body {
  background: var(--creme);
  color: var(--marrom-texto);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: calc(var(--rodape-altura) + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }

.carregando, .vazio { padding: 70px 20px; text-align: center; color: #8a6d52; }
.oculto { display: none !important; }

/* ---------- header ---------- */
.topo {
  background: var(--creme);
  border-bottom: 1px solid #e4d5bc;
  padding: 10px 18px 8px;
  position: sticky; top: 0; z-index: 100;
}
/* grid simétrico: 2 links + logo + 2 links -> logo fica no centro exato */
.nav {
  max-width: var(--largura);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  justify-items: center;
  column-gap: clamp(8px, 2vw, 24px);
}
.nav-links { display: contents; }
.nav-links > a { grid-row: 1; }
.nav a {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--marrom-texto);
  padding: 6px 2px;
  white-space: nowrap;
}
/* categorias em Pacifico — cursiva encorpada e emendada, cara de cafeteria */
.nav a {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .2px;
  padding-top: 2px;
  transform: translateY(var(--nav-dy, 0px));  /* altura ajustável no admin */
}
.nav a:hover { color: var(--gold-escuro); }
/* categoria selecionada: cor + decoração de café (tamanho/offset vêm do admin) */
.nav a[data-nav] { position: relative; }
.nav a.nav-ativo { color: var(--gold-escuro); }
.nav-deco { position: absolute; left: 100%; top: 50%; width: auto; pointer-events: none; z-index: 2; }
@media (max-width: 620px) { .nav-deco { display: none; } }
.marca {
  grid-column: 3; grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
}
.marca img { height: 54px; width: auto; }
.marca-nome {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  line-height: 1.1;
}
.marca-ornamento { font-size: 11px; color: var(--gold-claro); letter-spacing: 2px; }
.hamburguer {
  display: none;
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--marrom);
  padding: 4px 10px;
}

/* ---------- estrutura geral ---------- */
main { max-width: var(--largura); margin: 0 auto; padding: 24px 18px 20px; }

/* ---------- hero (carrossel) ---------- */
.hero {
  position: relative;
  border-radius: calc(var(--raio) + 4px);
  overflow: hidden;
  background: linear-gradient(115deg, #3a2114, #241408);
  min-height: clamp(185px, 30vh, 305px);
  display: flex;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(60, 36, 21, .25);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-slide.ativo { opacity: 1; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  /* esquerda bem escura (texto legível) desbotando pra deixar a foto aparecer à direita */
  background: linear-gradient(90deg,
    rgba(26,13,5,.95) 0%,
    rgba(26,13,5,.86) 26%,
    rgba(26,13,5,.5) 56%,
    rgba(26,13,5,.08) 100%);
}
.hero-texto {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(20px, 4vw, 44px);
  max-width: 60%;
  color: var(--branco);
}
.hero-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-titulo b { color: var(--gold-claro); font-weight: 700; }
.hero-sub { margin-top: 14px; font-size: clamp(14px, 1.7vw, 17px); color: #e8d9c4; }
.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,248,238,.45);
  padding: 0;
}
.hero-dots button.ativo { background: var(--branco); }

/* ---------- cards de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 46px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--raio);
  overflow: visible;
  background: var(--sage);
  box-shadow: 0 6px 18px rgba(60, 36, 21, .16);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: center;
}
.card:nth-child(even) { background: var(--marrom-2); }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(60, 36, 21, .28); }
.card-medalhao {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-claro), var(--gold) 65%);
  border: 3px solid var(--creme);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(60,36,21,.3);
}
.card-medalhao svg { width: 27px; height: 27px; }
/* a imagem enviada fica DENTRO do círculo dourado (fundo padrão) */
.card-medalhao img { width: 62%; height: 62%; object-fit: contain; }
.em-branco { filter: brightness(0) invert(1); } /* emoji vira silhueta branca */
/* foto colada nas bordas; a BASE curva pra baixo (meia-lua pra dentro),
   mergulhando no painel verde do card */
.card-foto {
  height: clamp(148px, 15.5vw, 205px);
  margin: 0;
  border: 0;
  border-radius: var(--raio) var(--raio) 50% 50% / var(--raio) var(--raio) 44px 44px;
  background: var(--creme-2) center/cover no-repeat;
}
.card-foto.sem-foto { display: flex; align-items: center; justify-content: center; font-size: 46px; }
/* texto direto sobre o fundo (verde/marrom) do card, abaixo da curva */
.card-corpo {
  flex: 1;
  padding: 14px 16px 18px;
  color: var(--branco);
}
.card-titulo {
  display: block;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.card-texto {
  display: block;
  font-size: 12.5px;
  line-height: 1.42;
  color: rgba(255,248,238,.9);
}

/* ---------- páginas internas ---------- */
.pagina { max-width: 900px; margin: 0 auto; }
.pagina-titulo {
  text-align: center;
  color: var(--marrom);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin: 10px 0 4px;
}
.pagina-ornamento { text-align: center; color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }

/* documentos legais (Termos de Uso / Politica de Privacidade) */
.legal { max-width: 780px; }
.legal-data { text-align: center; font-size: 13px; color: var(--marrom); opacity: .7; margin: 0 0 6px; }
.legal-intro { text-align: center; color: #55402d; max-width: 640px; margin: 0 auto 26px; }
.legal-secao { margin: 0 0 20px; }
.legal-secao h2 { font-size: 18px; color: var(--marrom); font-weight: 700; margin: 0 0 8px; }
.legal-secao p, .legal-secao li { font-size: 15.5px; line-height: 1.65; color: #4a3626; margin: 0 0 10px; }
.legal-secao ul { margin: 0 0 10px 22px; }
.legal-secao a { color: var(--gold); font-weight: 600; }
.pagina-texto {
  font-size: 16.5px;
  color: #55402d;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 26px;
  white-space: pre-line;
}
.pagina-imagem {
  border-radius: var(--raio);
  margin: 0 auto 26px;
  max-height: 420px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(60,36,21,.2);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 8px 0 30px;
}
.galeria-item {
  background: var(--creme-2);
  border: 1px solid #e8dac0;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(60,36,21,.08);
}
.galeria-item img, .galeria-foto { width: 100%; height: 190px; object-fit: cover; background: #efe3cd; }
.galeria-legenda { padding: 10px 14px 12px; }
.galeria-legenda b { display: block; font-size: 15px; }
.galeria-legenda span { font-size: 13.5px; color: #7a6248; }

.btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--verde-whats);
  color: #fff;
  font-weight: 800;
  font-size: 16.5px;
  padding: 13px 26px;
  border-radius: 40px;
  box-shadow: 0 6px 16px rgba(34,179,88,.35);
  transition: transform .15s ease;
}
.btn-whats:hover { transform: scale(1.04); }
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 40px;
  box-shadow: 0 5px 14px rgba(150,112,47,.4);
  transition: transform .15s ease;
}
.btn-gold:hover { transform: scale(1.04); background: var(--gold-escuro); }
.acao-central { text-align: center; margin: 26px 0; }

/* cardápio público */
.cat-bloco { margin-bottom: 34px; }
.cat-nome {
  color: var(--gold-escuro);
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid var(--gold-claro);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.cat-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cp {
  display: flex;
  gap: 12px;
  background: var(--creme-2);
  border: 1px solid #e8dac0;
  border-radius: var(--raio);
  padding: 10px;
  align-items: center;
}
.cp-foto { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: #efe3cd; flex-shrink: 0; }
.cp-foto.sem-foto { display: flex; align-items: center; justify-content: center; font-size: 30px; }
.cp-nome { font-weight: 800; font-size: 15px; }
.cp-desc { font-size: 13px; color: #7a6248; }
.cp-preco { margin-left: auto; color: var(--gold-escuro); font-weight: 800; white-space: nowrap; align-self: center; }

/* contato / lojas */
.info-lista {
  max-width: 560px;
  margin: 0 auto 26px;
  background: var(--creme-2);
  border: 1px solid #e8dac0;
  border-radius: var(--raio);
  padding: 22px 26px;
  font-size: 16.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-lista a { color: var(--gold-escuro); font-weight: 700; }

/* ---------- rodapé completo (sempre fixo na base) ---------- */
.rodape {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--marrom);
  color: #e9d9c3;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(60,36,21,.25);
}
.rodape-grade {
  max-width: var(--largura);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: center;
  justify-content: space-between;
}
.rodape-marca .nome {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: var(--branco);
  line-height: 1.15;
}
.rodape-marca .sub { color: var(--gold-claro); letter-spacing: 4px; font-size: 10.5px; text-transform: uppercase; }
.rodape-links { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 13.5px; }
.rodape-links a:hover { color: var(--gold-claro); }
.rodape-contato { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.rodape-contato a:hover { color: var(--gold-claro); }
.rodape-social { display: flex; gap: 10px; }
.rodape-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,248,238,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.rodape-social a:hover { background: var(--gold); }
.rodape-social svg { width: 17px; height: 17px; fill: var(--branco); }
/* logos no rodapé: outline (_off) pintado de branco, sem círculo */
.rodape-social a.png { background: none; }
.rodape-social a.png:hover { background: none; transform: scale(1.12); }
.rodape-social a.png img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }

/* ---------- página cardápio (imagens) e mapa ---------- */
.cardapio-imgs { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.cardapio-imgs img {
  width: 100%;
  border-radius: var(--raio);
  box-shadow: 0 8px 22px rgba(60,36,21,.18);
}
.mapa-box {
  border-radius: var(--raio);
  overflow: hidden;
  border: 1px solid #e8dac0;
  box-shadow: 0 8px 22px rgba(60,36,21,.18);
}
.mapa-box iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* página funcionamento: Horários | divisor | Localização — tudo centralizado
   .pagina-cheia ocupa a altura livre da tela e distribui o conteúdo nela */
.pagina-cheia {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 235px); /* ~ header + paddings + rodapé fixo */
}
.pagina-cheia .loja-grid { flex: 1; }
.loja-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 16px;
}
.loja-mod { display: flex; flex-direction: column; }
.loja-mod-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  text-align: center;
  color: var(--gold-escuro);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.loja-divisor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 15px;
}
.loja-divisor::before, .loja-divisor::after {
  content: "";
  flex: 1;
  width: 1px;
  background: linear-gradient(var(--creme), var(--gold-claro), var(--creme));
}
.loja-grid .info-lista { margin: 0; max-width: none; min-height: 320px; gap: 10px; flex: 1; }
/* as linhas de horário se espalham pra preencher a altura da caixa */
.loja-grid .horarios {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.loja-endereco { text-align: center; font-size: 15px; color: #55402d; margin-bottom: 10px; }
.loja-grid .mapa-box { min-height: 320px; flex: 1; }
.hr-linha {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  font-size: 15px;
  border-bottom: 1px dashed #eadcc2;
}
.hr-linha:last-child { border-bottom: none; }
.hr-linha span:last-child { font-weight: 700; white-space: nowrap; }
.hr-linha.hoje { font-weight: 800; color: var(--marrom); }
.hr-linha.hoje span:first-child::after { content: " •"; color: var(--gold); }
.loja-acoes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.loja-acoes .btn-gold, .loja-acoes .btn-whats { font-size: 15px; padding: 12px 24px; }
.btn-gold svg { width: 18px; height: 18px; }
.btn-comochegar { font-size: 16.5px; padding: 14px 34px; gap: 11px; }
.btn-comochegar svg { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .pagina-cheia { min-height: 0; }
  .loja-grid { grid-template-columns: 1fr; }
  .loja-divisor { flex-direction: row; }
  .loja-divisor::before, .loja-divisor::after {
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--creme), var(--gold-claro), var(--creme));
  }
  .loja-grid .info-lista, .loja-grid .mapa-box { min-height: 0; }
  .mapa-box iframe { height: 280px; }
}

/* ---------- desenho "sendo traçado" (Nossa Cafeteria) ---------- */
.desenho {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 22px;
}
/* o desenho já vem com o fundo creme do site embutido, então a varredura
   parece que a caneta está traçando sobre a própria página */
.desenho .dz-arte {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(103deg, #000 36%, transparent 62%);
          mask-image: linear-gradient(103deg, #000 36%, transparent 62%);
  -webkit-mask-size: 320% 100%;   mask-size: 320% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;  mask-position: 100% 0;
}
.desenho.anim .dz-arte { animation: dzTracar 3.4s ease-out forwards; }
@keyframes dzTracar {
  to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
/* quem pediu menos animação no sistema já vê o desenho pronto */
@media (prefers-reduced-motion: reduce) {
  .desenho .dz-arte { -webkit-mask-image: none; mask-image: none; animation: none; }
}

/* ---------- página contato ---------- */
.contato-wrap { align-items: center; justify-content: center; text-align: center; }
.contato-intro { color: #55402d; font-size: 16.5px; max-width: 540px; margin: 0 auto 26px; }
.contato-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 320px));
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.contato-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--creme-2); border: 1px solid #e8dac0; border-radius: 16px;
  padding: 15px 18px; box-shadow: 0 4px 12px rgba(60,36,21,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contato-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(60,36,21,.16); }
.cc-icone { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-icone svg { width: 25px; height: 25px; fill: #fff; }
/* logos oficiais coloridos (whats/insta) */
.cc-logo { width: 50px; height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cc-logo img { width: 100%; height: 100%; object-fit: contain; }
.cc-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cc-txt b { font-size: 16px; color: var(--marrom-texto); }
.cc-txt span { font-size: 14px; color: #7a6248; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-cta { display: flex; align-items: center; gap: 4px; color: var(--gold-escuro); font-weight: 800; font-size: 14px; white-space: nowrap; }
.cc-cta i { font-style: normal; transition: transform .15s ease; }
.contato-card:hover .cc-cta i { transform: translateX(3px); }
.contato-endereco { margin-top: 24px; color: #55402d; font-size: 15px; }
@media (max-width: 560px) {
  .contato-grid { grid-template-columns: 1fr; max-width: 360px; }
  .cc-cta span, .cc-cta { font-size: 0; }
  .cc-cta i { font-size: 18px; }
}

/* ---------- catalogo de encomendas ---------- */
.site-em-edicao .site-editavel { cursor: pointer; }
.site-em-edicao .site-editavel:hover { outline: 2px dashed var(--gold); outline-offset: -2px; }
.site-em-edicao .card { position: relative; }
.site-editar-card, .site-adicionar-item { background: var(--marrom); color: var(--branco); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 16px; font-weight: 700; min-height: 44px; }
.site-editar-card { position: absolute; bottom: 8px; right: 8px; font-size: 13px; z-index: 2; }
.site-adicionar-item { display: block; width: 100%; margin: 18px 0; border-style: dashed; }
.site-em-edicao .encomenda-item { position: relative; }
.site-em-edicao .encomenda-info small { display: block; color: #96702f; margin-bottom: 6px; }
.encomendas-pagina { max-width: 820px; }
.encomendas-pagina .pagina-texto { text-align: center; }
.encomendas-atalhos {
  position: sticky; top: var(--topo-altura, 74px); z-index: 30;
  background: var(--creme); box-shadow: 0 5px 10px var(--creme);
  display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 14px;
  margin-bottom: 8px; scrollbar-width: thin;
}
.encomendas-atalhos button {
  flex: 0 0 auto; border: 0; border-radius: 24px; padding: 9px 20px;
  background: #b8c2a5; color: #3c2c1e; font: inherit; cursor: pointer;
}
.encomendas-atalhos button[aria-pressed="true"] {
  background: var(--marrom); color: var(--branco); box-shadow: 0 3px 8px #3c24152b;
}
.encomenda-item {
  display: flex; gap: 22px; align-items: center; padding: 26px 0;
  position: relative; min-width: 0;
  border-bottom: 2px dotted #c5a66c80;
}
.encomenda-item[hidden] { display: none; }
.encomenda-item::after {
  content: "❧"; position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%);
  background: var(--creme); color: var(--gold); padding: 0 10px; line-height: 24px; font-size: 21px;
}
.encomenda-item:nth-last-child(1 of .encomenda-item:not([hidden])) { border-bottom-color: transparent; }
.encomenda-item:nth-last-child(1 of .encomenda-item:not([hidden]))::after { display: none; }
.encomendas-lista > .vazio, .encomendas-lista > .site-adicionar-item { grid-column: 1 / -1; }
.encomenda-midia {
  width: 164px; height: 164px; flex-shrink: 0; align-self: center; aspect-ratio: 1;
  position: relative; overflow: hidden;
  border-radius: 18px; box-shadow: 0 3px 10px #3c24151a;
}
.encomenda-foto { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-foto-controles button {
  position: absolute; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  background: #3c2415d9; color: #fff8ee; border: 1px solid #d3aa60;
  display: grid; place-items: center; font-size: 19px;
}
.site-foto-esquerda { left: 5px; top: calc(50% - 16px); }
.site-foto-direita { right: 5px; top: calc(50% - 16px); }
.site-foto-centralizar { left: calc(50% - 16px); bottom: 5px; }
.site-foto-controles button:hover, .site-foto-controles button:focus-visible { background: var(--marrom); outline: 2px solid var(--gold); }
.encomenda-info { flex: 1; min-width: 0; }
.encomenda-info h2 {
  margin: 0 0 8px; font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.12; color: var(--marrom-texto);
  overflow-wrap: anywhere;
}
.encomenda-info p { margin: 0 0 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.encomenda-acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.encomenda-preco { font-size: 15px; color: var(--marrom-texto); }
.encomenda-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; min-height: 44px; border-radius: 24px;
  background: var(--marrom); color: var(--branco); font-size: 15px;
  box-shadow: 0 3px 8px #3c24152b; transition: background .15s;
}
.encomenda-botao:hover { background: #54351f; }
.encomenda-botao svg { width: 17px; height: 17px; fill: currentColor; }
.encomenda-botao:focus-visible, .encomendas-atalhos button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.encomenda-indisponivel { font-size: 13px; color: #7a6248; }
@media (min-width: 900px) {
  .encomendas-pagina { max-width: 1064px; }
  .encomendas-atalhos { justify-content: safe center; margin-bottom: 10px; }
  .encomendas-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; row-gap: 8px; }
  .encomenda-item { gap: 18px; align-items: flex-start; min-height: 212px; padding: 28px 0; }
  .encomenda-item:nth-last-child(2 of .encomenda-item:not([hidden])):nth-child(odd of .encomenda-item:not([hidden])) { border-bottom-color: transparent; }
  .encomenda-item:nth-last-child(2 of .encomenda-item:not([hidden])):nth-child(odd of .encomenda-item:not([hidden]))::after { display: none; }
  .encomenda-midia { width: 156px; height: 156px; }
  .encomenda-info { display: flex; flex-direction: column; align-self: center; min-height: 156px; }
  .encomenda-info h2 { font-size: 24px; }
  .encomenda-info p { font-size: 14px; margin-bottom: 12px; }
  .encomenda-acoes { margin-top: auto; gap: 8px; }
  .encomenda-preco { font-size: 14px; }
  .encomenda-botao { padding: 7px 13px; min-height: 38px; font-size: 12px; gap: 6px; }
  .encomenda-botao svg { width: 14px; height: 14px; }
}
@media (min-width: 621px) and (max-width: 900px) {
  .nav { column-gap: 8px; }
  .nav a { font-size: 18px; }
}
@media (max-width: 540px) {
  .encomenda-item { display: grid; grid-template-columns: 34.5% minmax(0, 1fr); gap: 13px; padding: 20px 0; align-items: stretch; }
  .encomenda-midia { width: 100%; height: 100%; min-height: calc(34.5vw - 12.42px); aspect-ratio: auto; align-self: stretch; border-radius: 14px; }
  .encomenda-foto { position: absolute; inset: 0; }
  .encomenda-info { display: flex; flex-direction: column; }
  .encomenda-info h2 { font-size: 21px; margin-bottom: 6px; }
  .encomenda-info p { font-size: 13px; margin-bottom: 10px; }
  .encomenda-acoes { margin-top: auto; gap: 6px; }
  .encomenda-preco { font-size: 13px; }
  .encomenda-botao { padding: 7px 11px; min-height: 38px; font-size: 11px; gap: 6px; }
  .encomenda-botao svg { width: 14px; height: 14px; }
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .hero-texto { max-width: 78%; }
}
@media (max-width: 620px) {
  .hamburguer { display: block; }
  .nav { display: flex; flex-direction: column; gap: 0; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--creme); padding: 0 18px 8px;
    max-height: calc(100dvh - var(--topo-altura, 74px) - var(--rodape-altura, 86px));
    overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 1px solid #e4d5bc; box-shadow: 0 8px 14px #3c24151a;
  }
  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 0;
    border-top: 1px solid #e4d5bc;
    transform: none;
  }
  .nav .marca { order: -1; margin-bottom: 6px; }
  .nav.aberto .nav-links { display: flex; flex-direction: column; }
  .cards { grid-template-columns: 1fr; row-gap: 44px; }
  .hero-texto { max-width: 100%; }
  /* rodapé fixo enxuto no celular: some a coluna de links (estão no menu ☰) */
  .rodape { padding: 9px 16px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .rodape-links { display: none; }
  .rodape-grade { gap: 6px 18px; }
  .rodape-marca .nome { font-size: 16px; }
}
