/* ==========================================================================
   NC Catálogo — Design System
   Tokens, reset e componentes base. Paleta/tipografia preservadas do
   protótipo aprovado (tmp/prototype/styles.css) — self-hospedado aqui,
   sem CDN.
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-display.woff2') format('woff2');
}

:root {
  --ink: #18312e;
  --muted: #667773;
  --cream: #f7f6f1;
  --paper: #fff;
  --line: #e5e8e0;
  --sage: #a8bd9d;
  --green: #2f6b56;
  --coral: #df725f;
  --gold: #d5a657;

  --font-ui: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  color: inherit;
}

.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 700;
}

h1 {
  font-family: var(--font-display);
}

/* Botões */

.primary {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.primary:hover {
  background: #245442;
}

.secondary {
  display: inline-block;
  padding: 12px 16px;
  background: #eef1ec;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

/* Card e campos de formulário */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 400;
}

.field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field-checkbox input {
  width: auto;
}

/* Tabela */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 8px;
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  background: #e5f1e1;
  color: var(--green);
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-inativo,
.status-cancelado {
  background: #f1e5e5;
  color: var(--coral);
}

.status-novo {
  background: #eef1ec;
  color: var(--ink);
}

.status-em-atendimento {
  background: #faf1e0;
  color: #8a6a2c;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit {
  display: inline-block;
  padding: 7px 11px;
  background: #eef2eb;
  color: var(--green);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.edit.is-danger {
  background: #f6e9e7;
  color: var(--coral);
}

.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.thumb-grande {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0 16px;
}

/* Paginação */

.pagination {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.pagination-btn {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.pagination-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Alertas / flash */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-sucesso {
  background: #e5f1e1;
  color: var(--green);
}

.alert-erro {
  background: #f6e9e7;
  color: var(--coral);
}

/* Modal de confirmação */

.modal {
  position: fixed;
  inset: 0;
  background: #18312e77;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 20px;
}

.modal-card {
  background: white;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 25px;
}

.modal-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
