/* Cão Mimado — fundo creme, curvas suaves, laranja da marca, alto contraste. */
:root {
  --cream: #fbf5ec;
  --cream-2: #f4eadb;
  --paper: #ffffff;
  --ink: #1f1a17;
  --ink-2: #4a423c;
  --muted: #6b6159;
  --orange: #f08a24;        /* destaque grande */
  --orange-strong: #b9520a; /* botões/links: contraste AA com branco */
  --orange-soft: #ffe6cc;
  --green: #1b7f3a;
  --green-soft: #ddf3e3;
  --red: #b00020;
  --red-soft: #fde4e7;
  --yellow-soft: #fff3c4;
  --line: #e7dccb;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 0 rgba(31, 26, 23, 0.04), 0 10px 30px rgba(31, 26, 23, 0.07);
  font-size: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-strong); font-weight: 600; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 850; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* Topo */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 245, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.nav a:hover, .nav a.on { background: var(--cream-2); }
@media (max-width: 760px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; min-height: 0; padding-top: 8px; padding-bottom: 6px; gap: 4px; }
  .brand img { height: 40px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .nav a { white-space: nowrap; padding: 10px 12px; background: var(--paper); border: 1.5px solid var(--line); }
  .nav a.btn { border: 0; }
  .card { padding: 18px; }
  .model-card .ph { aspect-ratio: 16/10; }
}

/* Botões grandes, sempre com rótulo */
.btn {
  appearance: none; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-align: center;
  background: var(--orange-strong); color: #fff;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled, .btn[aria-disabled="true"] { background: #cfc6bb; color: #4a423c; cursor: not-allowed; filter: none; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.soft { background: var(--orange-soft); color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.green { background: var(--green); color: #fff; }
.btn.wa { background: #128c3e; color: #fff; }
.btn.danger { background: var(--paper); color: var(--red); border-color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { min-height: 46px; padding: 8px 18px; font-size: .95rem; }
.btn .ico { font-size: 1.3em; line-height: 1; }

/* Cartões */
.card { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1.5px solid var(--line); }
.card.warn { background: var(--yellow-soft); }
.card.alert { background: var(--red-soft); }
.card.ok { background: var(--green-soft); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; background: var(--cream-2); color: var(--ink); }
.pill.orange { background: var(--orange-soft); color: #7a3404; }
.pill.green { background: var(--green-soft); color: #0f5126; }
.pill.red { background: var(--red-soft); color: #7d0016; }
.pill.yellow { background: var(--yellow-soft); color: #5c4700; }

/* Formulários legíveis */
label.field { display: block; font-weight: 800; margin-bottom: 14px; }
label.field > span.hint { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; }
input, select, textarea {
  font: inherit; width: 100%; margin-top: 6px; padding: 14px 16px; min-height: 56px;
  border: 2px solid #cbbfae; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--orange-strong); outline: none; box-shadow: 0 0 0 4px var(--orange-soft); }
input[type="checkbox"], input[type="radio"] { width: 26px; height: 26px; min-height: 0; margin: 0; accent-color: var(--orange-strong); }
.check { display: flex; gap: 12px; align-items: center; font-weight: 700; padding: 10px 0; }

/* Escolha em botões grandes */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 8px 0 18px; }
.choice {
  border: 2.5px solid #cbbfae; background: #fff; border-radius: 18px; padding: 14px 16px; min-height: 64px;
  font: inherit; font-weight: 800; text-align: left; cursor: pointer; color: var(--ink);
}
.choice small { display: block; font-weight: 500; color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--orange-strong); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange-strong); }
.choice:disabled { opacity: .45; cursor: not-allowed; }

/* Etapas do orçamento */
.steps { display: flex; gap: 8px; margin: 18px 0; }
.steps a { flex: 1; text-align: center; text-decoration: none; padding: 12px 6px; border-radius: 16px; background: var(--cream-2); color: var(--ink-2); font-weight: 800; font-size: .95rem; }
.steps a.on { background: var(--ink); color: #fff; }
.steps a .n { display: block; font-size: .8rem; opacity: .8; }

/* Grade de tamanhos */
.sizes { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.sizes td { padding: 6px 8px; vertical-align: middle; }
.sizes .sz { font-size: 1.25rem; font-weight: 850; width: 76px; }
.sizes input { width: 110px; text-align: center; font-size: 1.3rem; font-weight: 800; margin: 0; }
.sizes .price { color: var(--ink-2); }
.sizes .sub { text-align: right; font-weight: 800; }
.sizes tr.off td { color: #9a8f84; }
.sizes .price, .sizes .sub { white-space: nowrap; }

.sizes tr.has input { border-color: var(--orange-strong); background: var(--orange-soft); }

/* Barra fixa com total */
.totalbar {
  position: sticky; bottom: 0; z-index: 15; margin-top: 24px;
  background: var(--ink); color: #fff; border-radius: 22px 22px 0 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.totalbar .big { font-size: 1.45rem; font-weight: 900; }
.totalbar .lbl { font-size: .85rem; opacity: .85; display: block; }
.totalbar .miss { background: #ffd18a; color: #3d2400; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .9rem; }
.totalbar .okmin { background: #b9f0c9; color: #0d3d1c; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .9rem; }

/* Listas */
.list { display: grid; gap: 12px; }
.item { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: block; text-decoration: none; color: inherit; }
a.item:hover { outline: 2px solid var(--orange); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.t th { font-size: .85rem; color: var(--muted); }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; }

/* Abas */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.tabs button { flex: 1 1 0; min-height: 60px; border-radius: 18px; border: 2.5px solid var(--line); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); padding: 8px 10px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs .count { display: inline-block; min-width: 30px; padding: 0 8px; border-radius: 999px; background: var(--orange); color: #1f1a17; margin-left: 6px; }

/* Aviso flutuante */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px; font-weight: 700; max-width: 92vw; box-shadow: var(--shadow); }
#toast.err { background: var(--red); }

/* Site público */
.hero { padding-top: 36px; padding-bottom: 24px; }
.hero .grid { align-items: center; }
.hero-photo { background: var(--orange-soft); border-radius: 40px 40px 40px 120px; padding: 24px; }
.hero-photo img { margin: 0 auto; max-height: 420px; object-fit: contain; }
.section { padding-top: 36px; padding-bottom: 36px; }
.model-card { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.model-card .ph { background: var(--cream-2); aspect-ratio: 4/3; display: grid; place-items: center; padding: 14px; }
.model-card .ph img { max-height: 100%; object-fit: contain; }
.model-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fabric { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.fabric img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: var(--cream-2); padding: 10px; }
.fabric .body { padding: 16px 18px; }
.lock { background: var(--ink); color: #fff; border-radius: 28px; padding: 26px; }
.lock .btn.ghost { border-color: #fff; }
.price-tag { font-size: 1.15rem; font-weight: 900; color: var(--orange-strong); }
.footer { padding: 40px 0 60px; background: var(--ink); color: #f3ece3; margin-top: 40px; }
.footer a { color: #ffc58a; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery img { border-radius: 18px; background: #fff; aspect-ratio: 1; object-fit: cover; }

/* Impressão da ficha */
@media print {
  .top, .no-print, .totalbar, #toast { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #999; }
}

/* Celular: tabela de tamanhos e barra de total compactas */
@media (max-width: 760px) {
  .sizes td { padding: 4px 3px; }
  .sizes .sz { width: 58px; font-size: 1.1rem; }
  .sizes input { width: 78px; }
  .sizes .price { font-size: .8rem; }
  .totalbar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 4px 16px; }
  .totalbar .big { font-size: 1.2rem; }
  .totalbar .lbl { display: inline; margin-right: 4px; }
  .totalbar .btn { width: 100%; min-height: 52px; }
}
