/* Demo Loja Virtual — identidade Next Code */
:root {
  --black: #0b0f0e;
  --graphite: #111715;
  --gray-dark: #1f2422;
  --line-d: #2a302e;
  --green: #22e67a;
  --green-ink: #0b7a3e;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --line: #e2e6e4;
  --line-2: #d3d8d6;
  --text: #0b0f0e;
  --text-2: #4f5654;
  --muted: #727a77;
  --danger: #c4352a;
  --danger-soft: #fdeceb;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --info: #1f5fbf;
  --info-soft: #e8f0fc;

  --accent: #22e67a;
  --accent-ink: #0b7a3e;
  --on-accent: #0b0f0e;
  --accent-soft: #e3faee;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --bar-h: 52px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-modal { overflow: hidden; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
s { color: var(--muted); }
.muted { color: var(--muted); }
.block { display: block; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.center-p { text-align: center; padding: 18px 0; }
.muted-p { color: var(--muted); font-size: 14px; }
.pos { color: var(--green-ink); }
.neg { color: var(--danger); }
.warn { color: var(--warn); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 14px var(--body); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { filter: brightness(.95); }
.btn--line { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: var(--text); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--gray-dark); }
.btn--danger-line { background: transparent; border-color: #efc2be; color: var(--danger); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text-2); }
.icon-btn:hover { background: var(--paper); color: var(--text); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Barra da demonstração ---------- */
.demobar { position: sticky; top: 0; z-index: 60; height: var(--bar-h); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--black); color: #c9cdd2; border-bottom: 1px solid var(--gray-dark); }
.demobar-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 17px var(--head); letter-spacing: -0.03em; }
.demobar-brand b { color: var(--green); font-weight: inherit; }
.demobar-tag { font-size: 12.5px; color: #8e9592; padding-left: 14px; border-left: 1px solid var(--line-d); white-space: nowrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--gray-dark); margin-left: auto; }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #c9cdd2; font-size: 13px; font-weight: 600; text-decoration: none; }
.seg button:hover, .seg a:hover { color: #fff; }
.seg [aria-pressed="true"] { background: var(--green); color: var(--black); }
.demobar-end { display: flex; gap: 6px; }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-d); background: transparent; color: #e5e7eb; font-size: 13px; font-weight: 600; }
.bar-btn:hover { border-color: var(--green); color: var(--green); }
.demobar :focus-visible { outline-color: var(--green); }
.tour { position: absolute; right: 16px; top: calc(var(--bar-h) + 6px); width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - var(--bar-h) - 24px); overflow: auto; background: var(--graphite); border: 1px solid var(--line-d); border-radius: var(--r); padding: 8px; box-shadow: 0 24px 60px -12px #000a; }
.tour-head { padding: 10px 12px 6px; color: #fff; font: 600 14px var(--head); }
.tour button { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #c9cdd2; }
.tour button:hover { background: var(--gray-dark); }
.tour b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.tour small { display: block; font-size: 12.5px; line-height: 1.45; color: #9aa19e; margin-top: 2px; }
.tour-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #22e67a1f; color: var(--green); font: 700 12px var(--head); }
@media (max-width: 1099px) { .seg-split { display: none !important; } }
@media (max-width: 760px) {
  .demobar { gap: 8px; padding: 0 10px; }
  .demobar-tag, .seg span, .bar-btn span { display: none; }
  .demobar-brand span { font-size: 15px; }
  .seg button { padding: 0 10px; }
  .bar-btn { padding: 0 9px; }
}

/* ---------- Lado a lado ---------- */
body.is-split { background: var(--black); height: 100vh; overflow: hidden; }
.split { display: grid; grid-template-columns: 410px 1fr; gap: 24px; height: calc(100vh - var(--bar-h)); padding: 18px 24px 24px; background:
  radial-gradient(ellipse at 15% 20%, #22e67a14, transparent 45%),
  linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, #ffffff06 1px, transparent 1px) 0 0 / 56px 56px; }
.split-pane { display: flex; flex-direction: column; min-height: 0; }
.split-label { display: flex; align-items: center; gap: 7px; color: #9aa19e; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.device { flex: 1; min-height: 0; width: 390px; max-height: 844px; border: 9px solid #1c2220; border-radius: 40px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #2e3533, 0 30px 70px -20px #000; }
.screen { flex: 1; min-height: 0; border: 1px solid var(--line-d); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 70px -20px #000; }
.device iframe, .screen iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Avisos ---------- */
#toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--black); color: #e5e7eb; font-size: 14px; line-height: 1.45; box-shadow: 0 14px 40px -10px #0008; animation: toast-in .22s ease-out; }
.toast .ic { color: var(--green); margin-top: 1px; }
.toast b { color: #fff; }
.toast a { color: var(--green); font-weight: 600; }
.toast--error .ic { color: #ff8f7f; }
.toast--order { background: var(--green); color: var(--black); }
.toast--order .ic, .toast--order b { color: var(--black); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Janela lateral / modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: #0b0f0e80; animation: fade .2s; }
.modal { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px #0009; animation: pop .2s ease-out; }
.modal--side { left: auto; right: 0; top: 0; transform: none; height: 100vh; max-height: none; width: min(520px, 100vw); border-radius: var(--r-lg) 0 0 var(--r-lg); animation: slide .24s ease-out; }
body:not(.is-embed) .modal--side { top: 0; }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.m-head h2 { font-size: 20px; }
.m-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.m-body { flex: 1; overflow: auto; padding: 18px 22px; }
.m-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal--side .m-foot { border-radius: 0 0 0 var(--r-lg); }
.m-sec + .m-sec { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-sec h3 { font-size: 13px; color: var(--muted); font-weight: 600; font-family: var(--body); letter-spacing: 0; margin-bottom: 8px; }
.m-sec .btn { margin-top: 10px; }
.m-big { font: 600 17px var(--head); }
.m-pay { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.m-note { margin-top: 10px; padding: 10px 12px; background: var(--warn-soft); border-radius: var(--r-sm); font-size: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Formulários ---------- */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.fields--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; font-size: 13px; font-weight: 600; color: var(--text-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea, .filters input, .filters select, .coupon input, .sortsel select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 15px; font-weight: 400; color: var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus, .coupon input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid] { border-color: var(--danger); }
.field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field-error { display: block; font-style: normal; font-weight: 500; color: var(--danger); font-size: 12.5px; }
.field-error:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0; }
.checks--col { flex-direction: column; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-ink); }
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .15s; position: relative; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.switch input:checked + i { background: var(--green-ink); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }

/* ========================= LOJA ========================= */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap .wrap { width: 100%; }
.store { min-height: 100vh; display: flex; flex-direction: column; }
.s-main { flex: 1; padding-bottom: 56px; }
.s-header { position: sticky; top: var(--bar-h); z-index: 30; background: var(--black); color: #fff; }
.is-embed .s-header { top: 0; }
.s-top { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.s-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.s-logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 800 15px var(--head); letter-spacing: -0.02em; flex: none; }
.s-logo-name { font: 700 19px var(--head); letter-spacing: -0.03em; }
.s-search { flex: 1; max-width: 560px; display: flex; align-items: center; background: #fff; border-radius: 10px; margin-inline: auto; }
.s-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 14px; color: var(--text); font-size: 15px; outline: none; }
.s-search button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; }
.s-search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.s-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.s-link, .s-cart { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: #e5e7eb; font-size: 14px; font-weight: 500; }
.s-link:hover { background: var(--gray-dark); }
.s-cart { position: relative; background: var(--gray-dark); color: #fff; font-weight: 600; }
.s-cart:hover { background: #2a302e; }
.s-badge { position: absolute; right: -6px; top: -6px; box-shadow: 0 0 0 2px var(--black); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.s-cats { background: var(--graphite); border-top: 1px solid var(--gray-dark); }
.s-cats .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.s-cats .wrap::-webkit-scrollbar { display: none; }
.s-cats a { flex: none; padding: 11px 12px; color: #b6bbc0; font-size: 13.5px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.s-cats a:hover { color: #fff; }
.s-cats a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.s-notice { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 14px; text-align: center; }
.s-notice--warn { background: var(--warn-soft); color: #6b3f00; }
@media (max-width: 760px) {
  .s-top { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .s-search { order: 3; flex-basis: 100%; max-width: none; }
  .s-actions { margin-left: auto; }
  .s-link span { display: none; }
  .s-logo-name { font-size: 17px; }
}

/* Vitrine */
.s-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 44px 0 28px; }
.s-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--green-ink); background: #e3f7ec; padding: 6px 12px; border-radius: 99px; }
.s-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-status.is-closed { color: var(--warn); background: var(--warn-soft); }
.s-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.035em; margin: 18px 0 26px; }
.s-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s-hero-mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.s-hero-mosaic a { position: relative; display: block; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; }
.s-hero-mosaic .mosaic-0 { grid-row: span 2; }
.s-hero-mosaic .mosaic-0 .tile { aspect-ratio: auto; height: 100%; min-height: 330px; }
.s-hero-mosaic .mosaic-3 { display: none; }
.s-hero-mosaic .tile { border-radius: 0; }
.s-hero-mosaic .tile-unit { display: none; }
.mosaic-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 9px 12px; background: #ffffffeb; border-radius: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mosaic-cap b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-hero-mosaic a:hover .mosaic-cap { background: #fff; }
@media (max-width: 860px) {
  .s-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .s-hero-mosaic .mosaic-0 .tile { min-height: 240px; }
}
.s-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-top: 8px; }
.s-perks li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 14px; color: var(--text-2); }
.s-perks li + li { border-left: 1px solid var(--line); }
.s-perks .ic { color: var(--accent-ink); }
.s-perks b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .s-perks li + li { border-left: 0; border-top: 1px solid var(--line); } }

.s-section { padding-top: 44px; }
.s-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.s-section-head h2 { font-size: 24px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
@media (max-width: 520px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.tile { position: relative; aspect-ratio: 1; background: var(--tint, #eef1ef); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; }
.tile svg { width: 46%; height: 46%; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-unit { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: #ffffffd9; color: var(--ink, var(--text)); font-size: 12px; font-weight: 600; }
.tile-off { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.tile--sm { width: 76px; border-radius: 10px; }
.tile--sm .tile-unit, .tile--xs .tile-unit, .tile--sm .tile-off, .tile--xs .tile-off { display: none; }
.tile--xs { width: 44px; border-radius: 8px; }
.tile--big svg { width: 40%; height: 40%; }

.pcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 12px; }
.pcard-link { text-decoration: none; display: grid; gap: 10px; }
.pcard h3 { font: 600 14.5px/1.35 var(--body); letter-spacing: 0; padding: 0 4px; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 4px; flex-wrap: wrap; }
.pcard.is-out .tile { filter: grayscale(.7); opacity: .7; }
.price { display: grid; font-variant-numeric: tabular-nums; line-height: 1.2; }
.price s { font-size: 12.5px; }
.price b { font: 700 17px var(--head); letter-spacing: -0.01em; }
.stock-note { font-size: 12.5px; font-weight: 600; padding: 0 4px; }
.stock-note--low { color: var(--warn); }
.stock-note--out { color: var(--muted); }
.btn-add { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 10px; border-radius: 10px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 700; }
.btn-add:hover { filter: brightness(.95); }
.btn-add[disabled] { background: var(--paper); color: var(--muted); cursor: not-allowed; padding: 0 12px; }
.btn-add--big { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: var(--black); color: #fff; }
.stepper button { width: 36px; height: 100%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; border-radius: 10px; }
.stepper button:hover { background: var(--gray-dark); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--big { height: 50px; border-radius: 12px; }
.stepper--big button { width: 50px; }
.stepper--big output { min-width: 34px; font-size: 17px; }
@media (max-width: 520px) { .btn-add span { display: none; } .btn-add { padding: 0 10px; } .btn-add--big span { display: inline; } }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.catcard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--tint); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.catcard:hover { border-color: var(--ink); }
.catcard svg { width: 48px; height: 48px; flex: none; }
.catcard b { display: block; font: 600 15.5px var(--head); color: var(--text); }
.catcard span { font-size: 13px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 20px 0 6px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.s-listing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 8px 0 20px; }
.s-listing-head h1 { font-size: clamp(26px, 3vw, 34px); }
.s-listing-head p { color: var(--muted); font-size: 14px; }
.sortsel { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.sortsel select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.page-title { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 22px; }
.crumbs + .page-title { margin-top: 4px; }
.wrap > .page-title:first-child { margin-top: 28px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty--page { margin-top: 40px; padding: 56px 20px; }
.empty h1, .empty h2 { font-size: 22px; }
.empty p { color: var(--text-2); max-width: 420px; }
.empty-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--text-2); }

/* Produto */
.pdp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 44px; padding-top: 14px; }
.pdp-media .tile { border-radius: var(--r-lg); }
.pdp-info h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.pdp-unit { color: var(--muted); margin-top: 8px; font-size: 14px; }
.pdp-price { display: flex; align-items: flex-end; gap: 14px; margin: 22px 0 10px; }
.pdp-price .price b { font-size: 32px; }
.pdp-price .price s { font-size: 15px; }
.save { padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.stock-line { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.stock-line--ok { color: var(--green-ink); }
.stock-line--low { color: var(--warn); }
.stock-line--out { color: var(--danger); }
.pdp-buy { margin: 22px 0; }
.pdp-ship { display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.pdp-ship li { display: flex; gap: 10px; }
.pdp-ship .ic { color: var(--accent-ink); margin-top: 1px; }
.pdp-desc { margin-top: 20px; }
.pdp-desc h2 { font-size: 16px; margin-bottom: 6px; }
.pdp-desc p { color: var(--text-2); max-width: 60ch; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; gap: 20px; } .pdp-media .tile { max-height: 340px; aspect-ratio: 4 / 3; } }

/* Cesta e checkout */
.cart, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart, .checkout { grid-template-columns: 1fr; } }
.cart-lines { display: grid; gap: 10px; }
.freebar { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.freebar p { display: flex; align-items: center; gap: 6px; }
.freebar-track { height: 6px; background: var(--paper); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.freebar-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.cline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cline h3 { font: 600 15px var(--body); letter-spacing: 0; }
.cline a { text-decoration: none; }
.cline-info p { font-size: 13px; color: var(--muted); }
.cline-total { font: 700 15px var(--head); min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cline { grid-template-columns: auto minmax(0, 1fr) auto; } .cline .stepper { grid-column: 2; justify-self: start; } .cline-total { grid-row: 1; grid-column: 3; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; }
.summary--sticky { position: sticky; top: calc(var(--bar-h) + 120px); }
.is-embed .summary--sticky { position: static; }
.summary h2 { font-size: 18px; }
.coupon label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; }
.coupon-ok { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--accent-ink); }
.coupon-ok .link { margin-left: auto; font-size: 13px; }
.sum { display: grid; gap: 8px; margin: 0; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--text-2); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-disc dd { color: var(--accent-ink); font-weight: 600; }
.sum-total { padding-top: 10px; border-top: 1px solid var(--line); font: 700 18px var(--head); }
.sum-total dt { color: var(--text); }
.summary-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: #6b3f00; font-size: 13.5px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; }
.mini-lines { display: grid; gap: 8px; font-size: 14px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-lines small { color: var(--muted); }
.co-steps { display: grid; gap: 14px; }
.co-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 20px; margin: 0; min-width: 0; }
.co-block legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font: 600 17px var(--head); margin-bottom: 16px; padding: 0; }
.co-block legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-size: 13px; }
.co-block > :not(legend) { clear: both; }
.fields--addr, .choices + .fields { margin-top: 16px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); color: var(--text-2); flex: none; }
.choice b { display: block; font-size: 14.5px; }
.choice small { display: block; font-size: 12.5px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: var(--accent-soft); }
.choice:has(input:checked) .choice-ic { background: var(--accent); color: var(--on-accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* Pedido */
.order-ok { display: flex; align-items: center; gap: 16px; margin: 28px 0 22px; padding: 20px; background: var(--black); color: #fff; border-radius: var(--r-lg); }
.order-ok > span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.order-ok h1 { font-size: 24px; }
.order-ok p { color: #c9cdd2; margin-top: 4px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 16px; }
.panel h2 { font-size: 18px; }
.tracker { display: grid; gap: 0; }
.tracker li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; color: var(--muted); }
.tracker li:last-child { padding-bottom: 0; }
.tracker li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tracker li:last-child::before { display: none; }
.tracker li.done::before { background: var(--green-ink); }
.tracker i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; flex: none; z-index: 1; }
.tracker li.done i { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.tracker li.now i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tracker b { display: block; color: var(--text); font-weight: 600; }
.tracker li:not(.done):not(.now) b { color: var(--muted); font-weight: 500; }
.tracker small { font-size: 12.5px; }
.tracker-cancel { display: flex; gap: 8px; align-items: center; color: var(--danger); font-weight: 600; }
.facts { display: grid; gap: 10px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { margin: 0; }
.demo-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--info-soft); color: #173f7a; font-size: 13.5px; }
.demo-hint .ic { color: var(--info); }
.demo-hint .link { color: var(--info); }
.pix { display: flex; gap: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; }
.pix p { color: var(--text-2); margin: 4px 0 10px; font-size: 13.5px; }
.pix-qr { width: 92px; height: 92px; flex: none; border-radius: 8px; background:
  conic-gradient(from 90deg at 3px 3px, transparent 25%, var(--black) 0) 0 0 / 12px 12px,
  repeating-linear-gradient(45deg, var(--black) 0 4px, transparent 4px 9px); border: 6px solid #fff; outline: 1px solid var(--line); }
.olist { display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; text-align: left; }
.orow:hover { border-color: var(--text); }
.orow small { display: block; color: var(--muted); font-size: 13px; }
.orow-total { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .orow { grid-template-columns: minmax(0, 1fr) auto; } .orow .pill { grid-row: 2; justify-self: start; } .orow > .ic { display: none; } }

.s-footer { background: var(--black); color: #9aa19e; font-size: 13.5px; padding: 28px 0 90px; }
.s-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; align-items: start; }
.s-footer p { display: flex; align-items: center; gap: 8px; }
.s-footer p + p { margin-top: 6px; }
.s-footer-name { color: #fff; font: 700 16px var(--head); }
.s-footer-made b { color: var(--green); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px #0007; }
.wa-float:hover { background: #1ebe5b; }

/* Pílulas de status (loja e painel) */
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--text-2); }
.pill--novo { background: var(--info-soft); color: var(--info); }
.pill--separacao { background: var(--warn-soft); color: var(--warn); }
.pill--entrega, .pill--pronto { background: #ece6fb; color: #5b2fb5; }
.pill--concluido { background: #e3f7ec; color: var(--green-ink); }
.pill--cancelado { background: var(--danger-soft); color: var(--danger); }

/* ========================= PAINEL ========================= */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.is-embed .admin { min-height: 100vh; }
.a-side { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; background: var(--graphite); color: #c9cdd2; padding: 18px 12px; border-right: 1px solid var(--gray-dark); }
.is-embed .a-side { top: 0; height: 100vh; }
.a-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--gray-dark); margin-bottom: 12px; }
.a-brand b { display: block; color: #fff; font: 700 15px var(--head); letter-spacing: -0.02em; }
.a-brand small { color: #8e9592; font-size: 12px; }
.a-nav { display: grid; gap: 2px; overflow-y: auto; }
.a-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #b6bbc0; text-decoration: none; font-size: 14px; font-weight: 500; }
.a-nav a:hover { background: var(--gray-dark); color: #fff; }
.a-nav a[aria-current] { background: #22e67a17; color: var(--green); }
.a-nav a[aria-current] .ic { color: var(--green); }
.a-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: var(--black); font-size: 11.5px; font-weight: 700; }
.a-badge--warn { background: #f2b544; }
.a-side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--gray-dark); }
.a-paused { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #f2b5441f; color: #f2b544; font-size: 12.5px; font-weight: 600; }
.a-store-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #e5e7eb; text-decoration: none; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-d); }
.a-store-link:hover { border-color: var(--green); color: var(--green); }
.a-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.a-user > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-dark); color: #fff; font-size: 12px; font-weight: 700; }
.a-user b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
.a-user small { font-size: 12px; color: #8e9592; }
.a-main { min-width: 0; padding: 26px 30px 60px; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.a-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.a-head p { color: var(--text-2); margin-top: 4px; font-size: 14.5px; max-width: 60ch; }
.a-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.a-body { display: grid; gap: 18px; }
.seg--light { background: #e8ecea; margin: 0; }
.seg--light a { color: var(--text-2); }
.seg--light a:hover { color: var(--text); }
.seg--light [aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px #0001; }
@media (max-width: 900px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, minmax(260px, 82%)); scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .a-side { position: sticky; top: var(--bar-h); height: auto; z-index: 20; padding: 8px 10px; flex-direction: row; align-items: center; gap: 10px; }
  .is-embed .a-side { height: auto; }
  .a-brand { border: 0; margin: 0; padding: 0; }
  .a-brand div { display: none; }
  .a-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .a-nav a { flex: none; padding: 8px 10px; }
  .a-nav a span:not(.a-badge) { display: none; }
  .a-nav a[aria-current] span:not(.a-badge) { display: inline; }
  .a-side-foot { display: none; }
  .a-main { padding: 20px 16px 60px; }
  .a-head h1 { font-size: 24px; }
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 16px; }
.card-head p { color: var(--muted); font-size: 13px; }
.card-head--sub { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.card--note { background: var(--warn-soft); border-color: #f1d9a6; }
.card--note h2 { font-size: 17px; margin-bottom: 6px; }
.card--note p { color: #5c3a00; max-width: 75ch; }

.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--black); color: #c9cdd2; text-decoration: none; font-size: 14px; }
.live-strip b { color: #fff; font-weight: 600; }
.live-strip:hover .live-go { color: var(--green); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #22e67a2b; }
.live-strip .late { color: #ffb1a6; display: inline-flex; align-items: center; gap: 5px; }
.live-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 4px; }
.kpi p { color: var(--text-2); font-size: 13.5px; }
.kpi > b { font: 700 26px var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.delta { font-size: 12.5px; color: var(--muted); }
.delta--up { color: var(--green-ink); }
.delta--down { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .mark { fill: var(--green-ink); }
.chart .hit { fill: transparent; }
.chart .bar:hover .mark { fill: var(--black); }
.chart .bar:hover .hit { fill: #0b0f0e08; }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { color: var(--text-2); cursor: pointer; width: max-content; }
.tip { position: fixed; z-index: 80; pointer-events: none; padding: 8px 11px; border-radius: 8px; background: var(--black); color: #e5e7eb; font-size: 12.5px; line-height: 1.45; white-space: nowrap; box-shadow: 0 10px 24px -8px #0008; }
.tip b { color: #fff; }
.hbars { display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13.5px; }
.hbars b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hbars i { grid-column: 1 / -1; height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.hbars em { display: block; height: 100%; background: var(--green-ink); border-radius: 4px; }
.lowlist { display: grid; }
.lowlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lowlist li:last-child { border: 0; }
.lowlist small { color: var(--muted); font-size: 12px; grid-column: 1; }
.lowlist b { grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card .tbl-wrap { border: 0; border-radius: 0; margin: 0 -20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.num { text-align: right; }
.tbl--compact td, .tbl--compact th { padding: 8px 14px; }
.card .tbl--compact td:first-child, .card .tbl--compact th:first-child, .card .tbl td:first-child, .card .tbl th:first-child { padding-left: 20px; }
.card .tbl td:last-child, .card .tbl th:last-child { padding-right: 20px; }
.tbl--click tbody tr { cursor: pointer; }
.tbl--click tbody tr:hover { background: var(--paper); }
.tbl tr.is-off td { color: var(--muted); }
.tbl tr.is-off .tile { opacity: .5; }
.tbl small { color: var(--muted); font-size: 12.5px; }
.tbl .promo { color: var(--accent-ink); }
.row-err td { background: var(--danger-soft); }
.prod-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.prod-cell b { font-weight: 600; display: block; }
.prod-cell small { display: block; }
.stock { font-weight: 700; }
.star { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--line-2); padding: 4px; }
.star.on { color: #e8a400; }
.code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 8px; background: var(--paper); border-radius: 6px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters select { width: auto; min-height: 40px; padding: 8px 10px; font-size: 14px; }
.search-in { position: relative; flex: 1 1 240px; max-width: 360px; display: flex; align-items: center; }
.search-in .ic { position: absolute; left: 12px; color: var(--muted); }
.filters .search-in input { min-height: 40px; padding-left: 36px; font-size: 14px; }
.filters-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--black); }

/* Quadro de pedidos */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.col { background: #ebeeec; border-radius: var(--r-lg); padding: 10px; display: grid; gap: 10px; min-height: 160px; align-content: start; }
.col header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 2px; }
.col h2 { font: 600 14px var(--body); letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.col h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.col--novo h2::before { background: var(--info); }
.col--separacao h2::before { background: #e0a100; }
.col--entrega h2::before, .col--pronto h2::before { background: #7c4ddb; }
.col header span { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.col-empty { padding: 20px 8px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.ocard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; }
.ocard:hover { border-color: var(--line-2); box-shadow: 0 6px 18px -10px #0004; }
.ocard.is-late { border-color: #efb8b2; box-shadow: inset 3px 0 0 var(--danger); }
.ocard-open { position: absolute; inset: 0; border: 0; background: transparent; border-radius: inherit; z-index: 0; }
.ocard > :not(.ocard-open) { position: relative; z-index: 1; pointer-events: none; }
.ocard .ocard-next { pointer-events: auto; margin-top: 4px; justify-content: space-between; }
.ocard-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ocard-top time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.ocard-name { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.ocard-name b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; }
.ocard-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.chan { display: inline-flex; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--paper); color: var(--text-2); }
.chan--site { background: #e3f7ec; color: var(--green-ink); }
.chan--whatsapp { background: #e1f5e8; color: #157a3e; }
.chan--balcao { background: #f0ebe3; color: #6b4a35; }
.chan--telefone { background: var(--info-soft); color: var(--info); }
.late { display: flex; align-items: center; gap: 5px; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.late--box { padding: 10px 12px; background: var(--danger-soft); border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13.5px; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.board-foot .ic { color: var(--green-ink); }
.timeline { display: grid; gap: 8px; font-size: 14px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding-left: 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-ink); }
.timeline time { color: var(--muted); font-size: 13px; }

.sale-add { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 10px; align-items: end; margin: 18px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .sale-add { grid-template-columns: 1fr 80px; } .sale-add .btn { grid-column: 1 / -1; } }
.sale-lines { display: grid; gap: 6px; margin-bottom: 14px; }
.sale-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 4px 8px 12px; background: var(--paper); border-radius: var(--r-sm); font-size: 14px; }
.sale-lines b { font-variant-numeric: tabular-nums; }
#sale-err { margin-top: 10px; }

.img-pick { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.img-pick .muted-p { margin: 2px 0 10px; font-size: 13px; }

.catadmin { display: grid; gap: 10px; }
.catrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.catrow.is-off { opacity: .6; }
.catrow-ic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; }
.catrow-ic svg { width: 30px; height: 30px; }
.catrow b { display: block; font-weight: 600; }
.catrow small { color: var(--muted); font-size: 13px; }
.glyphs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.glyphs legend { grid-column: 1 / -1; }
.glyph-opt input { position: absolute; opacity: 0; }
.glyph-opt span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; color: var(--text-2); }
.glyph-opt svg { width: 32px; height: 32px; }
.glyph-opt small { font-size: 12px; }
.glyph-opt input:checked + span { border-color: var(--green-ink); background: #e3f7ec; color: var(--green-ink); }
.glyph-opt input:focus-visible + span { outline: 2px solid var(--green-ink); outline-offset: 2px; }

.import-start { display: grid; justify-items: start; gap: 10px; max-width: 720px; }
.import-start h2 { font-size: 20px; }
.import-start p { color: var(--text-2); max-width: 62ch; }
.import-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #e3f7ec; color: var(--green-ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.card .actions-row { margin-top: 16px; }
.import-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.import-sum li { padding: 8px 12px; border-radius: var(--r-sm); background: var(--paper); font-size: 13.5px; }
.import-sum li.has-err { background: var(--danger-soft); color: var(--danger); }

.pause-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.pause-card h2 { font-size: 17px; }
.pause-card p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.pause-card.is-paused { background: var(--warn-soft); border-color: #f1d9a6; }
.cfg { display: grid; gap: 18px; }
.cfg .card > .field-error { margin-top: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 6px; }
.swatch { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; font-weight: 500; color: var(--text); }
.swatch input { position: absolute; opacity: 0; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; }
.swatch:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.cfg-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(transparent, var(--paper) 30%); }
.mini-lines + .sum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Ajustes de encaixe ---------- */
html:has(body.is-embed) { scrollbar-width: thin; }
.chan, .ocard-top time { white-space: nowrap; }
@media (max-width: 520px) {
  .s-hero-mosaic { grid-template-columns: 1fr 1fr; }
  .s-hero-mosaic .mosaic-0 { grid-row: auto; grid-column: 1 / -1; }
  .s-hero-mosaic .mosaic-0 .tile { min-height: 0; aspect-ratio: 16 / 10; }
  .mosaic-cap { display: grid; gap: 0; padding: 7px 10px; font-size: 12.5px; }
}
/* Painel em telas médias (e no modo lado a lado): menu só com ícones */
@media (min-width: 901px) and (max-width: 1240px) {
  .admin { grid-template-columns: 68px minmax(0, 1fr); }
  .a-side { padding: 14px 10px; align-items: center; }
  .a-brand { padding: 0 0 14px; }
  .a-brand div, .a-nav a span:not(.a-badge), .a-user div, .a-paused, .a-store-link { display: none; }
  .a-nav a { position: relative; justify-content: center; padding: 11px; }
  .a-nav .a-badge { position: absolute; right: 0; top: 2px; min-width: 18px; height: 17px; font-size: 10.5px; padding: 0 4px; }
  .a-user { padding: 0; }
  .a-main { padding: 22px 22px 60px; }
  .board { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
}
.s-listing > .s-listing-head:first-child { margin-top: 28px; }
.a-body > * { min-width: 0; }
.tbl-wrap, .card, .filters, .search-in { position: relative; }

/* ---------- Adicionar à cesta ---------- */
.fly { position: fixed; z-index: 85; pointer-events: none; will-change: transform; }
.fly-in { width: 100%; height: 100%; will-change: transform, opacity; }
.fly .tile { width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 18px 40px -12px #0007; }
.fly .tile-unit, .fly .tile-off { display: none; }
.s-cart.bump { animation: cart-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.s-cart.bump .s-badge { animation: badge-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
.s-cart.bump .ic { animation: bag-shake .45s ease-out; }
.stepper.pop { animation: stepper-pop .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cart-bump { 30% { transform: scale(1.1); background: var(--accent); color: var(--on-accent); } }
@keyframes badge-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.35); } }
@keyframes bag-shake { 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
@keyframes stepper-pop { from { transform: scale(.85); opacity: .6; } }

/* ---------- Arrastar pedidos ---------- */
.board-hint { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; margin-bottom: -6px; }
.ocard[data-order] { cursor: grab; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; }
.ocard[data-order] .ocard-open { cursor: grab; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.ocard.is-dragging { opacity: .35; border-style: dashed; box-shadow: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 88; pointer-events: none; will-change: transform; }
.drag-ghost .ocard { box-shadow: 0 24px 50px -14px #0b0f0e66; border-color: var(--line-2); }
.col { transition: background .15s, box-shadow .15s, opacity .15s; }
.col.drop-ok { box-shadow: inset 0 0 0 2px #0b7a3e40; }
.col.drop-over { background: #dff3e7; box-shadow: inset 0 0 0 2px var(--green-ink); }
.col.drop-no { opacity: .45; }
.drop-done { position: fixed; left: 50%; bottom: 22px; z-index: 87; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 14px; border: 2px dashed #22e67a99; background: var(--black); color: #e5e7eb; font-weight: 600; font-size: 14.5px; box-shadow: 0 18px 40px -12px #0008; animation: done-in .18s ease-out; white-space: nowrap; }
.drop-done .ic { color: var(--green); }
.drop-done.drop-over { background: var(--green); color: var(--black); border-color: var(--green); transform: translateX(-50%) scale(1.04); }
.drop-done.drop-over .ic { color: var(--black); }
@keyframes done-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.ocard.landed { animation: landed .6s ease-out; }
@keyframes landed { 0% { transform: scale(.94); box-shadow: 0 0 0 3px var(--green); } 60% { box-shadow: 0 0 0 3px #22e67a66; } 100% { transform: none; } }
body.is-dragging #toasts { opacity: 0; visibility: hidden; }
.drop-done { bottom: 28px; padding: 20px 34px; min-width: min(420px, calc(100vw - 32px)); justify-content: center; }
.drag-ghost .ocard { transition: transform .18s ease-out, opacity .18s; }
.drag-ghost.is-over-done .ocard { transform: scale(.4); opacity: .85; }
/* A loja dentro do celular (lado a lado) não mostra barra de rolagem */
html:has(body.is-embed[data-area="loja"]) { scrollbar-width: none; }
html:has(body.is-embed[data-area="loja"])::-webkit-scrollbar { display: none; }

/* Orientação do teste e próximo passo comercial */
:root { --bar-h: 92px; }
.demobar { height: 52px; }
.demo-notice { position: sticky; top: 52px; z-index: 59; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 40px; padding: 8px 16px; font-size: 12px; line-height: 1.5; color: #d6e7dc; background: #163326; border-bottom: 1px solid #28513a; }
.demo-notice a { color: #c7ffd9; font-weight: 600; text-underline-offset: 3px; }
.demo-commercial { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; background: var(--green); color: var(--black); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.demo-commercial:hover { background: #10d96b; }
.demo-order-next { display: grid; gap: 10px; margin-top: 22px; padding: 16px; border: 1px solid #b5d9c3; border-radius: 12px; background: #edf9f1; }
.demo-order-next p { color: var(--text-2); font-size: 13px; }
.demo-order-next .btn { white-space: normal; }
.demo-order-commercial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 22px; background: var(--black); color: #d6ded9; border-radius: 12px; }
.demo-order-commercial p { flex: 1 1 220px; font-size: 14px; }
.demo-order-commercial b { display: block; color: #fff; margin-bottom: 5px; }
.demo-checkout-notice { margin-top: 14px; padding: 12px; border-radius: 8px; background: #edf9f1; color: #235535; font-size: 12px; line-height: 1.6; }
.board-stage { display: grid; gap: 6px; max-width: 360px; font-size: 13px; font-weight: 600; }
.board-stage select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; }
.board--filtered { grid-template-columns: minmax(240px, 420px); }
@media (max-width: 1099px) { .demobar-tag { display: none; } }
@media (max-width: 760px) {
  :root { --bar-h: 176px; }
  .demobar { height: 120px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 10px; }
  .demobar-brand img { width: 22px; height: 22px; }
  .demobar-brand span { display: none; }
  .seg { margin-left: 0; justify-self: start; }
  .seg span { display: inline; font-size: 12px; }
  .seg button { padding: 0 8px; min-height: 40px; }
  .demobar-end { gap: 4px; }
  .bar-btn { min-height: 40px; padding: 0 8px; }
  .demobar > .demo-commercial { grid-column: 1 / -1; min-height: 40px; }
  .demo-notice { top: 120px; min-height: 56px; padding: 6px 12px; text-align: center; font-size: 11px; }
  .tour { top: 124px; }
  .a-nav a { gap: 6px; }
  .a-nav a span:not(.a-badge) { display: inline; font-size: 12px; }
  .board, .board--filtered { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
}
@media (min-width: 761px) { .tour { top: 58px; } }
