/* ==========================================================================
   Zeus Gabriel · Compras para o seu negócio — sistema visual da loja B2B
   Verde (marca) conduz · branco dá clareza · vermelho é acento de conversão.
   Sem dependências; fonte Poppins auto-hospedada (SIL OFL 1.1, ver /assets/fonts/OFL.txt).
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Marca */
  --g-950: #062417;
  --g-900: #0a3322;
  --g-800: #0c4a30;
  --g-700: #0e6337;   /* verde principal — 7,2:1 sobre branco */
  --g-600: #13804a;
  --g-500: #1d9b5a;
  --g-200: #bfe2cc;
  --g-100: #dcefe3;
  --g-50: #eff8f2;
  --r-800: #8e0e18;
  --r-700: #b3121f;   /* vermelho de acento — 6,4:1 sobre branco */
  --r-600: #cf1f2e;
  --r-100: #fad6da;
  --r-50: #fdeef0;
  --amber-50: #fff7e2;
  --amber-200: #f1d998;
  --amber-800: #6f4a00;
  --wa: #128c4a;
  /* Neutros */
  --ink: #112219;
  --ink-2: #33453a;
  --muted: #5b6b61;
  --faint: #66736b;  /* 4,6:1 sobre o fundo — texto pequeno legível */
  --line: #e2e8e3;
  --line-2: #cfd9d2;
  --bg: #f4f6f2;
  --surface: #f6f8f7; /* usado pelo painel administrativo */
  --paper: #ffffff;
  /* Forma */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(6, 36, 23, .06);
  --sh-2: 0 1px 2px rgba(6, 36, 23, .05), 0 8px 22px rgba(6, 36, 23, .08);
  --sh-3: 0 18px 48px rgba(6, 36, 23, .22);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--g-600);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --t-fast: 140ms;
  --t-med: 220ms;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Medidas dinâmicas (ajustadas pelo script) */
  --hdr-h: 116px;
  --hdr-row1: 56px;
  --cart-bar-h: 0px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 768px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--g-700); text-underline-offset: 3px; }
a:hover { color: var(--g-900); }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.15; letter-spacing: -.02em; color: var(--g-950); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.7vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1280px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.sprite { display: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--g-900); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.offscreen { position: fixed; left: -9999px; top: 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Botões ---------- */
.btn { --bg: var(--g-700); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font-weight: 500; font-size: .95rem; line-height: 1.15; color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 999px;
  cursor: pointer; text-decoration: none; text-align: center; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); -webkit-tap-highlight-color: transparent; }
.btn:hover { --bg: var(--g-800); color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-accent { --bg: var(--r-700); }
.btn-accent:hover { --bg: var(--r-800); }
.btn-outline { --bg: #fff; --fg: var(--g-800); --bd: var(--line-2); }
.btn-outline:hover { --bg: var(--g-50); --fg: var(--g-900); --bd: var(--g-600); }
.btn-ghost { --bg: transparent; --fg: var(--g-800); }
.btn-ghost:hover { --bg: var(--g-50); --fg: var(--g-900); }
.btn-limpar { --fg: var(--r-700); }
.btn-limpar:hover { --bg: var(--r-50); --fg: var(--r-700); }
.btn-soft { --bg: var(--g-50); --fg: var(--g-800); --bd: var(--g-100); }
.btn-soft:hover { --bg: var(--g-100); --fg: var(--g-900); }
.btn-wa { --bg: var(--wa); }
.btn-wa:hover { --bg: #0c6c38; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; flex: none; transition: background var(--t-fast); }
.icon-btn:hover { background: var(--g-50); }
.linklike { background: none; border: 0; padding: 0; color: var(--g-700); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Selos ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 500; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.badge .ico { width: 12px; height: 12px; stroke-width: 2; }
.badge-demo { background: var(--amber-50); border-color: var(--amber-200); color: var(--amber-800); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .62rem; }
.badge-cold { background: #e7f2fb; border-color: #c6ddf0; color: #0d4a72; }
.badge-frozen { background: #e8edfb; border-color: #c9d4f2; color: #213f8c; }
.badge-top { background: var(--g-50); border-color: var(--g-200); color: var(--g-800); }
/* "Sob consulta": mesmo componente .badge; permite quebrar linha porque o rótulo pode ser longo */
.badge-consulta { background: var(--amber-50); border-color: var(--amber-200); color: var(--amber-800); white-space: normal; max-width: 100%; }
.badge-consulta.off { background: var(--r-50); border-color: var(--r-100); color: var(--r-700); }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-weight: 500; font-size: .9rem; color: var(--g-950); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333453a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 4px rgba(19, 128, 74, .16); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--r-600); background: #fffafa; }
.err { color: var(--r-700); font-size: .84rem; font-weight: 500; }
.hint { color: var(--muted); font-size: .82rem; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.city-uf { display: grid; grid-template-columns: 1fr 104px; gap: 12px; }
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-md); padding: 12px 14px; font-size: .92rem; margin: 0 0 16px; }
.alert .ico { margin-top: 2px; }
.alert.error { background: var(--r-50); border: 1px solid var(--r-100); color: #5c0a12; }
.alert.success { background: var(--g-50); border: 1px solid var(--g-100); color: var(--g-900); }
.alert.info { background: #eef4fb; border: 1px solid #d3e3f3; color: #13385e; }
.alert.warn { background: var(--amber-50); border: 1px solid var(--amber-200); color: #4d3700; }

/* ---------- Faixas superiores ---------- */
.demo-banner { background: var(--amber-50); color: var(--amber-800); border-bottom: 1px solid var(--amber-200); font-size: .78rem; line-height: 1.4; padding: 6px 16px; text-align: center; }
.demo-banner .short { display: none; }
@media (max-width: 639px) { .demo-banner .long { display: none; } .demo-banner .short { display: inline; } }
.utility { display: none; background: var(--g-900); color: #d6e7dc; font-size: .8rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility-id { display: flex; align-items: center; gap: 8px; }
.utility-id::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--r-600); box-shadow: 0 0 0 3px rgba(207, 31, 46, .25); }
.utility nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .utility { display: block; } }

/* ---------- Cabeçalho ----------
   Celular: linha 1 = marca, cadastro, pedido e menu; linha 2 = busca + "Negócio" (a linha 1 recolhe ao rolar para baixo).
   Desktop (≥1024px): uma linha — marca, "Comprar para meu negócio", busca, cadastro e pedido. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(10px); } }
body.hdr-shadow .site-header { box-shadow: 0 4px 18px rgba(6, 36, 23, .07); }
.hdr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 8px; padding-top: 8px; padding-bottom: 10px; }
.hdr::before { content: ""; order: 5; flex-basis: 100%; height: 0; } /* quebra de linha entre as duas linhas do celular */
.hdr-actions { display: contents; }
.brand { grid-area: brand; order: 1; flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--g-950); height: 44px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-text strong { font-size: .98rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.hdr-link { grid-area: signup; order: 2; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--g-800); font-weight: 500; font-size: .86rem; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast); }
.hdr-link:hover { background: var(--g-50); border-color: var(--g-600); }
.hdr-link .lbl-lg { display: none; }
.cart-btn { grid-area: cart; order: 3; justify-self: center; position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 6px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--g-900); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.cart-btn:hover { background: var(--g-50); }
.cart-btn .ico { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; left: 24px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--r-700); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.cart-count.bump { animation: bump 420ms var(--ease); }
.cart-sum { display: none; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cart-sum small { font-size: .7rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.cart-sum b { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.menu-btn { grid-area: menu; order: 4; justify-self: end; color: var(--ink); }
.biz-btn { grid-area: biz; order: 7; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-md); border: 0; background: var(--g-700); color: #fff; font-weight: 500; font-size: .86rem; cursor: pointer; white-space: nowrap; transition: background var(--t-fast); }
.biz-btn:hover { background: var(--g-800); }
.biz-btn .chev { display: none; transition: transform var(--t-med) var(--ease); }
.biz-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.biz-btn .lbl-lg { display: none; }
.search { grid-area: search; order: 6; flex: 1 1 0; position: relative; display: flex; align-items: center; min-width: 0; }
.search .search-ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input[type=search] { min-height: 48px; padding-left: 44px; padding-right: 14px; border-radius: var(--r-md); background: var(--bg); border-color: transparent; text-overflow: ellipsis; }
.search input[type=search]:focus { background: #fff; border-color: var(--g-600); }
.search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear { position: absolute; right: 4px; width: 40px; height: 40px; }
.search:has(.search-clear:not([hidden])) input[type=search] { padding-right: 44px; }
.search-go { display: none; }
@media (max-width: 1023px) { body.hdr-condensed .site-header { transform: translateY(calc(-1 * var(--hdr-row1))); } }
.brand-text .short { display: none; }
@media (max-width: 639px) { .brand { gap: 8px; } .brand-text strong { font-size: .94rem; } .brand-text > span { font-size: .68rem; } .brand-text .long { display: none; } .brand-text .short { display: inline; } }
/* Celulares: "Cadastre seu negócio" vira ícone (nome completo no atributo title e no menu) */
@media (max-width: 439px) { .hdr-link span { display: none; } .hdr-link { padding: 8px 10px; } .hdr-link .ico { width: 18px; height: 18px; } }
@media (max-width: 379px) { .hdr { column-gap: 4px; } .hdr-link { padding: 8px; } }
@media (max-width: 359px) { .brand-mark { width: 34px; height: 34px; } .brand-text strong { font-size: .9rem; } .brand-text > span { display: none; } }
@media (min-width: 1024px) {
  .hdr { display: grid; grid-template-columns: auto auto minmax(260px, 1fr) auto auto; grid-template-areas: "brand biz search signup cart"; column-gap: 14px; padding-top: 12px; padding-bottom: 12px; }
  .hdr::before { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.08rem; }
  .hdr-link { min-height: 44px; padding: 8px 14px; }
  .hdr-link .lbl-lg { display: inline; }
  .hdr-link .lbl-sm { display: none; }
  .biz-btn { gap: 8px; padding: 8px 14px; font-size: .9rem; }
  .biz-btn .lbl-lg, .biz-btn .chev { display: inline; }
  .biz-btn .lbl-sm { display: none; }
  .search input[type=search], .search:has(.search-clear:not([hidden])) input[type=search] { padding-right: 116px; }
  .search-clear { right: 104px; }
  .search-go { display: inline-flex; position: absolute; right: 5px; min-height: 38px; padding: 6px 16px; }
  .cart-sum { display: flex; }
  .cart-btn { justify-self: end; padding: 6px 12px 6px 8px; border: 1.5px solid var(--line-2); }
  .cart-btn:hover { border-color: var(--g-600); }
  .cart-count { left: 15px; top: 0; }
  .menu-btn { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) { .biz-btn .lbl-lg { display: inline; } .biz-btn .lbl-sm { display: none; } .biz-btn { padding: 8px 16px; } }
/* No desktop, a faixa superior já identifica "Atendimento comercial com Zeus Gabriel · Representante da PMG Atacadista" */
@media (min-width: 1024px) { .site-header .brand-text > span { display: none; } }
/* 1024–1279px: rótulos curtos para a busca continuar larga */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hdr-link .lbl-lg { display: none; }
  .hdr-link .lbl-sm { display: inline; }
  .cart-sum { display: none; }
  .cart-btn { padding: 6px 10px; }
}
@media (min-width: 1280px) { .hdr { grid-template-columns: auto auto minmax(360px, 1fr) auto auto; } }

/* Menu "Comprar para meu negócio" */
.biz-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(6, 36, 23, .16); max-height: calc(100vh - var(--hdr-h)); overflow: auto; }
.biz-menu.is-open { animation: dropIn var(--t-med) var(--ease); }
.biz-menu-inner { padding-top: 20px; padding-bottom: 24px; }
.biz-menu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.biz-menu-head h2 { font-size: 1.15rem; margin: 0; }
.biz-grid { display: grid; gap: 10px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .biz-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .biz-grid { grid-template-columns: repeat(4, 1fr); } }
.biz-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-decoration: none; color: var(--ink); height: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
a.biz-item:hover, .biz-item:has(a:hover) { border-color: var(--g-600); box-shadow: var(--sh-2); color: var(--ink); }
.biz-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); flex: none; }
.biz-ico .ico { width: 24px; height: 24px; }
.biz-item strong { display: block; font-weight: 700; color: var(--g-950); font-size: .95rem; line-height: 1.25; }
.biz-item p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.biz-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.biz-sub a { max-width: 100%; font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--g-50); border: 1px solid var(--g-100); text-decoration: none; color: var(--g-800); }
.biz-sub a:hover { background: var(--g-100); }
.biz-count { font-size: .74rem; color: var(--g-700); font-weight: 500; margin-top: 4px; display: block; }

/* Menu compacto (hambúrguer) */
.mobile-nav { position: sticky; top: var(--hdr-h); z-index: 45; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
.mobile-nav ul { list-style: none; margin: 0 auto; padding: 8px 16px 14px; display: grid; gap: 2px; }
.mobile-nav a, .mobile-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; font-size: .98rem; }
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--g-50); }

/* Barra de categorias (desktop) */
.cat-bar { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.cat-bar ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.cat-bar ul::-webkit-scrollbar { display: none; }
.cat-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .86rem; font-weight: 500; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.cat-bar a:hover, .cat-bar a[aria-current="true"] { background: var(--g-50); color: var(--g-900); }
.cat-bar .ico { width: 18px; height: 18px; color: var(--g-700); }
/* Só na página inicial: dentro da loja, a barra lateral e as abas fazem esse papel */
@media (min-width: 1024px) { body[data-view="inicio"] .cat-bar, body:not([data-view]) .cat-bar { display: block; } }

.cat-bar .wrap { position: relative; }
.scroll-btn { display: none; position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--g-800); box-shadow: var(--sh-2); cursor: pointer; transition: background var(--t-fast); }
.scroll-btn:hover { background: var(--g-50); }
.scroll-btn .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.scroll-prev { left: 8px; }
.scroll-next { right: 8px; }
@media (hover: hover) { .fade-start ~ .scroll-prev, .fade-end ~ .scroll-next { display: grid; } }

/* Esmaecimento das listas com rolagem horizontal (classes aplicadas pelo script conforme a posição) */
.fade-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.fade-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.fade-start.fade-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* Sugestões da busca */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 6px; max-height: min(70vh, 460px); overflow: auto; animation: dropIn var(--t-fast) var(--ease); }
.suggest [role=option] { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; cursor: pointer; }
.suggest [role=option][aria-selected="true"], .suggest [role=option]:hover { background: var(--g-50); }
.suggest .s-name { font-weight: 500; font-size: .9rem; line-height: 1.25; display: block; }
.suggest .s-meta { font-size: .76rem; color: var(--muted); display: block; }
.suggest .s-price { font-size: .82rem; font-weight: 700; color: var(--g-900); white-space: nowrap; }
.suggest .s-price.pending { font-weight: 500; color: var(--amber-800); }
.suggest .s-all { grid-template-columns: 40px 1fr; color: var(--g-800); font-weight: 500; font-size: .88rem; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
.suggest .s-empty { padding: 12px; color: var(--muted); font-size: .9rem; }
.suggest .tile { width: 40px; height: 40px; border-radius: 10px; }
.suggest .tile .ico { width: 20px; height: 20px; }
.suggest .s-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest .s-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest [role=option] > span:nth-child(2) { min-width: 0; }
@media (max-width: 1023px) { .suggest { right: auto; width: calc(100vw - 32px); max-height: min(60vh, 420px); } }
@media (min-width: 768px) and (max-width: 1023px) { .suggest { width: calc(100vw - 48px); } }

/* ---------- Ilustrações de categoria (sem fotos reais, sem inventar produto) ---------- */
.tile { --tbg: var(--g-50); --tfg: var(--g-700); position: relative; display: grid; place-items: center; background: var(--tbg); color: var(--tfg); overflow: hidden; }
.tile .ico { stroke-width: 1.5; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 6px; object-fit: contain; background: #fff; }
.tone-butter { --tbg: #fdf3d7; --tfg: #8a5d00; }
.tone-rose { --tbg: #fde8e6; --tfg: #a12a1f; }
.tone-sky { --tbg: #e4f0fb; --tfg: #1c5a93; }
.tone-leaf { --tbg: #e6f4e9; --tfg: #1d6f3e; }
.tone-wheat { --tbg: #f6ecda; --tfg: #7d5418; }
.tone-berry { --tbg: #fbe7f0; --tfg: #9c3163; }
.tone-sea { --tbg: #e1f2f4; --tfg: #135f6b; }
.tone-lilac { --tbg: #ecebfa; --tfg: #4a4a9c; }
.tone-sun { --tbg: #fff0da; --tfg: #9a5200; }
.tone-tomato { --tbg: #fdebe3; --tfg: #a3401a; }
.tone-stone { --tbg: #efefeb; --tfg: #4f5048; }

/* ---------- Página inicial ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--g-900) 0%, var(--g-800) 55%, #0f5a36 100%); color: #e6f2ea; }
.hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 155, 90, .35), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.hero h1 { color: #fff; max-width: 20ch; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.7rem); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; color: #cfe6d7; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a67; flex: none; }
.hero-lead { font-size: 1rem; color: #cfe3d6; max-width: 56ch; margin-bottom: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-outline { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .4); }
.hero .btn-outline:hover { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 20px 0 0; font-size: .84rem; color: #cfe3d6; }
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts .ico { width: 16px; height: 16px; color: #7fd6a2; stroke-width: 2.2; }
.hero-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-xl); padding: 16px; }
.hero-panel h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-panel h2 a { color: #bfe2cc; font-size: .82rem; font-weight: 500; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.mosaic a { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.mosaic a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); color: var(--ink); }
.mosaic .tile { width: 40px; height: 40px; border-radius: 10px; }
.mosaic .tile .ico { width: 22px; height: 22px; }
.mosaic strong { font-size: .8rem; font-weight: 500; line-height: 1.2; }
.mosaic small { font-size: .7rem; color: var(--muted); }
.mosaic li { display: flex; }
.mosaic li > a { width: 100%; }
@media (max-width: 559px) { .mosaic li:nth-child(n+7) { display: none; } }
@media (max-width: 559px) { .hero h1 { font-size: 1.7rem; } .hero .wrap { padding-top: 22px; padding-bottom: 26px; } .hero-lead { font-size: .95rem; } }
@media (max-width: 899px) { .hero-panel { display: none; } }
@media (min-width: 1024px) { .hero-eyebrow { display: none; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 44px; }
  .hero-lead { font-size: 1.08rem; }
  .hero-panel { padding: 20px; }
}

.section { padding: 44px 0; }
.section.tint { background: var(--bg); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.section-head h2 { margin: 0 0 4px; }
.kicker { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--r-700); margin-bottom: 6px; }
@media (min-width: 768px) { .section { padding: 64px 0; } .section-head { margin-bottom: 28px; } }

/* Negócios (página inicial) */
.biz-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .biz-cards { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.biz-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.biz-card:hover { border-color: var(--g-600); box-shadow: var(--sh-2); transform: translateY(-2px); color: var(--ink); }
.biz-card .biz-ico { width: 42px; height: 42px; }
.biz-card strong { font-size: .92rem; line-height: 1.25; color: var(--g-950); font-weight: 700; }
.biz-card p { display: none; margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.biz-card .biz-count { margin-top: auto; }
.biz-card .biz-sub a { position: relative; z-index: 2; }
.biz-card .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.biz-item { position: relative; }
.biz-item .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.biz-item .biz-sub a { position: relative; z-index: 2; }
.biz-card:has(.stretch:focus-visible), .biz-item:has(.stretch:focus-visible) { box-shadow: var(--focus); }
.biz-card .stretch:focus-visible, .biz-item .stretch:focus-visible { box-shadow: none; }
.biz-card strong a, .biz-item strong a { color: inherit; text-decoration: none; }
.biz-card strong a:hover, .biz-item strong a:hover { color: var(--g-800); }
.biz-sub a b { font-weight: 700; margin-left: 4px; color: var(--g-700); }
@media (min-width: 900px) { .biz-card { padding: 20px; } .biz-card p { display: block; } .biz-card strong { font-size: 1rem; } }

/* Categorias (página inicial) */
.cat-tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
/* Celular: duas linhas com rolagem lateral em vez de uma lista longa */
@media (max-width: 559px) {
  .cat-tiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(128px, 38%); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tiles li { scroll-snap-align: start; }
  .cat-tiles .cat-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .cat-tiles .cat-tile .tile { width: 40px; height: 40px; }
}
@media (min-width: 560px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1200px) { .cat-tiles { grid-template-columns: repeat(6, 1fr); } }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.cat-tile:hover { border-color: var(--g-600); box-shadow: var(--sh-1); color: var(--ink); }
.cat-tile .tile { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.cat-tile .tile .ico { width: 24px; height: 24px; }
.cat-tile strong { display: block; font-size: .84rem; font-weight: 500; line-height: 1.25; }
.cat-tile small { font-size: .74rem; color: var(--muted); }
@media (min-width: 1200px) { .cat-tile { flex-direction: column; align-items: flex-start; padding: 14px; } .cat-tile .tile { width: 48px; height: 48px; } }

/* Como funciona */
.steps { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-700); color: #fff; }
.step:last-child .step-n { background: var(--r-700); }
.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) { .step { grid-template-columns: 1fr; padding: 22px; } }

/* Sobre / Atendimento */
.duo { display: grid; gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; }
@media (min-width: 768px) { .card { padding: 28px; } }
.card h2 { font-size: 1.3rem; }
.note { border-left: 3px solid var(--g-600); background: var(--g-50); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--g-900); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .94rem; }
.checklist .ico { color: var(--g-600); margin-top: 2px; stroke-width: 2.2; }
.zeus-id { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.zeus-id .brand-mark { width: 52px; height: 52px; }
.more > summary { cursor: pointer; color: var(--g-700); font-weight: 500; font-size: .9rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary .ico { transform: rotate(180deg); }
.more > div { margin-top: 10px; }

/* Perguntas frequentes */
.faq { display: grid; gap: 8px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color var(--t-fast); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 14px 48px 14px 16px; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--g-700); border-bottom: 2px solid var(--g-700); transform: translateY(-70%) rotate(45deg); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 16px 14px; color: var(--ink-2); font-size: .94rem; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1fr; max-width: none; align-items: start; } }

/* ---------- Área da loja (catálogo, pedido, finalização) ---------- */
#app { background: var(--bg); min-height: 70vh; padding: 12px 0 calc(40px + var(--cart-bar-h)); }
@media (min-width: 1024px) { #app { padding-top: 20px; } }

/* Trilha de navegação (breadcrumb) acima do contexto do catálogo */
.crumb { margin: 0 0 8px; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 7px; padding: 0; margin: 0; font-size: .8rem; color: var(--muted); }
.crumb li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.crumb li:not(:first-child)::before { content: "›"; color: var(--line-2); }
.crumb a { color: var(--g-700); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb li[aria-current="page"] span { color: var(--ink-2); font-weight: 500; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Contexto (negócio escolhido, busca ou catálogo completo) — compacto no celular */
.shop-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.ctx-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.ctx-title .biz-ico { width: 40px; height: 40px; background: var(--g-700); color: #fff; }
.ctx-title .biz-ico .ico { width: 22px; height: 22px; }
.ctx-title h1 { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); margin: 0; }
.ctx-title p { margin: 0; font-size: .84rem; color: var(--muted); }
.ctx-title p:empty { display: none; }
.ctx-kicker { display: block; white-space: nowrap; font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--g-700); }
.ctx-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ctx-actions .lbl-sm { display: none; }
.seg-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.seg-switch button { border: 0; background: none; padding: 6px 14px; min-height: 36px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg-switch button[aria-pressed="true"] { background: var(--g-700); color: #fff; }
@media (max-width: 639px) {
  .shop-context { flex-wrap: nowrap; gap: 10px; }
  .ctx-title { flex: 1 1 auto; gap: 10px; }
  .ctx-title p { display: none; }
  .ctx-title h1 { font-size: 1.2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ctx-title > div { min-width: 0; }
  .ctx-actions { flex-wrap: nowrap; flex: none; }
  .ctx-actions .lbl-lg { display: none; }
  .ctx-actions .lbl-sm { display: inline; }
  .shop-context:has(.seg-switch) { flex-wrap: wrap; }
  .shop-context:has(.seg-switch) .ctx-actions { flex: 1 1 100%; flex-wrap: wrap; }
  .seg-switch { max-width: 100%; }
  .seg-switch button { padding: 6px 12px; }
}
@media (min-width: 1024px) { .shop-context { margin-bottom: 18px; } .ctx-title .biz-ico { width: 48px; height: 48px; border-radius: 14px; } .ctx-title .biz-ico .ico { width: 26px; height: 26px; } }

/* Abas horizontais (celular e tablet) */
.tabs-wrap { position: sticky; top: calc(var(--hdr-h) - 1px); z-index: 30; margin: 0 -16px 10px; padding: 8px 16px; background: rgba(244, 246, 242, .96); transition: top var(--t-med) var(--ease); }
@supports (backdrop-filter: blur(8px)) { .tabs-wrap { background: rgba(244, 246, 242, .88); backdrop-filter: blur(10px); } }
body.hdr-condensed .tabs-wrap { top: calc(var(--hdr-h) - var(--hdr-row1) - 1px); }
.tabs-row { display: flex; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; margin: -2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.tab:hover { border-color: var(--g-600); color: var(--g-900); }
.tab[aria-pressed="true"] { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.tab .n { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--g-50); color: var(--g-800); }
.tab[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); color: #fff; }
.filter-btn { flex: none; position: relative; }
.filter-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--r-600); border: 2px solid #fff; }
@media (min-width: 768px) { .tabs-wrap { margin: 0 -24px 14px; padding: 10px 24px; } }
@media (min-width: 1024px) { .tabs-wrap { display: none; } }

/* Barra de resultados */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; min-height: 32px; }
/* Linha do topo da barra: contagem à esquerda, ordenação + "Só disponíveis" à direita; selos ativos quebram abaixo */
.toolbar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; width: 100%; }
.toolbar-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sort-field { display: inline-flex; align-items: center; }
.sort-field select { min-height: 36px; padding: 6px 30px 6px 10px; font-size: .84rem; border-radius: 8px; }
.avail-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.avail-toggle input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--g-700); }
.result-info { margin: 0; font-size: .86rem; color: var(--muted); }
.result-info strong { color: var(--ink); font-weight: 500; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--g-200); background: var(--g-50); color: var(--g-900); font-size: .8rem; cursor: pointer; min-height: 32px; }
.active-filters button:hover { border-color: var(--g-600); }
.active-filters .ico { width: 14px; height: 14px; }

/* Layout: celular = coluna única · desktop = barra lateral + produtos · ≥1280px = + painel do pedido */
.shop { display: grid; gap: 20px; align-items: start; }
.shop-main { min-width: 0; }
.shop-filters, .shop-aside { display: none; }
@media (min-width: 1024px) {
  .shop { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; }
  .shop-filters { display: block; position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding: 2px 6px 12px 2px; margin: -2px -6px 0 -2px; }
}
@media (min-width: 1280px) {
  .shop { grid-template-columns: 240px minmax(0, 1fr) 320px; }
  .shop-aside { display: block; position: sticky; top: calc(var(--hdr-h) + 16px); }
}
@media (min-width: 1440px) { .shop { grid-template-columns: 248px minmax(0, 1fr) 340px; gap: 28px; } }

/* Barra lateral: atalhos/categorias com contagem e filtros */
.side-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px 8px; }
.side-nav { margin-bottom: 16px; }
.side-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 5px 10px 5px 6px; border-radius: 12px; border: 0; background: none; color: var(--ink-2); font-size: .86rem; font-weight: 500; line-height: 1.25; text-align: left; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.side-tab .tile { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.side-tab .tile .ico { width: 17px; height: 17px; }
.side-tab .lbl { flex: 1; min-width: 0; }
.side-tab .n { font-size: .72rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-tab:hover { background: rgba(255, 255, 255, .8); color: var(--g-900); }
.side-tab[aria-pressed="true"] { background: #fff; color: var(--g-950); font-weight: 700; box-shadow: inset 3px 0 0 var(--g-700), var(--sh-1); }
.side-tab[aria-pressed="true"] .n { color: var(--g-700); font-weight: 700; }
.side-more { margin-top: 6px; }
.side-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 10px; font-size: .84rem; font-weight: 500; color: var(--g-800); }
.side-more > summary::-webkit-details-marker { display: none; }
.side-more > summary:hover { background: rgba(255, 255, 255, .8); }
.side-more > summary .ico { transition: transform var(--t-med) var(--ease); }
.side-more[open] > summary .ico { transform: rotate(180deg); }
.side-more ul { list-style: none; margin: 2px 0 0; padding: 0 0 0 10px; display: grid; }
.side-more a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: .82rem; color: var(--ink-2); text-decoration: none; }
.side-more a:hover { background: rgba(255, 255, 255, .8); color: var(--g-900); }
.side-more small { color: var(--muted); font-size: .72rem; }
.side-filters { display: grid; gap: 4px; }
.side-group { border: 0; margin: 0; padding: 12px 8px 10px; border-top: 1px solid var(--line-2); display: grid; gap: 2px; min-width: 0; }
.side-group legend, .side-group > label:not(.side-opt) { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-size: .8rem; font-weight: 700; color: var(--g-950); }
.side-group select { min-height: 40px; padding: 6px 36px 6px 12px; font-size: .86rem; border-radius: 10px; }
.side-opt { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: .86rem; color: var(--ink-2); cursor: pointer; clear: both; }
.side-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--g-700); }
.side-opt:hover { color: var(--g-900); }
/* Filtro de faixa de preço (de/até) e "só com preço agora" */
.side-group-l { font-size: .8rem; font-weight: 700; color: var(--g-950); margin-bottom: 6px; }
.preco-range { display: flex; align-items: center; gap: 6px; }
.preco-range input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; font-size: .86rem; border-radius: 10px; text-align: center; }
.preco-range .rp { font-size: .8rem; color: var(--muted); flex: none; }
.f-toggle { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.f-toggle input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--g-700); }
.side-opt input:checked + span { color: var(--g-950); font-weight: 500; }
.side-clear { justify-self: start; margin: 4px 0 0 2px; }

/* Grade de produtos */
.pgrid { display: grid; gap: 10px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; transition: opacity var(--t-med); }
.pgrid.is-loading { opacity: .45; pointer-events: none; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 16px; } }
.group-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.group-title:first-child { margin-top: 0; }

/* Cartão de produto — celular: linha compacta; a partir de 640px: cartão vertical */
.pcard { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--t-fast), box-shadow var(--t-med), transform var(--t-med) var(--ease); }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.pcard.in-cart { border-color: var(--g-200); box-shadow: inset 0 0 0 1px var(--g-200); }
.pcard.just-added { animation: addedRing 700ms var(--ease); }
.pcard-media { position: relative; width: 64px; height: 64px; border-radius: var(--r-md); padding: 0; border: 0; cursor: pointer; }
.pcard-media .ico { width: 32px; height: 32px; }
.pcard-flag { position: absolute; left: 3px; top: 3px; line-height: 1; }
.pcard-flag .badge-demo { font-size: .5rem; padding: 1px 4px; letter-spacing: .04em; }
.pcard-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pcard-top { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-height: 18px; }
.pcard-brand { margin: 0; font-size: .68rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pcard-tags .badge { font-size: .64rem; padding: 1px 7px; }
.pcard-name { margin: 0; font-size: .95rem; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; color: var(--ink); }
.pcard-name button { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name button:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.pcard-name button:hover { color: var(--g-800); text-decoration: underline; text-underline-offset: 3px; }
.pcard-pack { margin: 0; font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-unit { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: .76rem; line-height: 1.35; color: var(--muted); min-width: 0; }
.pcard-unit span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-unit .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; }
@media (max-width: 639px) {
  .pcard-pack.is-redundant { display: none; }
  .pcard-unit .ico { display: none; }
  .pcard .stepper .u { display: none; }
  .pcard .stepper button { width: 38px; }
  .pcard .stepper input[type=number] { width: 38px; }
  .pcard-foot .price { flex: 1 1 auto; }
}
.price { min-width: 0; }
.price-amount { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-amount b { font-size: 1.08rem; font-weight: 700; color: var(--g-950); letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-amount small { font-size: .74rem; color: var(--muted); }
.price-note { display: block; font-size: .7rem; color: var(--faint); }
/* Preço por unidade de uso (≈ R$/kg, R$/L), derivado do tamanho da embalagem */
.price-unit { display: block; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-pending { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: .78rem; font-weight: 500; line-height: 1.3; color: var(--amber-800); background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 10px; padding: 3px 10px; }
.price-pending.off { color: var(--r-700); background: var(--r-50); border-color: var(--r-100); }
.pcard-cta { flex: none; }
/* Bloco de compra + seletor unidade / caixa fechada */
.buy-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.buy-wrap.has-pack { flex-direction: column; align-items: stretch; gap: 6px; }
.buy-wrap > .price, .buy-row > .price { flex: 1 1 auto; min-width: 0; }
.buy-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pack-toggle { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.pack-opt { border: 0; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 4px 11px; cursor: pointer; line-height: 1.4; }
.pack-opt.is-on { background: var(--g-700); color: #fff; }
.pack-opt:focus-visible { outline: 2px solid var(--g-700); outline-offset: -2px; }
.price-alt { display: block; font-size: .7rem; color: var(--muted); }
.price-approx { font-size: .72rem; color: var(--muted); margin-left: 3px; cursor: help; }
.add-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--g-700); color: #fff; cursor: pointer; box-shadow: 0 4px 10px rgba(14, 99, 55, .25); transition: background var(--t-fast), transform var(--t-fast); }
.add-btn:hover { background: var(--g-800); }
.add-btn:active { transform: scale(.94); }
.add-btn .lbl { display: none; }
.add-btn .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.add-btn[disabled] { background: var(--line-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--g-700); color: #fff; box-shadow: 0 4px 10px rgba(14, 99, 55, .22); animation: popIn 240ms var(--ease); }
.stepper.still { animation: none; }
.stepper button { display: grid; place-items: center; width: 40px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: rgba(255, 255, 255, .12); }
.stepper button .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper label { display: flex; align-self: stretch; align-items: baseline; gap: 3px; padding: 0 2px; cursor: text; }
.stepper input[type=number] { width: 42px; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; text-align: center; font-weight: 700; font-size: .98rem; -moz-appearance: textfield; box-shadow: none; }
.stepper input[type=number]:focus { background: rgba(255, 255, 255, .16); box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .u { font-size: .72rem; font-weight: 500; opacity: .85; padding-right: 2px; }
.stepper.light { background: #fff; color: var(--g-900); border: 1.5px solid var(--line-2); box-shadow: none; height: 40px; animation: none; }
.stepper.light button { color: var(--g-800); height: 38px; width: 36px; }
.stepper.light button:hover { background: var(--g-50); }
.stepper.light input[type=number] { color: var(--ink); }
.stepper.light input[type=number]:focus { background: var(--g-50); }
@media (min-width: 640px) {
  .pcard { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 0; gap: 0; overflow: hidden; }
  .pcard-media { width: 100%; height: 128px; border-radius: 0; }
  .pcard-media .ico { width: 54px; height: 54px; }
  .pcard-flag { left: 10px; top: 10px; }
  .pcard-tags { position: absolute; left: 10px; right: 10px; top: 128px; transform: translateY(calc(-100% - 8px)); pointer-events: none; }
  .pcard-tags .badge { font-size: .66rem; padding: 2px 8px; box-shadow: 0 1px 2px rgba(6, 36, 23, .08); }
  .pcard-top { min-height: 0; }
  .pcard-flag .badge-demo { font-size: .6rem; padding: 2px 8px; }
  .pcard-body { padding: 12px 14px 14px; gap: 3px; }
  .pcard-name { font-size: .98rem; min-height: 2.6em; }
  .pcard-foot { flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 10px; }
  .price { min-height: 44px; }
  .price-amount b { font-size: 1.2rem; }
  .add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 999px; font-weight: 500; font-size: .92rem; box-shadow: none; }
  .add-btn .lbl { display: inline; }
  .add-btn .ico { width: 20px; height: 20px; }
  .stepper { width: 100%; justify-content: space-between; box-shadow: none; }
  .stepper button { width: 48px; }
  .pcard:hover { transform: translateY(-2px); }
}
.load-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 20px 0 8px; }
.load-more small { color: var(--muted); font-size: .8rem; }
.load-more:empty { display: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--g-600); }
.empty .row-actions { justify-content: center; }
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, #e9eee9 0, #f5f7f4 60px, #e9eee9 120px) 0 0 / 700px 100%; animation: shimmer 1.3s linear infinite; min-height: 112px; }
@media (min-width: 640px) { .skel { min-height: 300px; } }

/* ---------- Pedido: painel, gaveta, página ---------- */
.order { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.order-head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.order-head .n { font-size: .75rem; font-weight: 700; color: var(--g-800); background: var(--g-50); padding: 2px 8px; border-radius: 999px; }
.order-lines { list-style: none; margin: 0; padding: 4px 0; overflow: auto; }
/* Painel lateral: a lista rola dentro do painel; resumo e botão ficam sempre visíveis */
.shop-aside .order { max-height: var(--aside-max, calc(100vh - var(--hdr-h) - 32px)); }
.shop-aside .order-lines { flex: 1 1 auto; min-height: 64px; overscroll-behavior: contain; scrollbar-width: thin; }
.shop-aside .order-head, .shop-aside .order-sum, .shop-aside .order-cta { flex: none; }
.oline { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.oline.is-new { animation: fadeUp var(--t-med) var(--ease); }
.oline .stepper { width: auto; justify-content: flex-start; }
.oline .stepper button { width: 36px; }
.oline .stepper input[type=number] { width: 36px; }
.oline:last-child { border-bottom: 0; }
.oline .tile { width: 44px; height: 44px; border-radius: 10px; }
.oline .tile .ico { width: 22px; height: 22px; }
.oline-name { font-size: .88rem; font-weight: 500; line-height: 1.3; margin: 0; }
.oline-meta { font-size: .74rem; color: var(--muted); margin: 1px 0 6px; }
.oline-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.oline-calc { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.oline-uso { font-size: .72rem; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.oline-sub { font-size: .9rem; font-weight: 700; color: var(--g-950); white-space: nowrap; }
.oline-sub.pending { font-weight: 500; font-size: .76rem; color: var(--amber-800); }
.oline .remove { margin-left: -6px; }
.remove { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; color: var(--r-700); font-size: .78rem; font-weight: 500; cursor: pointer; }
.remove:hover { background: var(--r-50); }
.remove .ico { width: 16px; height: 16px; }
.order-sum { padding: 14px 18px 4px; border-top: 1px solid var(--line); background: #fbfcfa; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .88rem; color: var(--ink-2); }
.sum-row span:last-child { font-weight: 500; color: var(--ink); text-align: right; }
.sum-row.pending span:last-child { color: var(--amber-800); }
.sum-row.total { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line-2); font-size: 1rem; color: var(--ink); font-weight: 500; }
.sum-row.total span:last-child { font-size: 1.15rem; font-weight: 700; color: var(--g-950); }
.sum-row.total > span:first-child { white-space: nowrap; }
.sum-total { display: flex; flex-direction: column; align-items: flex-end; }
.sum-total-v { white-space: nowrap; }
.sum-row.total .sum-total-x { font-size: .72rem; font-weight: 600; color: var(--amber-800); white-space: nowrap; }
.sum-note { font-size: .74rem; color: var(--muted); margin: 6px 0 10px; line-height: 1.45; }
.conditions { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: .78rem; color: #4d3700; }
.conditions li { background: var(--amber-50); border-radius: 8px; padding: 6px 9px; }
.order-cta { padding: 12px 18px 18px; display: grid; gap: 8px; background: #fbfcfa; }
.order-empty { padding: 28px 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.order-empty .ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--g-600); stroke-width: 1.4; }
.order-empty strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.item-errors { margin: 12px 18px 0; }
/* Página do pedido */
.order-page { display: grid; gap: 16px; align-items: start; }
.order-page > .order-side { overflow: visible; }
.order-page > .order-side .order-sum { border-top: 0; background: #fff; }
.order-page > .order-side .order-cta { background: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.order-page > section.mt-24 { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .order-page { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .order-page > .order-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
}
.coverage { border-radius: var(--r-md); padding: 12px 14px; font-size: .88rem; margin: 10px 0 0; display: grid; gap: 2px; }
.coverage strong { font-weight: 700; }
.coverage.ok { background: var(--g-50); border: 1px solid var(--g-100); color: var(--g-900); }
.coverage.pending { background: var(--amber-50); border: 1px solid var(--amber-200); color: #4d3700; }

/* Barra fixa do pedido (celular/tablet) */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244, 246, 242, 0), rgba(244, 246, 242, .9) 30%); pointer-events: none; }
.cart-bar-inner { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--g-900); color: #fff; box-shadow: 0 14px 32px rgba(6, 36, 23, .32); border: 0; width: 100%; cursor: pointer; text-align: left; }
.cart-bar.enter .cart-bar-inner { animation: barIn 320ms var(--ease); }
.cart-bar-info { flex: 1; min-width: 0; line-height: 1.25; }
.cart-bar-info strong { display: block; font-size: .95rem; font-weight: 700; }
.cart-bar-info span { display: block; font-size: .78rem; color: #c3dccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-go { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--g-900); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.cart-bar-ico { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex: none; }
.cart-bar-ico .ico { width: 22px; height: 22px; }
.cart-bar-ico b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--r-600); font-size: .7rem; display: grid; place-items: center; border: 2px solid var(--g-900); }
.cart-bar-ico b.bump { animation: bump 420ms var(--ease); }
@media (min-width: 1024px) { .cart-bar { display: none !important; } }

/* Diálogos: gaveta (desktop) / folha inferior (celular) */
dialog.sheet { position: fixed; margin: 0; padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); overflow: visible; }
dialog.sheet::backdrop { background: rgba(6, 30, 19, .5); }
dialog.sheet.is-open::backdrop { animation: fadeIn var(--t-med) ease-out; }
.sheet-panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--sh-3); overflow: hidden; }
dialog.sheet.is-open .sheet-panel { animation: sheetUp 300ms var(--ease); }
dialog.sheet.is-closing .sheet-panel { animation: sheetDown 200ms ease-in forwards; }
dialog.sheet.is-closing::backdrop { animation: fadeOut 200ms ease-in forwards; }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.sheet-body { overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.sheet-foot { flex: none; border-top: 1px solid var(--line); background: #fbfcfa; }
@media (min-width: 768px) {
  dialog.sheet.side .sheet-panel { left: auto; top: 0; bottom: 0; width: min(440px, 100vw); max-height: none; height: 100dvh; border-radius: 22px 0 0 22px; }
  dialog.sheet.side.is-open .sheet-panel { animation: drawerIn 300ms var(--ease); }
  dialog.sheet.side.is-closing .sheet-panel { animation: drawerOut 200ms ease-in forwards; }
  dialog.sheet.side .sheet-grip { display: none; }
  dialog.sheet.center .sheet-panel { left: 50%; top: 50%; bottom: auto; right: auto; width: min(720px, calc(100vw - 48px)); max-height: calc(100dvh - 64px); border-radius: 22px; transform: translate(-50%, -50%); }
  dialog.sheet.center.is-open .sheet-panel { animation: popCenter 260ms var(--ease); }
  dialog.sheet.center.is-closing .sheet-panel { animation: popCenterOut 180ms ease-in forwards; }
  dialog.sheet.center .sheet-grip { display: none; }
  dialog.sheet.center.narrow .sheet-panel { width: min(520px, calc(100vw - 48px)); }
  dialog.sheet.center.wide .sheet-panel { width: min(920px, calc(100vw - 48px)); }
}
.sheet .order { border: 0; border-radius: 0; min-height: 100%; }
.sheet .order-head { display: none; }
/* Gaveta do pedido: a lista rola; resumo e "Finalizar cotação" ficam sempre à vista */
#cart-drawer .sheet-body { display: flex; flex-direction: column; overflow: hidden; }
#cart-drawer .order { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#cart-drawer .order-lines { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#cart-drawer .order-sum, #cart-drawer .order-cta, #cart-drawer .item-errors { flex: none; }
#cart-drawer .order-sum { box-shadow: 0 -8px 16px rgba(6, 36, 23, .04); }

/* Visualização rápida do produto */
.qv { display: grid; gap: 18px; padding: 18px 20px 22px; }
@media (min-width: 768px) { .qv { grid-template-columns: 240px 1fr; gap: 24px; padding: 24px; } }
.qv .tile { height: 180px; border-radius: var(--r-lg); }
.qv .tile .ico { width: 72px; height: 72px; }
@media (min-width: 768px) { .qv .tile { height: 240px; } }
.qv h3 { font-size: 1.25rem; margin-bottom: 4px; }
.qv dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; font-size: .88rem; }
.qv dt { color: var(--muted); }
.qv dd { margin: 0; font-weight: 500; }
.qv-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.qv-buy .price-amount b { font-size: 1.4rem; }
.qv-note { margin: 10px 0 0; max-width: 46ch; line-height: 1.45; }
.qv-related { padding: 0 20px 22px; }
@media (min-width: 768px) { .qv-related { padding: 0 24px 24px; } }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mini .tile { width: 44px; height: 44px; border-radius: 10px; }
.mini .tile .ico { width: 22px; height: 22px; }
.mini strong { font-size: .86rem; font-weight: 500; display: block; line-height: 1.25; }
.mini small { font-size: .74rem; color: var(--muted); }
.mini .add-btn { width: 40px; height: 40px; box-shadow: none; }
.mini .add-btn .lbl { display: none; }
.mini .stepper { width: auto; height: 40px; box-shadow: none; }
.mini .stepper button { width: 34px; height: 40px; }

/* Filtros (folha no celular) */
.filters-form { display: grid; gap: 18px; padding: 18px 20px; }
.seg-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-ctl button { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .86rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg-ctl button[aria-pressed="true"] { background: var(--g-700); color: #fff; border-color: var(--g-700); }

/* ---------- Finalização em etapas ---------- */
.checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } .checkout-aside { position: sticky; top: calc(var(--hdr-h) + 16px); } }
.progress { display: flex; list-style: none; margin: 0 0 18px; padding: 0; gap: 6px; counter-reset: p; }
.progress li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .74rem; font-weight: 500; color: var(--faint); }
.progress li::before { content: ""; height: 4px; border-radius: 999px; background: var(--line-2); transition: background var(--t-med); }
.progress li.done::before, .progress li.current::before { background: var(--g-600); }
.progress li.current { color: var(--g-900); }
.progress li.done { color: var(--g-700); }
.progress a { color: inherit; text-decoration: none; }
.progress a:hover { text-decoration: underline; }
@media (min-width: 640px) { .progress li { font-size: .82rem; } }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px 16px; animation: fadeUp var(--t-med) var(--ease); }
@media (min-width: 640px) { .step-card { padding: 28px; } }
.step-card h1 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); margin-bottom: 4px; }
.step-card > .lead { color: var(--muted); margin-bottom: 20px; font-size: .92rem; }
.step-actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; }
@media (max-width: 639px) { .step-actions .btn-lg { width: 100%; } .step-actions { justify-content: center; } }
.geo-box { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--g-50); border: 1px solid var(--g-100); margin-bottom: 18px; }
.geo-box .btn { justify-self: start; }
.mini-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.mini-summary > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 500; font-size: .9rem; }
.mini-summary > summary::-webkit-details-marker { display: none; }
.mini-summary > summary .ico { transition: transform var(--t-med) var(--ease); }
.mini-summary[open] > summary .ico { transform: rotate(180deg); }
.mini-summary .order { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (min-width: 1024px) { .checkout .mini-summary { display: none; } }
.checkout-aside { display: none; }
@media (min-width: 1024px) { .checkout-aside { display: block; } }
.review-cards { display: grid; gap: 12px; }
@media (min-width: 768px) { .review-cards { grid-template-columns: 1fr 1fr; } }
.rcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rcard-head h2 { font-size: .95rem; margin: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: .86rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 479px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0; } .kv dt { font-size: .76rem; margin-top: 8px; } .kv dt:first-child { margin-top: 0; } }
.ritems { list-style: none; margin: 0; padding: 0; }
.ritem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ritem:last-child { border-bottom: 0; }
.ritem strong { font-weight: 500; }
.ritem small { display: block; color: var(--muted); font-size: .76rem; }
.ritem .v { text-align: right; white-space: nowrap; font-weight: 700; }
.ritem .v small { font-weight: 400; }
.send-box { margin-top: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--g-50); border: 1px solid var(--g-100); display: grid; gap: 12px; }
.send-box .hint { margin: 0; }

/* Concluído */
.done-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 18px; animation: fadeUp var(--t-med) var(--ease); }
@media (min-width: 640px) { .done-card { padding: 36px; } }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--g-700); color: #fff; display: grid; place-items: center; margin-bottom: 16px; animation: popIn 420ms var(--ease); }
.done-icon .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.protocol { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; background: var(--g-50); border: 1px dashed var(--g-600); padding: 4px 10px; border-radius: 8px; color: var(--g-900); }
.lead { font-size: 1.02rem; }
.msg-preview { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; max-height: 300px; overflow: auto; }

/* Cadastro */
dialog.modal { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--sh-3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(6, 30, 19, .5); }
dialog.modal[open] { animation: popCenterStatic 240ms var(--ease); }
.modal-inner { padding: 22px 20px 20px; overflow: auto; max-height: calc(100dvh - 24px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-head .icon-btn { background: var(--bg); width: 40px; height: 40px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--g-950); color: #cfe0d5; padding: 40px 0 calc(28px + var(--cart-bar-h)); font-size: .88rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; } .site-footer { padding-bottom: 32px; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .78rem; color: #a9c2b3; }

/* ---------- Aviso rápido ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--cart-bar-h) + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(560px, calc(100% - 24px)); min-height: 44px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--g-950); color: #fff; font-size: .88rem; box-shadow: var(--sh-3); transform: translateX(-50%); animation: toastIn 260ms var(--ease); }
.toast .ico { color: #7fd6a2; stroke-width: 2.4; }
.toast button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.toast button:hover { background: rgba(255, 255, 255, .2); }
.toast span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast:not(:has(button)) { padding-right: 16px; }

/* ---------- Página de privacidade ---------- */
.doc { max-width: 800px; padding-top: 32px; padding-bottom: 64px; }
.doc h2 { font-size: 1.2rem; margin-top: 1.6em; }
.doc li { margin-bottom: .4em; }
.doc-header .hdr { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
.doc-header .hdr::before { display: none; }
.doc-header .hdr-actions { display: flex; order: 2; flex: none; }

/* ---------- Food News (boletins da PMG) ---------- */
body[data-view="boletins"], body[data-view="videos"] { background: var(--bg); }
.doc-actions { gap: 8px; }
.doc-actions .lbl-sm { display: none; }
@media (max-width: 559px) { .doc-actions .lbl-lg { display: none; } .doc-actions .lbl-sm { display: inline; } .doc-actions .btn { padding: 6px 12px; } .doc-header:has(.doc-actions) .brand-text > span { display: none; } }
@media (max-width: 419px) { .doc-actions .doc-back .lbl-sm { display: none; } .doc-actions .doc-back { width: 36px; padding: 0; } }
.fn-page-wrap { padding-top: 24px; padding-bottom: 56px; }
@media (min-width: 768px) { .fn-page-wrap { padding-top: 36px; padding-bottom: 72px; } }
.fn-head { max-width: 760px; margin-bottom: 24px; }
.fn-head h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin-bottom: 8px; }
.fn-head .lead { color: var(--muted); margin: 0; }
.fn-head .muted { margin: 0; font-size: .9rem; }
.fn-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
.fn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fn-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .fn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1200px) { .fn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fn-card { display: grid; gap: 10px; text-decoration: none; color: var(--ink); border-radius: var(--r-md); }
.fn-cover { position: relative; display: grid; place-items: center; aspect-ratio: 360 / 509; border-radius: var(--r-md); overflow: hidden; background: var(--g-50); color: var(--g-700); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(6, 36, 23, .06), 0 6px 16px rgba(6, 36, 23, .08); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.fn-cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.fn-cover .ico { width: 40px; height: 40px; }
.fn-card:hover { color: var(--ink); }
.fn-card:hover .fn-cover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(6, 36, 23, .06), 0 16px 32px rgba(6, 36, 23, .16); }
.fn-card:hover .fn-meta h2, .fn-card:hover .fn-meta h3 { color: var(--g-800); }
.fn-card:focus-visible { box-shadow: none; }
.fn-card:focus-visible .fn-cover { box-shadow: var(--focus); }
.fn-meta { display: grid; gap: 2px; }
.fn-ed { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--r-700); }
.fn-meta h2, .fn-meta h3 { margin: 0; font-size: .95rem; line-height: 1.3; letter-spacing: -.005em; transition: color var(--t-fast); }
.fn-reader { max-width: 920px; margin: 0 auto; }
.fn-pages { display: grid; gap: 20px; margin: 8px 0 28px; }
.fn-page { margin: 0; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 2px rgba(6, 36, 23, .08), 0 10px 30px rgba(6, 36, 23, .10); scroll-margin-top: calc(var(--hdr-h) + 12px); }
.fn-page img { width: 100%; height: auto; background: #fff; }
.fn-page figcaption { padding: 8px 12px; font-size: .76rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.fn-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 20px; }
.fn-texto { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.fn-texto > summary { cursor: pointer; padding: 14px 16px; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fn-texto > summary::-webkit-details-marker { display: none; }
.fn-texto > summary .ico { transition: transform var(--t-med) var(--ease); }
.fn-texto[open] > summary .ico { transform: rotate(180deg); }
.fn-texto > div { padding: 0 16px 16px; font-size: .92rem; color: var(--ink-2); }
.fn-texto h2 { font-size: 1rem; margin: 1.2em 0 .5em; }
.fn-fonte { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); max-width: 920px; }

/* ---------- Página de vídeos (/videos) ---------- */
.vchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px 6px; }
.vchips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .vchips { flex-wrap: wrap; overflow: visible; margin: 0 0 14px; padding: 0; } }
.vchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.vchip span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.vchip:hover { border-color: var(--g-600); color: var(--g-900); }
.vchip[aria-current="true"] { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.vchip[aria-current="true"] span { color: #cfe6d7; }
.vid-note { margin: 0 0 14px; font-size: .9rem; color: var(--ink-2); }
.vid-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }
@media (min-width: 900px) { .vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Celular: miniatura ao lado do título; telas maiores: cartão com a miniatura em cima */
.vid-card { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 12px; align-items: start; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; text-decoration: none; border-radius: var(--r-md); }
.vid-card:hover { color: var(--ink); }
@media (min-width: 560px) { .vid-card { display: flex; flex-direction: column; gap: 10px; } }
.vid-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--g-950); }
.vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.vid-card.is-short .vid-bg { filter: blur(10px) brightness(.7) saturate(1.1); transform: scale(2.6); }
.vid-card.is-short .vid-img { inset: 0 auto 0 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); }
.vid-card:hover .vid-img { transform: scale(1.03); }
.vid-card.is-short:hover .vid-img { transform: translateX(-50%) scale(1.03); }
.vid-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 36, 23, .74); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.vid-play .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 3px; }
.vid-card:hover .vid-play { background: var(--r-700); transform: scale(1.08); }
.vid-kind { position: absolute; left: 8px; bottom: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #fff; }
.vid-body { display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.vid-title { font-weight: 500; font-size: .92rem; line-height: 1.32; color: var(--g-950); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t-fast); }
.vid-src { font-size: .76rem; color: var(--muted); }
.vid-card:hover .vid-title { color: var(--g-800); }
.vid-card:focus-visible { box-shadow: none; }
.vid-card:focus-visible .vid-thumb { box-shadow: var(--focus); }
/* Player (diálogo) */
dialog.video-modal { width: min(960px, calc(100% - 24px)); }
/* Short (vídeo em pé): a janela acompanha a largura do vídeo; título e aviso quebram linha em vez de alargá-la */
dialog.video-modal.is-short { width: min-content; max-width: calc(100% - 24px); }
.video-modal-inner { padding: 14px 16px 16px; max-height: calc(100dvh - 24px); overflow: auto; }
.video-modal .modal-head { align-items: center; }
.video-modal .modal-head h2 { font-size: 1.02rem; line-height: 1.3; }
.vp-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; background: #000; border-radius: var(--r-md); overflow: hidden; }
.video-modal.is-short .vp-frame { width: auto; height: min(calc(100dvh - 230px), calc((100vw - 56px) * 16 / 9), 720px); aspect-ratio: 9 / 16; margin-left: auto; margin-right: auto; }
.vp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-foot { margin: 10px 0 0; }
.vp-foot a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ---------- Esteira "Para ler e assistir quando quiser" (página inicial) ---------- */
/* Fundo verde-escuro com cartões claros 16:9: boletins da PMG, vídeos da PMG e vídeos de canais externos. A faixa
   dos cartões vai de ponta a ponta da tela (o primeiro cartão alinha com o texto) e o próximo cartão sempre aparece
   pela metade, sugerindo que a esteira continua. */
.reel-sec { --reel-ext: calc(var(--wrap-pad) + max(0px, (100vw - 1440px) / 2)); position: relative; overflow: hidden; padding: 44px 0 40px; background: linear-gradient(160deg, var(--g-900) 0%, var(--g-800) 60%, #0f5a36 100%); color: #e6f2ea; }
@media (min-width: 768px) { .reel-sec { padding: 60px 0 52px; } }
.reel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.reel-intro { flex: 1 1 420px; min-width: 0; }
.reel-head h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.15vw, 2.15rem); line-height: 1.12; text-wrap: balance; }
.reel-head p { margin: 0; max-width: 66ch; color: #cfe3d6; font-size: 1rem; line-height: 1.55; text-wrap: balance; }
.reel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; font-size: .9rem; }
.reel-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px; border-left: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 600; text-decoration: none; }
.reel-links a:first-child { padding-left: 0; border-left: 0; }
.reel-links a:hover { color: #bfe2cc; text-decoration: underline; text-underline-offset: 3px; }
.reel-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-left: 12px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.reel-toggle:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.reel-toggle .ico { width: 16px; height: 16px; }
.reel-toggle[hidden] { display: none; }
/* Filtros por tipo (controle segmentado) e por tema */
.reel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.reel-tools[hidden] { display: none; }
.reel-filtros { display: flex; gap: 2px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; background: rgba(6, 36, 24, .35); }
.reel-filtros::-webkit-scrollbar { display: none; }
.reel-filtro { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: #e6f2ea; font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.reel-filtro:hover { background: rgba(255, 255, 255, .1); }
.reel-filtro[aria-pressed="true"] { background: #7fe0a6; color: var(--g-950); }
.reel-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.reel-filtro[aria-pressed="true"] .reel-n { background: rgba(6, 36, 23, .14); }
.reel-tema { display: inline-flex; align-items: center; gap: 10px; color: #cfe3d6; font-size: .86rem; font-weight: 600; }
.reel-tema select { min-height: 42px; max-width: 100%; padding: 8px 38px 8px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(6, 36, 24, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23e6f2ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center; color: #fff; font: inherit; font-size: .9rem; font-weight: 600; color-scheme: dark; cursor: pointer; appearance: none; -webkit-appearance: none; }
.reel-tema select:hover { border-color: #fff; }
.reel-tema option { background: var(--g-900); color: #fff; }
/* Faixa dos cartões: de ponta a ponta da tela, com as pontas esmaecidas */
.reel { position: relative; container-type: inline-size; margin: 22px calc(-1 * var(--reel-ext)) 0; }
.reel > * { --reel-w: clamp(260px, calc((100cqw - 2 * var(--reel-ext) - 3 * 18px) / 3.7), 344px); }
@media (max-width: 1099px) { .reel > * { --reel-w: clamp(280px, calc((100cqw - 2 * var(--reel-ext) - 3 * 16px) / 3.25), 320px); } }
@media (max-width: 599px) { .reel > * { --reel-w: min(calc(100cqw - 2 * var(--reel-ext) - 40px), 300px); } }
.reel-viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 max(16px, calc(var(--reel-ext) - 12px)), #000 calc(100% - max(24px, calc(var(--reel-ext) - 12px))), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 max(16px, calc(var(--reel-ext) - 12px)), #000 calc(100% - max(24px, calc(var(--reel-ext) - 12px))), transparent 100%); }
.reel-viewport::-webkit-scrollbar { display: none; }
.reel-track { display: flex; gap: 18px; width: max-content; list-style: none; margin: 0; padding: 8px var(--reel-ext) 16px; }
@media (max-width: 1099px) { .reel-track { gap: 16px; } }
@media (max-width: 599px) { .reel-track { gap: 12px; } }
.reel-item { flex: none; display: flex; width: var(--reel-w); }
.reel-item[hidden] { display: none; }
.reel-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.reel-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .36); color: var(--ink); }
.reel-card:focus-visible { border-radius: 16px; box-shadow: 0 0 0 3px var(--g-900), 0 0 0 6px #7fe0a6; }
.reel-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--g-700), var(--g-900)); }
.reel-photo, .reel-thumb { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.reel-card:hover .reel-photo, .reel-card:hover .reel-thumb { transform: scale(1.04); }
/* Selo do tipo de conteúdo, sempre sobre fundo sólido */
.reel-badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 20px); padding: 4px 11px 4px 4px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.reel-badge-ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.reel-badge-ico .ico { width: 13px; height: 13px; }
.reel-badge.is-pmg { background: rgba(6, 36, 23, .88); color: #fff; }
.reel-badge.is-pmg .reel-badge-ico { background: #7fe0a6; color: var(--g-950); }
.reel-badge.is-ext { background: #fff; color: var(--g-950); }
.reel-badge.is-ext .reel-badge-ico { background: var(--g-950); color: #fff; }
/* Boletim: foto da capa e a revista inclinada à direita */
.is-news .reel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 36, 23, .28) 0%, rgba(6, 36, 23, 0) 45%, rgba(6, 36, 23, .18) 100%); pointer-events: none; }
.reel-mag { position: absolute; z-index: 1; top: 11%; right: 7%; height: 98%; width: auto; aspect-ratio: 360 / 504; border-radius: 3px; background: #fff; box-shadow: -10px 14px 26px rgba(0, 0, 0, .45); transform: rotate(5deg); transform-origin: 50% 100%; transition: transform var(--t-med) var(--ease); }
.reel-card:hover .reel-mag { transform: rotate(2deg) translateY(-4%); }
.reel-media.is-plain .reel-mag { right: 50%; transform: translateX(50%) rotate(-3deg); }
/* Vídeo: botão de reprodução e duração */
.reel-play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #d7262e; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.reel-play .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.no-embed .reel-play { background: rgba(6, 36, 23, .9); }
.no-embed .reel-play .ico { fill: none; stroke: currentColor; margin-left: 0; width: 22px; height: 22px; }
.reel-card:hover .reel-play { transform: scale(1.08); background: #b3121f; }
.reel-dur { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.reel-body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 13px 16px 16px; }
.reel-meta { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: .8rem; font-weight: 500; }
.reel-meta .ico { flex: none; width: 16px; height: 16px; color: var(--g-700); }
.reel-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; color: var(--g-950); font-size: 1.04rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.reel-yt { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; color: var(--g-700); font-size: .8rem; font-weight: 600; }
/* Setas */
.reel-arrow { position: absolute; z-index: 3; top: calc(8px + var(--reel-w) * 9 / 32); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: #fff; color: var(--g-900); box-shadow: 0 10px 24px rgba(0, 0, 0, .38); cursor: pointer; transition: transform var(--t-fast), background var(--t-fast), opacity var(--t-fast); }
.reel-arrow:hover { background: var(--g-50); transform: translateY(-50%) scale(1.07); }
.reel-arrow:focus-visible { border-radius: 50%; box-shadow: 0 0 0 3px var(--g-900), 0 0 0 6px #7fe0a6; }
.reel-arrow .ico { width: 24px; height: 24px; }
.reel-arrow.is-prev { left: max(6px, calc(var(--reel-ext) - 64px)); }
.reel-arrow.is-next { right: max(6px, calc(var(--reel-ext) - 64px)); }
.reel-arrow[aria-disabled="true"] { opacity: 0; pointer-events: none; }
@media (max-width: 599px) { .reel-arrow { width: 42px; height: 42px; } .reel-arrow .ico { width: 21px; height: 21px; } }
/* Sem conteúdo no filtro escolhido */
.reel-vazio { margin: 8px var(--reel-ext) 16px; padding: 22px 20px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 16px; color: #e6f2ea; text-align: center; }
.reel-vazio[hidden] { display: none; }
.reel-limpar { margin-left: 6px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
/* Indicador discreto da posição */
.reel-pos { position: relative; width: min(260px, 50%); height: 4px; margin: 10px auto 0; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.reel-pos[hidden] { display: none; }
.reel-pos span { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: #7fe0a6; }
.reel-note { display: flex; align-items: flex-start; gap: 8px; max-width: 80ch; margin: 18px 0 0; color: #b9d6c4; font-size: .8rem; line-height: 1.5; }
.reel-note .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.reel-note b { color: #fff; font-weight: 700; }
@media (max-width: 767px) {
  .reel-head p { font-size: .95rem; }
  .reel-links { width: 100%; gap: 4px 18px; }
  .reel-links a { padding: 4px 0; border-left: 0; }
  .reel-toggle { margin-left: auto; }
  .reel-tools { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  /* Filtros em fileira de botões que rola para o lado, até a borda da tela */
  .reel-filtros { gap: 8px; width: calc(100% + var(--wrap-pad) + 6px); max-width: none; margin: -4px calc(-1 * var(--wrap-pad)) -4px -6px; padding: 6px var(--wrap-pad) 6px 6px; border: 0; border-radius: 0; background: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .reel-filtro { border: 1px solid rgba(255, 255, 255, .3); background: rgba(6, 36, 24, .35); }
  .reel-filtro[aria-pressed="true"] { border-color: #7fe0a6; }
  .reel-tema { justify-content: space-between; }
  .reel-tema select { flex: 1; }
  .reel-title { font-size: .98rem; }
}
/* Celulares estreitos: título inteiro (até 5 linhas) e um pouco mais de espaço para a linha de origem */
@media (max-width: 380px) {
  .reel-body { padding: 12px 14px 14px; }
  .reel-title { -webkit-line-clamp: 5; }
}
@media (prefers-reduced-motion: reduce) { .reel-card, .reel-photo, .reel-thumb, .reel-mag, .reel-play { transition: none; } .reel-card:hover, .reel-card:hover .reel-photo, .reel-card:hover .reel-thumb { transform: none; } }

/* ---------- Painel de fotos da PMG (topo da página inicial) ---------- */
/* Computador: a foto ocupa a metade direita do topo, de cima a baixo e até a borda da tela, e se funde com o verde do
   lado do texto num degradê; o cartão da legenda (setas e pontos) fica sobre a parte de baixo da foto, colado à borda
   direita. Celular: a foto vira uma faixa de ponta a ponta abaixo do texto, com o cartão por cima. */
:root { --wrap-pad: 16px; }
@media (min-width: 768px) { :root { --wrap-pad: 24px; } }
@media (min-width: 1280px) { :root { --wrap-pad: 32px; } }
.hero-panel.has-photos { display: block; padding: 0; background: none; border: 0; }
.pshow { position: relative; }
.pshow-media { position: relative; overflow: hidden; background: #0b2a1c; touch-action: pan-y; }
.pshow-media::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pshow-slide { position: absolute; inset: 0; visibility: hidden; }
.pshow-slide.is-active { visibility: visible; }
.pshow-slide.is-entering { z-index: 2; }
.pshow-slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform-origin: var(--fx, 50%) var(--fy, 50%); }
/* Foco da foto ("foco" no painel), de 10 em 10 */
.pshow-slide.fx-0 { --fx: 0%; } .pshow-slide.fx-10 { --fx: 10%; } .pshow-slide.fx-20 { --fx: 20%; } .pshow-slide.fx-30 { --fx: 30%; } .pshow-slide.fx-40 { --fx: 40%; } .pshow-slide.fx-50 { --fx: 50%; } .pshow-slide.fx-60 { --fx: 60%; } .pshow-slide.fx-70 { --fx: 70%; } .pshow-slide.fx-80 { --fx: 80%; } .pshow-slide.fx-90 { --fx: 90%; } .pshow-slide.fx-100 { --fx: 100%; }
.pshow-slide.fy-0 { --fy: 0%; } .pshow-slide.fy-10 { --fy: 10%; } .pshow-slide.fy-20 { --fy: 20%; } .pshow-slide.fy-30 { --fy: 30%; } .pshow-slide.fy-40 { --fy: 40%; } .pshow-slide.fy-50 { --fy: 50%; } .pshow-slide.fy-60 { --fy: 60%; } .pshow-slide.fy-70 { --fy: 70%; } .pshow-slide.fy-80 { --fy: 80%; } .pshow-slide.fy-90 { --fy: 90%; } .pshow-slide.fy-100 { --fy: 100%; }
.pshow.is-live .pshow-slide.is-active img { animation: pshow-zoom calc(var(--pshow-ms, 6500ms) + 1500ms) ease-out both; }
.pshow.is-live.is-paused .pshow-slide.is-active img { animation-play-state: paused; }
@keyframes pshow-zoom { from { transform: scale(1.001); } to { transform: scale(1.045); } }
.pshow-card { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "caps caps" "dots ctrl"; align-items: center; gap: 10px 16px; padding: 16px 18px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(6, 36, 24, .8); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); color: #e6f2ea; }
.pshow-caps { grid-area: caps; display: grid; }
.pshow-cap { grid-area: 1 / 1; display: grid; align-content: start; gap: 4px; visibility: hidden; }
.pshow-cap.is-active { visibility: visible; }
.pshow-tag { justify-self: start; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: var(--r-700); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pshow-cap strong { color: #fff; font-size: 1.1rem; line-height: 1.25; }
.pshow-txt { color: #d3e7da; font-size: .86rem; line-height: 1.45; }
.pshow-ctrl { grid-area: ctrl; display: flex; gap: 8px; }
.pshow-dots { grid-area: dots; display: flex; flex-wrap: wrap; gap: 4px; }
.pshow:not(.is-live) .pshow-ctrl, .pshow:not(.is-live) .pshow-dots { display: none; }
.pshow-dot { display: grid; align-items: center; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: width var(--t-med) var(--ease); }
.pshow-dot span { position: relative; display: block; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.pshow-dot span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.pshow-dot:hover span { background: rgba(255, 255, 255, .5); }
.pshow-dot[aria-current="true"] { width: 46px; }
.pshow-dot[aria-current="true"] span::after { transform: scaleX(1); }
.pshow.is-live .pshow-dot[aria-current="true"] span::after { animation: pshow-fill var(--pshow-ms, 6500ms) linear both; }
.pshow.is-live.is-paused .pshow-dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes pshow-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pshow-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.pshow-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); }
.pshow-btn .ico { width: 18px; height: 18px; }
.pshow-btn[hidden] { display: none; }
.pshow-src { position: relative; z-index: 2; margin: 10px 0 0; color: #d3e7da; font-size: .72rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.pshow-src a { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pshow .pshow-dot span::after, .pshow .pshow-slide img { animation: none !important; } .pshow-dot { transition: none; } }
/* Atalhos de categoria abaixo do cartão (computador) */
.hero-cats { position: relative; z-index: 2; margin-top: 12px; }
.hero-cats ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1439px) { .hero-cats li:nth-child(4):not(:last-child) { display: none; } }
@media (max-width: 1099px) { .hero-cats li:nth-child(3):not(:last-child) { display: none; } }
.hero-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(6, 36, 24, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .78rem; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.hero-cats a:hover { background: #fff; color: var(--g-900); }
.hero-cats .ico { width: 15px; height: 15px; }
.hero-cats-all { font-weight: 500; }
@media (min-width: 900px) {
  /* Distância da borda do conteúdo até a borda da tela (margem da página + sobra das telas largas) */
  .hero.has-photos { --hero-ext: calc(var(--wrap-pad) + max(0px, (100vw - 1440px) / 2)); isolation: isolate; }
  .hero.has-photos::after { display: none; }
  .hero.has-photos .wrap { position: static; min-height: clamp(440px, 34vw, 560px); padding-bottom: 28px; }
  .hero.has-photos .hero-copy { position: relative; z-index: 2; }
  .hero.has-photos .hero-panel { align-self: end; }
  .hero.has-photos .pshow { position: static; }
  .hero.has-photos .pshow-media { position: absolute; z-index: 0; inset: 0 0 0 44%; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .3) 12%, rgba(0, 0, 0, .8) 26%, #000 38%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .3) 12%, rgba(0, 0, 0, .8) 26%, #000 38%); }
  .hero.has-photos .pshow-media::after { background: linear-gradient(180deg, rgba(5, 32, 21, .3) 0, rgba(5, 32, 21, 0) 16%, rgba(5, 32, 21, 0) 48%, rgba(5, 32, 21, .82) 100%); }
  .hero.has-photos .pshow-card { margin-right: calc(-1 * var(--hero-ext)); padding: 16px var(--hero-ext) 10px 22px; border-right: 0; border-radius: 18px 0 0 18px; }
}
@media (min-width: 1100px) {
  /* Como no modelo: setas à direita do cartão, pontos abaixo do texto */
  .hero.has-photos .pshow-card { grid-template-areas: "caps ctrl" "dots ctrl"; column-gap: 22px; }
}
@media (max-width: 899px) {
  .hero.has-photos .wrap { padding-bottom: 22px; }
  .hero.has-photos .pshow-media { margin: 0 calc(-1 * var(--wrap-pad)); height: clamp(220px, 60vw, 440px); -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .55) 12%, #000 30%); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .55) 12%, #000 30%); }
  .hero.has-photos .pshow-media::after { background: linear-gradient(180deg, rgba(5, 32, 21, 0) 55%, rgba(5, 32, 21, .6) 100%); }
  .hero.has-photos .pshow-card { margin: -56px calc(-1 * var(--wrap-pad)) 0 0; padding: 14px var(--wrap-pad) 10px 16px; border-right: 0; border-radius: 16px 0 0 16px; }
  .pshow-cap strong { font-size: 1rem; }
  .pshow-txt { font-size: .82rem; }
  .pshow-btn { width: 38px; height: 38px; }
  .hero-cats { display: none; }
}

/* ---------- Pacotes prontos por tipo de negócio ---------- */
.section-flush { padding-top: 0; }
.pack-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.pack-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f8fbf9 100%); box-shadow: var(--sh-1); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.pack-card:hover { border-color: var(--g-600); box-shadow: var(--sh-2); }
.pack-top { display: flex; align-items: center; gap: 12px; }
.pack-top .biz-ico { flex: none; width: 44px; height: 44px; }
.pack-kicker { display: block; color: var(--r-700); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pack-top h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.pack-desc { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.pack-thumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pack-thumbs li { width: 44px; height: 44px; }
.pack-thumbs .tile { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.pack-thumbs .tile .ico { width: 20px; height: 20px; }
.pack-more { display: grid; place-items: center; border-radius: 10px; background: var(--g-50); color: var(--g-800); font-size: .8rem; font-weight: 700; }
.pack-sum { display: grid; gap: 1px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.pack-sum strong { color: var(--g-950); font-size: 1.12rem; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pack-actions .btn { flex: 1 1 auto; }
.pack-mais { align-self: flex-start; font-size: .82rem; }
/* Cartão compacto e sofisticado do pacote pronto por tipo de negócio (mais enxuto que o cartão base) */
.pack-ready { gap: 9px; padding: 14px 15px; }
.pack-ready .pack-top { align-items: flex-start; gap: 10px; }
.pack-ready .pack-top .biz-ico { width: 38px; height: 38px; border-radius: 10px; }
.pack-ready .pack-top .biz-ico .ico { width: 20px; height: 20px; }
.pack-ready .pack-top h3 { font-size: .96rem; }
.pack-ready .pack-desc { font-size: .8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pack-preview { margin: 0; color: var(--ink-2); font-size: .8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack-band { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--g-100); background: var(--g-50); }
.pack-price { display: grid; gap: 1px; min-width: 0; }
.pack-price strong { color: var(--g-950); font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; }
.pack-cap { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.pack-qtd { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--g-200); background: var(--paper); color: var(--g-800); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pack-ready .pack-actions { margin-top: 2px; }
/* Kit de abertura (loja pública / quem vai abrir o negócio): mesmo cartão dos pacotes, com acento de "abertura" e a
   faixa em tom de acento para se distinguir da reposição; o CTA leva ao cadastro/cotação (WhatsApp do Zeus). */
.kit-card { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--r-50) 100%); }
.kit-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--r-700); }
.kit-card .pack-kicker { color: var(--r-700); }
.kit-card .pack-band { border-color: var(--r-100); background: var(--r-50); }
.kit-card .pack-qtd { border-color: var(--r-100); color: var(--r-800); }
.kit-lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-lg); border: 1px dashed var(--r-100); background: var(--r-50); }
.kit-lead span { color: var(--ink-2); font-size: .88rem; min-width: 0; }
.kit-lead .btn { flex: none; }
/* Faixa do pacote no catálogo do negócio */
.pack-slot { margin: 0 0 14px; }
.pack-slot[hidden] { display: none; }
.pack-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--g-100); background: var(--g-50); }
.pack-banner .biz-ico { flex: none; width: 40px; height: 40px; }
.pack-banner-txt { display: grid; flex: 1 1 220px; min-width: 0; line-height: 1.35; }
.pack-banner-txt strong { color: var(--g-950); }
.pack-banner-txt span { color: var(--ink-2); font-size: .84rem; }
.pack-banner-act { display: flex; flex-wrap: wrap; gap: 8px; }
/* Janela do pacote */
#pack-sheet .sheet-body { padding: 14px 20px 6px; }
.pack-switch { margin-bottom: 12px; }
.pack-note { margin: 0 0 8px; line-height: 1.45; }
.pack-list { display: grid; list-style: none; margin: 0; padding: 0; }
.pack-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pack-line:last-child { border-bottom: 0; }
.pack-line .tile { width: 44px; height: 44px; border-radius: 10px; }
.pack-line .tile .ico { width: 20px; height: 20px; }
.pack-line-info strong { display: block; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.pack-line-info small { color: var(--muted); font-size: .78rem; }
.pack-line-qty { display: grid; justify-items: end; font-size: .84rem; text-align: right; white-space: nowrap; }
.pack-line-qty b { font-weight: 700; }
.pack-line-qty .pending { color: var(--amber-800); white-space: normal; max-width: 12ch; }
.pack-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 18px; }
.pack-total { display: grid; }
.pack-total span, .pack-total small { color: var(--muted); font-size: .78rem; }
.pack-total strong { color: var(--g-950); font-size: 1.25rem; }
@media (max-width: 559px) { .pack-foot .btn { width: 100%; } }

/* ---------- Onde estamos (mapa) ---------- */
.map-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .map-layout { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: stretch; } }
.map-side { display: grid; gap: 12px; align-content: start; }
.map-side > p { margin: 0; }
.map-locate { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.map-locate .btn { justify-self: start; }
.map-locate p { margin: 0; color: var(--muted); }
.map-locate p.is-error { color: var(--r-700); }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.unit { padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.unit.is-selected { border-color: var(--g-600); }
.unit.is-nearest { border-color: var(--g-600); box-shadow: 0 0 0 1px var(--g-600), var(--sh-2); }
.unit-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.unit-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--g-50); color: var(--g-700); flex: none; }
.unit-kind { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-700); }
.unit h3 { margin: 2px 0 0; font-size: 1rem; line-height: 1.25; }
.unit-addr { margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); }
.unit-hours { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.unit-hours .ico { margin-top: 2px; }
.unit-dist { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; font-size: .84rem; font-weight: 500; color: var(--g-800); }
.unit-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.map-frame { position: relative; display: flex; flex-direction: column; min-height: 340px; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.map-frame iframe { display: block; flex: 1; width: 100%; min-height: 340px; border: 0; }
@media (min-width: 960px) { .map-frame, .map-frame iframe { min-height: 460px; } }
.map-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; font-size: .84rem; border-top: 1px solid var(--line); background: #fff; }
.map-caption > span { flex: 1; min-width: 0; font-weight: 500; }
.map-caption a { display: inline-flex; align-items: center; gap: 4px; }
.map-facade { flex: 1; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 340px; padding: 28px 20px; text-align: center; color: var(--g-900);
  background-color: var(--g-50); background-image: linear-gradient(rgba(14, 99, 55, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 99, 55, .07) 1px, transparent 1px); background-size: 28px 28px; }
.map-facade p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; max-width: 34ch; }
.map-facade strong { font-size: 1.05rem; }
.map-facade-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--g-700); box-shadow: var(--sh-2); margin-bottom: 4px; }
.map-facade-ico .ico { width: 28px; height: 28px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--cart-bar-h) + env(safe-area-inset-bottom)); z-index: 44; transition: bottom var(--t-med) var(--ease); }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: calc(24px + var(--cart-bar-h)); } }
.wa-fab { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(6, 36, 23, .28), 0 2px 6px rgba(6, 36, 23, .18); transition: transform var(--t-fast) var(--ease), background var(--t-fast); -webkit-tap-highlight-color: transparent; }
.wa-fab:hover { background: #0c6c38; color: #fff; transform: translateY(-2px); }
.wa-fab .ico { width: 28px; height: 28px; stroke-width: 1.9; }
.wa-fab:focus-visible { border-radius: 50%; }
.wa-float.is-open .wa-fab { background: var(--g-900); }
.wa-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; background: #fff; color: var(--g-950); font-weight: 500; font-size: .86rem; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-2); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.wa-float.is-hint .wa-tip { opacity: 1; transform: translate(0, -50%); }
.wa-float.is-open .wa-tip { display: none; }
.wa-pop { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; transform-origin: 100% 100%; }
.wa-pop.is-entering { animation: waIn 220ms var(--ease); }
.wa-pop-head { display: flex; align-items: center; gap: 10px; padding: 12px 6px 12px 14px; background: var(--g-900); color: #fff; }
.wa-pop-head .brand-mark { width: 38px; height: 38px; flex: none; }
.wa-pop-id { flex: 1; min-width: 0; line-height: 1.25; }
.wa-pop-id strong { display: block; font-size: .95rem; }
.wa-pop-id span { display: block; font-size: .74rem; color: #c3dccc; }
.wa-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.wa-x:hover { background: rgba(255, 255, 255, .12); }
.wa-pop-body { display: grid; gap: 10px; padding: 14px; background: #f1f4ef; }
.wa-bubble { position: relative; justify-self: start; max-width: 94%; margin: 0 0 4px; padding: 10px 12px; font-size: .9rem; line-height: 1.45; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; box-shadow: var(--sh-1); }
.wa-label { font-size: .8rem; font-weight: 500; color: var(--g-950); }
.wa-label span { font-weight: 400; color: var(--muted); }
.wa-text { min-height: 84px; max-height: 180px; padding: 10px 12px; }
.wa-note { margin: 0; font-size: .74rem; color: var(--muted); }
/* Celular: ao rolar para baixo (lista de produtos), o botão desce para não cobrir o "+" dos cartões; volta ao rolar para cima */
@media (max-width: 1023px) {
  .wa-float, .ia-float { transition: bottom var(--t-med) var(--ease), transform var(--t-med) var(--ease), opacity var(--t-med); }
  body.hdr-condensed .wa-float:not(.is-open), body.hdr-condensed .ia-float:not(.is-open) { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
}
/* Nas etapas da cotação, o próprio fluxo já leva ao WhatsApp: o botão sai de cena para não cobrir os campos */
body[data-view="dados"] .wa-float, body[data-view="entrega"] .wa-float, body[data-view="revisao"] .wa-float, body[data-view="enviado"] .wa-float { display: none; }
@media print { .wa-float { display: none; } }
@keyframes waIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Assistente de IA flutuante (exclusivo do plano Pro) ---------- */
/* Ícone no site inteiro; quando o botão do WhatsApp também aparece, o assistente fica acima dele. */
.ia-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--cart-bar-h) + env(safe-area-inset-bottom)); z-index: 70; transition: bottom var(--t-med) var(--ease); }
@media (min-width: 768px) { .ia-float { right: 24px; bottom: calc(24px + var(--cart-bar-h)); } }
body.has-wa-float .ia-float { bottom: calc(16px + var(--cart-bar-h) + env(safe-area-inset-bottom) + 68px); }
@media (min-width: 768px) { body.has-wa-float .ia-float { bottom: calc(24px + var(--cart-bar-h) + 68px); } }
.ia-fab { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--g-600), var(--g-950)); box-shadow: 0 10px 24px rgba(6, 36, 23, .30), 0 2px 6px rgba(6, 36, 23, .18);
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast); -webkit-tap-highlight-color: transparent; }
.ia-fab:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ia-fab .ico { width: 26px; height: 26px; }
.ia-float.is-open .ia-fab { display: none; }
.ia-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  background: #fff; color: var(--g-950); font-weight: 500; font-size: .84rem; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-2); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.ia-fab:hover .ia-tip, .ia-fab:focus-visible .ia-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 559px) { .ia-tip { display: none; } }
.ia-pop { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 96px));
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; }
@media (min-width: 768px) { .ia-pop { right: 24px; bottom: 24px; } }
.ia-float.is-open .ia-pop { animation: waIn 220ms var(--ease); }
.ia-pop-head { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; background: linear-gradient(135deg, var(--g-700), var(--g-950)); color: #fff; flex: none; }
.ia-pop-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.ia-pop-ico .ico { width: 22px; height: 22px; }
.ia-pop-id { flex: 1; min-width: 0; line-height: 1.25; }
.ia-pop-id strong { display: block; font-size: .95rem; }
.ia-cota { display: block; font-size: .72rem; color: #c3dccc; }
.ia-clear, .ia-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.ia-clear:hover, .ia-x:hover { background: rgba(255, 255, 255, .16); }
.ia-clear .ico, .ia-x .ico { width: 20px; height: 20px; }
.ia-log { flex: 1; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 14px; background: var(--g-50); overscroll-behavior: contain; }
.ia-log:focus-visible { box-shadow: var(--focus); }
.ia-msg { display: grid; gap: 6px; max-width: 92%; }
.ia-msg.eu { align-self: flex-end; justify-items: end; }
.ia-msg.bot { align-self: flex-start; }
.ia-bolha { padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.ia-msg.eu .ia-bolha { background: var(--g-700); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ia-msg.bot .ia-bolha { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ia-bolha p { margin: 0 0 8px; }
.ia-bolha p:last-child, .ia-bolha ul:last-child, .ia-bolha ol:last-child { margin-bottom: 0; }
.ia-bolha ul, .ia-bolha ol { margin: 0 0 8px; padding-left: 20px; }
.ia-bolha li { margin: 2px 0; }
.ia-bolha code { font-size: .86em; padding: 1px 5px; border-radius: 6px; background: var(--g-50); }
.ia-h { font-weight: 700; color: var(--g-950); }
.ia-tabela { overflow-x: auto; margin: 4px 0 8px; }
.ia-tabela table { border-collapse: collapse; font-size: .82rem; }
.ia-tabela th, .ia-tabela td { padding: 5px 9px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ia-tabela th { background: var(--g-50); }
.ia-hora { font-size: .7rem; color: var(--faint); padding: 0 4px; }
.ia-prods { list-style: none; display: grid; gap: 8px; margin: 2px 0 0; padding: 0; }
.ia-prod { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ia-prod-txt { min-width: 0; line-height: 1.3; }
.ia-prod-txt strong { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia-prod-txt small { color: var(--muted); font-size: .76rem; }
.ia-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ia-msg.falhou .ia-bolha { opacity: .7; }
.ia-erro { font-size: .82rem; color: var(--r-700); }
.ia-erro-box { margin: auto; text-align: center; display: grid; gap: 10px; color: var(--muted); font-size: .9rem; padding: 20px; }
.ia-pensando .ia-bolha { padding: 12px 15px; }
.ia-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.ia-txt { flex: 1; min-height: 44px; max-height: 132px; resize: none; line-height: 1.4; padding-top: 11px; padding-bottom: 11px; }
.ia-send { flex: none; width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.ia-nota { flex: none; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); font-size: .68rem; color: var(--faint); background: #fff; border-top: 1px solid var(--line); }
/* .chip e .dots vivem fora da área de membros aqui, então precisam existir no app.css também */
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--g-800); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--g-600); background: var(--g-50); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-600); opacity: .35; animation: chatDot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
body[data-view="dados"] .ia-float, body[data-view="entrega"] .ia-float, body[data-view="revisao"] .ia-float, body[data-view="enviado"] .ia-float { display: none; }
@media print { .ia-float { display: none; } }

/* ---------- Animações ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes addedRing { 0% { box-shadow: 0 0 0 0 rgba(19, 128, 74, .45); } 100% { box-shadow: 0 0 0 10px rgba(19, 128, 74, 0); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes popCenter { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes popCenterOut { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
@keyframes popCenterStatic { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes barIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 500px 0; } }
.reveal { animation: fadeUp 320ms var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .skel { animation: none; background: #eceff0; }
  .pcard:hover, .biz-card:hover, .mosaic a:hover { transform: none; }
}

/* ---------- Tour de primeiro acesso (destaque nos botões reais) ---------- */
/* Botão de ajuda: reabre o passo a passo. Fica no canto oposto ao WhatsApp e some nas etapas da cotação. */
.tour-help { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + var(--cart-bar-h, 0px) + env(safe-area-inset-bottom)); z-index: 43;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: rgba(255, 255, 255, .97); color: var(--g-800); font: inherit; font-weight: 500; font-size: .84rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 36, 23, .16); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.tour-help:hover { background: var(--g-50); border-color: var(--g-600); color: var(--g-900); transform: translateY(-1px); }
.tour-help .ico { width: 20px; height: 20px; }
@media (min-width: 768px) { .tour-help { left: 24px; bottom: calc(24px + var(--cart-bar-h, 0px)); } }
@media (max-width: 519px) { .tour-help { padding: 10px; } .tour-help-lbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; } }
body[data-view="dados"] .tour-help, body[data-view="entrega"] .tour-help, body[data-view="revisao"] .tour-help, body[data-view="enviado"] .tour-help { display: none; }

.tour[hidden] { display: none; }
.tour { position: fixed; inset: 0; z-index: 60; }
.tour-backdrop { position: absolute; inset: 0; background: transparent; }
.tour-backdrop.is-dim { background: rgba(4, 16, 11, .72); }
/* O "furo" acende o alvo: a sombra gigante escurece tudo em volta e o anel vermelho marca o elemento. */
.tour-hole { position: fixed; border-radius: var(--r-md); pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(4, 16, 11, .72), 0 0 0 3px var(--r-700), 0 0 0 6px rgba(255, 255, 255, .6);
  transition: left var(--t-med) var(--ease), top var(--t-med) var(--ease), width var(--t-med) var(--ease), height var(--t-med) var(--ease); }
.tour-hole[hidden] { display: none; }
/* Balão: borda verde da marca, halo claro e sombra forte, para se destacar sobre qualquer fundo (escuro ou branco) */
.tour-tip { --tour-ax: 50%; --tour-ay: 50%; position: fixed; left: 50%; top: 50%; width: min(380px, calc(100vw - 24px));
  background: var(--paper); border: 2px solid var(--g-700); border-radius: var(--r-lg);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 22px 56px rgba(0, 0, 0, .5); }
.tour-tip-in { position: relative; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: auto; padding: 16px 20px 14px; border-radius: 14px; }
.tour-tip.is-center { transform: translate(-50%, -50%); }
/* Seta que aponta para o destaque (mesma borda do balão) */
.tour-arrow { position: absolute; z-index: 1; width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--g-700); display: none; pointer-events: none; }
.tour-tip[data-side="below"] .tour-arrow { display: block; top: -9px; left: var(--tour-ax); transform: translateX(-50%) rotate(45deg); border-right: 0; border-bottom: 0; }
.tour-tip[data-side="above"] .tour-arrow { display: block; bottom: -9px; left: var(--tour-ax); transform: translateX(-50%) rotate(45deg); border-left: 0; border-top: 0; }
.tour-tip[data-side="right"] .tour-arrow { display: block; left: -9px; top: var(--tour-ay); transform: translateY(-50%) rotate(45deg); border-right: 0; border-top: 0; }
.tour-tip[data-side="left"] .tour-arrow { display: block; right: -9px; top: var(--tour-ay); transform: translateY(-50%) rotate(45deg); border-left: 0; border-bottom: 0; }
.tour-prog { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--r-50); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--r-700); }
.tour-tip h2 { font-size: 1.12rem; margin: 0 0 8px; }
.tour-body { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.tour-body p { margin: 0 0 10px; }
.tour-body p:last-child { margin-bottom: 0; }
.tour-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.tour-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.tour-list .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--g-700); }
.tour-acao { margin-top: 12px; }
.tour-acao .btn { gap: 6px; }
.tour-loc { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tour-loc-status { margin: 0; font-size: .88rem; color: var(--ink-2); }
.tour-loc-status.is-error { color: var(--amber-800); }
.tour-nav { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tour-nav .btn { flex: 1 1 auto; }
.tour-skip { display: block; width: 100%; margin-top: 10px; padding: 8px; min-height: 40px; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.tour-skip:hover { color: var(--g-900); }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }

/* ==========================================================================
   Conta do cliente: cabeçalho, "Cadastre seu negócio" / "Já tenho conta", CNPJ, "o de sempre" e pacotes do cliente
   ========================================================================== */
/* Cabeçalho com a conta aberta: "Olá, Ana / Minha área" (duas linhas, como o botão do pedido) */
.hdr-link.is-member { border-color: var(--g-600); background: var(--g-50); color: var(--g-900); }
.hdr-link.is-member:hover { background: var(--g-100); }
.hdr-link .lbl-lg.acct { flex-direction: column; align-items: flex-start; line-height: 1.12; }
.hdr-link .lbl-lg.acct small { font-size: .68rem; font-weight: 500; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hdr-link .lbl-lg.acct b { font-size: .86rem; font-weight: 700; }
@media (min-width: 1280px) { .hdr-link .lbl-lg.acct { display: inline-flex; } }

/* Janela de cadastro e entrada */
dialog.auth-modal { width: min(560px, calc(100% - 24px)); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin: 12px 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs[hidden] { display: none; }
.auth-tabs [role=tab] { flex: 1 1 0; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.auth-tabs [role=tab]:hover { color: var(--g-900); }
.auth-tabs [role=tab][aria-selected="true"] { background: #fff; color: var(--g-900); font-weight: 700; box-shadow: var(--sh-1); }
.auth-perks { list-style: none; margin: 0 0 16px; padding: 12px 14px; display: grid; gap: 6px; border-radius: var(--r-md); background: var(--g-50); border: 1px solid var(--g-100); font-size: .84rem; color: var(--g-900); }
.auth-perks li { display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.auth-perks .ico { color: var(--g-700); }
@media (min-width: 560px) { .auth-perks { grid-template-columns: 1fr 1fr; column-gap: 14px; } }
#signup .form-grid { gap: 14px; }
@media (min-width: 560px) {
  #signup-form .form-grid { grid-template-columns: 1fr 1fr; }
  #signup-form .form-grid > .cnpj-field, #signup-form .form-grid > .check, #signup-form .form-grid > .hint, #signup-form .form-grid > .btn,
  #signup-form .form-grid > .field:has(#su-pass), #signup-form .form-grid > .field:has(#su-email) { grid-column: 1 / -1; }
}
.auth-done { display: grid; gap: 4px; }
.esqueci-btn { justify-self: center; font-size: .88rem; padding: 6px; }
#esqueci p { margin: 0 0 10px; }
#esqueci .btn { margin-top: 2px; }

/* Senha com o botão do olho */
.pass-wrap { position: relative; display: flex; }
.pass-wrap input { padding-right: 52px; width: 100%; }
.pass-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.pass-toggle:hover { background: var(--g-50); color: var(--g-900); }

/* CNPJ: estado da consulta à Receita (consultando, ativo, aviso, erro) */
.cnpj-wrap { position: relative; display: flex; }
.cnpj-wrap input { width: 100%; padding-right: 44px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cnpj-ico { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; pointer-events: none; display: none; }
.cnpj-field[data-estado="busca"] .cnpj-ico { display: block; border: 2.5px solid var(--g-100); border-top-color: var(--g-600); animation: spin .8s linear infinite; }
.cnpj-field[data-estado="ok"] .cnpj-ico { display: block; background: var(--g-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cnpj-field[data-estado="aviso"] .cnpj-ico { display: block; background: #b7791f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5h.01'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cnpj-field[data-estado="erro"] .cnpj-ico { display: block; background: var(--r-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cnpj-status { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.cnpj-field[data-estado="ok"] .cnpj-status { color: var(--g-800); font-weight: 500; }
.cnpj-field[data-estado="aviso"] .cnpj-status { color: var(--amber-800); }
.cnpj-field[data-estado="erro"] .cnpj-status { color: var(--r-700); font-weight: 500; }
.cnpj-field[data-estado="ok"] input { border-color: var(--g-600); }
.cnpj-letras { justify-self: start; font-size: .8rem; color: var(--muted); }
.cnpj-letras[hidden] { display: none; }

/* "Olá, Ana! Tem passado bem? Vai querer o de sempre?" */
.sempre-slot { padding-top: 14px; }
.sempre-slot[hidden] { display: none; }
.sempre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); border: 1.5px solid var(--g-600); background: linear-gradient(120deg, var(--g-50) 0%, #fff 70%); box-shadow: var(--sh-2); animation: fadeUp var(--t-med) var(--ease); }
.sempre-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g-700); color: #fff; }
.sempre-ico .ico { width: 22px; height: 22px; }
.sempre-txt h2 { margin: 0 0 2px; font-size: 1.08rem; }
.sempre-txt p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.sempre-txt strong { color: var(--g-900); }
.sempre-info { margin-top: 2px !important; font-size: .82rem !important; color: var(--muted) !important; }
.sempre-info:empty { display: none; }
.sempre-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.sempre-act .btn-accent { flex: 1 1 200px; }
@media (max-width: 639px) {
  .sempre { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .sempre-ico { display: none; }
  .sempre-act .btn-accent { flex: 1 1 100%; }
  .sempre-act .btn-outline, .sempre-act .btn-ghost { flex: 1 1 0; }
}
@media (min-width: 768px) {
  .sempre { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sempre-act { grid-column: auto; flex-wrap: nowrap; }
  .sempre-act .btn-accent { flex: none; }
}

/* Pacotes do cliente e convite para a conta */
.pack-mine { border-color: var(--g-200); }
.pack-mine .biz-ico { background: var(--g-700); color: #fff; }
.pack-convite { border-style: dashed; background: #fff; box-shadow: none; }
.pack-convite:hover { box-shadow: none; }
.order-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.order-page .order-cta > .btn-ghost { justify-self: center; }
#save-pack .sheet-body { padding: 16px 20px 20px; }
.sp-body { display: grid; gap: 14px; }
.sp-body .alert { margin: 0; }
.sp-body > p { margin: 0; }
.sp-convite { text-align: center; color: var(--muted); }

/* Minha área sem conta aberta, carregando e convite depois do pedido */
.conta-gate { max-width: 560px; margin: 24px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 20px; animation: fadeUp var(--t-med) var(--ease); }
.conta-gate .biz-ico { margin: 0 auto 10px; width: 52px; height: 52px; }
.conta-gate h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.conta-gate .row-actions { justify-content: center; margin: 6px 0 14px; }
.conta-gate p.small { margin: 0; }
.conta-loading { display: grid; gap: 12px; padding: 12px 0 32px; }
.conta-loading .skel:first-child { min-height: 64px; }
.conta-convite { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg); border: 1px dashed var(--g-200); background: var(--g-50); text-align: left; }
.conta-convite p { margin: 4px 0 10px; color: var(--ink-2); }
.conta-senha { max-width: 560px; margin: 16px auto 32px; }

/* #6/#49 Comparar produtos lado a lado: toggle no card, barra fixa e folha comparativa */
.cmp-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 38px; padding: 7px 12px; font-size: .8rem; font-weight: 500; color: var(--g-800); background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.cmp-toggle:hover { border-color: var(--g-200); background: var(--g-50); }
.cmp-toggle.is-on { background: var(--g-800); border-color: var(--g-800); color: #fff; }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 30px rgba(6, 36, 23, .12); }
.cmp-bar-inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.cmp-bar-l { font-weight: 600; font-size: .9rem; color: var(--ink); }
.cmp-thumbs { display: flex; gap: 8px; }
.cmp-thumb { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; padding: 0; }
.cmp-thumb .tile { width: 100%; height: 100%; border-radius: var(--r-md); }
.cmp-thumb .ico { position: absolute; top: -7px; right: -7px; background: var(--r-700); color: #fff; border-radius: 999px; padding: 2px; }
.cmp-bar-actions { display: flex; gap: 8px; margin-left: auto; }
body.has-cmp-bar { padding-bottom: 80px; }
.cmp-note { padding: 12px 16px 0; }
.cmp-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; padding: 12px 16px 20px; overflow-x: auto; overscroll-behavior-x: contain; }
.cmp-col { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.cmp-col.is-best { border-color: var(--g-200); box-shadow: inset 0 0 0 2px var(--g-100); }
.cmp-best { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--g-800); background: var(--g-50); border-radius: 999px; padding: 3px 9px; align-self: flex-start; }
.cmp-col-media { border: 0; background: transparent; padding: 0; cursor: pointer; align-self: flex-start; }
.cmp-col-media .tile { width: 72px; height: 72px; border-radius: var(--r-md); }
.cmp-col-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; }
.cmp-col-x:hover { color: var(--r-700); border-color: var(--r-100); }
.cmp-brand { font-size: .74rem; color: var(--muted); font-weight: 500; }
.cmp-name { font-size: .95rem; margin: 0; line-height: 1.25; }
.cmp-row { display: flex; flex-direction: column; gap: 2px; padding: 7px 0 0; border-top: 1px solid var(--line); }
.cmp-lbl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cmp-val { font-size: .9rem; color: var(--ink); }
.cmp-preco b { font-size: 1.05rem; }
.cmp-preco small { color: var(--muted); }
.cmp-buy { margin-top: 10px; }

/* #29 Atalhos em linguagem simples: chips grandes e amigáveis acima da lista */
.simple-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.simple-l { font-size: .8rem; font-weight: 600; color: var(--muted); }
.simple-chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--g-800); font-size: .88rem; font-weight: 600; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.simple-chip:hover { border-color: var(--g-200); background: var(--g-50); }
.simple-chip.is-on { background: var(--g-800); border-color: var(--g-800); color: #fff; }

/* #36 Buscas recentes no campo de busca */
.suggest .s-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 4px; }
.suggest .s-head > span { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.suggest .s-clear { border: 0; background: transparent; color: var(--g-800); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; min-height: 36px; }
.suggest .s-clear:hover { background: var(--g-50); }
.suggest .s-recent { color: var(--ink); min-height: 44px; }
.suggest .s-recent > .ico { justify-self: center; color: var(--muted); }
.suggest .s-recent .s-name { font-weight: 500; }
.suggest .s-rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; }
.suggest .s-rm:hover { color: var(--r-700); background: var(--r-50); }

/* #36 Filtros recentes: chips reaplicáveis no topo da folha de filtros */
.recent-filters { padding: 0 0 4px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.rf-head { display: flex; align-items: center; justify-content: space-between; }
.rf-head > span { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rf-clear { border: 0; background: transparent; color: var(--g-800); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; min-height: 36px; }
.rf-clear:hover { background: var(--g-50); }
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--g-800); font-size: .84rem; font-weight: 500; cursor: pointer; max-width: 100%; transition: background var(--t-fast), border-color var(--t-fast); }
.rf-chip:hover { border-color: var(--g-200); background: var(--g-50); }
.rf-chip .ico { color: var(--muted); flex: none; }
.rf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* #53 "Rende mais na embalagem maior": destaque leve na seção dos detalhes do produto */
.qv-rende { margin: 0 20px 16px; padding: 12px 14px; border: 1px solid var(--g-200); border-radius: var(--r-lg); background: var(--g-50); }
@media (min-width: 768px) { .qv-rende { margin: 0 24px 20px; } }
.qv-rende .group-title { color: var(--g-800); margin: 2px 0 10px; }
.qv-rende .group-title::after { background: var(--g-200); }
.qv-rende .group-title .ico { color: var(--g-700); flex: none; }

/* #32/#33 Meus atalhos (filtros favoritos): chip reaplicável + "x" para remover, e botão "Fixar" */
.fav-filters .rf-head > span { color: var(--g-800); }
.fav-chip { display: inline-flex; align-items: center; gap: 2px; }
.fav-chip .rf-chip { border-color: var(--g-200); }
.fav-chip .rf-chip .ico { color: var(--g-700); }
.fav-rm { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 999px; flex: none; }
.fav-rm:hover { color: var(--r-700); background: var(--r-50); }
.fav-pin { --fg: var(--g-800); align-self: flex-start; margin-right: 8px; }
.fav-pin .ico { color: var(--g-700); }
.fav-pin.is-on { background: var(--g-50); border-color: var(--g-200); }
.side-filters .fav-pin, .filters-form .fav-pin { margin-right: 0; }

/* #9 Barra do pedido mínimo no resumo do pedido; #10 atalho "os que mais somam" */
.pmin { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.pmin.is-ok { border-color: var(--g-200); background: var(--g-50); }
.pmin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pmin-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pmin.is-ok .pmin-l { color: var(--g-800); }
.pmin-l .ico { color: var(--g-700); flex: none; }
.pmin-v { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pmin-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pmin-fill { height: 100%; border-radius: 999px; background: var(--g-600); transition: width var(--t-med) var(--ease); }
.pmin-act { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 7px 10px; min-height: 38px; border: 1px solid var(--line-2); background: #fff; color: var(--g-800); font-weight: 600; font-size: .84rem; cursor: pointer; border-radius: 999px; }
.pmin-act:hover { background: var(--g-50); border-color: var(--g-200); }
.pmin-note { display: block; margin-top: 6px; font-size: .76rem; color: var(--muted); }

/* Portão de acesso: os estilos da tela de bloqueio ficam em acesso.css (LP dedicada, carregada só ali) */

/* Recado do Zeus (mensageria da Cúpula): faixa no topo da loja */
.recado-faixa { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(180deg, var(--g-800), var(--g-700)); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22); transform: translateY(-100%); transition: transform .35s ease; }
.recado-faixa.is-in { transform: translateY(0); }
.recado-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.16); flex: none; }
.recado-ico .ico { color: #fff; }
.recado-txt { flex: 1; font-size: .95rem; line-height: 1.4; }
.recado-mais { opacity: .8; }
.recado-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.recado-x:hover { background: rgba(255,255,255,.26); }

/* ===== Bloqueio por localização (pop-up + barra) ===== */
html.locgate-on, html.locgate-on body { overflow: hidden; }
.locgate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(10,51,34,.72), rgba(6,36,23,.9)); backdrop-filter: blur(6px); animation: locfade .25s ease; }
@keyframes locfade { from { opacity: 0; } to { opacity: 1; } }
.locgate-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: 22px; padding: 30px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: locpop .3s cubic-bezier(.22,.61,.36,1); }
@keyframes locpop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.locgate-tile { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px;
  background: linear-gradient(180deg, var(--g-600), var(--g-700)); box-shadow: 0 10px 26px rgba(14,99,55,.32); }
.locgate-ic { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.locgate-t { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.locgate-sub { font-size: .98rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; }
.locgate-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; text-align: left; }
.locgate-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; color: var(--ink); }
.locgate-ck { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--g-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; padding: 2px; border-radius: 999px; background: var(--g-50); box-sizing: content-box; }
.locgate-btn { width: 100%; min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.locgate-err { color: var(--r-700, #b3261e); font-size: .9rem; font-weight: 500; margin: 12px 0 0; }
.locgate-alt { display: inline-block; margin: 16px auto 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.locgate-alt:hover { color: var(--ink); }
.locgate-fine { font-size: .8rem; color: var(--muted, #5c6a60); margin: 14px 0 0; }
.locbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 12px 18px; background: var(--g-900); color: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.22); }
.locbar-txt { font-size: .92rem; font-weight: 500; }
.locbar-btn { min-height: 40px; }
@media (max-width: 480px) { .locgate-card { padding: 26px 20px; } .locgate-t { font-size: 1.24rem; } }
@media (prefers-reduced-motion: reduce) { .locgate, .locgate-card { animation: none; } }
