:root {
  --brand: #1e5a35;
  --brand-2: #2b7a47;
  --brand-ink: #10301c;
  --accent: #c2603f;
  --accent-soft: #f6e3da;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --line: #e4dfd3;
  --line-strong: #cfc8b8;
  --text: #1d2422;
  --muted: #5f6b67;
  --ok: #2f7a4f;
  --ok-soft: #e1f1e6;
  --warn: #8a5a00;
  --warn-soft: #fbf0d6;
  --danger: #b3261e;
  --danger-soft: #fbe3e1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 8px 24px rgba(20, 30, 28, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(194, 96, 63, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5rem; color: var(--brand-ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 680; }
.h2-size { font-size: clamp(1.45rem, 2.6vw, 2rem); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 999px; padding: .72rem 1.25rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, border-color .15s; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ad5333; }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: .4rem .85rem; min-height: 34px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { font-weight: 600; font-size: .92rem; }
.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field-hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .62rem .75rem; width: 100%; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.alert { border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .9rem; margin: .6rem 0; }
.alert-error { background: var(--danger-soft); color: #7d1a14; }
.alert-ok { background: var(--ok-soft); color: #1f5236; }
.alert-warn { background: var(--warn-soft); color: #5e3d00; }
.alert ul { margin: .2rem 0 0; padding-left: 1.1rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge-novo { background: #e6eefc; color: #1f3f86; border-color: #cbdaf6; }
.badge-em-analise { background: var(--warn-soft); color: var(--warn); border-color: #efdcae; }
.badge-proposta-enviada { background: #efe6fb; color: #5b2f99; border-color: #dccbf3; }
.badge-aprovado, .badge-entregue { background: var(--ok-soft); color: var(--ok); border-color: #c4e3cf; }
.badge-em-producao { background: var(--accent-soft); color: #8d3e22; border-color: #efcdbf; }
.badge-perdido, .badge-arquivado { background: #eee; color: #666; }
.badge-rascunho { background: var(--surface-2); }
.badge-publicado { background: var(--ok-soft); color: var(--ok); }
.badge-ia { background: #efe6fb; color: #5b2f99; border-color: #dccbf3; }

/* ---------- cabeçalho do site ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--brand-ink); text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand small { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .94rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }
.homolog-bar { background: var(--brand-ink); color: #e9efe9; font-size: .8rem; text-align: center; padding: .35rem 1rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-card { background: var(--brand); border-radius: 24px; padding: 1.25rem; box-shadow: var(--shadow); }
.hero-card svg { background: radial-gradient(circle at 50% 35%, #2a5c54, var(--brand)); border-radius: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.step b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- simulador ---------- */
.section { padding: 3rem 0; }
.section-head { margin-bottom: 1.5rem; max-width: 46rem; }
.sim { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 1.5rem; align-items: start; }
.sim-preview { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
.stage { background: radial-gradient(circle at 50% 30%, #ffffff, #ece7dc); border-radius: 14px; aspect-ratio: 400 / 480; display: grid; place-items: center; overflow: hidden; }
.stage svg { width: 100%; height: 100%; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: transparent; font: inherit; font-size: .86rem; font-weight: 650; padding: .38rem .85rem; border-radius: 999px; cursor: pointer; color: var(--muted); min-height: 32px; }
.segmented button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.preview-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .85rem; }
.preview-options .field { margin: 0; }
.skin-row { display: flex; gap: .4rem; }
.skin-row button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.skin-row button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.preview-caption { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.panel-head h3 { margin: 0; }
.panel-num { font-size: .78rem; font-weight: 750; color: var(--accent); letter-spacing: .08em; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.option { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .8rem; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--line-strong); }
.option[aria-checked="true"] { border-color: var(--brand); background: #eef6f0; }
.option[aria-checked="true"]::after { content: "✓"; position: absolute; top: .45rem; right: .6rem; color: var(--brand); font-weight: 800; }
.option strong { display: block; font-size: .95rem; }
.option span { display: block; font-size: .8rem; color: var(--muted); }
.option .price { color: var(--brand-2); font-weight: 650; margin-top: .25rem; }
.option-thumb { width: 64px; height: 64px; margin-bottom: .3rem; }

.swatches { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--brand); }
.swatch-custom { position: relative; overflow: hidden; display: grid; place-items: center; background: conic-gradient(#e33, #ec3, #3c5, #3be, #53e, #e3b, #e33); }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-name { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

.upload { display: flex; align-items: center; gap: .9rem; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; background: var(--surface-2); }
.upload:hover { border-color: var(--accent); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.upload-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }

.app-list { display: grid; gap: .5rem; margin-top: .9rem; }
.app-row { display: grid; grid-template-columns: auto 1fr minmax(150px, 210px); align-items: center; gap: .75rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.app-row.disabled { opacity: .5; }
.app-row select { min-height: 38px; padding: .4rem .6rem; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .55rem; }
.size-cell { display: grid; gap: .25rem; text-align: center; }
.size-cell label { font-size: .85rem; }
.size-cell input { text-align: center; padding: .5rem .3rem; }
.size-cell small { font-size: .7rem; color: var(--warn); min-height: 1em; }
.size-total { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; flex-wrap: wrap; gap: .6rem; }

.summary { position: sticky; top: 80px; }
.summary-box { background: var(--brand); color: #e8f0ed; border-radius: 18px; padding: 1.25rem 1.35rem; }
.summary-box h3 { color: #fff; }
.summary-lines { list-style: none; padding: 0; margin: .75rem 0; font-size: .88rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.summary-lines li.discount { color: #a9e3bd; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: .8rem 0 .2rem; }
.summary-total strong { font-size: 1.9rem; color: #fff; letter-spacing: -.02em; }
.summary-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; font-size: .85rem; color: #bcd0ca; }
.summary-box .link-button { color: #cfe0da; margin-top: .7rem; }
.summary-box .alert { background: rgba(255, 255, 255, .1); color: #f4e6c9; }
.summary-box .alert-error { background: rgba(255, 120, 100, .18); color: #ffd9d3; }
.summary-note { font-size: .78rem; color: #a9bfb8; margin: .8rem 0 0; }
.sim-main { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }

/* ---------- diálogo ---------- */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100% - 24px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); color: var(--text); }
dialog::backdrop { background: rgba(15, 25, 22, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.25rem; margin: 0; }
.dialog-body { padding: 1.2rem 1.35rem; max-height: 72vh; overflow: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.35rem; border-top: 1px solid var(--line); }
.icon-btn { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.hp { position: absolute; left: -9999px; }
.protocol { font-family: ui-monospace, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .05em; background: var(--surface-2); border: 1px dashed var(--line-strong); padding: .6rem 1rem; border-radius: 10px; display: inline-block; }

/* ---------- acompanhamento ---------- */
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1rem 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline time { display: block; font-size: .78rem; color: var(--muted); }
.track-card { max-width: 560px; margin: 0 auto; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem; font-size: .88rem; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- painel administrativo ---------- */
.admin-body { background: #f3f1ec; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--brand-ink); color: #cfdcd8; padding: 1.2rem .9rem; display: flex; flex-direction: column; gap: 1.5rem; }
.admin-side .brand { color: #fff; }
.admin-side .brand-mark { background: var(--accent); }
.admin-nav { display: grid; gap: .25rem; }
.admin-nav button { text-align: left; background: transparent; border: 0; color: #cfdcd8; font: inherit; font-weight: 600; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; }
.admin-nav button:hover { background: rgba(255, 255, 255, .06); }
.admin-nav button[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-side .side-foot { margin-top: auto; font-size: .82rem; }
.admin-side .link-button { color: #fff; }
.admin-main { padding: 1.5rem clamp(1rem, 3vw, 2.25rem); min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-size: 1.6rem; color: var(--brand-ink); letter-spacing: -.02em; }
.stat small { color: var(--muted); }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .9rem; }
.toolbar input[type="search"] { max-width: 280px; }
.toolbar select { max-width: 200px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #faf7f0; }
td.num, th.num { text-align: right; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .88rem; }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(760px, 100%); background: var(--surface); box-shadow: -20px 0 60px rgba(0, 0, 0, .18); z-index: 40; display: flex; flex-direction: column; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 25, 22, .4); z-index: 39; }
.drawer-body { overflow: auto; padding: 1.25rem 1.5rem; flex: 1; }
.drawer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }
.mini-stage { background: radial-gradient(circle at 50% 30%, #fff, #ece7dc); border-radius: 12px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .8rem; font-size: .9rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.breakdown { width: 100%; font-size: .85rem; margin-bottom: 1rem; }
.breakdown td { padding: .35rem .5rem; white-space: normal; }

.gen-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.25rem; align-items: start; }
.variation { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .8rem; }
.variation textarea { min-height: 150px; font-size: .92rem; }
.variation-head { display: flex; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.char-count { font-size: .78rem; color: var(--muted); }
.char-count.over { color: var(--danger); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.tag { font-size: .8rem; background: #eef4f2; color: var(--brand-2); padding: .15rem .5rem; border-radius: 6px; }
.variation-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.campaign-list { display: grid; gap: .6rem; }
.campaign { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.campaign p { white-space: pre-wrap; font-size: .9rem; margin: .4rem 0; }
.campaign-meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .sim-main { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .hero .container, .sim, .gen-grid { grid-template-columns: 1fr; }
  .hero-card { width: 100%; max-width: 360px; margin-inline: auto; }
  .sim-preview { position: static; max-width: 480px; margin-inline: auto; width: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; align-items: center; flex-wrap: wrap; padding: .75rem 1rem; gap: .75rem; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-side .side-foot { margin: 0 0 0 auto; }
  .drawer-grid { grid-template-columns: 1fr; }
  .mini-stage { max-width: 240px; }
}
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .steps, .grid-2, .preview-options { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: auto 1fr; }
  .app-row select { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: .4rem; }
}

@media print {
  .site-header, .homolog-bar, .hero, .site-footer, .sim-preview .preview-bar, .preview-options, #request-btn, .no-print { display: none !important; }
  body { background: #fff; }
  .summary-box { background: #fff; color: #000; border: 1px solid #999; }
  .summary-box h3, .summary-total strong { color: #000; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- notificações ---------- */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: .35rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.badge-enviado { background: var(--ok-soft); color: var(--ok); border-color: #c4e3cf; }
.badge-pendente, .badge-enviando { background: var(--warn-soft); color: var(--warn); border-color: #efdcae; }
.badge-falhou { background: var(--danger-soft); color: var(--danger); border-color: #f1c4c0; }
.stat.off strong { color: var(--muted); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--surface-2); padding: 0 .25rem; border-radius: 4px; }
td.wrap { white-space: normal; min-width: 180px; }
tbody tr.static { cursor: default; }
.drawer-body > .btn { margin: .3rem 0 1.3rem; }
.drawer-body > .check { margin: .2rem 0 .6rem; }
.drawer-body > h3 { margin-top: .6rem; }

/* ---------- prévia 3D ---------- */
.only-3d { display: none; }
.has-3d .only-3d { display: inline; }
.has-3d .only-2d { display: none; }
.has-3d .preview-options { grid-template-columns: 1fr; }
.viewer-canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.viewer-canvas.grabbing { cursor: grabbing; }
.stage { position: relative; }
.hero-card #hero-preview { aspect-ratio: 400 / 480; border-radius: 18px; background: radial-gradient(circle at 50% 35%, #2f7a4a, var(--brand)); overflow: hidden; }
.hero-card #hero-preview .viewer-canvas { cursor: default; }
.option-thumb img { width: 64px; height: 64px; object-fit: contain; }
.mini-stage.is-3d { aspect-ratio: 400 / 480; width: 100%; overflow: hidden; }

/* ---------- identidade Jomar, vitrine e fotos reais ---------- */
.brand-logo img { height: 46px; width: auto; }
.hero-facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.hero-facts li { font-size: .8rem; font-weight: 650; color: var(--brand-ink); background: #e5f0e8; border-radius: 999px; padding: .3rem .7rem; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.line-tabs { margin: 0 0 1rem; flex-wrap: wrap; border-radius: 14px; }
.line-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.line-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.line-card { display: grid; grid-template-columns: 110px 1fr; gap: .9rem; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.line-card:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.line-card img { width: 110px; height: 140px; object-fit: cover; border-radius: 10px; }
.line-card-body { display: grid; gap: .25rem; }
.line-card-body strong { font-size: 1.1rem; color: var(--brand-ink); }
.line-card-body span { font-size: .85rem; color: var(--muted); }
.line-card-body small { font-weight: 700; color: var(--brand-2); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-photo { position: relative; aspect-ratio: 3 / 4; background: #f3f3f1; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1rem; }
.product-body .eyebrow { margin: 0; font-size: .68rem; }
.product-body p { margin: .2rem 0 .6rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; background: #e5f0e8; color: var(--brand-ink); border-radius: 999px; padding: .12rem .5rem; }
.tag-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag-float { position: absolute; top: .6rem; left: .6rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tags { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 0; }

.garment-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 560px; overflow: auto; padding: 2px; }
.option-garment { display: flex; flex-direction: column; gap: .2rem; }
.option-garment .option-thumb { width: 100%; height: 120px; border-radius: 8px; overflow: hidden; background: #f3f3f1; margin-bottom: .35rem; }
.option-garment .option-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.option-garment .option-thumb svg { width: 100%; height: 100%; }
.option-garment strong { font-size: .88rem; line-height: 1.25; }

.stage { position: relative; }
.stage-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-inner svg { width: 100%; height: 100%; }
.invisible { visibility: hidden; }
.photo-stage { position: absolute; inset: 0; margin: 0; background: #fff; display: flex; flex-direction: column; }
.photo-stage img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.photo-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
.btn-light { background: var(--surface-2); border: 1px solid var(--line); color: var(--brand-ink); }
.photo-strip { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0 .1rem; }
.photo-thumb { flex: 0 0 auto; width: 54px; height: 66px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: #fff; cursor: pointer; font: inherit; font-weight: 800; color: var(--brand); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.photo-thumb[aria-pressed="true"] { border-color: var(--brand); box-shadow: var(--focus); }
.photo-thumb-3d { background: radial-gradient(circle at 50% 30%, #fff, #e5efe8); }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.about-img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; height: auto; }
.facts { padding-left: 1.1rem; color: var(--brand-ink); font-weight: 600; }
.narrow { width: min(820px, 100% - 32px); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .7rem 0; }
.faq p { margin: 0 0 .9rem; color: var(--muted); }
.section-contact { background: var(--brand); color: #e9f3ec; }
.section-contact h2 { color: #fff; }
.section-contact .eyebrow { color: #b9e3c5; }
.section-contact .muted { color: #c7dccd; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.contact-list a { color: #fff; }
.contact-list b { display: inline-block; min-width: 92px; color: #b9e3c5; font-weight: 650; }
@media (max-width: 900px) {
  .line-cards, .about, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .line-card { grid-template-columns: 80px 1fr; }
  .line-card img { width: 80px; height: 100px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .product-body { padding: .6rem; }
  .product-foot .btn { width: 100%; }
  .brand-logo img { height: 38px; }
}

/* ---------- painel: modelos ---------- */
.login-logo { height: 56px; width: auto; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.model-card { display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; box-shadow: var(--shadow); transition: border-color .15s; }
.model-card:hover { border-color: var(--brand-2); }
.model-photo { aspect-ratio: 4 / 3; background: #f3f3f1; display: grid; place-items: center; }
.model-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.model-info { padding: .6rem .7rem .8rem; display: grid; gap: .25rem; }
.drawer-wide { width: min(1080px, 100%); }
.editor-grid { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; }
.editor-preview h3:first-child { margin-top: 0; }
.model-stage { aspect-ratio: 4 / 5; margin: .6rem 0; position: relative; overflow: hidden; }
.parts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 .8rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .1rem .8rem; }
.check-grid .check { margin: .15rem 0; }
.photo-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0; }
.photo-admin-item { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.photo-admin-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.photo-admin-item figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .3rem .4rem; }
.editor-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; position: sticky; bottom: -1.25rem; background: var(--surface); padding: .8rem 0; border-top: 1px solid var(--line); }
.danger { color: var(--danger) !important; }
#m-photos, #m-glb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .editor-grid, .parts-grid { grid-template-columns: 1fr; }
}

/* WhatsApp oficial (painel) */
.wa-form { margin-bottom: 1.25rem; }
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.wa-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.wa-form input[readonly] { background: #faf8f3; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
@media (max-width: 760px) { .wa-grid { grid-template-columns: 1fr; } }
