/* عطور البيت · protótipo mobile (RTL) */

@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-400-arabic.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-500-arabic.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-600-arabic.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-700-arabic.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Ar"; src: url(fonts/plex-arabic-700-latin.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --creme: #F5EFE6;      /* fundo */
  --papel: #FFFBF5;      /* superfícies */
  --areia: #E8DED1;      /* linhas */
  --areia-2: #EFE7DC;    /* preenchimento neutro */
  --tinta: #2A1A24;      /* texto e ícones (ameixa) */
  --fumo: #6B5D57;       /* texto secundário (AA sobre creme) */
  --ouro: #D4AF6A;       /* só botão principal e item ativo */
  --ouro-press: #C39D57;
  --noite: #2A1621;      /* fundo da logo: topo, abas e cartões de destaque */
  --nevoa: #D3C6BA;      /* texto secundário sobre a noite (AA) */
  --fio: #DCC394;        /* fio dourado fino dos cartões sobre o creme (decorativo) */
  --fio-escuro: rgba(212, 175, 106, .34); /* fio dourado sobre a noite */
  --raio-foto: 18px;
  --raio-card: 22px;
  --sombra: 0 1px 2px rgba(42, 26, 36, .05), 0 6px 18px -10px rgba(42, 26, 36, .18);
  --fonte: "Plex Ar", "Segoe UI", Tahoma, sans-serif;
  --topo: env(safe-area-inset-top, 0px);
  --base: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--noite); scroll-padding-top: 100px; scroll-padding-bottom: 150px; }
body {
  margin: 0; font-family: var(--fonte); font-size: 17px; line-height: 1.7; color: var(--tinta);
  background: var(--noite); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button, a { cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--tinta); outline-offset: 3px; border-radius: 12px; }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g { font-variant-numeric: tabular-nums; unicode-bidi: isolate; white-space: nowrap; font-weight: 700; }

/* Coluna do app */
.app { position: relative; max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--creme); overflow-x: clip; }
#tela { min-height: 100dvh; }
.tela { padding: 0 0 calc(112px + var(--base)); }

/* Identidade da tela de entrar no app inteiro: topo em ameixa, conteúdo numa folha creme que sobe sobre ele */
.escuro { color: var(--creme); }
.escuro :focus-visible, .escuro:focus-visible { outline-color: var(--ouro); }
.topo-escuro { display: flow-root; padding: calc(var(--topo) + 20px) 20px 50px; background: var(--noite); color: var(--creme); }
.topo-escuro.curto { padding-top: 0; padding-bottom: 46px; }
.conteudo { position: relative; margin-top: -28px; padding: 26px 20px 0; background: var(--creme); border-radius: 28px 28px 0 0; }
.escuro .meta, .escuro .meta svg { color: var(--nevoa); }
.escuro .nivel i { background: rgba(245, 239, 230, .24); }
.escuro .nivel i.on { background: var(--creme); }
.escuro .ico-btn { background: transparent; color: var(--creme); box-shadow: 0 0 0 1px var(--fio-escuro) inset; }
.escuro .ico-btn:active { background: rgba(245, 239, 230, .08); }

/* Entrada dos elementos: sobem em sequência (sem fade de tela nem deslize lateral) */
.r { animation: subir .42s cubic-bezier(.2, .75, .25, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .r, .pulsa, .foto::before, dialog.sheet[open] { animation: none !important; } * { transition-duration: 0s !important; } }

/* Barra de topo das telas internas */
.barra { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px;
  padding: calc(var(--topo) + 10px) 14px 12px; background: var(--noite); }
.barra h1 { font-size: 18px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--papel); box-shadow: 0 0 0 1px var(--areia) inset; }
.ico-btn svg { width: 22px; height: 22px; }
.ico-btn:active { background: var(--areia-2); }
svg { flex: none; }

/* Botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 22px; border: 0; border-radius: 16px;
  font-size: 18px; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center; }
.btn-ouro { background: var(--ouro); color: var(--tinta); }
.btn-ouro:active { background: var(--ouro-press); }
.btn-linha { background: transparent; color: var(--tinta); box-shadow: 0 0 0 1.5px var(--tinta) inset; }
.btn-linha:active { background: var(--areia-2); }
.btn-texto { background: transparent; color: var(--tinta); min-height: 48px; font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 22px; height: 22px; }
.girando { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(42, 26, 36, .25); border-top-color: var(--tinta); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .btn-ouro:hover { background: var(--ouro-press); }
  .linha-card:hover, .extra:not(.fechado):hover, .fav:hover { background: #FBF4EA; }
  .chip:hover { background: rgba(212, 175, 106, .14); }
  .cartao a:hover h3, .cat:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--areia); text-decoration-thickness: 2px; }
  .aba:hover { color: var(--creme); }
  .btn-linha:hover, .ico-btn:hover { background: var(--areia-2); }
  .escuro .ico-btn:hover { background: rgba(245, 239, 230, .08); }
  .passo-base .btn-texto:hover { background: rgba(245, 239, 230, .06); }
}

/* Abas de baixo */
.abas { position: fixed; z-index: 20; bottom: 0; inset-inline: 0; max-width: 430px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + var(--base)); background: var(--noite); border-top: 1px solid var(--fio-escuro); }
.abas :focus-visible { outline-color: var(--ouro); }
.abas[hidden] { display: none; }
.aba { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 58px; padding: 4px 2px; border: 0; background: none; text-decoration: none; color: var(--nevoa); font-size: 13px; font-weight: 500; line-height: 1.3; }
.aba .pilula { width: 58px; height: 32px; display: grid; place-items: center; border-radius: 16px; transition: background-color .2s; }
.aba svg { width: 23px; height: 23px; }
.aba[aria-current="page"] { color: var(--creme); font-weight: 700; }
.aba[aria-current="page"] .pilula { background: var(--ouro); color: var(--tinta); }

/* Entrar */
.entrar { min-height: 100dvh; display: flex; flex-direction: column; background: var(--noite); }
.entrar-topo { flex: 1 0 auto; display: grid; place-items: center; padding: calc(var(--topo) + 28px) 24px 36px; min-height: 330px; }
.entrar-topo img { width: 196px; height: auto; }
.entrar-topo p { margin-top: 6px; color: #E9DDD0; font-size: 16px; text-align: center; }
.folha { background: var(--creme); border-radius: 28px 28px 0 0; padding: 22px 20px calc(28px + var(--base)); }
.seg { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--areia-2); }
.seg button { min-height: 48px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--fumo); padding: 6px 4px; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--ouro); color: var(--tinta); font-weight: 700; }
.campo { display: block; margin-top: 18px; }
.campo > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.caixa { position: relative; }
.campo input { width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--areia); border-radius: 14px; background: var(--papel); font-size: 17px; }
.campo input:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(42, 26, 36, .12); }
.campo input[aria-invalid="true"] { border-color: #A8323A; }
.campo input[dir="ltr"] { text-align: left; }
.campo .olho { position: absolute; top: 4px; left: 4px; width: 48px; height: 48px; border: 0; border-radius: 12px; background: none; display: grid; place-items: center; color: var(--fumo); }
.campo .olho svg { width: 22px; height: 22px; }
.campo input.com-olho { padding-left: 56px; }
.ajuda { margin-top: 6px; font-size: 14px; color: var(--fumo); }
.erro { margin-top: 6px; font-size: 15px; font-weight: 600; color: #A8323A; }
.erro:empty { display: none; }
.form-acao { margin-top: 26px; }

/* Início */
.ola { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.ola h1 { font-size: 30px; font-weight: 700; line-height: 1.3; }
.ola p { margin-top: 4px; color: var(--nevoa); font-size: 17px; }
.conteudo > .secao:first-child { margin-top: 0; }
.secao { margin-top: 30px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.secao-topo h2 { font-size: 20px; font-weight: 700; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 16px; font-weight: 600; color: var(--tinta); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--areia); text-decoration-thickness: 2px; }
.escuro .link { color: var(--ouro); text-decoration-color: var(--fio-escuro); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--creme); box-shadow: 0 0 0 1px var(--fio-escuro) inset; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.chip:active { background: rgba(212, 175, 106, .14); }

/* Cartões de receita */
.cartao { position: relative; display: block; text-decoration: none; color: inherit; border: 1px solid var(--fio); border-radius: var(--raio-foto); background: var(--papel); overflow: hidden; }
.cartao .foto { border-radius: 0; }
.cartao-txt { padding: 10px 12px 13px; }
/* O cartão corta o que passa da borda: o foco do link vai no cartão inteiro */
.cartao-link:focus-visible { outline: none; }
.cartao:has(.cartao-link:focus-visible) { outline: 2.5px solid var(--tinta); outline-offset: 3px; }
.foto { position: relative; aspect-ratio: 3 / 2; border-radius: var(--raio-foto); overflow: hidden; background: #EEE5D8; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 15px; color: var(--fumo); line-height: 1.5; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 17px; height: 17px; }
.nivel { display: inline-flex; gap: 3px; }
.nivel i { width: 6px; height: 6px; border-radius: 50%; background: var(--areia); }
.nivel i.on { background: var(--tinta); }
.cartao.grande { border-radius: var(--raio-card); background: var(--noite); border-color: var(--noite); color: var(--creme); }
.cartao.grande .cartao-txt { padding: 14px 18px 18px; }
.cartao.grande h3 { font-size: 21px; }
.cartao.grande .meta, .cartao.grande .meta svg { color: var(--nevoa); }
.cartao.grande .nivel i { background: rgba(245, 239, 230, .24); }
.cartao.grande .nivel i.on { background: var(--creme); }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.coracao { position: absolute; top: 10px; left: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--tinta); background: rgba(255, 251, 245, .92); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(42, 26, 36, .12); }
.coracao svg { width: 21px; height: 21px; }
.coracao[aria-pressed="true"] svg path { fill: var(--tinta); }
.linha-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--raio-card); background: var(--papel); border: 1px solid var(--fio); text-decoration: none; }
.linha-card .ico-redondo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--noite); color: var(--ouro); flex: none; }
.linha-card .ico-redondo svg { width: 24px; height: 24px; }
.linha-card strong { display: block; font-size: 17px; line-height: 1.45; }
.linha-card small { display: block; font-size: 15px; color: var(--fumo); line-height: 1.5; }
.linha-card .seta { margin-inline-start: auto; width: 20px; height: 20px; color: var(--fumo); }

/* Cabeçalho das telas de aba */
.cabeca h1 { font-size: 30px; font-weight: 700; line-height: 1.3; }
.cabeca p { margin-top: 4px; color: var(--nevoa); }

/* Categorias */
.cat { display: block; text-decoration: none; border: 1px solid var(--fio); border-radius: var(--raio-foto); background: var(--papel); overflow: hidden; }
.cat .foto { border-radius: 0; }
.cat-corpo { padding: 10px 12px 13px; }
.cat-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat.grande { border-radius: var(--raio-card); background: var(--noite); border-color: var(--noite); color: var(--creme); }
.cat.grande .cat-corpo { padding: 14px 18px 18px; }
.cat.grande p, .cat.grande .conta { color: var(--nevoa); }
.cat h2 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.cat.grande h2 { font-size: 22px; }
.cat p { font-size: 15px; color: var(--fumo); line-height: 1.5; }
.cat .conta { flex: none; font-size: 15px; color: var(--fumo); }
.cats-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cats-grade .cat-txt { display: block; }
.cats-grade .conta { display: block; margin-top: 2px; }

/* Lista de receitas */
.intro { margin: 2px 0 0; color: var(--nevoa); }

/* Receita */
.heroi { position: relative; background: var(--noite); }
.heroi .foto { border-radius: 0 0 28px 28px; aspect-ratio: 3 / 2; }
.receita-topo { padding-top: 22px; }
.heroi-btns { position: absolute; top: calc(var(--topo) + 12px); inset-inline: 14px; display: flex; justify-content: space-between; z-index: 3; }
.heroi-btns .ico-btn { background: rgba(255, 251, 245, .94); box-shadow: 0 1px 6px rgba(42, 26, 36, .14); }
.heroi-btns .ico-btn[aria-pressed="true"] svg path { fill: var(--tinta); }
.receita { padding-bottom: calc(120px + var(--base)); }
.receita > .bloco:first-child { margin-top: 0; }
.receita-topo .tag { font-size: 15px; color: var(--ouro); font-weight: 600; }
.receita-topo h1 { font-size: 28px; font-weight: 700; line-height: 1.35; margin-top: 2px; }
.receita-topo .desc { margin-top: 8px; color: var(--nevoa); }
.receita-topo .meta { margin-top: 14px; font-size: 16px; gap: 6px 18px; }
.bloco { margin-top: 32px; }
.bloco > h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.qtd-legenda { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; color: var(--fumo); }
.seg.qtd button { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 17px; }
.seg.qtd button small { font-size: 13px; font-weight: 500; line-height: 1.3; }
.ings { list-style: none; margin: 0; padding: 4px 18px; border-radius: var(--raio-card); background: var(--papel); border: 1px solid var(--fio); }
.ings li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--areia); }
.ings li:last-child { border-bottom: 0; }
.ings-com-foto li { align-items: center; }
.ing-identidade { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ing-foto { display: block; flex: none; object-fit: cover; }
.ing-identidade .ing-foto { border-radius: 50%; }
.ings-com-foto .g { flex: none; }
.ings .nome { font-size: 17px; }
.ings .g { font-size: 20px; letter-spacing: -.01em; }
.ings .g small { font-size: 14px; font-weight: 600; color: var(--fumo); margin-inline-start: 4px; }
.pulsa { animation: pulsa .35s ease-out; }
@keyframes pulsa { 40% { color: #8A6A2E; } }
.ferr { display: flex; flex-wrap: wrap; gap: 8px; }
.ferr span { padding: 6px 14px; border-radius: 999px; background: var(--areia-2); font-size: 15px; line-height: 1.5; }
.passos { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.passos li { position: relative; padding: 0 50px 18px 0; counter-increment: p; }
.passos li::before { content: counter(p); position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px var(--fio) inset; background: var(--papel); font-weight: 700; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
.passos li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: 16.5px; bottom: 4px; width: 1px; background: var(--areia); }
.passos .tempo { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--areia-2); font-size: 14px; font-weight: 600; }
.passos .tempo svg { width: 16px; height: 16px; }
.dica { margin-top: 10px; padding: 16px 18px; border-radius: var(--raio-card); background: var(--noite); color: var(--creme); }
.dica strong { display: block; font-size: 16px; margin-bottom: 2px; color: var(--ouro); }
.rodape { position: fixed; z-index: 15; bottom: 0; inset-inline: 0; max-width: 430px; margin: 0 auto; padding: 12px 20px calc(14px + var(--base));
  background: var(--noite); border-top: 1px solid var(--fio-escuro); }

/* Modo passo a passo */
.passo-tela { min-height: 100dvh; display: flex; flex-direction: column; background: var(--creme); }
.passo-topo { position: sticky; top: 0; z-index: 5; padding: calc(var(--topo) + 10px) 14px 14px; background: var(--noite); }
.passo-topo .linha { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.passo-topo .nome { text-align: center; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--creme); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progresso { height: 6px; margin: 12px 6px 0; border-radius: 3px; background: rgba(245, 239, 230, .16); overflow: hidden; }
.progresso i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--ouro); transform: scaleX(0); transform-origin: right center; transition: transform .45s cubic-bezier(.3, .7, .3, 1); }
.passo-corpo { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 18px 20px 24px; text-align: center; }
.passo-corpo.centro { justify-content: center; }
.passo-foto { flex: none; margin-bottom: 16px; border-radius: var(--raio-card); border: 1px solid var(--fio); }
.passo-corpo .qual { font-size: 16px; font-weight: 600; color: var(--fumo); }
.passo-corpo .num { font-size: 76px; font-weight: 300; line-height: 1.1; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.passo-corpo p { font-size: 21px; line-height: 1.7; font-weight: 500; padding: 0 4px; }
.passo-corpo p .g { font-weight: 700; padding: 0 2px; }
.passo-corpo .tempo { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 16px; border-radius: 999px; background: var(--areia-2); font-size: 16px; font-weight: 600; }
.passo-corpo .tempo svg { width: 18px; height: 18px; }
.passo-base { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 4px; padding: 12px 20px calc(10px + var(--base)); background: var(--noite); border-top: 1px solid var(--fio-escuro); }
.passo-base .btn-texto { color: var(--creme); }
.fim-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--tinta) inset; }
.fim-ico svg { width: 38px; height: 38px; }
.passo-corpo h2 { font-size: 26px; font-weight: 700; }
.passo-corpo .sub { margin-top: 8px; font-size: 18px; color: var(--fumo); font-weight: 400; line-height: 1.7; }

/* Onde comprar */
.lojas { display: grid; gap: 14px; }
.loja { padding: 18px; border-radius: var(--raio-card); background: var(--papel); border: 1px solid var(--fio); }
.loja-topo { display: flex; align-items: center; gap: 12px; }
.loja-topo .ico-redondo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--noite); color: var(--ouro); flex: none; }
.loja-topo .ico-redondo svg { width: 22px; height: 22px; }
.loja h2 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.loja ul { list-style: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin: 14px 0 0; padding: 0; }
.loja li { padding: 4px 12px; border-radius: 999px; background: var(--areia-2); font-size: 15px; line-height: 1.6; }
.loja .loja-ingrediente { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 7px 8px; border-radius: 12px; text-align: center; }
.loja-fotos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.loja-fotos .ing-foto { border-radius: 8px; }
.loja .dica-loja { margin-top: 12px; font-size: 15px; color: var(--fumo); line-height: 1.65; }
.aswaq { margin-top: 14px; padding: 20px 20px 8px; border-radius: var(--raio-card); background: var(--noite); }
.aswaq h2 { font-size: 20px; font-weight: 700; }
.aswaq > p { margin-top: 2px; margin-bottom: 6px; color: var(--nevoa); font-size: 16px; }
.souq { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--fio-escuro); }
.souq strong { font-size: 17px; }
.souq span { color: var(--nevoa); font-size: 15px; }

/* Favoritas */
.fav-lista { display: grid; gap: 14px; }
.fav { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; padding-inline-end: 6px; border-radius: var(--raio-card); background: var(--papel); border: 1px solid var(--fio); }
.fav > a { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; }
.fav .foto { width: 108px; flex: none; border-radius: 14px; }
.fav h2 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.fav-txt { min-width: 0; }
.fav .meta { margin-top: 2px; font-size: 14px; gap: 2px 10px; }
.fav .tirar { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.fav .tirar svg { width: 22px; height: 22px; }
.fav .tirar[aria-pressed="true"] svg path { fill: var(--tinta); }
.vazio { text-align: center; padding: 30px 12px 0; }
.vazio .fim-ico { box-shadow: none; background: var(--areia-2); }
.vazio h2 { font-size: 22px; font-weight: 700; }
.vazio p { margin: 8px auto 26px; color: var(--fumo); max-width: 30ch; }

/* Extras */
.extra { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--raio-card); background: var(--papel); border: 1px solid var(--fio); text-decoration: none; }
.extra .foto { width: 118px; flex: none; border-radius: 14px; }
.extra h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.extra p { font-size: 15px; color: var(--fumo); line-height: 1.5; margin-top: 2px; }
.extra .estado { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; }
.extra .estado svg { width: 16px; height: 16px; }
.extra.fechado .foto img { filter: saturate(.55) brightness(.94); }
.extra.fechado .cadeado { position: absolute; inset: 0; display: grid; place-items: center; }
.extra.fechado .cadeado span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 251, 245, .94); }
.extra.fechado .cadeado svg { width: 20px; height: 20px; }
.extra-txt { flex: 1; min-width: 0; }
.extra .btn { min-height: 44px; margin-top: 10px; padding: 8px 14px; font-size: 15px; border-radius: 12px; width: auto; display: inline-flex; }
.extra .seta { width: 20px; height: 20px; color: var(--fumo); flex: none; }
.lista-extras { display: grid; gap: 14px; }
.sub-secao { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.sub-secao:first-of-type { margin-top: 0; }

/* Folhas (dialog) */
dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 430px; margin: 0 auto; padding: 10px 20px calc(22px + var(--base)); border: 0; border-radius: 28px 28px 0 0; background: var(--papel); color: var(--tinta); max-height: 90dvh; }
dialog.sheet { overscroll-behavior: contain; overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(42, 22, 34, .42); }
dialog.sheet[open] { animation: folha .32s cubic-bezier(.2, .8, .25, 1); }
@keyframes folha { from { transform: translateY(40px); opacity: .4; } }
.sheet .pega { width: 40px; height: 5px; border-radius: 3px; background: var(--areia); margin: 0 auto 16px; }
.sheet h2 { font-size: 22px; font-weight: 700; text-align: center; }
.sheet .sheet-txt { margin: 8px 0 22px; color: var(--fumo); text-align: center; }
.sheet .conta-email { margin: 8px 0 22px; text-align: center; color: var(--fumo); font-size: 16px; word-break: break-all; }
.sheet .acoes { display: grid; gap: 8px; }
.sheet .cadeado-g { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--areia-2); }
.sheet .cadeado-g svg { width: 28px; height: 28px; }

/* Esqueleto (carregando imagem) */
.foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) #EEE5D8; background-size: 220% 100%; animation: brilho 1.3s linear infinite; }
.foto.ok::before { display: none; }
.foto img { position: relative; }
@keyframes brilho { to { background-position: -120% 0; } }

/* Seção nova (DEM-1641): cartão grande da categoria no fim de الأقسام */
.cat-fim { margin-top: 14px; }

/* Busca (DEM-1641) */
.busca-link { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 24px; padding: 0 16px; border-radius: 16px; color: var(--nevoa); box-shadow: 0 0 0 1px var(--fio-escuro) inset; text-decoration: none; font-size: 16px; }
.busca-link svg { width: 20px; height: 20px; flex: none; }
.busca-link:active { background: rgba(245, 239, 230, .06); }
.busca { position: relative; }
.busca input { width: 100%; min-height: 56px; padding: 12px 16px; padding-inline-start: 48px; padding-inline-end: 54px; border: 0; border-radius: 16px; background: var(--papel); color: var(--tinta); font-size: 17px; -webkit-appearance: none; appearance: none; }
.busca input::placeholder { color: var(--fumo); opacity: 1; }
.busca input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.busca input:focus-visible { outline: 2.5px solid var(--ouro); outline-offset: 3px; }
.busca-ico { position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%); display: grid; color: var(--fumo); pointer-events: none; }
.busca-ico svg { width: 21px; height: 21px; }
.busca .limpar { position: absolute; top: 4px; inset-inline-end: 4px; width: 48px; height: 48px; border: 0; border-radius: 12px; background: none; display: grid; place-items: center; color: var(--fumo); }
.busca .limpar svg { width: 20px; height: 20px; }
.busca .limpar:focus-visible { outline-color: var(--tinta); outline-offset: -2px; }
.busca-conta { margin: 0 0 12px; font-size: 15px; color: var(--fumo); }
.sugestoes h2 { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.chips-claros { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-claro { min-height: 46px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--papel); box-shadow: 0 0 0 1px var(--fio) inset; color: var(--tinta); font-size: 16px; font-weight: 600; }
.chip-claro:active { background: var(--areia-2); }
.fav-cat { display: block; font-size: 13px; line-height: 1.5; color: var(--fumo); }
@media (hover: hover) {
  .busca-link:hover { background: rgba(245, 239, 230, .06); }
  .chip-claro:hover { background: var(--areia-2); }
  .busca .limpar:hover { background: var(--areia-2); }
}
.resultado .fav { content-visibility: auto; contain-intrinsic-size: auto 96px; }
.busca-link, .chip-claro, .busca .limpar { touch-action: manipulation; }
.busca .limpar[hidden] { display: none; }
