/* Identidade da Bianca Pieroni Confeitaria (banner no Figma): creme, vinho e dourado */
:root {
  --fundo: #fdf6ee;
  --texto: #670a1c;
  --corpo: #3d1f1a;
  --suave: #8a6b62;
  --linha: #ead8c6;
  --caixa: #f6e9da;
  --ouro: #c49a6c;
  --cartao: #fffaf4;
  --raio: 14px;
  --titulo: "Cinzel", Georgia, serif;
  --texto-fonte: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--texto-fonte);
  background: var(--fundo);
  color: var(--corpo);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.pagina { max-width: 480px; margin: 0 auto; padding: 32px 16px 48px; }

/* Placeholder de imagem: caixa cinza com um X, padrão de wireframe */
.placeholder {
  position: relative;
  background: var(--caixa);
  border: 1px dashed var(--linha);
  overflow: hidden;
}
.placeholder::before,
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--linha), transparent calc(50% + 0.5px));
}
.placeholder::after { transform: scaleX(-1); }

.rotulo {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--suave);
}

.voltar {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--suave);
  text-decoration: none;
}

/* ---------- Página de links ---------- */

.perfil { text-align: center; margin-bottom: 28px; }
.perfil .logo { width: 200px; height: auto; margin: 0 auto 4px; display: block; }
.perfil h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.perfil p { margin-top: 4px; font-size: 14px; color: var(--suave); }

.links { display: flex; flex-direction: column; gap: 12px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--texto);
  border-radius: var(--raio);
  color: var(--texto);
  text-decoration: none;
  transition: background 0.15s;
}
.link:hover { background: var(--caixa); }
.link .icone { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.link .texto { flex: 1; min-width: 0; }
.link strong { display: block; font-size: 16px; }
.link span { display: block; font-size: 13px; color: var(--suave); }
.link .seta { flex: none; font-size: 18px; }

.link.destaque { background: var(--texto); color: var(--fundo); }
.link.destaque span { color: #bdbdbd; }
.link.destaque:hover { background: #2a2a2a; }
.link.destaque .icone { background: #333; border-color: #555; }
.link.destaque .icone::before,
.link.destaque .icone::after { background: linear-gradient(to top right, transparent calc(50% - 0.5px), #555, transparent calc(50% + 0.5px)); }

.selo {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fundo);
  color: var(--texto);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rodape { margin-top: 36px; text-align: center; font-size: 13px; color: var(--suave); }
.rodape p + p { margin-top: 4px; }
.rodape a { color: var(--texto); }

/* ---------- Página de encomenda ---------- */

.cabecalho h1 { font-size: 26px; font-weight: 700; }
.cabecalho > p { margin-top: 6px; font-size: 14px; color: var(--suave); }

.avisos {
  margin: 20px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  font-size: 13px;
  list-style: none;
}
.avisos li + li { margin-top: 4px; }
.avisos li::before { content: "• "; }

.abas {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin: 16px -16px 0;
  padding: 12px 16px;
  background: var(--fundo);
  border-bottom: 1px solid var(--linha);
  overflow-x: auto;
  scrollbar-width: none;
}
.abas a {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: 13px;
  color: var(--texto);
  text-decoration: none;
}
.abas a:hover { border-color: var(--texto); }

.categoria { padding-top: 28px; scroll-margin-top: 56px; }
.categoria h2 { margin-bottom: 12px; font-size: 18px; }

.produto {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--linha);
}
.produto .foto { width: 88px; height: 88px; border-radius: 10px; }
.produto h3 { font-size: 15px; }
.produto p { font-size: 13px; color: var(--suave); }

.opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
}
.opcao .preco { color: var(--suave); }

.qtd { display: flex; align-items: center; gap: 10px; }
.qtd button {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--texto);
  border-radius: 50%;
  background: var(--fundo);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.qtd button:disabled { border-color: var(--linha); color: var(--linha); cursor: default; }
.qtd output { min-width: 16px; text-align: center; font-weight: 600; }

.formulario { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--texto); }
.formulario h2 { margin-bottom: 16px; font-size: 18px; }

.campo { margin-bottom: 14px; }
.campo label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.campo input,
.campo textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: var(--fundo);
  color: var(--texto);
}
.campo input:focus,
.campo textarea:focus { outline: 2px solid var(--texto); outline-offset: -1px; }
.campo small { display: block; margin-top: 4px; font-size: 12px; color: var(--suave); }

.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.escolha label {
  display: block;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
}
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha input:checked + label { border-color: var(--texto); background: var(--texto); color: var(--fundo); }

/* Barra fixa com o resumo do pedido */
.resumo {
  position: sticky;
  bottom: 0;
  margin: 24px -16px -48px;
  padding: 14px 16px 18px;
  background: var(--fundo);
  border-top: 1px solid var(--linha);
}
.resumo .linha { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.resumo .erro { margin-bottom: 10px; font-size: 13px; }

.botao {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--raio);
  background: var(--texto);
  color: var(--fundo);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
a.botao { text-align: center; text-decoration: none; }
.botao.secundario { margin-top: 8px; background: var(--fundo); color: var(--texto); border: 1.5px solid var(--texto); }

.opcao strong { font-weight: 600; }

/* Etapa 1 do pedido: lista enxuta, sem foto */
.produto.compacto { display: block; }

/* Etapa 2 do pedido: revisão dos itens */
.revisao {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}
.revisao ul { margin: 8px 0 10px; list-style: none; font-size: 14px; }
.revisao li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.link-texto {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--texto);
  text-decoration: underline;
  cursor: pointer;
}
.formulario { border-top: 0; margin-top: 24px; padding-top: 0; }

.botao:disabled { background: var(--linha); color: var(--suave); cursor: default; }

[hidden] { display: none !important; }

/* Fotos reais, quando o painel tiver cadastrado */
img.foto, img.miniatura { object-fit: cover; background: var(--caixa); }
.produto img.foto { width: 88px; height: 88px; border-radius: 10px; }

/* ---------- Painel ---------- */

.painel { max-width: 640px; }

.aviso-prototipo {
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px dashed var(--suave);
  border-radius: 10px;
  font-size: 12px;
  color: var(--suave);
}

.painel-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.painel-topo h1 { font-size: 24px; }

.painel-abas { margin-bottom: 20px; }
.painel-abas a.ativa { background: var(--texto); border-color: var(--texto); color: var(--fundo); }

.item-painel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--linha);
}
.item-painel.pausado { opacity: 0.45; }
.miniatura { flex: none; width: 52px; height: 52px; border-radius: 8px; }
.miniatura.grande { width: 96px; height: 96px; }
.item-texto { flex: 1; min-width: 0; }
.item-texto strong { display: block; font-size: 15px; }
.item-texto span { display: block; font-size: 12px; color: var(--suave); }
.etiquetas { margin-top: 4px; }
.etiquetas em {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 8px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  color: var(--texto);
}

/* Interruptor de disponível / pausado */
.chave { position: relative; flex: none; width: 40px; height: 24px; cursor: pointer; }
.chave input { position: absolute; opacity: 0; }
.chave span { position: absolute; inset: 0; border-radius: 999px; background: var(--linha); transition: background 0.15s; }
.chave span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fundo);
  transition: transform 0.15s;
}
.chave input:checked + span { background: var(--texto); }
.chave input:checked + span::after { transform: translateX(16px); }

.checagem { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.checagem input { width: 18px; height: 18px; accent-color: var(--texto); }
.checagem label { margin: 0; font-weight: 500; }
.campo.checagem { margin-bottom: 14px; }

.painel .formulario { margin-top: 0; }
.vazio, .restaurar { margin-top: 24px; font-size: 13px; color: var(--suave); text-align: center; }

/* Editor em janela */
.editor {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 24px 20px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  color: var(--texto);
}
.editor::backdrop { background: rgb(0 0 0 / 0.4); }
.editor h2 { margin-bottom: 16px; font-size: 18px; }

.foto-campo { display: flex; align-items: center; gap: 14px; }
.foto-campo input[type="file"] { font-size: 13px; }
.foto-campo .link-texto { display: block; margin-top: 6px; }

.linha-opcao { display: grid; grid-template-columns: 1fr 110px 24px; gap: 8px; margin-bottom: 8px; }
.linha-opcao input { width: 100%; padding: 10px; border: 1px solid var(--linha); border-radius: 8px; font: inherit; font-size: 15px; }

.editor-acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.editor-acoes > div { display: flex; gap: 8px; }
.editor-acoes .botao { width: auto; padding: 12px 18px; margin: 0; }
.perigo { color: #b00020; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--texto);
  color: var(--fundo);
  font-size: 14px;
}


/* ---------- Identidade ---------- */

h1, h2, .cabecalho h1, .categoria h2, .formulario h2, .painel-topo h1, .editor h2 {
  font-family: var(--titulo);
  font-weight: 600;
  color: var(--texto);
  letter-spacing: 0.02em;
}
.produto h3, .link strong, .item-texto strong { color: var(--texto); }

.rotulo { color: var(--ouro); font-weight: 600; letter-spacing: 0.14em; }

/* Floral do banner como enfeite nos cantos */
body { position: relative; overflow-x: hidden; }
body::before, body::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 270px;
  background: url("marca/floral.png") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}
body::before { top: -20px; left: -40px; }
body::after { top: -20px; right: -40px; transform: scaleX(-1); }
@media (min-width: 720px) {
  body::before, body::after { width: 380px; height: 390px; opacity: 0.7; }
}

.link {
  background: var(--cartao);
  border: 1px solid var(--linha);
  box-shadow: 0 6px 18px rgb(103 10 28 / 0.06);
}
.link:hover { background: #fff; border-color: var(--ouro); }
.link .icone {
  display: grid;
  place-items: center;
  background: var(--caixa);
  border: 0;
  color: var(--texto);
}
.link .icone::before, .link .icone::after { display: none; }
.link .icone svg { width: 22px; height: 22px; }
.link .seta { color: var(--ouro); }

.link.destaque { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.link.destaque strong { color: var(--fundo); }
.link.destaque span { color: #e8c9bf; }
.link.destaque:hover { background: #7d1226; }
.link.destaque .icone { background: rgb(253 246 238 / 0.14); color: var(--fundo); }
.link.destaque .seta { color: var(--ouro); }
.selo { background: var(--ouro); color: #fff; }

.rodape a { color: var(--texto); font-weight: 600; }

.avisos { background: var(--cartao); border-color: var(--linha); }
.abas { background: var(--fundo); }
.abas a { background: var(--cartao); color: var(--texto); }
.abas a:hover { border-color: var(--ouro); }
.produto { border-top-color: var(--linha); }
.produto .foto, .produto img.foto { border-radius: 12px; }
.opcao .preco { color: var(--texto); font-weight: 600; }
.qtd button { border-color: var(--texto); color: var(--texto); background: var(--cartao); }
.botao { background: var(--texto); color: var(--fundo); }
.botao:hover { background: #7d1226; }
.botao.secundario { background: transparent; color: var(--texto); border-color: var(--texto); }
.escolha input:checked + label { border-color: var(--texto); background: var(--texto); color: var(--fundo); }
.campo input, .campo textarea { background: var(--cartao); }
.campo input:focus, .campo textarea:focus { outline-color: var(--ouro); }
.resumo { background: var(--fundo); }
.chave input:checked + span { background: var(--texto); }
.checagem input { accent-color: var(--texto); }
.toast { background: var(--texto); color: var(--fundo); }

/* Logo pequena no topo das páginas internas */
.marca-topo { display: block; width: 92px; margin: 0 auto 12px; }

@media (prefers-reduced-motion: no-preference) { .link { transition: background 0.15s, border-color 0.15s; } }

/* Imagens dos botões (geradas no Figma da Bia) */
.link img.icone { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--fundo); }
.link.destaque img.icone { box-shadow: 0 0 0 2px rgb(253 246 238 / 0.25); }

/* ---------- Cardápio de encomendas (estilo do cardápio de bolos da Bia) ---------- */
.foto-destaque { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin: 18px 0 4px; box-shadow: 0 10px 28px rgb(103 10 28 / 0.12); }
.faixa {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 8px 26px;
  background: var(--texto);
  color: var(--fundo) !important;
  font-size: 17px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
}
.categoria .nota, .nota { margin: -4px 0 14px; font-size: 13px; color: var(--suave); text-align: center; }
.tabela-wrap { overflow-x: auto; margin: 0 0 14px; }
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabela th { background: var(--caixa); color: var(--texto); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; padding: 9px 12px; }
.tabela td { padding: 9px 12px; border-top: 1px solid var(--linha); }
.tabela td:last-child, .tabela th:last-child { text-align: right; }
.tabela.tamanhos td:last-child { color: var(--texto); font-weight: 700; white-space: nowrap; }
.tabela td strong { color: var(--texto); font-family: var(--titulo); font-size: 15px; }
.sabores-titulo { margin: 6px 0 6px; }
.sabores { list-style: none; }
.sabores li { padding: 10px 0; border-top: 1px dashed var(--linha); }
.sabores h3 { font-size: 15px; color: var(--texto); }
.sabores p { font-size: 13px; color: var(--suave); }
.doces { list-style: none; columns: 1; }
.doces li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--linha); font-size: 14px; }
.doces li strong { color: var(--texto); white-space: nowrap; }
.info { padding-top: 28px; }
.info p { font-size: 14px; margin-bottom: 10px; }
.info strong { color: var(--texto); }

/* ---------- Encomenda passo a passo ---------- */
.passo { padding-top: 34px; scroll-margin-top: 16px; }
.passo-num { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ouro); margin-bottom: 8px; }
.rotulo.sub { margin: 18px 0 8px; }

.tamanhos-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tamanho-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 6px; border: 1px solid var(--linha); border-radius: 14px;
  background: var(--cartao); color: var(--corpo); font: inherit; cursor: pointer; text-align: center;
}
.tamanho-card strong { font-family: var(--titulo); font-size: 20px; color: var(--texto); line-height: 1.1; }
.tamanho-card span { font-size: 12.5px; }
.tamanho-card small { font-size: 11.5px; color: var(--suave); }
.tamanho-card:hover { border-color: var(--ouro); }
.tamanho-card[aria-checked="true"] { background: var(--texto); border-color: var(--texto); }
.tamanho-card[aria-checked="true"] strong, .tamanho-card[aria-checked="true"] span { color: var(--fundo); }
.tamanho-card[aria-checked="true"] small { color: #e8c9bf; }
.tamanho-card:focus-visible, .escolha-card:focus-within { outline: 2px solid var(--ouro); outline-offset: 2px; }

.opcoes-lista { display: flex; flex-direction: column; gap: 8px; }
.escolha-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--linha); border-radius: 12px;
  background: var(--cartao); cursor: pointer;
}
.escolha-card + .escolha-card { margin-top: 8px; }
.opcoes-lista .escolha-card + .escolha-card { margin-top: 0; }
.escolha-card input { flex: none; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--texto); }
.escolha-card > span { flex: 1; min-width: 0; }
.escolha-card strong { display: block; font-size: 15px; color: var(--texto); }
.escolha-card small { display: block; font-size: 12.5px; color: var(--suave); line-height: 1.4; }
.escolha-card:has(input:checked), .escolha-card.marcado { border-color: var(--texto); box-shadow: inset 0 0 0 1px var(--texto); background: #fff; }
.preco-sabor { flex: none; font-style: normal; font-weight: 700; color: var(--texto); white-space: nowrap; font-variant-numeric: tabular-nums; }

.doce-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--linha); }
.doce-linha strong { display: block; font-size: 14.5px; color: var(--texto); font-weight: 600; }
.doce-linha small { font-size: 12.5px; color: var(--suave); }

.formulario { margin-top: 4px; }
.resumo-nota { display: block; margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--suave); }
.info .avisos { margin-top: 0; }
@media (max-width: 360px) { .tamanhos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.secao-nota { margin: 0 0 12px; font-size: 13px; color: var(--suave); }
.dica { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--texto); }

/* Docinhos de 10 em 10 */
.doce-linha { align-items: center; }
.doce-info { flex: 1; min-width: 0; }
.doce-total { display: block; margin-top: 2px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--texto); }
.selo-cento { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ouro); color: #fff; font-size: 11px; font-weight: 700; }
.doce-acoes { flex: none; display: flex; align-items: center; gap: 8px; }
.doce-acoes output { min-width: 26px; }
.mais-cento { padding: 6px 9px; border: 1px solid var(--ouro); border-radius: 999px; background: transparent; color: var(--texto); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mais-cento:hover { background: var(--caixa); }
.doce-linha.ativa strong { color: var(--texto); }

/* Botão do Instagram no cardápio de encomendas */
.link-insta { margin: 16px 0 24px; background: var(--cartao); }

/* Aviso do passo 1 em caixa */
.dica-box {
  margin: 16px auto 0;
  padding: 12px 16px;
  max-width: 400px;
  background: var(--caixa);
  border: 1.5px solid var(--ouro);
  border-radius: var(--raio);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}

/* Docinhos: +10 un. e +100 un. com o total à vista */
.doce-acoes { gap: 6px; }
.menos-doce { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--texto); background: var(--cartao); color: var(--texto); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.menos-doce:disabled { border-color: var(--linha); color: var(--linha); cursor: default; }
.qtd-doce { min-width: 54px; text-align: center; font-size: 13px; color: var(--suave); }
.qtd-doce b { font-size: 15px; color: var(--texto); }
.doce-acoes .mais-cento { padding: 7px 10px; white-space: nowrap; }
@media (max-width: 440px) {
  .doce-linha { flex-wrap: wrap; }
  .doce-acoes { width: 100%; justify-content: flex-end; }
}

.doce-total .selo-cento { display: table; margin: 4px 0 0; white-space: nowrap; }
