/* ═══════════════════════════════════════════════════════════════════════════
   C.ART 3D — tema compartilhado (vitrine + painel)
   Paleta da logo: dourado sobre creme · serifa Cormorant · acabamento premium
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* cor */
  --accent: #c3a24e;
  --accent-deep: #9c7d33;
  --accent-bright: #d8bd72;
  --accent-soft: #efe6cf;
  --accent-wash: #f8f2e3;
  --accent-ink: #fffdf7;

  --bg: #f6f1e8;
  --bg-2: #fffdf9;
  --surface: #ffffff;
  --surface-2: #f4ede0;
  --line: #e7ddca;
  --line-strong: #dccbab;
  --line-faint: #efe7d7;

  --text: #241f19;
  --text-soft: #4a4237;
  --muted: #877c68;
  --muted-2: #a99d84;

  --danger: #b23b2e;
  --ok: #4a7a4f;

  /* espaçamento (ritmo de 4px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* forma */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;

  /* sombra (quente) */
  --shadow-xs: 0 1px 2px rgba(60, 45, 20, .06);
  --shadow-sm: 0 4px 14px -6px rgba(58, 44, 18, .18);
  --shadow-md: 0 14px 34px -14px rgba(58, 44, 18, .28);
  --shadow-lg: 0 30px 60px -22px rgba(50, 38, 16, .34);

  /* movimento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 200ms;

  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
button { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.stack { display: grid; gap: var(--s-4); }
.row { display: flex; gap: var(--s-3); align-items: center; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── botões ─────────────────────────────────────────────────────────────── */
.btn {
  --_bg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 11px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--_bg); color: var(--text); font-weight: 600; font-size: .92rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary {
  --_bg: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { --_bg: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); }
.btn--danger { --_bg: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 38%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: .82rem; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.icon-btn {
  border: 0; background: transparent; color: var(--muted); font-size: 1.5rem;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: var(--r-pill); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--surface-2); color: var(--muted);
}
.pill--accent { background: var(--accent-soft); color: var(--accent-deep); }
/* curva ABC — A é o que mais pesa no gasto, C o que menos pesa */
.pill--classe-a { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill--classe-b { background: var(--accent-soft); color: var(--accent-deep); }
.pill--classe-c { background: var(--surface-2); color: var(--muted); }

/* botões redondos de rede social / carrinho */
.social-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  cursor: pointer; flex: none; position: relative; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { transform: translateY(-1px); background: var(--accent); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* ── campos ─────────────────────────────────────────────────────────────── */
label.field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.field > input, .field > textarea, .field > select,
input.inp, textarea.inp, select.inp {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: .95rem; font-weight: 400;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
select.inp, .field > select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23877c68' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
input[type="color"].inp, .field > input[type="color"] { height: 46px; padding: 4px; cursor: pointer; }
input[type="file"] { font-size: .82rem; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--text); cursor: pointer; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ── toast ──────────────────────────────────────────────────────────────── */
#toast-host { position: fixed; left: 0; right: 0; bottom: 92px; display: grid; gap: 8px; justify-items: center; z-index: 4000; pointer-events: none; padding: 0 12px; }
.toast {
  background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px) scale(.96);
  transition: all var(--dur) var(--ease); max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

/* ── modal ──────────────────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; background: rgba(36, 28, 14, .44); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; z-index: 3000;
  opacity: 0; transition: opacity var(--dur) var(--ease); padding: 0;
}
.scrim.show { opacity: 1; }
.modal {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh;
  border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line); border-bottom: 0;
  display: flex; flex-direction: column; transform: translateY(24px);
  transition: transform 320ms var(--ease); box-shadow: var(--shadow-lg);
}
.scrim.show .modal { transform: none; }
.modal--wide { max-width: 820px; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-faint); flex: none;
}
.modal__head strong { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.modal__body { padding: 18px; overflow-y: auto; }
@media (min-width: 620px) {
  .scrim { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-lg); border-bottom: 1px solid var(--line); }
}

.confirm p { margin: 4px 0 22px; font-size: 1rem; }
.confirm__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── splash / skeleton ─────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
  background: var(--bg); transition: opacity 420ms var(--ease), visibility 420ms;
}
.splash img { width: 84px; height: 84px; object-fit: contain; border-radius: 16px;
  background: #fff; padding: 8px; box-shadow: var(--shadow-md);
  animation: splashPulse 1.4s var(--ease) infinite; }
.splash.gone { opacity: 0; visibility: hidden; }
@keyframes splashPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.sk-card .sk-img { aspect-ratio: 1; border-radius: 0; }
.sk-card .sk-body { padding: 12px; display: grid; gap: 8px; }
.sk-card .sk-line { height: 11px; }
.sk-card .sk-line.short { width: 55%; }

/* ═══════════════════════ VITRINE ═══════════════════════ */
/* Breakpoints da vitrine (só aqui — nada de admin, nem o .modal em 620px que é
   compartilhado com o painel): 640px = ainda é celular/compacto; 960px = espaço de
   desktop. CSS não deixa usar variável dentro de @media, então o padrão fica
   documentado neste comentário, não numa custom property. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-3); height: 74px; transition: height var(--dur) var(--ease); }
.site-header.scrolled .wrap { height: 62px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand__logo, .brand__mark {
  width: 54px; height: 54px; object-fit: contain; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 5px;
  box-shadow: var(--shadow-xs); transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header.scrolled .brand__logo { width: 44px; height: 44px; }
.header-links { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; }
@media (max-width: 640px) {
  .brand__logo, .site-header.scrolled .brand__logo { width: 44px; height: 44px; }
  .site-header .wrap, .site-header.scrolled .wrap { height: 62px; gap: 6px; }
  .toolbar { top: 62px; }
  .header-links { gap: 6px; }
  .header-links .btn { padding: 8px 13px; font-size: .78rem; }
  .social-btn { width: 40px; height: 40px; }
  /* vira um botão redondo com o ícone, igual aos de Instagram/WhatsApp ao lado */
  .header-links .btn#link-orcamento { width: 40px; height: 40px; padding: 0; border-radius: 50%; gap: 0; }
  .header-links .btn#link-orcamento .btn__label { display: none; }
  .header-links .btn#link-orcamento .btn__ico { display: block; }
}
.btn__ico { display: none; width: 17px; height: 17px; flex: none; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 120% at 88% -30%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(60% 100% at 2% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--accent-wash), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero::before { /* textura de grão */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero::after { /* marca-d'água do cubo */
  content: ""; position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  width: min(360px, 42vw); aspect-ratio: 1; opacity: .32; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 116' fill='none' stroke='%23d8c79f' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M60 10 L105 36 L105 80 L60 106 L15 80 L15 36 Z'/%3E%3Cpath d='M15 36 L60 62 L105 36 M60 62 L60 106'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 1; padding-top: var(--s-8); padding-bottom: var(--s-8); max-width: 900px; display: grid; gap: var(--s-6); align-items: center; }
/* um traço curto no lugar do rótulo em caixa alta — o título carrega o peso sozinho */
.hero__rule { display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: var(--s-4); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; margin-bottom: .3em; letter-spacing: -.005em; }
.hero p { color: var(--text-soft); max-width: 48ch; font-size: clamp(1rem, 2.4vw, 1.12rem); margin: 0 0 var(--s-5); }
.hero__meta { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--text-soft); max-width: 52ch; }
.hero__meta span { display: flex; align-items: baseline; gap: 10px; }
.hero__meta span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.hero__meta b { color: var(--text); font-weight: 700; }
/* tira de confiança — Instagram/WhatsApp/cidade já vêm das configurações da loja */
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: var(--s-5); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--text-soft); }
.hero__trust svg { width: 14px; height: 14px; color: var(--accent-deep); flex: none; }
/* carrossel de produtos em destaque ao lado do texto — só existe quando há pelo
   menos 1 destaque com foto; setas/bolinhas só aparecem com 2+ (nada pra navegar
   com 1 só). O crossfade em si já vira instantâneo com prefers-reduced-motion
   pela regra global no topo do arquivo — aqui só falta parar o autoplay via JS. */
.hero-carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; max-width: 420px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hero-carousel__track { position: relative; width: 100%; height: 100%; }
.hero-carousel__slide {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  opacity: 0; transition: opacity 500ms var(--ease); pointer-events: none;
}
.hero-carousel__slide.is-on { opacity: 1; pointer-events: auto; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(4px);
  box-shadow: var(--shadow-xs); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-carousel__arrow:hover { background: var(--surface); transform: translateY(-50%) scale(1.06); }
.hero-carousel__arrow svg { width: 17px; height: 17px; }
.hero-carousel__arrow.prev { left: 10px; }
.hero-carousel__arrow.next { right: 10px; }
.hero-carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.hero-carousel__dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(36, 28, 14, .18);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.hero-carousel__dots button.is-on { background: var(--accent); width: 18px; border-radius: 999px; }
@media (min-width: 960px) {
  .hero__meta { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
  .hero.hero--with-figure .wrap { grid-template-columns: 1.15fr .85fr; max-width: var(--maxw); gap: var(--s-7); }
  .hero.hero--with-figure .hero-carousel { max-width: none; justify-self: end; width: 100%; }
}

.toolbar {
  position: sticky; top: 74px; z-index: 90;
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  transition: top var(--dur) var(--ease);
}
/* o header encolhe ao rolar (74→62) — a toolbar acompanha pra não abrir fresta */
.site-header.scrolled ~ .toolbar { top: 62px; }
.toolbar .wrap { display: grid; gap: var(--s-3); }
.search { position: relative; }
.search input { padding-left: 42px; height: 46px; border-radius: var(--r-pill); background: var(--surface); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.search__ico svg { position: static; transform: none; }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); font-weight: 600; font-size: .84rem; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

main.vitrine .wrap { padding-top: var(--s-6); padding-bottom: 96px; }
.section-title { display: flex; align-items: baseline; gap: var(--s-3); margin: var(--s-7) 0 var(--s-4); }
.section-title:first-child { margin-top: var(--s-2); }
.section-title h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0; letter-spacing: 0; }
.section-title span { font-size: .8rem; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-4); }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-5); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card__img { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 600ms var(--ease); }
/* foto marcada como "mostrar inteira" — cabe toda dentro do quadro, sem corte */
.card__img--inteira img { object-fit: contain; }
.card:hover .card__img--inteira img { transform: none; }
.card:hover .card__img img { transform: scale(1.05); }
.card__img .placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.card__img .placeholder img { width: 44%; height: 44%; object-fit: contain; opacity: .4; transition: none; }
.card__badge { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow-xs); }
.card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; }
.card__name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.card__price { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--text); font-size: 1.02rem; }
.card__price small { color: var(--muted); font-weight: 600; font-size: .74rem; display: block; text-transform: uppercase; letter-spacing: .04em; }

.empty { text-align: center; padding: var(--s-8) var(--s-5); color: var(--muted); display: grid; gap: var(--s-4); justify-items: center; }
.empty img { width: 64px; opacity: .35; }

/* ── detalhe do produto ────────────────────────────────────────────────── */
.pd { display: grid; gap: var(--s-5); }
.pd__gallery { display: grid; gap: var(--s-2); align-content: start; }
.pd__main { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity var(--dur) var(--ease); }
.pd__main--cover img { object-fit: cover; }
.pd__main--inteira img { object-fit: contain !important; }
.pd__main .placeholder { display: grid; place-items: center; }
.pd__main .placeholder img { width: 120px; height: auto; opacity: .4; }
.pd__thumbs { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pd__thumbs img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color var(--dur) var(--ease); }
.pd__thumbs img[aria-current="true"] { border-color: var(--accent); }
.pd__info { display: grid; gap: var(--s-3); align-content: start; }
.pd__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; }
.pd__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: 0; margin: 0; }
.pd__price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent-deep); letter-spacing: 0; }
.pd__desc { color: var(--text-soft); font-size: .96rem; white-space: pre-wrap; line-height: 1.6; }
.pd__foot { position: sticky; bottom: -18px; background: linear-gradient(180deg, transparent, var(--surface) 24%); padding-top: var(--s-3); margin-top: var(--s-2); display: grid; gap: var(--s-3); }
@media (min-width: 960px) {
  .pd { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-6); }
}
.opt-group { display: grid; gap: 7px; }
.opt-group > span { font-size: .82rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.opt-group .req { color: var(--accent-deep); }

/* seletor de opções em pílulas (vitrine) */
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill {
  padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: .88rem; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.opt-pill:hover { border-color: var(--muted-2); color: var(--text); }
.opt-pill.is-on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-pill__delta { font-size: .76rem; color: var(--muted); font-weight: 700; }
.opt-pill.is-on .opt-pill__delta { color: var(--accent-deep); }
.ref-drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); padding: 16px; text-align: center;
  color: var(--muted); font-size: .85rem; cursor: pointer; background: var(--bg-2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ref-drop:hover { border-color: var(--accent); background: var(--accent-wash); }
.ref-previews { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.ref-previews figure { position: relative; margin: 0; }
.ref-previews img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.ref-previews button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background var(--dur) var(--ease); }
.stepper button:hover { background: var(--accent); color: #fff; }
.stepper span { min-width: 44px; text-align: center; font-weight: 700; }

/* ── carrinho flutuante (FAB) ─────────────────────────────────────────── */
.cart-fab {
  position: fixed; right: 20px; z-index: 300;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cart-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-lg); }
.cart-fab:active { transform: scale(.96); }
.cart-fab svg { width: 25px; height: 25px; }
.cart-fab.bump { animation: fabBump .45s var(--ease); }
@keyframes fabBump { 30% { transform: scale(1.2); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
.cart-fab__badge {
  position: absolute; top: -3px; right: -3px; min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--text); color: #fff;
  font-size: .74rem; font-weight: 800; display: grid; place-items: center; border: 3px solid var(--bg);
}
@media (max-width: 640px) { .cart-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; } }

/* ── carrinho / checkout ──────────────────────────────────────────────── */
/* cabeçalho numerado de cada etapa (pedido/cupom/dados/entrega/pagamento) — deixa
   claro onde o cliente está no formulário, em vez de um bloco corrido só */
.checkout-step__head { display: flex; align-items: center; gap: 10px; margin: var(--s-6) 0 var(--s-3); }
.checkout-step__head:first-child { margin-top: 0; }
.checkout-step__num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .76rem; font-weight: 800; display: grid; place-items: center;
}
.checkout-step__head strong { font-size: .92rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.checkout-sec { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: var(--s-2) 0 0; letter-spacing: 0; }
.cart-line { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-faint); align-items: start; }
.cart-line img, .cart-line .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; }
.cart-line .ph img { width: 60%; opacity: .5; }
.cart-line__name { font-weight: 700; font-size: .92rem; }
.cart-line__opts { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.cart-line__price { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.cart-line__remove { background: 0; border: 0; color: var(--muted-2); cursor: pointer; font-size: .76rem; text-decoration: underline; padding: 0; margin-top: 5px; }
.cart-line__more > summary { font-weight: 700; font-size: .92rem; cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 5px; }
.cart-line__more > summary::-webkit-details-marker { display: none; }
.cart-line__hint { font-size: .7rem; color: var(--accent-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cart-line__more[open] > summary .cart-line__hint::after { content: " ▲"; }
.cart-line__more:not([open]) > summary .cart-line__hint::after { content: " ▼"; }
.cart-total-box { margin: var(--s-4) 0; padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: 4px; }
.cart-total-box .cart-total { margin: 0; padding-top: 0; border-top: 0; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; color: var(--muted); }
.cart-sub--desc { color: var(--ok); font-weight: 700; }
.cupom-row { display: flex; gap: var(--s-2); align-items: center; }
.cupom-row .inp { flex: 1; min-width: 0; text-transform: uppercase; }
/* campos que forçam maiúscula não devem gritar no placeholder */
.inp::placeholder { text-transform: none; }
.cupom-row .btn { flex: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: var(--s-4) 0; padding-top: var(--s-3); border-top: 1px solid var(--line); letter-spacing: 0; }
.seg { display: flex; gap: var(--s-2); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--muted);
  transition: all var(--dur) var(--ease);
}
.seg span:hover { border-color: var(--muted-2); color: var(--text); }
.seg input:checked + span { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.cep-msg { font-weight: 600; min-height: 1em; }
.cep-msg.ok { color: var(--ok); }
.cep-msg.err { color: var(--danger); }
.cep-msg.muted { color: var(--muted); }

.local { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--s-8) 0; }
.local h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: 0; margin-bottom: var(--s-4); }
.local p { color: var(--text-soft); max-width: 62ch; margin: 0 0 var(--s-4); }
.local strong { color: var(--text); font-weight: 700; }
.local__list { color: var(--text-soft); max-width: 62ch; margin: 0 0 var(--s-4); padding-left: 1.1em; display: grid; gap: 5px; }
.local__grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.local__info p { margin: 0 0 var(--s-4); }
.local__info a { color: var(--accent-deep); border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.local__map { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: var(--r-md); display: block; }
@media (min-width: 960px) { .local__grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }

.site-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0; color: var(--muted); font-size: .86rem; background: var(--bg-2); }
.site-footer .wrap { display: grid; gap: var(--s-6); }
.footer-brand { display: flex; align-items: center; gap: var(--s-4); }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 5px; border: 1px solid var(--line); flex: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); }
.footer-seo { font-size: .8rem; color: var(--muted); line-height: 1.7; max-width: 68ch; display: grid; gap: var(--s-2); }
.footer-seo strong { color: var(--text-soft); }
.footer-seo a { border-bottom: 1px solid var(--line-strong); }
.footer-fine { font-size: .78rem; color: var(--muted-2); border-top: 1px solid var(--line-faint); padding-top: var(--s-5); line-height: 1.7; }
.footer-fine a { border-bottom: 1px solid var(--line-strong); }

/* ═══════════════════════ ACOMPANHAR PEDIDO ═══════════════════════ */
.track-main { padding: var(--s-7) 0 var(--s-8); min-height: 62vh; }
.track-main > .wrap { max-width: 620px; }
.track-card { display: grid; gap: var(--s-4); box-shadow: var(--shadow-sm); }
.track-head { display: grid; gap: 2px; }
.track-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0; letter-spacing: 0; }
.track-card > p { margin: 0; }

.track-banner { border-radius: var(--r-sm); padding: 11px 14px; font-size: .88rem; font-weight: 600; }
.track-banner--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.track-banner--bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.track-banner:not([class*="--"]) { background: var(--accent-wash); color: var(--accent-deep); border: 1px solid var(--line); }

.stepper-v { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 0; }
.stepper-v.is-off { opacity: .45; }
.step { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); }
.step:last-child { padding-bottom: 0; }
.step::before { /* linha vertical */
  content: ""; position: absolute; left: 12px; top: 20px; bottom: -4px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--accent); }
.step__dot {
  width: 15px; height: 15px; border-radius: 50%; margin: 4px auto 0; position: relative; z-index: 1;
  background: var(--surface); border: 2px solid var(--line-strong); transition: all var(--dur) var(--ease);
}
.step.is-done .step__dot { background: var(--accent); border-color: var(--accent); }
.step.is-now .step__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent);
}
.step__body { display: grid; gap: 2px; min-width: 0; }
.step__body b { font-size: .98rem; color: var(--muted-2); }
.step.is-done .step__body b, .step.is-now .step__body b { color: var(--text); }
.step.is-now .step__body b { color: var(--accent-deep); }
.step__sub { font-size: .82rem; color: var(--muted); }
.step__sub:empty { display: none; }
.step__when { font-size: .74rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.track-info { display: grid; gap: var(--s-2); border-top: 1px solid var(--line-faint); padding-top: var(--s-4); }
.track-info__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.track-code {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-3);
}
.track-code b { display: block; font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; }

/* ── aviso modo local ─────────────────────────────────────────────────── */
.mode-note { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--text-soft); text-align: center; padding: 7px 12px; }
.mode-note b { color: var(--accent-deep); }
.mode-note a { color: var(--accent-deep); }

/* ═══════════════════════ PAINEL ADMIN ═══════════════════════ */
.admin-shell { min-height: 100vh; }
@media (min-width: 900px) {
  .admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); }
}

/* topbar + hambúrguer + scrim — só no celular */
.admin-topbar { display: none; }
.admin-burger { display: none; }
.admin-scrim { display: none; }

.admin-side {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4); position: sticky; top: 0; height: 100dvh;
}
.admin-side__brand { display: flex; align-items: center; justify-content: center; padding: var(--s-2) var(--s-2) var(--s-4); }
.admin-side__brand img { width: 52px; height: 52px; border-radius: 13px; background: #fff; padding: 5px; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  border: 0; background: transparent; color: var(--muted); font-weight: 600;
  padding: 11px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: .92rem;
  position: relative; text-align: left; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.admin-nav button svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav button[aria-current="true"] { background: var(--accent-wash); color: var(--accent-deep); }
.admin-nav button[aria-current="true"] svg { opacity: 1; }
.admin-nav .badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; border-radius: var(--r-pill); padding: 1px 7px;
}
.admin-side__foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line-faint); }
.admin-side__foot .btn { width: 100%; justify-content: flex-start; gap: var(--s-3); border: 0; background: transparent; color: var(--muted); padding: 11px 12px; }
.admin-side__foot .btn:hover { background: var(--surface-2); color: var(--danger); box-shadow: none; transform: none; }
.admin-side__foot .btn svg { width: 19px; height: 19px; }

@media (max-width: 899px) {
  .admin-topbar {
    display: flex; align-items: center; gap: var(--s-3);
    position: sticky; top: 0; z-index: 40;
    padding: 9px 14px; min-height: 56px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .admin-burger {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border: 1px solid var(--line-strong);
    border-radius: var(--r-sm); background: var(--surface); color: var(--text); cursor: pointer;
  }
  .admin-burger svg { width: 20px; height: 20px; }
  .admin-topbar__logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 3px; border: 1px solid var(--line); flex: none; }
  .admin-topbar__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0; }

  .admin-side {
    position: fixed; inset: 0 auto 0 0; height: 100dvh;
    width: min(80vw, 300px); z-index: 60;
    transform: translateX(-100%); transition: transform var(--dur) var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  #admin-view.nav-open .admin-side { transform: none; }

  .admin-scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(36, 28, 14, .44);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  #admin-view.nav-open .admin-scrim { opacity: 1; visibility: visible; }
}

.admin-main { padding: var(--s-6) 0 calc(var(--s-8) + 56px); min-width: 0; }
.admin-main > .wrap { max-width: 1000px; min-width: 0; }
.tabpane { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-content: start; }
.tabpane > * { min-width: 0; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0; letter-spacing: 0; }
.page-head p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-xs); min-width: 0; overflow-wrap: anywhere; }
.panel > h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0 0 var(--s-4); letter-spacing: 0; }
.list-row { display: flex; align-items: center; gap: var(--s-4); padding: 14px var(--s-2); margin: 0 calc(-1 * var(--s-2)); border-radius: var(--r-sm); border-bottom: 1px solid var(--line-faint); transition: background var(--dur) var(--ease); }
.list-row:hover { background: var(--bg-2); }
.list-row:last-child { border-bottom: 0; }
.list-row[role="button"] { cursor: pointer; }
.list-row[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.list-row__go { flex: none; color: var(--muted-2); font-size: 1.4rem; line-height: 1; padding-left: var(--s-1); }
/* linha que não é clicável (receitas do financeiro) — sem falsa affordance */
.list-row--estatica:hover { background: transparent; }

/* ── aba Produtos: filtros, linha uniforme, olhinho e seleção ─────────── */
.prod-filtros { display: grid; gap: var(--s-2); }
@media (min-width: 620px) { .prod-filtros { grid-template-columns: 1fr 220px; align-items: center; } .prod-filtros .chips { grid-column: 1 / -1; } }
.prod-selbar { display: flex; align-items: center; gap: var(--s-2); margin: calc(-1 * var(--s-2)) 0 calc(-1 * var(--s-3)); }

/* nome sozinho na 1ª linha, em UMA linha com reticências — é o que iguala as alturas */
.list-row__main > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row__sub { display: flex; align-items: center; gap: 5px; min-width: 0; }
.list-row__cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row__sub .pill { padding: 2px 7px; font-size: .58rem; flex: none; }
.list-row__sub .pill--ico { padding: 2px 5px; font-size: .7rem; letter-spacing: 0; }
.list-row__val { flex: none; font-size: .84rem; white-space: nowrap; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.row-eye {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent-deep);
  display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.row-eye svg { width: 17px; height: 17px; }
.row-eye:hover { background: var(--accent-wash); }
.row-eye.is-off { color: var(--muted-2); background: var(--surface-2); }
.row-eye:disabled { opacity: .45; cursor: wait; }

.sel-check {
  flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 2px solid var(--line-strong); color: #fff; font-size: .75rem; font-weight: 800;
}
.sel-check.is-on { background: var(--accent); border-color: var(--accent); }
.list-row--sel.is-sel { background: var(--accent-wash); }

.sel-bar {
  position: fixed; left: 0; right: 0; z-index: 310;
  bottom: 0; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
/* a bolinha da IA sairia por baixo da barra de ações */
#admin-view.sel-ativa .ai-fab { opacity: 0; pointer-events: none; }
.list-row img, .list-row .ph { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; }
.list-row .ph img { width: 60%; opacity: .5; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__main b { display: block; font-size: .95rem; }
.list-row__main span { font-size: .8rem; color: var(--muted); }

.login-box { max-width: 400px; margin: 0 auto; padding: 14vh 20px 20px; }
.login-box .panel { display: grid; gap: var(--s-4); box-shadow: var(--shadow-md); }
.login-box .brand { justify-content: center; margin-bottom: var(--s-3); }
.login-box .brand__mark { width: 68px; height: 68px; }
#login-msg { margin: 0; }
#login-msg:empty { display: none; }
#login-btn + a, #login-msg + a { margin-top: calc(-1 * var(--s-2)); }
body:has(#login-view:not(.hidden)) { background:
  radial-gradient(60% 80% at 80% 0%, var(--accent-soft), transparent 60%),
  radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
  var(--bg); }

.status-tag { padding: 3px 10px; border-radius: var(--r-pill); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.st-novo { background: var(--accent-soft); color: var(--accent-deep); }
.st-producao { background: #dbe8f6; color: #2f5c8a; }
.st-pronto { background: #ece0f6; color: #6b3fa0; }
.st-enviado { background: #d9efe9; color: #1f6f5f; }
.st-entregue { background: #dcefdc; color: #35703a; }
.st-cancelado { background: #f6dedb; color: #a3382c; }

/* cartão de pedido: cabeçalho / conteúdo / rodapé como regiões com função,
   separadas por linha — não um bloco só com tudo empilhado */
.order-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-xs); transition: box-shadow var(--dur) var(--ease); min-width: 0; }
.order-card > * { min-width: 0; }
.order-card:hover { box-shadow: var(--shadow-sm); }
.order-card__cli, .order-card__items, .order-card__top { overflow-wrap: anywhere; }
.order-card__body { padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-3); }
/* cantos de baixo arredondados igual ao card — sem "overflow:hidden" no .order-card,
   que cortava (invisível/impossível de clicar) o menu suspenso do ⋯ */
.order-card__foot { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--bg-2); display: grid; gap: var(--s-3); border-radius: 0 0 var(--r-md) var(--r-md); }
.order-card__val { display: flex; align-items: baseline; gap: 6px; }
.order-card__val b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.order-card__top { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.order-card__top b { font-size: 1rem; font-family: var(--font-display); font-weight: 700; }
/* nome, telefone e cidade — separados por espaço, a cor do telefone já marca a diferença */
.order-card__cli { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .84rem; }
.order-card__cli .cli-tel { font-weight: 600; color: var(--accent-deep); white-space: nowrap; }
a.cli-tel { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.order-card__items { font-size: .86rem; color: var(--muted); margin: 0; padding-left: 18px; }
.order-card__items li { margin: 3px 0; }
.order-card__actions { display: flex; gap: var(--s-2); align-items: center; }
.order-card__actions select { flex: 1; min-width: 0; }

/* menu "⋯" */
.kebab { position: relative; flex: none; }
.kebab__btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.15rem; line-height: 1;
}
.kebab__btn:hover { border-color: var(--accent); }
.kebab__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 320;
  min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-md); padding: 5px; display: grid; gap: 1px;
}
.kebab__menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 11px; border-radius: 7px; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--text-soft);
}
.kebab__menu button:hover { background: var(--surface-2); color: var(--text); }
.kebab__menu button.danger { color: var(--danger); }
.kebab__menu button.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.opt-editor { display: grid; gap: var(--s-3); }
.opt-editor__item { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--s-3); display: grid; gap: var(--s-3); background: var(--bg-2); }
.opt-editor__item .row { flex-wrap: wrap; }
.photo-manager { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.photo-manager figure { position: relative; margin: 0; }
.photo-manager img { width: 78px; height: 78px; border-radius: 9px; object-fit: cover; }
.photo-manager .add { width: 78px; height: 78px; border: 1.5px dashed var(--line-strong); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--muted); background: var(--bg-2); font-size: 1.6rem; transition: border-color var(--dur) var(--ease); }
.photo-manager .add:hover { border-color: var(--accent); }
/* a miniatura inteira é o botão — nada de controles de 20px empilhados nela */
.photo-manager figure { cursor: pointer; border-radius: 9px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.photo-manager figure:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.photo-manager figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-manager figure::after {
  content: "✎"; position: absolute; right: 3px; bottom: 3px; z-index: 1;
  width: 19px; height: 19px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: .62rem; display: grid; place-items: center; pointer-events: none;
}

.grid-2 { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── tela da foto: enquadrar, virar capa, excluir ──────────────────────── */
.fs-topo { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 620px) { .fs-topo { grid-template-columns: 190px 1fr; } }
.fs-previa-col { display: grid; gap: 6px; justify-items: center; }
.fs-previa {
  width: 100%; max-width: 190px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.fs-previa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-previa.is-inteira img { object-fit: contain; }
.fs-previa-col .tiny { text-align: center; line-height: 1.35; }
.fs-controles { display: grid; gap: var(--s-3); align-content: start; }
.fs-rotulo { font-weight: 700; font-size: .88rem; color: var(--text-soft); }
.fs-palco-box { display: grid; gap: 6px; }
.fs-acoes { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.fs-acoes .btn { flex: 1 1 auto; }

.foco-palco {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); cursor: crosshair; touch-action: none; user-select: none;
}
.foco-img { width: 100%; height: auto; max-height: 46vh; object-fit: contain; display: block; pointer-events: none; }
.foco-mira {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 3px solid #fff; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .45);
}
.foco-mira::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff;
}
/* a capa fica marcada no gerenciador de fotos */
.photo-manager figure.is-capa img { outline: 2px solid var(--accent); outline-offset: -2px; }
.capa-tag {
  position: absolute; left: 3px; bottom: 3px; z-index: 1;
  background: var(--accent); color: #fff; border-radius: 5px;
  font-size: .58rem; font-weight: 800; padding: 1px 5px;
  text-transform: uppercase; letter-spacing: .04em; pointer-events: none;
}

.foco-modo label span { display: grid; gap: 1px; text-align: center; }
.foco-modo label span b { font-size: .84rem; }
.foco-modo label span small { font-size: .7rem; opacity: .8; font-weight: 500; }
.foco-modo .seg span, .seg span { padding: 9px 8px; }
.photo-manager img.foto-inteira { object-fit: contain; background: var(--surface-2); }
.pv-img--inteira img { object-fit: contain !important; }

/* ── IA: botões, bolinha flutuante, menu e lote ───────────────────────── */
.ai-btn {
  border: 1px dashed var(--accent); color: var(--accent-deep);
  background: linear-gradient(120deg, var(--accent-wash), var(--bg-2));
  font-weight: 700;
}
.ai-btn:hover { border-style: solid; background: var(--accent-soft); }
.ai-row { gap: var(--s-2); }
.ai-row .btn { flex: 1 1 auto; }

.page-head__acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.page-head__acts .btn { flex: 1 1 auto; white-space: nowrap; }

.ai-fab {
  position: fixed; right: 20px; z-index: 300;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ai-fab:hover { transform: translateY(-2px) scale(1.05); }
.ai-fab:active { transform: scale(.96); }
.ai-fab svg { width: 26px; height: 26px; }
/* some quando o menu lateral do celular está aberto */
#admin-view.nav-open .ai-fab { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .ai-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
}

.ai-menu { display: grid; gap: var(--s-2); }
.ai-card {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; text-align: left;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; font-family: inherit; color: inherit;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ai-card:hover { border-color: var(--accent); background: var(--accent-wash); transform: translateY(-1px); }
.ai-card__ico { font-size: 1.5rem; line-height: 1; flex: none; }
.ai-card__txt { display: grid; gap: 2px; min-width: 0; }
.ai-card__txt b { font-size: .98rem; }
.ai-card__txt span { font-size: .8rem; color: var(--muted); }
.ai-card__go { margin-left: auto; color: var(--muted-2); font-size: 1.4rem; line-height: 1; flex: none; }

.lote-row.is-salvo { opacity: .6; }
.lote-acoes { flex: none; gap: 6px; }

/* editor de produto com prévia — o mesmo corte de 900px da barra lateral, pra não
   ter um trecho de tela (780-899px) em que o menu já virou celular mas o editor
   ainda insiste em layout de desktop */
.prod-editor { display: grid; gap: var(--s-4); }
@media (min-width: 900px) {
  .prod-editor { grid-template-columns: 1fr 288px; align-items: start; }
  .prod-preview { position: sticky; top: 0; }
}
/* no celular a prévia vai pro TOPO em vez de sumir — é como se confere o que a IA criou */
@media (max-width: 899px) {
  .prod-preview { order: -1; }
  .prod-preview .pv { padding: var(--s-3); gap: var(--s-2); }
  .prod-preview .pv-img { aspect-ratio: 16 / 10; }
}
.pv { padding: var(--s-4); display: grid; gap: var(--s-3); background: var(--bg-2); }
.pv-head { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.pv-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; flex: none; }
.pv-head .tiny { min-width: 0; }
.pv-img { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-img .pv-ph img { width: 46%; height: auto; opacity: .4; }
.pv-name { font-weight: 700; font-size: .98rem; }
.pv-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--accent-deep); }
.pv .opt-pills { gap: 6px; }
.pv .opt-pill { padding: 6px 11px; font-size: .82rem; }

.val-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; display: grid; gap: 8px; background: var(--surface); }
.val-item__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.val-photo { width: 40px; height: 40px; border: 1px dashed var(--line-strong); border-radius: 8px; display: grid; place-items: center; cursor: pointer; background: var(--bg-2); font-size: .95rem; flex: none; overflow: hidden; }
.val-photo.has { border-style: solid; border-color: var(--accent); }
.val-photo img { width: 100%; height: 100%; object-fit: cover; }
.opt-pill__cam { font-size: .74rem; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-3); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); position: relative; overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .5; }
.kpi:hover { box-shadow: var(--shadow-sm); }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; display: block; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.kpi span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi--neg::before { background: var(--danger); opacity: .7; }
.kpi--neg b { color: var(--danger); }

/* ── ajustes mobile do painel ─────────────────────────────────────────── */
@media (max-width: 620px) {
  .admin-main { padding: var(--s-4) 0 calc(var(--s-8) + 56px); }
  .tabpane { gap: var(--s-4); }
  .wrap { padding: 0 14px; }
  .panel { padding: var(--s-4) var(--s-3); }
  .modal__body { padding: 14px; }
  .page-head h1 { font-size: 1.6rem; }
  .page-head { gap: var(--s-2); }
  .page-head > .btn, .page-head > .page-head__acts { flex-basis: 100%; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi { padding: var(--s-3); }
  .kpi b { font-size: 1.5rem; }
  .month-nav { gap: 6px; }
  .month-nav strong { font-size: 1.15rem; min-width: 72px; }
  .month-nav .btn { margin-left: auto; }
  .order-card__actions { gap: 6px; }
  .list-row { padding: 12px var(--s-1); gap: var(--s-3); }
  .list-row img, .list-row .ph { width: 42px; height: 42px; }
  .opt-editor__item { padding: var(--s-2); }
}

/* ── financeiro ───────────────────────────────────────────────────────── */
/* abas dentro de Financeiro — troca de vista, não de página */
.fin-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--r-md); margin: var(--s-4) 0 var(--s-5); }
.fin-tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: calc(var(--r-md) - 4px);
  font-weight: 700; font-size: .82rem; color: var(--text-soft); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fin-tabs button[aria-current="true"] { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-xs); }
.month-nav { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.month-nav strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; min-width: 96px; text-align: center; letter-spacing: 0; }
.month-nav .icon-btn { border: 1px solid var(--line-strong); font-size: 1.2rem; }
.month-nav .btn { margin-left: auto; }
.fin-chart { overflow-x: auto; }
.fin-chart svg { width: 100%; height: auto; min-width: 320px; display: block; }
.abc-aviso {
  margin: var(--s-3) 0 0; padding: 10px 13px; border-radius: var(--r-sm); font-size: .84rem;
  line-height: 1.45; background: var(--accent-wash); color: var(--accent-deep);
  border: 1px solid var(--accent-soft);
}
.chart-legend { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); font-size: .8rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-legend .sw-r { background: var(--accent); }
.chart-legend .sw-d { background: var(--danger); }

/* leitura do gráfico ao passar o mouse/tocar numa barra ou ponto — em vez de um balão
   flutuante (que cortaria nas bordas do .fin-chart, que já rola/corta no eixo X) */
.chart-readout { min-height: 1.35em; margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: var(--muted-2); transition: color var(--dur) var(--ease); }
.chart-readout.is-on { color: var(--accent-deep); }
.fin-chart [data-tip] { cursor: pointer; }

/* tabela alternativa dos dados do gráfico — pra quem prefere não depender só do desenho */
.chart-table { margin-top: var(--s-3); font-size: .82rem; }
.chart-table summary { cursor: pointer; color: var(--accent-deep); font-weight: 700; list-style: none; }
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-faint); }
.chart-table th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.chart-table td:not(:first-child), .chart-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.pago-tag { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
/* status do PAGAMENTO — cor própria, não reusa a paleta de status do pedido */
.pag-tag--pendente { background: #e9e3f3; color: #5b4a86; }
.pag-tag--falhou { background: #f1e2df; color: #8a4034; }
