@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap");

:root {
  --brand: #0f766e;
  --bg: #f3f5f4;
  --surface: #ffffff;
  --text: #17201e;
  --muted: #66716e;
  --line: #e4e9e7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #101413; --surface: #1a1f1e; --text: #edf2f0; --muted: #9aa6a2; --line: #29302e; }
}
:root[data-theme="dark"] { --bg: #101413; --surface: #1a1f1e; --text: #edf2f0; --muted: #9aa6a2; --line: #29302e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

header.topo { background: var(--brand); color: #fff; padding: 28px 0 20px; border-radius: 0 0 24px 24px; }
.topo h1 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.topo p { margin: 4px 0 0; opacity: .85; }
.busca {
  width: 100%; height: 46px; margin-top: 18px; border: 0; border-radius: 12px;
  background: #fff; color: #17201e; font: inherit; outline: none; padding: 0 14px 0 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2366716e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.busca:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }

#lista { padding-top: 16px; }
details.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
details.cat summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 16px 16px; font-weight: 700; font-size: 17px;
}
details.cat summary::-webkit-details-marker { display: none; }
summary .t { flex: 1; }
summary .n {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  font-size: 13px; font-weight: 700;
}
summary::after {
  content: ""; width: 9px; height: 9px; margin: 0 4px 4px 2px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
details.cat ul { list-style: none; margin: 0; padding: 0 16px 6px; border-top: 1px solid var(--line); }
details.cat li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
details.cat li:last-child { border-bottom: 0; }
li .info { flex: 1; min-width: 0; }
li h3 { margin: 0; font-size: 15.5px; font-weight: 500; }
li p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.preco { flex: none; font-weight: 700; font-size: 15.5px; color: var(--brand); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .preco { color: var(--text); } }
:root[data-theme="dark"] .preco { color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.nota { font-size: 12.5px; color: var(--muted); text-align: center; padding: 20px 16px 32px; }
