* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6fb;
}

/* TOPO */
.topo {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  padding: 16px;
  text-align: center;
}

.topo h1 {
  margin: 0;
  font-size: 20px;
}

.topo span {
  font-size: 12px;
  opacity: 0.9;
}

/* BUSCA */
.busca {
  padding: 12px;
}

.busca input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* INFO */
.info {
  padding: 0 12px;
  font-size: 14px;
}

/* LISTA */
.lista-produtos {
  padding: 10px;
  margin-bottom: 80px;
}

.produto {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.produto img.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
  flex-shrink: 0;
  cursor: pointer;
}

.produto .dados {
  flex: 1;
}

.produto .codigo {
  font-weight: bold;
  color: #4f46e5;
  font-size: 14px;
}

.produto .descricao {
  font-size: 12px;
  color: #555;
}

.produto .qtd {
  font-size: 11px;
  color: #777;
}

.produto .seta {
  font-size: 22px;
  color: #999;
}

/* MENU */
.menu-inferior {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
}

/* DETALHES */
.foto-detalhe {
  max-width: 200px;
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

/* MODAL IMAGEM */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.fechar-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}
