/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Variáveis de design ===== */
:root {
  --bg-page: #f7f8fa;
  --bg-table: #ffffff;
  --text-primary: #1f2933;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
}

/* ===== Corpo da página ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}

/* ===== Título ===== */
.container h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ===== Tabela ===== */
.products-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-table);
  border-radius: 12px;
  overflow: hidden;
}

/* Cabeçalho */
.products-table thead {
  background-color: #f9fafb;
}

.products-table th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

/* Linhas */
.products-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

/* Última linha sem borda */
.products-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hover sutil */
.products-table tbody tr:hover {
  background-color: #f9fafb;
}

/* ===== Produto (imagem + nome) ===== */
.product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.product span {
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== Status ===== */
.status {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

/* Ativo */
.status-active {
  color: #166534;
  background-color: #dcfce7;
}

/* Inativo */
.status-inactive {
  color: #92400e;
  background-color: #fef3c7;
}

/* Esgotado */
.status-out {
  color: #991b1b;
  background-color: #fee2e2;
}

/* ===== Ações ===== */
.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.actions button:hover {
  background-color: #f3f4f6;
  color: var(--text-primary);
}

.actions svg {
  display: block;
}

