:root {
  --ifood: #ea1d2c;
  --ifood-dark: #c3131f;
  --bg: #f5f5f5;
  --ink: #3e3e3e;
  --title: #1a1a1a;
  --muted: #717171;
  --paper: #ffffff;
  --line: #efefef;
  --ok: #50a773;
  --err: #ea1d2c;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
}

h1, h2 { margin: 0; color: #fff; font-weight: 800; }

.top,
.toolbar,
.item {
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

input, button, .btn { font: inherit; }

.search input,
.preco {
  width: 100%;
  border: 0;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  color: var(--title);
}

.search input:focus,
.preco:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(234, 29, 44, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ifood);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: var(--ifood);
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 29, 44, 0.22);
}

.top-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.top h1 { font-size: 22px; line-height: 1.15; }

.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.toolbar {
  margin: 16px auto 12px;
  width: min(980px, calc(100% - 24px));
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.progress-copy {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
  color: var(--muted);
}

.progress-copy strong {
  font-size: 30px;
  font-weight: 900;
  color: var(--ifood);
}

.bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--ifood);
  border-radius: inherit;
  transition: width .25s ease;
}

.search span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  border: 0;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.chip.on {
  background: var(--ifood);
  color: #fff;
}

.lista {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto 40px;
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  grid-template-columns: 52px 1fr 150px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.item.ok { outline: 1px solid #d7f0e1; background: #f7fcf9; }
.item.saving .preco { opacity: .65; }
.item.erro .preco { box-shadow: 0 0 0 2px rgba(234, 29, 44, 0.35); }

.num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff2f3;
  color: var(--ifood);
  font-size: 15px;
  font-weight: 900;
}

.nome {
  margin: 0 0 4px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--title);
}

.codigo {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.preco-wrap { position: relative; }

.preco-wrap::before {
  content: "R$";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.preco {
  padding-left: 40px;
  font-weight: 800;
  font-size: 18px;
  text-align: right;
}

.vazio {
  text-align: center;
  color: var(--muted);
}

.hidden { display: none; }

.status {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  min-height: 14px;
  color: var(--ok);
}

.status.err { color: var(--err); }

@media (max-width: 720px) {
  .top { align-items: center; }
  .top h1 { font-size: 18px; }
  .item { grid-template-columns: 40px 1fr; }
  .preco-wrap { grid-column: 1 / -1; }
  .preco { font-size: 22px; padding: 16px 16px 16px 44px; }
}
