/* ============ Sugiro Brownie · Natal ============ */
:root {
  --papel: #fffdf9;        /* fundo principal, quase branco */
  --creme: #f0e2c4;        /* bege da marca */
  --creme-claro: #f8f1e2;  /* bege suave para blocos */
  --marrom: #5a4330;       /* marrom da marca */
  --marrom-medio: #7d6550;
  --marrom-claro: #a89381;
  --linha: #e8dcc6;
  --whats: #2f6b4f;

  --f-display: "Amatic SC", "Terek", cursive;
  --f-texto: "Montserrat", system-ui, sans-serif;

  --raio: 14px;
  --sombra: 0 10px 30px -18px rgba(90, 67, 48, .45);
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--marrom);
  font-family: var(--f-texto);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto evita que o width/height do HTML estique as imagens (Safari/iPhone) */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { font-family: var(--f-display); font-weight: 700; line-height: .95; margin: 0; letter-spacing: .01em; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin: 0 0 6px; }

.sobretitulo {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--marrom-medio); margin: 0 0 14px; font-weight: 500;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--marrom); transition: transform .15s, background .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--marrom); color: var(--papel); }
.btn-primario:hover { background: #4a3626; }
.btn-link { border-color: transparent; padding-inline: 8px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-whats { background: var(--papel); color: var(--whats); border-color: var(--whats); }
.btn-whats:hover { background: var(--whats); color: #fff; }
.btn-bloco { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Aviso e topo ---------- */
.aviso {
  background: var(--marrom); color: var(--creme); text-align: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px;
}
.topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.marca .logo { height: 44px; width: auto; }
.menu { display: flex; gap: 28px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn-sacola {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--marrom); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.contador {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--marrom); color: var(--papel);
  font-size: 11px; display: grid; place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 56px 16px 64px;
}
.hero h1 { font-size: clamp(64px, 9vw, 120px); }
.hero-sub { font-size: 16px; max-width: 440px; color: var(--marrom-medio); margin: 20px 0 30px; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-datas {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; gap: 36px; border-top: 1px solid var(--linha); padding-top: 22px;
}
.hero-datas li { display: flex; flex-direction: column; }
.hero-datas strong { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.hero-datas span { font-size: 12px; color: var(--marrom-medio); }

.hero-imagem { position: relative; }
.arco {
  aspect-ratio: 4 / 5; border-radius: 999px 999px var(--raio) var(--raio);
  overflow: hidden; background: var(--creme-claro);
}
.arco img:not(.ph-pinha) { width: 100%; height: 100%; object-fit: cover; }
.pinha-flutuante {
  position: absolute; width: 120px; left: -44px; bottom: 36px;
  transform: rotate(-14deg); filter: drop-shadow(0 12px 14px rgba(90,67,48,.25));
}

/* Espaço reservado para foto */
.placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(rgba(248, 241, 226, .82), rgba(248, 241, 226, .82)),
    url("assets/padrao-pinhas.webp") center / 360px;
  color: var(--marrom-medio); text-align: center;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.placeholder .ph-pinha { width: 34%; max-width: 90px; opacity: .9; }
.placeholder-hero { background-size: auto, 520px; font-size: 12px; }
.placeholder-hero .ph-pinha { max-width: 150px; }

/* ---------- Fita de listras irregulares ---------- */
.fita {
  height: 26px; background: url("assets/listras.svg") repeat-x left center / auto 100%;
  opacity: .9;
}
.fita-clara { background-image: url("assets/listras-creme.svg"); opacity: .55; }

/* ---------- Categorias (círculos) ---------- */
.categorias { padding: 40px 0 8px; }
.categorias-lista {
  max-width: var(--max); margin: 0 auto; padding: 0 16px;
  display: flex; justify-content: center; gap: 28px; overflow-x: auto; scrollbar-width: none;
}
.categorias-lista::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.cat-circulo {
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  background: var(--creme-claro); border: 1.5px solid var(--linha);
  display: grid; place-items: center; transition: border-color .2s, transform .2s;
}
.cat-circulo img { width: 52%; }
.cat-circulo img.foto { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-circulo { border-color: var(--marrom-claro); }

/* ---------- Seções ---------- */
.secao { max-width: var(--max); margin: 0 auto; padding: 72px 16px; }
.secao-cabeca { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.secao-cabeca h2 { font-size: clamp(48px, 6vw, 72px); }
.secao-cabeca p { color: var(--marrom-medio); margin: 10px 0 0; }

/* ---------- Destaques ---------- */
.destaques-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.destaque { display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: none; }
.destaque .midia { aspect-ratio: 4 / 5; border-radius: var(--raio); overflow: hidden; background: var(--creme-claro); }
.destaque .midia img:not(.ph-pinha) { width: 100%; height: 100%; object-fit: cover; }
.destaque-info { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.destaque-cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.destaque-info h3 { font-family: var(--f-display); font-size: 32px; letter-spacing: 0; text-transform: none; line-height: 1; margin: 0; }
.destaque-info .preco { font-size: 20px; font-weight: 600; white-space: nowrap; }
.destaque-info p { margin: 0; font-size: 14px; color: var(--marrom-medio); }
.destaque-info .mini { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid; }

/* ---------- Filtros ---------- */
.filtros {
  position: sticky; top: 64px; z-index: 10;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 28px; background: var(--papel);
}
.filtro {
  border: 1.5px solid var(--linha); background: var(--papel); border-radius: 999px;
  padding: 8px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.filtro[aria-selected="true"] { background: var(--marrom); color: var(--papel); border-color: var(--marrom); }

/* ---------- Grade de produtos ---------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px; }
.produto { display: flex; flex-direction: column; }
.produto .midia {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--raio); overflow: hidden; margin-bottom: 16px;
}
.produto .midia img:not(.ph-pinha) { width: 100%; height: 100%; object-fit: cover; }
.selo {
  position: absolute; top: 12px; left: 12px; background: var(--papel); border-radius: 999px;
  padding: 4px 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.produto-cabeca { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.produto h3 { margin: 0; font-size: 13px; }
.preco { font-weight: 600; white-space: nowrap; }
.preco-breve { font-size: 12px; color: var(--marrom-medio); font-weight: 500; }
.produto .desc {
  color: var(--marrom-medio); font-size: 13.5px; margin: 8px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.produto .desc.aberta { -webkit-line-clamp: unset; }
.ver-mais { background: none; border: 0; padding: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin: -8px 0 14px; align-self: flex-start; color: var(--marrom-medio); }
.rotulo-opcao select, .dados input, .dados select, .dados textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--marrom);
  border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.rotulo-opcao select { margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.rotulo-opcao select:focus, .dados :is(input, select, textarea):focus { outline: 2px solid var(--marrom-claro); outline-offset: 1px; }
.produto-acoes { margin-top: auto; display: flex; gap: 10px; }
.qtd {
  display: flex; align-items: center; border: 1.5px solid var(--linha); border-radius: 999px; background: #fff;
}
.qtd button { width: 36px; height: 40px; background: none; border: 0; font-size: 18px; }
.qtd span { min-width: 22px; text-align: center; font-weight: 600; }
.btn-add { flex: 1; padding: 10px 14px; }
.produto.esgotado .midia { filter: grayscale(.6); opacity: .7; }

/* ---------- Brownietone ---------- */
.historia {
  max-width: var(--max); margin: 0 auto; padding: 56px 16px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.historia-foto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--raio) var(--raio);
}
.historia-texto h2 { font-size: clamp(64px, 8vw, 104px); }
.historia-texto p:not(.sobretitulo) { color: var(--marrom-medio); margin: 18px 0 30px; max-width: 460px; font-size: 16px; }

/* ---------- Como encomendar ---------- */
.como-grade { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.como-texto h2 { font-size: clamp(56px, 6vw, 80px); }
.como-intro { color: var(--marrom-medio); margin: 14px 0 28px; max-width: 440px; }
.como-intro strong { color: var(--marrom); }
.passos { list-style: none; margin: 0 0 32px; padding: 0; max-width: 460px; }
.passos li { padding: 16px 0; border-bottom: 1px solid var(--linha); }
.passos h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 4px; }
.passos p { margin: 0; color: var(--marrom-medio); font-size: 14px; }

/* fotos à direita, em colunas desencontradas */
.como-fotos {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 14px; align-items: start;
}
.como-fotos img { width: 100%; object-fit: cover; border-radius: var(--raio); }
.como-fotos .cf-alta { grid-row: 1 / 3; aspect-ratio: 3 / 5; margin-top: 56px; }
.como-fotos img:not(.cf-alta) { aspect-ratio: 4 / 5; }
.regras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--linha); padding-top: 36px; margin-top: 72px; }
.regras p { margin: 0; color: var(--marrom-medio); font-size: 14px; }

/* ---------- Datas ---------- */
.datas {
  position: relative; overflow: hidden; text-align: center; padding: 80px 16px 88px;
  background: radial-gradient(ellipse at 50% 0%, #6d533e, var(--marrom) 55%, #4a3626);
  color: var(--creme-claro);
}
.datas-conteudo { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.ornamento { display: flex; align-items: center; justify-content: center; gap: 14px; color: #d3bb90; font-size: 18px; }
.ornamento span { width: 90px; height: 1px; background: #d3bb90; opacity: .7; }
.datas-titulo {
  font-family: var(--f-display); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(84px, 11vw, 128px); line-height: 1; margin: 10px 0 14px;
}
.datas-sub { font-size: 16px; font-weight: 300; line-height: 1.7; margin: 0 0 48px; opacity: .92; letter-spacing: .02em; }
.calendario { max-width: 640px; margin: 0 auto; text-align: left; }
.cal-mes { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1; margin: 0 0 18px 14px; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 10px; text-align: center; }
.cal-sem { font-size: 12px; font-weight: 500; letter-spacing: .14em; opacity: .7; padding-bottom: 8px; }
.cal-dia { position: relative; height: 54px; display: grid; place-items: center; font-size: 17px; font-weight: 400; color: rgba(248, 241, 226, .36); }
.cal-dia > span { position: relative; z-index: 1; }
.cal-dia.enc { --faixa: #6f5947; background: var(--faixa); color: var(--creme-claro); }
.cal-dia.ret { --faixa: #6f5947; background: var(--faixa); color: var(--creme-claro); font-weight: 500; }
/* emenda as células da faixa, sem frestas entre os dias */
.cal-dia.enc:not(.fim), .cal-dia.ret:not(.fim) { box-shadow: 2px 0 0 0 var(--faixa); }
/* último dia para encomendar: círculo bege cheio, número marrom */
.cal-dia.prazo { color: var(--marrom); font-weight: 700; }
.cal-dia.prazo::before {
  content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: var(--creme);
}
.leg-prazo { width: 18px !important; height: 18px !important; border-radius: 50% !important; background: var(--creme); }
.cal-dia.ini { border-radius: 999px 0 0 999px; }
.cal-dia.fim { border-radius: 0 999px 999px 0; }
.cal-dia.ini.fim { border-radius: 999px; }
.legenda { list-style: none; padding: 0; margin: 36px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; font-size: 13px; letter-spacing: .04em; }
.legenda li { display: flex; align-items: center; gap: 10px; }
.leg { width: 34px; height: 16px; border-radius: 999px; }
.leg-enc { background: #6f5947; }
.leg-ret { background: #6f5947; }
.datas-pinha { position: absolute; bottom: 28px; width: 112px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); }
.datas-pinha-esq { left: 5%; transform: rotate(-18deg); }
.datas-pinha-dir { right: 6%; width: 84px; bottom: 72px; transform: rotate(16deg); }

/* ---------- Quem faz: polaroid + carta ---------- */
.confeiteiras {
  max-width: var(--max); margin: 0 auto; padding: 112px 16px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center;
}
.polaroid-area { display: flex; justify-content: center; }
.polaroid { position: relative; margin: 0; width: min(390px, 100%); }
.polaroid::before, .polaroid::after {
  content: ""; position: absolute; inset: 0; background: #f7f5f1; z-index: -1;
  box-shadow: 0 8px 18px -12px rgba(61, 44, 31, .45);
}
.polaroid::before { transform: rotate(3deg) translate(10px, 8px); }
.polaroid::after { transform: rotate(-1deg) translate(-4px, 12px); }
.polaroid-papel {
  position: relative; background: #fff; padding: 16px 16px 0; transform: rotate(-3deg);
  box-shadow: 0 22px 40px -26px rgba(61, 44, 31, .6), 0 2px 6px rgba(61, 44, 31, .08);
}
.polaroid-papel img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { font-family: var(--f-display); font-weight: 700; font-size: 36px; text-align: center; padding: 6px 0 14px; color: var(--marrom); }

.carta-sombra { max-width: 520px; filter: drop-shadow(0 20px 26px rgba(61, 44, 31, .2)) drop-shadow(0 2px 3px rgba(61, 44, 31, .12)); transform: rotate(1.5deg); }
.carta-borda, .carta { --r: 7px; --t: calc(var(--r) * 2.6); }
.carta-borda {
  -webkit-mask:
    radial-gradient(var(--r) at 50% 0, #0000 97%, #000) 50% 0 / var(--t) 51% repeat-x,
    radial-gradient(var(--r) at 50% 100%, #0000 97%, #000) 50% 100% / var(--t) 51% repeat-x;
          mask:
    radial-gradient(var(--r) at 50% 0, #0000 97%, #000) 50% 0 / var(--t) 51% repeat-x,
    radial-gradient(var(--r) at 50% 100%, #0000 97%, #000) 50% 100% / var(--t) 51% repeat-x;
}
.carta {
  position: relative; background: #f6efe3; padding: 60px 56px 48px; text-align: center;
  -webkit-mask:
    radial-gradient(var(--r) at 0 50%, #0000 97%, #000) 0 50% / 51% var(--t) repeat-y,
    radial-gradient(var(--r) at 100% 50%, #0000 97%, #000) 100% 50% / 51% var(--t) repeat-y;
          mask:
    radial-gradient(var(--r) at 0 50%, #0000 97%, #000) 0 50% / 51% var(--t) repeat-y,
    radial-gradient(var(--r) at 100% 50%, #0000 97%, #000) 100% 50% / 51% var(--t) repeat-y;
}
.carta-topo { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--marrom-medio); margin: 0 0 18px; }
.carta-titulo { font-family: var(--f-display); font-weight: 400; font-size: 52px; line-height: 1.08; margin: 0 0 24px; }
.carta-titulo strong { font-weight: 700; }
/* pinhas pequenas nos cantos da carta (fundo bege, sem sombra) */
.carta-pinha { position: absolute; width: 46px; pointer-events: none; }
.carta-pinha-a { top: 22px; right: 24px; transform: rotate(18deg); }
.carta-pinha-b { bottom: 24px; left: 24px; width: 38px; transform: rotate(-24deg); }
.carta-texto { color: var(--marrom-medio); font-size: 14.5px; margin: 0 auto 12px; max-width: 360px; }
.lacre { filter: drop-shadow(0 8px 10px rgba(61, 44, 31, .35)); }
.lacre-carta { width: 88px; margin: 22px auto 0; transform: rotate(-6deg); }

@media (max-width: 900px) {
  .historia, .como-grade, .confeiteiras { grid-template-columns: 1fr; gap: 44px; }
  .historia-foto { max-width: 420px; margin: 0 auto; width: 100%; }
  .regras { grid-template-columns: 1fr; margin-top: 48px; }
  .confeiteiras { padding: 80px 20px; gap: 64px; }
  .carta-sombra { margin: 0 auto; }
  .carta { padding: 48px 30px 40px; }
}
@media (max-width: 640px) {
  .cal-grade { row-gap: 8px; }
  .cal-dia { height: 40px; font-size: 18px; }
  .cal-mes { font-size: 21px; }
  .datas { padding: 64px 12px 72px; }
  .datas-sub { font-size: 18px; }
  .datas-pinha { width: 72px; bottom: 22px; }
  .datas-pinha-dir { width: 56px; bottom: 34px; }
  .cal-dia { font-size: 15px; }
  .cal-dia.prazo::before { width: 36px; height: 36px; }
  .cal-mes { font-size: 30px; }
  .datas-sub { font-size: 14.5px; }
  .carta-titulo { font-size: 42px; }
  .carta-pinha-a { width: 34px; top: 16px; right: 16px; }
  .carta-pinha-b { width: 28px; bottom: 16px; left: 16px; }
  .como-fotos { gap: 10px; }
  .como-fotos .cf-alta { margin-top: 36px; }
}

/* ---------- Datas na sacola ---------- */
.escolha-data { border: 0; padding: 0; margin: 0; }
.escolha-data legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.dias { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.dados .dia-op { position: relative; display: block; }
.dia-op input { position: absolute; opacity: 0; pointer-events: none; }
.dia-op span {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 1.5px solid var(--linha); border-radius: 12px; padding: 7px 0 6px; background: #fff; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dia-op strong { font-size: 19px; font-weight: 600; line-height: 1.3; }
.dia-op small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--marrom-medio); }
.dia-op span:hover { border-color: var(--marrom-claro); }
.dia-op input:checked + span { background: var(--marrom); border-color: var(--marrom); color: var(--papel); }
.dia-op input:checked + span small { color: var(--creme); }
.dia-op input:focus-visible + span { outline: 2px solid var(--marrom-claro); outline-offset: 2px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--marrom); color: var(--creme); }
.rodape-conteudo {
  max-width: var(--max); margin: 0 auto; padding: 48px 16px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.rodape-marca img { width: 170px; height: auto; }
.rodape-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rodape-links a { text-decoration: none; }
.rodape-links a:hover { text-decoration: underline; }
.rodape-nota { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 16px 0 0; }

/* ---------- Barra fixa (celular) ---------- */
.barra-sacola {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: none; justify-content: space-between; align-items: center;
  background: var(--marrom); color: var(--papel); border: 0; border-radius: 999px;
  padding: 16px 22px; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}

/* ---------- Sacola ---------- */
.sacola-fundo { position: fixed; inset: 0; background: rgba(61, 44, 31, .4); z-index: 50; }
.sacola {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(440px, 100%); background: var(--papel);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  box-shadow: -20px 0 40px -20px rgba(61, 44, 31, .35);
}
.sacola.aberta { transform: none; visibility: visible; }
.sacola-topo { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--linha); }
.sacola-topo h2 { font-size: 44px; }
.fechar { background: none; border: 0; font-size: 32px; line-height: 1; padding: 4px 8px; }
.sacola-corpo { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
.item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.item-mini { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; }
.item-mini .placeholder { font-size: 0; }
.item-mini .placeholder .ph-pinha { width: 50%; }
.item-mini img:not(.ph-pinha) { width: 100%; height: 100%; object-fit: cover; }
.item-nome { font-size: 13px; font-weight: 600; line-height: 1.3; }
.item-op { font-size: 12px; color: var(--marrom-medio); }
.item-preco { font-size: 13px; }
.item .qtd { margin-top: 6px; width: max-content; }
.item .qtd button { width: 30px; height: 30px; font-size: 15px; }
.remover { background: none; border: 0; font-size: 12px; text-decoration: underline; color: var(--marrom-medio); align-self: start; }
.vazia { text-align: center; padding: 40px 0 20px; color: var(--marrom-medio); }
.vazia img { width: 80px; margin: 0 auto 12px; opacity: .8; }
.dados { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.dados h3 { margin-bottom: 0; }
.dados label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.dados small { font-weight: 400; color: var(--marrom-medio); }
.modalidade { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.modalidade legend { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.dados .opcao { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; border: 1.5px solid var(--linha); border-radius: 10px; padding: 10px 12px; display: block; }
.dados .opcao input { width: auto; margin: 0 8px 0 0; accent-color: var(--marrom); }
.erro { color: #a0392b; font-size: 13px; margin: 0; min-height: 1em; }
.sacola-rodape { border-top: 1px solid var(--linha); padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--papel); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.total strong { font-size: 22px; }
.sacola-nota { font-size: 12px; color: var(--marrom-medio); text-align: center; margin: 2px 0 0; }

/* ---------- Carrossel de fotos ---------- */
.carrossel { position: relative; width: 100%; height: 100%; }
.trilho {
  display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; scroll-snap-align: center; scroll-snap-stop: always; user-select: none; }
.produto .midia { cursor: pointer; background: var(--creme-claro); }
.seta {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 253, 249, .9); color: var(--marrom); font-size: 22px; line-height: 1;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
  box-shadow: 0 4px 12px -6px rgba(61, 44, 31, .5);
}
.seta-esq { left: 10px; } .seta-dir { right: 10px; }
.carrossel:hover .seta { opacity: 1; }
.pontos { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pontos span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 253, 249, .6); box-shadow: 0 0 0 1px rgba(90, 67, 48, .15); transition: .2s; }
.pontos span.ativo { background: var(--papel); width: 16px; border-radius: 3px; }
@media (hover: none) { .seta { display: none; } }

.nome-link { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; }
.nome-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rotulo-opcao { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--marrom-medio); }

/* ---------- Detalhe do produto ---------- */
.detalhe {
  position: fixed; inset: 0; z-index: 55; background: rgba(61, 44, 31, .45);
  display: grid; place-items: center; padding: 24px;
}
.detalhe-caixa {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px);
  background: var(--papel); border-radius: var(--raio); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.detalhe-conteudo { display: grid; grid-template-columns: auto 1fr; max-height: calc(100vh - 48px); }
.detalhe-fotos {
  height: min(calc(100vh - 48px), 720px); aspect-ratio: 2 / 3; background: var(--creme-claro);
}
.detalhe-fotos .trilho img { object-fit: cover; }
.detalhe-info { padding: 44px 36px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.detalhe-info h2 { font-size: clamp(48px, 5vw, 64px); }
.detalhe-preco { font-size: 18px; margin: 10px 0 6px; }
.detalhe-desc { color: var(--marrom-medio); margin: 0 0 18px; }
.detalhe-info .rotulo-opcao select { margin-bottom: 14px; }
.detalhe-info .produto-acoes { margin-top: 6px; }
.detalhe-nota { font-size: 12px; color: var(--marrom-medio); margin-top: 18px; }
.detalhe-fechar {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 253, 249, .92); display: grid; place-items: center; padding: 0;
}
@media (max-width: 760px) {
  .detalhe { padding: 0; place-items: end stretch; }
  .detalhe-caixa { border-radius: 18px 18px 0 0; max-height: 94vh; overflow-y: auto; }
  .detalhe-conteudo { grid-template-columns: 1fr; max-height: none; }
  .detalhe-fotos { height: auto; width: 100%; aspect-ratio: 2 / 3; }
  .detalhe-info { padding: 22px 20px 28px; overflow: visible; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70; transform: translate(-50%, 20px);
  background: var(--marrom); color: var(--papel); padding: 12px 20px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .hero-imagem { max-width: 420px; margin: 0 auto; width: 100%; }
  .pinha-flutuante { width: 90px; left: -12px; }
  .destaques-grade { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .destaque { scroll-snap-align: start; }
  .passos, .regras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .aviso { font-size: 10.5px; letter-spacing: .08em; }
  .menu, .sacola-txt { display: none; }
  .btn-sacola { padding: 8px 12px; }
  .hero h1 { font-size: 68px; }
  .hero-datas { gap: 24px; }
  .categorias-lista { justify-content: center; gap: 22px; }
  .cat { font-size: 9.5px; letter-spacing: .06em; gap: 8px; }
  .cat-circulo { width: 72px; height: 72px; }
  .secao { padding: 56px 16px; }
  .filtros { top: 58px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filtro { flex: 0 0 auto; }
  .grade { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .produto .desc { -webkit-line-clamp: 2; font-size: 12.5px; }
  .produto h3 { font-size: 11.5px; letter-spacing: .08em; }
  .produto-cabeca { flex-direction: column; gap: 2px; }
  .produto-acoes { flex-direction: column; }
  .qtd { justify-content: space-between; }
  .btn-add { padding: 10px; font-size: 12px; }
  .historia-cartao { padding: 36px 22px; }
  .rodape-conteudo { grid-template-columns: 1fr; }
  .barra-sacola:not([hidden]) { display: flex; }
  .destaque-info { padding: 14px 2px 0; }
  .destaque-info h3 { font-size: 28px; }
  .destaque-info p { font-size: 12px; }
}
@media (max-width: 360px) {
  .grade { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Segunda pinha da capa ---------- */
.pinha-flutuante.pinha-topo { left: auto; bottom: auto; right: -34px; top: 30%; width: 100px; transform: rotate(22deg); }
@media (max-width: 900px) { .pinha-flutuante.pinha-topo { right: -12px; top: 28%; width: 72px; } }

/* ---------- Telas estreitas ---------- */
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .historia, .como-grade, .confeiteiras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .historia-texto h2 { font-size: 56px; }
}

/* título da capa: uma frase por linha */
.hero h1 span { display: block; }

/* ---------- Campos obrigatórios e pedido empresarial ---------- */
.obrig { color: #a0392b; font-weight: 600; }
.obrig-nota { font-size: 12px; color: var(--marrom-medio); margin: -6px 0 0; }
.empresa { display: flex; flex-direction: column; gap: 12px; }
.dados .empresa-check {
  flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer;
  background: var(--creme-claro); border: 1.5px solid var(--linha); border-radius: 12px; padding: 14px;
}
.dados .empresa-check input { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--marrom); }
.empresa-check span { display: flex; flex-direction: column; gap: 3px; }
.empresa-check strong { font-size: 13.5px; font-weight: 600; }
.empresa-check small { font-size: 12px; line-height: 1.45; color: var(--marrom-medio); }

/* ---------- Datas: fechado, notas ---------- */
.leg-fechado { width: 18px !important; height: 18px !important; border-radius: 50% !important; border: 1px dashed rgba(248, 241, 226, .45); }
.datas-nota { margin: 26px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.dias-nota { font-size: 12px; line-height: 1.5; color: var(--marrom-medio); margin: 10px 0 0; }

/* quem prefere menos movimento no celular */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* =========================================================
   AJUSTES SÓ PARA CELULAR (até 640px) — o computador não muda
   ========================================================= */
@media (max-width: 640px) {
  /* Capa: foto larga em arco no topo, título logo abaixo */
  .hero { display: flex; flex-direction: column; gap: 0; padding: 20px 16px 40px; }
  .hero-imagem { order: -1; position: relative; width: 100%; max-width: none; margin: 0 0 26px; }
  .hero-imagem .arco { aspect-ratio: 4 / 3; border-radius: 999px 999px 14px 14px; }
  .hero-imagem .arco img { object-position: center 30%; }
  .hero-imagem .pinha-flutuante { display: block; width: 58px; left: -4px; bottom: -16px; filter: none; transform: rotate(-16deg); }
  .hero-imagem .pinha-topo { display: none; }
  .hero h1 { font-size: 60px; }

  /* Brownietone: foto inteira e menor */
  .secao.cardapio { padding-bottom: 28px; }
  .historia { padding-top: 4px; gap: 24px; }
  .historia-foto { max-width: 300px; }

  /* Como encomendar: as 3 fotos menores, sem zoom */
  .como-fotos { max-width: 300px; margin: 0 auto; gap: 8px; }
  .como-fotos .cf-alta { margin-top: 28px; }

  /* Selo da carta */
  .lacre-carta { width: 64px; }
}

/* ---------- Crédito no rodapé ---------- */
.rodape-credito { grid-column: 1 / -1; font-size: 12px; opacity: .7; margin: 0; }
.rodape-credito a { text-decoration: underline; text-underline-offset: 3px; }
.rodape-credito a:hover { opacity: 1; }

/* ---------- Como encomendar: galeria só no celular ---------- */
.como-fotos .cf-extra { display: none; }           /* no computador ficam só 3 fotos */
@media (max-width: 640px) {
  .como-fotos {
    max-width: none; margin: 0; gap: 8px;
    grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 52px;
  }
  .como-fotos img, .como-fotos .cf-alta { width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
  .como-fotos .cf-extra { display: block; }
  .como-fotos .cf-alta  { grid-column: 1; grid-row: 1 / span 4; }
  .como-fotos .cf-bites { grid-column: 2; grid-row: 1 / span 3; }
  .como-fotos .cf-taca  { grid-column: 1; grid-row: 5 / span 4; }
  .como-fotos .cf-bem   { grid-column: 2; grid-row: 4 / span 4; }
  .como-fotos .cf-nuts  { grid-column: 1; grid-row: 9 / span 3; }
  .como-fotos .cf-brig  { grid-column: 2; grid-row: 8 / span 4; }
}

/* ---------- Carta: texto final, espaçamento mais justo ---------- */
.carta { padding-top: 44px; padding-bottom: 40px; }
.carta-topo { margin-bottom: 12px; }
.carta-titulo { margin-bottom: 18px; }
.carta-texto { max-width: 390px; margin-bottom: 14px; line-height: 1.7; }
.carta-assinatura {
  font-family: var(--f-display); font-size: 30px; line-height: 1.05;
  margin: 18px 0 0; color: var(--marrom);
}
.carta-assinatura strong { font-weight: 700; font-size: 34px; }
.lacre-carta { margin-top: 18px; }
@media (max-width: 640px) {
  .carta { padding-top: 36px; padding-bottom: 32px; }
  .carta-assinatura { font-size: 26px; }
  .carta-assinatura strong { font-size: 30px; }
}

/* carta: linhas equilibradas, sem palavra sozinha no fim */
.carta-texto { text-wrap: balance; }


/* WhatsApp como botão principal da sacola (lançamento só com WhatsApp) */
.btn-whats.btn-whats-cheio { background: var(--whats); color: #fff; }
.btn-whats.btn-whats-cheio:hover { background: #255a41; }

