html { background: var(--cafe); }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 100vh; }
.topo { background: var(--cafe); padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 10; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.topo img { height: 30px; width: auto; }
.abas-topo { display: none; gap: 4px; }
.abas-topo button { background: transparent; color: #E8DDD6; border: 0; font-weight: 600; padding: 0 16px; min-height: 44px; border-radius: var(--r-pill); cursor: pointer; }
.abas-topo button[aria-current="page"] { background: var(--coral); color: var(--cafe); }
.abas-baixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--borda); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.abas-baixo button { background: none; border: 0; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--suave); cursor: pointer; }
.abas-baixo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.abas-baixo button[aria-current="page"] { color: var(--tomate); }
@media (min-width: 820px) { .abas-topo { display: flex; } .abas-baixo { display: none; } body { padding-bottom: 24px; } }

main.wrap { padding-top: 18px; padding-bottom: 24px; }
.vazio { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.vazio .btn { width: 100%; max-width: 320px; }
.roda { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--pessego); border-top-color: var(--tomate); animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.busca label { display: block; font-family: var(--f-titulo); font-weight: 800; font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.campo { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--borda); border-radius: var(--r-md); padding: 0 14px; min-height: 52px; color: var(--suave); }
.campo:focus-within { border-color: var(--tomate); }
.campo input { flex: 1; min-width: 0; border: 0; outline: none; font: 16px var(--f-texto); color: var(--cafe); background: transparent; min-height: 48px; }
.campo input::-webkit-search-cancel-button { display: none; }
.limpar { background: var(--papel); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; color: var(--suave); cursor: pointer; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .chip svg { width: 16px; height: 16px; transition: transform .3s; }
.cats .chip[aria-pressed="true"] svg { transform: rotate(-12deg) scale(1.1); }

.tit { font-size: 20px; margin: 22px 0 4px; }
.tit-aba { font-size: 26px; margin-bottom: 6px; }
.pequeno { font-size: 13px; margin-bottom: 10px; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.oferta .por { font-size: 20px; }
.oferta .quando { font-size: 11px; color: var(--suave); }
.oferta .barato { background: var(--folha); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--r-sm); padding: 4px 8px; align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips .chip { min-height: 32px; font-size: 12px; }

.novo { padding: 20px; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.novo h2 { font-size: 20px; }
.instalar { position: relative; margin-top: 14px; padding: 16px 44px 16px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.instalar .btn { min-height: 42px; }
.fechar { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; color: var(--suave); cursor: pointer; }
.naoachou { margin-top: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.lojas { display: flex; gap: 8px; flex-wrap: wrap; }
.lojas .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }

.add { padding: 16px; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.add label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.add input { width: 100%; min-height: 48px; border: 1.5px solid var(--borda); border-radius: var(--r-sm); padding: 0 12px; font: 16px var(--f-texto); color: var(--cafe); }
.add input:focus { border-color: var(--tomate); outline: none; }
.linha2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 6px; }
.sugestoes .chip { min-height: 34px; font-size: 12px; }
.item { padding: 16px; margin-bottom: 12px; }
.item .cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item h2 { font-size: 18px; }
.item .alvo { font-size: 13px; color: var(--suave); }
.item .alerta { background: var(--folha); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: var(--r-sm); margin-top: 8px; display: inline-block; }
.item .rem { background: none; border: 0; color: var(--suave); font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 40px; }
.item .grade { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.conta { padding: 20px; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.conta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.conta dt { color: var(--suave); font-size: 14px; }
.conta dd { margin: 0; font-weight: 600; }
.conta .btn { width: 100%; }
.rodape { margin-top: 32px; }
