/* ==========================================================================
   GaragemPro · redesign mobile-first (docs/redesign-mobile/DESIGN_GARAGEM.md, nov/2026)
   Carregado DEPOIS de tokens.css + site.css somente no tenant GaragemPro (base.html → is_gp).
   Substitui natal.css para este tenant (natal.css/_natal.html seguem intactos para o Natal).
   Regras: tokens da spec · alvos ≥ 44 px · foco duplo visível · sem rolagem horizontal ≥ 320 px ·
   movimento 120 ms e desligado em prefers-reduced-motion · zero style="" inline (CSP).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
.m-gp {
  --brand-900: #17212B;
  --brand-700: #243342;
  --action-700: #C62828;
  --action-800: #A91F24;
  --action-900: #8F1B20;
  --accent-500: #F2A900;
  --accent-ink: #8A5A00;
  --page: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #18212B;
  --ink-2: #33414E;
  --muted: #596775;
  --line: #D9E0E6;
  --line-2: #C3CDD6;
  --success: #167247;
  --success-bg: #E6F4EC;
  --chip-on: #FFF3D6;
  --chip-on-line: #B87900;
  --shadow-card: 0 2px 10px #17212B12;
  --r-chip: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --dur: 120ms;
  --hdr-h: 158px;

  /* ponte para os componentes genéricos de site.css */
  --c-bg: var(--page);
  --c-surface: var(--surface);
  --c-subtle: #EEF2F5;
  --c-border: var(--line);
  --c-text: var(--ink);
  --c-text-2: var(--ink-2);
  --c-muted: var(--muted);
  --c-primary: var(--brand-900);
  --c-primary-2: var(--brand-700);
  --c-on-primary: #FFFFFF;
  --c-accent: var(--accent-500);
  --c-accent-2: var(--chip-on-line);
  --c-on-accent: var(--brand-900);
  --c-cta: var(--action-700);
  --c-cta-hover: var(--action-800);
  --c-on-cta: #FFFFFF;
  --c-discount: var(--action-700);
  --c-best: var(--success);
  --c-best-bg: var(--success-bg);
  --c-warn-bg: #FFF6E0;
  --c-warn: #6B4500;
  --c-focus: var(--brand-900);
  --font-display: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hero: var(--font-display);
  --font-body: var(--font-display);
  --fw-display: 800;
  --radius: var(--r-card);
  --radius-sm: var(--r-chip);
  --shadow: var(--shadow-card);
  --shadow-hover: 0 6px 18px #17212B1F;
  --container: 1280px;

  background: var(--page);
  color: var(--ink);
  font: 400 0.875rem/1.4286 var(--font-body); /* 14/20 */
  -webkit-tap-highlight-color: rgba(23, 33, 43, .12);
}
html:has(.m-gp) { scroll-padding-top: 172px; }
html.gp-lock { overflow: hidden; }
@media (min-width: 1024px) { html:has(.m-gp) { scroll-padding-top: 144px; } }

/* ---------- 2. Base ---------- */
.m-gp [hidden] { display: none !important; } /* nenhum display: flex/grid de componente vence o atributo hidden */
.m-gp a, .m-gp button, .m-gp summary, .m-gp input, .m-gp select { touch-action: manipulation; }
.m-gp :focus-visible { outline: 3px solid var(--brand-900); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--accent-500); border-radius: 6px; }
.m-gp :focus:not(:focus-visible) { outline: none; }
.m-gp .wrap { max-width: none; padding-inline: 16px; }
@media (min-width: 768px) { .m-gp .wrap { max-width: 768px; padding-inline: 24px; } }
@media (min-width: 1024px) { .m-gp .wrap { max-width: calc(var(--container) + 48px); } }
.m-gp .skip { background: var(--brand-900); color: #fff; font-weight: 700; padding: 12px 16px; border-radius: var(--r-btn); text-decoration: none; }
.m-gp main { padding-bottom: 32px; }
.m-gp .muted { color: var(--muted); }
.m-gp .small { font-size: .8125rem; line-height: 1.25rem; }
.m-gp .disclosure, .m-gp .amz-notice, .m-gp .checked { font-size: .75rem; line-height: 1rem; color: var(--muted); }
.m-gp h1, .m-gp h2, .m-gp h3 { text-wrap: balance; }
.m-gp .i { width: 20px; height: 20px; stroke-width: 1.9; }

/* ---------- 3. Botões, chips, campos ---------- */
.gbtn, .m-gp .cta, .m-gp .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: var(--r-btn);
  font: 700 .875rem/1.25rem var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.gbtn .i, .m-gp .cta .i { width: 18px; height: 18px; }
.gbtn--primary, .m-gp .cta, .m-gp .cta-B .cta, .m-gp .cta-B .cta--primary { background: var(--action-700); color: #fff; border: 1px solid var(--action-700); }
.gbtn--primary:hover, .m-gp .cta:hover { background: var(--action-800); border-color: var(--action-800); color: #fff; }
.gbtn--primary:active, .m-gp .cta:active { background: var(--action-900); border-color: var(--action-900); }
.m-gp .cta:not(.cta--primary) { background: var(--surface); color: var(--ink); border-color: var(--brand-700); }
.m-gp .cta:not(.cta--primary):hover { background: var(--page); }
.gbtn--sec, .m-gp .btn { background: var(--surface); color: var(--ink); border: 1px solid var(--brand-700); min-height: 44px; }
.gbtn--sec:hover, .m-gp .btn:hover { background: var(--page); }
.gbtn--sm, .m-gp .btn--sm { min-height: 44px; padding: 0 12px; font-size: .8125rem; }
.gbtn--block { width: 100%; }
.m-gp .cta--sm { min-height: 44px; padding: 0 14px; font-size: .8125rem; }
.m-gp .cta--strong { min-height: 52px; font-size: 1rem; box-shadow: none; }
.m-gp [disabled].cta, .m-gp [disabled].gbtn { background: #D5D9DE; border-color: #D5D9DE; color: var(--muted); cursor: not-allowed; }

.m-gp .chip, .m-gp .spill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font: 600 .8125rem/1.125rem var(--font-body); text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.m-gp .chip:hover, .m-gp .spill:hover { border-color: var(--brand-700); }
.m-gp .chip[aria-current], .m-gp .chip.is-on, .m-gp .spill[aria-current] { background: var(--chip-on); border-color: var(--chip-on-line); color: var(--ink); }
.m-gp .chip[aria-current]::before, .m-gp .spill[aria-current]::before { content: "✓"; font-weight: 800; color: var(--accent-ink); }
.m-gp .spill b { font-weight: 600; color: var(--muted); }
.m-gp .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-gp .chips .chip { white-space: normal; max-width: 100%; padding-block: 6px; line-height: 1.125rem; } /* chips com título de guia longo quebram linha, nunca saem da tela */
.m-gp .crumbs { flex-wrap: nowrap; min-width: 0; }
.m-gp .crumbs li { flex: none; }
.m-gp .crumbs li:last-child { flex: 1 1 auto; min-width: 0; }
.m-gp .crumbs li:last-child span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-gp .chips--left { justify-content: flex-start; margin: 0 0 12px; }
.m-gp .spills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin-bottom: 4px; }
.m-gp .spills::-webkit-scrollbar { display: none; }

.m-gp .input, .m-gp .select { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-chip); background: var(--surface); color: var(--ink); font-size: .875rem; }
.m-gp .select { padding-right: 32px; }
.m-gp .search { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-btn); padding: 2px 2px 2px 12px; }
.m-gp .search button { border-radius: 10px; background: var(--action-700); color: #fff; }
.m-gp .search:focus-within { outline: 3px solid var(--brand-900); outline-offset: 2px; }
.m-gp .badge { font-size: .75rem; }
.m-gp .badge--best { background: var(--success-bg); color: var(--success); }
.m-gp .pill-off { background: var(--action-700); box-shadow: none; font-size: .75rem; }
.m-gp .pill-save { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font: 700 .75rem/1rem var(--font-body); }

/* ---------- 4. Cabeçalho (3 faixas mobile, sticky compacto) ---------- */
.gph { position: sticky; top: 0; z-index: 50; pointer-events: none; }
.gph > * { pointer-events: auto; }
.gph__svc { display: none; }
.gph__main { position: relative; z-index: 2; background: var(--page); }
.gph__main-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "search search"; column-gap: 8px; }
.gph__brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; min-height: 54px; min-width: 0; text-decoration: none; color: var(--ink); justify-self: start; }
.gph__brand img { height: 32px; width: auto; }
.gph__mark { flex: none; width: 32px; height: 32px; }
.gph__name { font: 800 1rem/1.25rem var(--font-body); letter-spacing: -.01em; white-space: nowrap; }
.gph__name b { color: var(--action-700); font-weight: 800; }
.gph__tools { grid-area: tools; position: relative; display: flex; align-items: center; gap: 4px; }
.gph__tool { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color var(--dur) ease; }
.gph__tool:hover { background: #E7ECF0; }
.gph__tool .i { width: 22px; height: 22px; }
.gph__tool[aria-current] { color: var(--action-700); }
.gph__tool--d, .gph__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gph__tool--d { display: none; }
.gph__tool .favs-n { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--action-700); color: #fff; font: 700 .6875rem/18px var(--font-body); text-align: center; }
.gph__tool .favs-n[hidden] { display: none; }
.gph__search { grid-area: search; position: relative; display: flex; align-items: center; gap: 4px; height: 48px; margin-bottom: 8px; padding: 0 2px 0 40px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-btn); }
.gph__search:focus-within { outline: 3px solid var(--brand-900); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--accent-500); }
.gph__search-ic { position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.gph__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; /* 16 px: iOS não dá zoom */ }
.gph__search input::placeholder { color: var(--muted); opacity: 1; }
.gph__search input::-webkit-search-cancel-button { cursor: pointer; }
.gph__search input:focus-visible { outline: none; box-shadow: none; }
.gph__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--action-700); color: #fff; cursor: pointer; transition: background-color var(--dur) ease; }
.gph__go:hover { background: var(--action-800); }
.gph__search .suggest { top: calc(100% + 6px); }

.gph__cats { position: relative; z-index: 1; background: var(--page); border-bottom: 1px solid var(--line); transition: transform var(--dur) ease, visibility 0s linear 0s; }
.gph__cats-in { display: flex; align-items: center; gap: 8px; height: 48px; padding-right: 0 !important; }
.gph__all { display: none; }
.gph__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-right: 16px; height: 48px; align-items: center; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.gph__chips::-webkit-scrollbar { display: none; }
.gph__chip { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 .8125rem/1.125rem var(--font-body); text-decoration: none; white-space: nowrap; transition: border-color var(--dur) ease; }
.gph__chip:hover { border-color: var(--brand-700); }
.gph__chip[aria-current] { background: var(--chip-on); border-color: var(--chip-on-line); }
.gph__chip .i { width: 16px; height: 16px; color: var(--accent-ink); stroke-width: 2.4; }
.gph.is-compact .gph__cats { transform: translateY(-100%); visibility: hidden; pointer-events: none; transition: transform var(--dur) ease, visibility 0s linear var(--dur); }

/* favoritos: popover no desktop, folha inferior no mobile */
.favs-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 72vh; overflow: auto; overscroll-behavior: contain; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px #17212B33; display: grid; gap: 10px; }
.favs-pop[hidden] { display: none; }
.favs-pop__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 1rem; }
.favs-pop ul { display: grid; gap: 6px; }
.favs-pop li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-chip); padding-left: 10px; }
.favs-pop li a { display: grid; gap: 2px; min-height: 44px; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: .8125rem; line-height: 1.125rem; }
.favs-pop li small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.favs-rm { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; cursor: pointer; border-radius: var(--r-chip); }
.favs-pop__f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.favs-share { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--brand-700); text-decoration: none; font-weight: 700; }
.favs-pop__all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--action-700); }

/* painel "Todas as categorias" */
.gpm { position: fixed; inset: 0; z-index: 90; background: rgba(23, 33, 43, .55); display: flex; justify-content: flex-end; }
.gpm[hidden] { display: none; }
.gpm__panel { width: min(420px, 100%); height: 100%; overflow: auto; overscroll-behavior: contain; background: var(--surface); padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; align-content: start; gap: 12px; }
.gpm__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); }
.gpm__head h2 { font: 700 1.25rem/1.625rem var(--font-body); }
.gpm__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-btn); background: var(--page); color: var(--ink); cursor: pointer; }
.gpm__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gpm__list a { display: flex; align-items: center; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-chip); text-decoration: none; font-weight: 600; font-size: .8125rem; line-height: 1.125rem; }
.gpm__list a:hover, .gpm__list a[aria-current] { border-color: var(--brand-700); background: var(--page); }
.gpm__more { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.gpm__more a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; text-decoration: none; font-weight: 600; }
.gpm__more .i { color: var(--brand-700); }

@media (max-width: 359px) {
  .gph__name { font-size: .9375rem; }
  .gph__brand { gap: 6px; }
}

@media (min-width: 1024px) {
  .gph { top: -32px; }
  .gph__svc { display: block; background: var(--brand-900); color: #C9D2DA; }
  .gph__svc-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; font-size: .75rem; line-height: 1rem; }
  .gph__svc nav { display: flex; gap: 16px; }
  .gph__svc a { color: #fff; text-decoration: none; }
  .gph__svc a:hover { text-decoration: underline; }
  .gph__main { background: var(--surface); border-bottom: 1px solid var(--line); }
  .gph__main-in { grid-template-columns: auto minmax(0, 620px) auto; grid-template-areas: "brand search tools"; justify-content: space-between; align-items: center; column-gap: 24px; height: 80px; }
  .gph__brand { min-height: 44px; }
  .gph__name { font-size: 1.25rem; line-height: 1.5rem; }
  .gph__mark { width: 36px; height: 36px; }
  .gph__search { margin: 0; width: 100%; }
  .gph__tool { width: auto; height: 44px; padding: 0 10px; display: inline-flex; gap: 6px; font: 600 .8125rem/1 var(--font-body); }
  .gph__tool--d { display: inline-flex; position: relative; width: auto; height: 44px; overflow: visible; clip-path: none; }
  .gph__lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .gph__tool--m { display: none; }
  .gph__tool .favs-n { top: 2px; right: auto; left: 22px; }
  .gph__cats { background: var(--brand-700); border-bottom: 0; }
  .gph__cats-in { padding-right: 24px !important; }
  .gph__svc a { display: inline-flex; align-items: center; height: 32px; }
  .gph__all { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-chip); background: transparent; color: #fff; font: 700 .8125rem/1 var(--font-body); cursor: pointer; }
  .gph__all:hover { background: rgba(255, 255, 255, .1); }
  .gph__all .i { width: 18px; height: 18px; }
  .gph__chips { -webkit-mask-image: none; mask-image: none; padding-right: 0; }
  .gph__chip { height: 44px; background: transparent; border-color: transparent; color: #E6EBF0; font-weight: 600; }
  .gph__chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
  .gph__chip[aria-current] { background: rgba(242, 169, 0, .16); border-color: var(--accent-500); color: #fff; }
  .gph__chip .i { color: var(--accent-500); }
  .favs-pop { position: absolute; left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: 360px; max-height: 70vh; border-radius: var(--r-card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); padding: 16px; }
}
@media (min-width: 1100px) { .gph__chips { overflow: visible; } }

/* sugestões de busca */
.m-gp .suggest { border-radius: var(--r-btn); border-color: var(--line); box-shadow: var(--shadow-hover); }

/* ---------- 5. Seções da home ---------- */
.gs { padding-block: 24px; }
@media (min-width: 1024px) { .gs { padding-block: 40px; } }
.gs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gs-head h2 { font: 700 1.25rem/1.625rem var(--font-body); letter-spacing: -.01em; }
.gs-head p { margin-top: 2px; color: var(--muted); font-size: .8125rem; line-height: 1.125rem; }
.gs-more { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; color: var(--action-700); font: 700 .875rem/1.25rem var(--font-body); text-decoration: none; white-space: nowrap; }
.gs-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.gs-more .i { width: 18px; height: 18px; }

/* hero compacto */
.gh { position: relative; overflow: hidden; background: var(--brand-900); color: #fff; isolation: isolate; }
.gh__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.gh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 33, 43, .78) 0%, rgba(23, 33, 43, .9) 100%); }
.gh__in { display: grid; gap: 12px; justify-items: start; align-content: center; min-height: 300px; padding-block: 28px 32px; } /* mesma caixa do carrossel */
.gh h1 { font: 800 1.625rem/2rem var(--font-body); letter-spacing: -.02em; max-width: 20ch; }
.gh p { max-width: 52ch; color: #E3E8ED; font-size: .875rem; line-height: 1.25rem; }
.gh p strong { color: #fff; font-weight: 700; }
.gh .gbtn { margin-top: 4px; }
@media (min-width: 768px) {
  .gh::after { background: linear-gradient(90deg, rgba(23, 33, 43, .95) 0%, rgba(23, 33, 43, .82) 45%, rgba(23, 33, 43, .2) 100%); }
  .gh__in { padding-block: 48px; }
}
@media (min-width: 1024px) {
  .gh__in { min-height: 360px; align-content: center; padding-block: 56px; }
  .gh h1 { font-size: 2.5rem; line-height: 3rem; }
  .gh p { font-size: 1rem; line-height: 1.5rem; }
}

/* categorias */
.gcat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gcat__a { display: grid; justify-items: center; align-content: start; gap: 6px; width: 100%; height: 100%; min-height: 44px; padding: 8px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; text-align: center; font: 600 .75rem/1rem var(--font-body); cursor: pointer; transition: border-color var(--dur) ease; }
.gcat__a:hover { border-color: var(--brand-700); }
.gcat__a img { width: 100%; max-width: 64px; aspect-ratio: 1; height: auto; border-radius: var(--r-chip); object-fit: cover; background: var(--brand-900); }
.gcat__ic { display: grid; place-items: center; width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: var(--r-chip); background: var(--page); color: var(--brand-700); }
.gcat__all { font: inherit; font-weight: 600; font-size: .75rem; }
@media (min-width: 640px) { .gcat { grid-template-columns: repeat(8, minmax(0, 1fr)); } .gcat__a img, .gcat__ic { max-width: 88px; } .gcat__a { font-size: .8125rem; } }

/* acesso rápido */
.gq { display: grid; gap: 8px; }
.gq__a { display: grid; grid-template-columns: 104px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--dur) ease; }
.gq__a:hover { border-color: var(--brand-700); }
.gq__a img { width: 104px; height: 58px; object-fit: cover; border-radius: var(--r-chip); background: var(--page); }
.gq__txt { display: grid; gap: 2px; min-width: 0; }
.gq__txt b { font: 700 .9375rem/1.25rem var(--font-body); }
.gq__txt small { color: var(--muted); font-size: .75rem; line-height: 1rem; }
.gq__a > .i { color: var(--action-700); }
@media (min-width: 768px) {
  .gq { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gq__a { grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto auto; padding: 0 0 12px; overflow: hidden; }
  .gq__a img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .gq__txt { padding-left: 12px; }
  .gq__a > .i { margin-right: 12px; }
}

/* cupons (home) */
.gk { display: grid; gap: 12px; }
@media (min-width: 640px) { .gk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gk { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gk__c { display: grid; gap: 8px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.gk__store { font: 700 .75rem/1rem var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gk__c h3 { font: 700 .9375rem/1.25rem var(--font-body); }
.gk__meta { color: var(--muted); font-size: .75rem; }
.gk__code { display: flex; align-items: center; gap: 8px; }
.gk__code code { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: var(--r-chip); background: var(--page); font: 700 .9375rem/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
.gk__c .gbtn { margin-top: auto; }

/* guias (home) */
.gg { display: grid; gap: 8px; }
@media (min-width: 640px) { .gg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gg__a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .875rem; line-height: 1.25rem; transition: border-color var(--dur) ease; }
.gg__a:hover { border-color: var(--brand-700); }
.gg__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-chip); background: #FFF3D6; color: var(--accent-ink); }
.gg__a > .i { color: var(--action-700); }

/* ---------- 6. Grade e card de produto ---------- */
/* DESIGN_V2 §1: 1 col < 360 · 2 cols 360–767 · 3 cols 768–1023 · 4 cols ≥ 1024 · 5 na vitrine larga ≥ 1280 */
.ngrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 360px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .ngrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ngrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .ngrid--list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .list-layout .ngrid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .list-layout .ngrid--list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.nc { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.nc:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.nc__img { display: grid; place-items: center; aspect-ratio: 1; margin: -4px -4px 4px; border-radius: 12px; background: var(--page); overflow: hidden; }
.nc__img img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.nc__img .card__noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--page); }
.nc__img .ci { width: 64px; height: 64px; }
.nc__noimg { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; height: 100%; color: var(--muted); font-size: .75rem; line-height: 1rem; text-align: center; }
.nc__noimg .ci { width: 56px; height: 56px; opacity: .7; }
.nc__fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--muted); box-shadow: none; cursor: pointer; transition: color var(--dur) ease, border-color var(--dur) ease; }
.nc__fav .i { width: 22px; height: 22px; }
.nc__fav:hover { color: var(--action-700); border-color: var(--line-2); }
.nc__fav[aria-pressed="true"] { color: var(--action-700); border-color: var(--action-700); }
.nc__fav[aria-pressed="true"] .i { fill: currentColor; }
.nc__t { font: 600 .875rem/1.25rem var(--font-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.5rem; /* 2 linhas fixas de 20 px */ }
.nc__t:focus-within { -webkit-line-clamp: unset; overflow: visible; } /* no foco do teclado, título integral */
.nc__t a { text-decoration: none; color: inherit; }
/* link "esticado": o card todo abre /produto/{slug} (alvo grande no toque); favorito e CTA ficam por cima */
.nc__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.nc__fav, .nc__cta { position: relative; z-index: 2; }
.nc__fav { position: absolute; }
.nc__t a:hover { text-decoration: underline; text-underline-offset: 2px; }
.nc__attr { color: var(--muted); font-size: .75rem; line-height: 1rem; height: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc__pr { margin-top: auto; display: grid; gap: 0; }
.nc__old { min-height: 1rem; font-size: .75rem; line-height: 1rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* linha reservada: grade sem "degraus" */
.nc__off { color: var(--action-700); font-weight: 700; }
.nc__price { font: 800 1.125rem/1.5rem var(--font-body); color: var(--ink); letter-spacing: -.01em; }
.nc__noprice { font: 600 .8125rem/1.5rem var(--font-body); color: var(--ink-2); }
.nc__store { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 1rem; color: var(--muted); font-size: .75rem; line-height: 1rem; white-space: nowrap; }
.nc__sn { flex: none; color: var(--ink-2); font-weight: 600; }
.nc__chk { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nc__cup:empty { display: none; } /* slot de cupom: nenhum card tem chip hoje → todos colapsam igual (altura uniforme) */
.nc__dot { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.nc__dot--amazon { background: #FF9900; } .nc__dot--mercadolivre { background: #E6CF00; } .nc__dot--shopee { background: #EE4D2D; } .nc__dot--aliexpress { background: #E62E04; }
.nc__cta--off { background: #E7EBEF; color: var(--muted); cursor: default; }
.gnotes { display: grid; gap: 4px; margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1rem; }
.nc__cta { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-top: 4px; padding: 6px 10px; border-radius: var(--r-btn); background: var(--action-700); color: #fff; font: 700 .8125rem/1rem var(--font-body); text-align: center; text-decoration: none; text-wrap: balance; transition: background-color var(--dur) ease; }
.nc__cta:hover { background: var(--action-800); }
.nc__cta:active { background: var(--action-900); }
.nc__cta .i { width: 16px; height: 16px; flex: none; }
.nc__cta--sec { background: var(--surface); color: var(--ink); border: 1px solid var(--brand-700); }
.nc__cta--sec:hover { background: var(--page); }
@media (min-width: 640px) { .nc__cta { font-size: .875rem; line-height: 1.25rem; } }

/* ---------- 7. Listagem / busca ---------- */
.m-gp .crumbs { font-size: .75rem; padding-block: 4px; }
.m-gp .crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; margin-inline: -8px; color: var(--ink-2); }
.m-gp .tbl td a:not(.cta) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.m-gp .list-top { margin: 4px 0 12px; align-items: flex-end; }
.m-gp .list-top h1 { font: 800 1.625rem/2rem var(--font-body); letter-spacing: -.02em; }
.m-gp .list-top .count { color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.m-gp .h1-filter { color: var(--muted); font-weight: 600; }
.m-gp .sortf label { font-size: .8125rem; }
.m-gp .cat-intro { margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--ink-2); font-size: .8125rem; line-height: 1.25rem; }
.m-gp .cat-intro p + p { margin-top: 6px; }
.m-gp .cat-intro a { color: var(--brand-700); font-weight: 600; }
/* texto SEO da categoria/busca (app/seo) continua no HTML, mas aparece DEPOIS da grade: produtos primeiro na dobra */
.m-gp main > .wrap:has(> .list-layout) { display: flex; flex-direction: column; }
.m-gp main > .wrap:has(> .list-layout) > .cat-intro { order: 9; margin: 24px 0 0; }
.lst-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.m-gp .filters-toggle { min-height: 48px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--chip-on); border: 1px solid var(--chip-on-line); color: var(--ink); font: 600 .8125rem/1 var(--font-body); text-decoration: none; }
.fchip .i { width: 16px; height: 16px; }
.fchip--clear { background: transparent; border-color: transparent; color: var(--action-700); text-decoration: underline; text-underline-offset: 3px; }
.m-gp .filters { border-radius: var(--r-card); border-color: var(--line); }
.m-gp .filters legend { font: 700 .875rem/1.25rem var(--font-body); }
.m-gp .filters label { font-size: .875rem; }
.m-gp .filters input[type=radio], .m-gp .filters input[type=checkbox] { accent-color: var(--action-700); width: 20px; height: 20px; }
@media (min-width: 1024px) {
  .m-gp .list-top h1 { font-size: 2.5rem; line-height: 3rem; }
  .m-gp .list-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; }
  .lst-tools:not(:has(.fchips)) { display: none; }
}
.m-gp .pager a, .m-gp .pager span { border-radius: var(--r-chip); border-color: var(--line); }
.m-gp .pager [aria-current] { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.m-gp .empty { border-radius: var(--r-card); border-color: var(--line-2); }
.m-gp .empty .search { width: 100%; max-width: 520px; }
.m-gp .drop { border-left-color: var(--action-700); border-radius: var(--r-btn); }
.m-gp .drop b { color: var(--action-700); }

/* ---------- 8. Produto ---------- */
.m-gp .prod { gap: 20px; }
.m-gp .gallery { border-color: var(--line); border-radius: var(--r-card); background: var(--surface); }
.m-gp .gallery--thumbs { padding-bottom: 8px; }
.m-gp .gallery__t { width: 64px; height: 64px; border-color: var(--line); }
.m-gp .gallery__t[aria-current="true"] { border-color: var(--brand-900); border-width: 2px; }
.m-gp .prod__info { gap: 12px; }
.m-gp .prod__info h1 { font: 800 1.375rem/1.75rem var(--font-body); letter-spacing: -.01em; overflow-wrap: anywhere; }
.m-gp .prod__meta { font-size: .8125rem; }
.m-gp .spec-chips li { background: var(--surface); border-color: var(--line); font-size: .75rem; }
.m-gp .best { gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
.m-gp .best__lbl { color: var(--success); font-size: .75rem; letter-spacing: .06em; }
.m-gp .best__old { color: var(--muted); font-size: .8125rem; }
.m-gp .best__price { gap: 8px; }
.m-gp .best__price b { font: 800 2rem/2.25rem var(--font-body); color: var(--ink); letter-spacing: -.02em; }
.m-gp .best .small { color: var(--ink-2); }
.m-gp .best__actions { display: grid; gap: 8px; }
.m-gp .best .cta { width: 100%; }
.m-gp .wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .8125rem/1 var(--font-body); text-decoration: none; }
.m-gp .wa-btn .i { color: #128C4A; }
.m-gp .wa-btn:hover { border-color: var(--brand-700); }
.m-gp .share { gap: 8px; }
.m-gp .share__b { border-color: var(--line-2); font-weight: 600; }
.m-gp .share__b--wa { display: none; } /* já existe "Mandar no WhatsApp" logo acima */
.m-gp .notice { border-radius: var(--r-btn); border-left-color: var(--accent-500); }
.m-gp .sec-h { margin-bottom: 12px; }
.m-gp .sec-h h2 { font: 700 1.25rem/1.625rem var(--font-body); }
.m-gp .sec-h p { font-size: .8125rem; }
.m-gp .sec-h a, .m-gp .sec-h__more { color: var(--action-700); font-weight: 700; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.m-gp .section { padding-block: 20px; }
.m-gp .tbl-wrap { border-radius: var(--r-card); border-color: var(--line); }
.m-gp .tbl td .cta { width: 100%; }
.m-gp .tbl tr.is-best td { background: var(--success-bg); }
.m-gp .hist { border-radius: var(--r-card); border-color: var(--line); }
.m-gp .hist__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-gp .hist__sum div { background: var(--page); }
.m-gp .hist__sum small { display: block; font-size: .75rem; }
.m-gp .hist__low b { color: var(--success); }
.m-gp .desc { color: var(--ink-2); font-size: .875rem; line-height: 1.375rem; }
@media (min-width: 768px) {
  .m-gp .best__actions { grid-template-columns: minmax(0, 1fr) auto; }
  .m-gp .hist__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
  .m-gp .tbl td .cta { width: auto; }
}
@media (min-width: 1024px) {
  .m-gp .prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .m-gp .prod__info h1 { font-size: 2rem; line-height: 2.5rem; }
}

/* ---------- 9. Cupons (página) ---------- */
.m-gp .search--hero { margin-bottom: 12px; }
.m-gp .search--hero input { height: 48px; font-size: 1rem; }
.m-gp .search--hero button { width: 44px; height: 44px; }
.cup-list { display: grid; gap: 12px; }
@media (min-width: 768px) { .cup-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cup-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cup { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
.cup__store { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font: 700 .8125rem/1.125rem var(--font-body); }
.cup__ben { font: 800 1.125rem/1.5rem var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.cup__scope { color: var(--ink-2); font-weight: 600; }
.cup__nocode { color: var(--ink-2); }
.cup__rules { color: var(--ink-2); font-size: .8125rem; line-height: 1.25rem; }
.cup__meta { color: var(--muted); font-size: .75rem; line-height: 1.125rem; }
.cup__btn { margin-top: auto; }
.cup__btn .i { width: 18px; height: 18px; }
.cup__disc { margin-top: 12px; }
.cup-empty { margin-bottom: 8px; }
.cup-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.m-gp .empty__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cup__code { display: flex; align-items: center; gap: 8px; }
.cup__code code { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: var(--r-chip); background: var(--page); font: 700 .9375rem/1 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.cup__copy { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--brand-700); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); font: 700 .8125rem/1 var(--font-body); cursor: pointer; }
.cup__copy.is-copied, .gbtn.is-copied { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.cup__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--r-btn); background: var(--action-700); color: #fff; font: 700 .875rem/1.25rem var(--font-body); text-decoration: none; }
.cup__btn:hover { background: var(--action-800); }

/* ---------- 10. Guias, perenes, favoritos, amazon, legal ---------- */
.m-gp .guide__head h1 { font: 800 1.625rem/2rem var(--font-body); }
@media (min-width: 1024px) { .m-gp .guide__head h1 { font-size: 2.5rem; line-height: 3rem; } }
.m-gp .answer { border: 1px solid #F2D27A; background: #FFF8E6; border-radius: var(--r-card); min-height: 0; }
.m-gp .answer__t { color: var(--accent-ink); font-size: .75rem; }
.m-gp .answer p { font-size: .9375rem; line-height: 1.5rem; color: var(--ink); }
.m-gp .rel { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.m-gp .rel__i { min-height: 56px; border-color: var(--line); border-radius: var(--r-btn); font-weight: 600; color: var(--ink); }
.m-gp .rel__i:hover { border-color: var(--brand-700); }
.m-gp .rel__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-chip); background: #FFF3D6; color: var(--accent-ink); }
.m-gp .rel__ic svg { width: 20px; height: 20px; }
.m-gp .faq details { border-color: var(--line); border-radius: var(--r-btn); padding: 0 14px; }
.m-gp .faq summary { display: flex; align-items: center; min-height: 48px; font-weight: 600; }
.m-gp .faq details p { margin: 0 0 12px; font-size: .875rem; line-height: 1.375rem; }
.fp-list { display: grid; gap: 8px; margin-bottom: 16px; }
.fp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t rm" "m rm"; align-items: center; gap: 2px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); }
.fp-list li a { grid-area: t; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fp-list li a:hover { text-decoration: underline; }
.fp-list li small { grid-area: m; color: var(--muted); font-size: .75rem; }
.fp-list li button { grid-area: rm; }
.fp-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; border-radius: var(--r-btn); background: var(--brand-900); color: #fff; }
.fp-undo[hidden] { display: none; }
.fp-undo .btn { min-height: 44px; }
.m-gp .amz__intro { color: var(--ink-2); margin-bottom: 16px; max-width: 75ch; }
.m-gp .amz__assoc { margin-top: 16px; color: var(--muted); font-size: .75rem; }
.m-gp .legal { max-width: 75ch; }

/* faixa de campanha (_campaign.countdown_band, data real do evento): discreta, uma linha, sem estética sazonal */
.m-gp .camp-band { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); }
.m-gp .camp-band__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 8px; font-size: .8125rem; line-height: 1.125rem; }
.m-gp .camp-band__t { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.m-gp .camp-band__k { color: var(--muted); }
.m-gp .cd { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ink-2); }
.m-gp .cd__v b { font-weight: 700; }
.m-gp .cd__v small { margin-left: 1px; color: var(--muted); font-size: .75rem; }
.m-gp .camp-band__cta { min-height: 44px; margin-left: auto; padding: 0 12px; font-size: .8125rem; background: var(--surface); color: var(--ink); border: 1px solid var(--brand-700); }
.m-gp .camp-band__cta:hover { background: var(--page); color: var(--ink); }
@media (max-width: 479px) { .m-gp .camp-band__cta { margin-left: 0; } }

/* ---------- 11. Rodapé ---------- */
.gpf { margin-top: 0; background: var(--brand-900); color: #C9D2DA; font-size: .875rem; }
.gpf__in { display: grid; padding-block: 24px 8px; }
.gpf__brand { display: grid; align-content: start; gap: 8px; padding-bottom: 16px; }
.gpf__logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font: 800 1.125rem/1 var(--font-body); text-decoration: none; justify-self: start; }
.gpf__logo b { color: #FF8A80; }
.gpf__brand p { max-width: 46ch; font-size: .8125rem; line-height: 1.25rem; }
.gpf__col, .gpf__trend { border-top: 1px solid rgba(255, 255, 255, .12); }
.gpf summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; }
.gpf summary::-webkit-details-marker { display: none; }
.gpf summary h2 { font: 700 .9375rem/1.25rem var(--font-body); color: #fff; }
.gpf summary .i { transition: transform var(--dur) ease; color: #C9D2DA; }
.gpf details[open] > summary .i { transform: rotate(180deg); }
.gpf ul { display: grid; padding-bottom: 8px; }
.gpf a { color: #E6EBF0; text-decoration: none; }
.gpf ul a { display: flex; align-items: center; min-height: 44px; }
.gpf a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gpf__trend ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
.gpf__trend { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.gpf__legal { padding-block: 16px 24px; display: grid; gap: 6px; font-size: .75rem; line-height: 1.125rem; color: #AEB9C4; opacity: 1; }
.m-gp .ftr { margin-top: 0; }
@media (min-width: 1024px) {
  .gpf__in { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px 16px; }
  .gpf__col { border-top: 0; }
  .gpf__col > summary { cursor: default; pointer-events: none; min-height: 32px; }
  .gpf__col > summary .i { display: none; }
  .gpf__col ul a { min-height: 32px; }
}

/* ---------- 11b. Banner V3 "Ofertas do dia" por tema (docs/redesign-v3/ARTE_BANNER.md) ----------
   Fundo = arte do tema (<picture>), overlay carvão só na zona de copy, produto recortado em palco com sombra de contato
   (CSS, nada gravado no arquivo), preço + CTA único sob a copy. Mobile 390 px de altura; desktop 400 px. */
.ph { padding-top: 16px; }
.ph__wrap { position: relative; }
.ph__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-card); background: var(--brand-900); }
.ph__track::-webkit-scrollbar { display: none; }
.ph__s {
  position: relative; isolation: isolate; overflow: hidden; /* contém os .sr-only e a arte */
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; height: 390px; padding: 18px;
  color: #F4F6F8; background-color: var(--brand-900);
}
.ph__s.is-in { animation: ph-in 220ms ease-out; }
@keyframes ph-in { from { opacity: .4; } to { opacity: 1; } }
.ph__bg { position: absolute; inset: 0; z-index: -2; }
.ph__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ph__s::after { /* overlay carvão: região escura limpa atrás da copy (contraste ≥ 4,5:1 medido) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* lateral (copy + preço ficam à esquerda) × vertical (copy no alto); medido ≥ 4,5:1 nos 4 fundos */
  background:
    linear-gradient(90deg, rgba(23, 33, 43, .9) 0%, rgba(23, 33, 43, .78) 48%, rgba(23, 33, 43, .2) 78%, rgba(23, 33, 43, 0) 100%),
    linear-gradient(180deg, rgba(23, 33, 43, .7) 0%, rgba(23, 33, 43, .35) 55%, rgba(23, 33, 43, .5) 100%);
}
.ph__micro, .ph__sup, .ph__pt, .ph__ctx, .ph__old, .ph__store { text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.ph__copy { position: relative; z-index: 2; display: grid; gap: 4px; justify-items: start; min-width: 0; }
.ph__badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 10px; border-radius: 999px; background: var(--accent-500); color: var(--brand-900); font: 700 .75rem/1rem var(--font-body); letter-spacing: .01em; }
.ph__badge--queda { background: var(--action-700); color: #fff; }
.ph__micro { color: #C9D2DA; font-size: .75rem; line-height: 1rem; }
.ph__h { margin-top: 6px; font: 800 1.625rem/1.875rem var(--font-body); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.ph__sup { color: #E3E8ED; font: 500 .8125rem/1.125rem var(--font-body); }
/* nome do produto (V3.1): 13/18 peso 500 no mobile, até 2 linhas; sublinhado só no hover/foco (link continua real) */
.ph__pt { margin-top: 2px; max-width: 100%; color: #DCE3EA; font: 500 .8125rem/1.125rem var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ph__pt a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.ph__pt a:hover, .ph__pt a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
/* palco: herói à direita, embaixo; apoios menores atrás dele */
.ph__stage { position: absolute; z-index: 1; right: 6px; bottom: 16px; width: min(190px, calc(100% - 196px)); aspect-ratio: 1; }
.ph__stage::before { /* sombra de contato no "chão" */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -2px; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0)); filter: blur(6px);
}
.ph__hero { position: absolute; inset: 0; display: grid; place-items: end center; }
.ph__hero img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .32)); }
/* apoios decorativos: só a partir de 768 px. No mobile o herói fica sozinho (V3.1, revisão de produção) — e como
   são `loading=lazy` com display:none, o navegador nem baixa os arquivos */
.ph__ap { display: none; position: absolute; bottom: 4%; width: 46%; height: 46%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); }
.ph__s img:not([src]) { visibility: hidden; } /* slide ainda não carregado: sem moldura de imagem quebrada */
.ph__buy { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 2px; justify-items: start; max-width: 178px; }
.ph__ctx, .ph__old { color: #C9D2DA; font-size: .8125rem; line-height: 1.125rem; }
.ph__off { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent-500); color: var(--brand-900); font-weight: 800; }
.ph__price { color: #fff; font: 800 1.625rem/1.875rem var(--font-body); letter-spacing: -.02em; white-space: nowrap; }
.ph__por { font-size: .875rem; font-weight: 600; color: #C9D2DA; }
.ph__store { color: #E3E8ED; font-size: .75rem; line-height: 1rem; }
.ph__store .nc__dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.ph__chk { white-space: nowrap; }
.ph__cup { display: inline-block; padding-block: 4px; color: #FFD27A; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ph__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
  min-width: 160px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--action-700); color: #fff;
  font: 700 .9375rem/1.25rem var(--font-body); text-decoration: none; white-space: nowrap; transition: background-color var(--dur) ease;
}
.ph__cta:hover { background: #A61F1F; }
.ph__cta .i { width: 16px; height: 16px; }
.ph__s .ph__cta:focus-visible, .ph__s a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--brand-900); }
/* controles */
.ph__ctrl { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; }
.ph__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color var(--dur) ease, opacity var(--dur) ease; }
.ph__nav:hover { border-color: var(--brand-700); }
.ph__nav .i { width: 20px; height: 20px; }
.ph__pause { margin-left: 6px; }
/* o JS só revela o "Pausar" quando há rotação: até lá ele já ocupa o seu lugar (invisível), para os pontos e as setas
   não andarem ~1 s depois do load (CLS 0,0012 medido em 390). Com movimento reduzido nunca aparece: sai do fluxo. */
.m-gp .ph__pause[hidden] { display: grid !important; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .m-gp .ph__pause[hidden] { display: none !important; } }
.ph__pause .ph__i-play, .ph__pause[aria-pressed="true"] .ph__i-pause { display: none; }
.ph__pause[aria-pressed="true"] .ph__i-play { display: block; }
.ph__dots { display: flex; align-items: center; }
.ph__dot { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.ph__dot span { width: 8px; height: 8px; border-radius: 999px; background: #9AA6B2; box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .2); transition: background-color var(--dur) ease, transform var(--dur) ease; }
.ph__dot[aria-current="true"] span { background: var(--accent-500); transform: scale(1.25); box-shadow: 0 0 0 2px var(--brand-900); }
.ph__note { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1rem; text-align: center; }
@media (max-width: 359px) { /* reflow até 320: apoios saem primeiro, herói menor; copy/preço/CTA intactos */
  .ph__s { height: auto; min-height: 390px; padding: 16px; }
  .ph__ap { display: none; }
  .ph__stage { width: min(120px, calc(100% - 180px)); bottom: 84px; }
  .ph__h { font-size: 1.5rem; line-height: 1.75rem; }
}
@media (min-width: 768px) {
  .ph { padding-top: 24px; }
  .ph__s { height: 360px; padding: 32px 40px; justify-content: center; }
  .ph__s::after { background: linear-gradient(90deg, rgba(23, 33, 43, .92) 0%, rgba(23, 33, 43, .86) 34%, rgba(23, 33, 43, .5) 46%, rgba(23, 33, 43, 0) 60%); }
  .ph__copy, .ph__buy { width: min(440px, 46%); max-width: none; }
  .ph__buy { margin-top: 16px; }
  .ph__h { font-size: 2.125rem; line-height: 2.375rem; }
  .ph__sup { font-size: 1rem; line-height: 1.375rem; }
  .ph__pt { font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
  .ph__pt a { text-decoration: underline; text-decoration-color: rgba(220, 227, 234, .45); }
  .ph__stage { right: auto; left: 50%; bottom: 40px; width: min(260px, 34%); }
  .ph__ap { display: block; width: 42%; height: 42%; }
  .ph__ap--1 { left: -42%; right: auto; bottom: 2%; }
  .ph__ap--2 { right: -42%; bottom: 2%; }
  .ph__price { font-size: 1.75rem; line-height: 2.125rem; }
  .ph__cta { min-height: 52px; min-width: 200px; }
  .ph__ctrl { position: absolute; right: 36px; bottom: 10px; margin: 0; }
  /* controles discretos: alvo 44×44, mas o círculo visível é pequeno e translúcido */
  .ph__ctrl .ph__nav { position: relative; background: transparent; border: 0; color: rgba(255, 255, 255, .82); }
  .ph__ctrl .ph__nav::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: 999px; background: rgba(23, 33, 43, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: background-color var(--dur) ease; }
  .ph__ctrl .ph__nav .i { width: 16px; height: 16px; }
  .ph__ctrl .ph__nav:hover { color: #fff; }
  .ph__ctrl .ph__nav:hover::before { background: rgba(23, 33, 43, .75); }
  .ph__ctrl { isolation: isolate; }
  .ph__dot span { background: rgba(255, 255, 255, .6); box-shadow: none; }
  .ph__dot[aria-current="true"] span { box-shadow: none; }
  /* setas aparecem no hover/foco (continuam no teclado: focáveis e visíveis ao receber foco) */
  @media (hover: hover) {
    .ph__arrow { opacity: 0; }
    .ph__wrap:hover .ph__arrow, .ph__wrap:focus-within .ph__arrow, .ph__arrow:focus-visible { opacity: 1; }
  }
}
@media (min-width: 1024px) {
  .ph__s { height: 400px; padding: 32px 48px; }
  .ph__copy, .ph__buy { width: min(440px, 36%); }
  .ph__h { font-size: 2.5rem; line-height: 2.75rem; }
  .ph__stage { left: 53%; bottom: 44px; width: 300px; }
  /* palco V3.1 (banner 1280×400; palco em x 678–978, y 56–356): apoio em caixa 120×120 com contain = 40 % do herói,
     centros ≈ (662, 260) e (1000, 260); o 1º começa em x = 602 (nunca cruza x = 600, a coluna de copy) e a base
     fica a 80 px do limite inferior. Ficam atrás do herói (vêm antes no DOM). */
  .ph__ap { width: 120px; height: 120px; bottom: 36px; }
  .ph__ap--1 { left: -76px; right: auto; }
  .ph__ap--2 { left: 262px; right: auto; }
  .ph__price { font-size: 1.875rem; line-height: 2.125rem; }
  .ph__ctrl { right: 40px; bottom: 12px; }
}
@media (min-width: 1024px) { .gh__in { min-height: 360px; } }

/* "Agora na oficina": mini-cards nativos abaixo do banner (trilho com scroll-snap no mobile) */
.gw { padding-top: 16px; }
.gw__t { margin-bottom: 8px; font: 700 1.0625rem/1.5rem var(--font-body); }
.gw__list { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0; padding: 0 0 4px; list-style: none; }
.gw__list::-webkit-scrollbar { display: none; }
.gw__i { scroll-snap-align: start; min-width: 0; }
.gw__a { display: flex; align-items: center; gap: 12px; min-height: 96px; height: 100%; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color var(--dur) ease; }
.gw__a:hover { border-color: var(--brand-700); }
.gw__a img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; }
.gw__txt { display: grid; gap: 2px; min-width: 0; }
.gw__n { font: 600 .8125rem/1.125rem var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.gw__p { font: 800 1rem/1.375rem var(--font-body); }
.gw__s { color: var(--ink-2); font-size: .75rem; line-height: 1rem; }
@media (min-width: 768px) { .gw { padding-top: 20px; } .gw__list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 1024px) { .gw__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 11c. Design V2: cupom no produto, cards ociosos ---------- */
.pcup { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--chip-on-line); border-radius: var(--r-btn); background: #FFFBF0; }
.pcup__t { display: flex; align-items: center; gap: 6px; font: 700 .9375rem/1.25rem var(--font-body); }
.pcup__t .i { width: 18px; height: 18px; color: var(--accent-ink); }
.pcup__ben { font: 800 1rem/1.375rem var(--font-body); }
.pcup__meta { color: var(--ink-2); font-size: .75rem; line-height: 1.125rem; }
.pcup__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--action-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.pcup__link .i { width: 16px; height: 16px; }
.nc__cta--off:hover, .nc__cta--off:active { background: #E7EBEF; }
/* "Procurar esta peça no Mercado Livre" (ficha de peça sem oferta ML): secundário, abaixo da caixa de preço */
.mlb { display: grid; gap: 6px; }
.mlb .gbtn { white-space: normal; padding-block: 10px; }
.mlb__n { color: var(--ink-2); font-size: .75rem; line-height: 1.125rem; overflow-wrap: anywhere; }

/* aviso de cookies (DESIGN_V2 §3): enquanto visível, reserva o espaço dele no fim da página (nada fica coberto) */
body.m-gp:has(#aviso-cookies) { padding-bottom: 148px; }
@media (min-width: 640px) { body.m-gp:has(#aviso-cookies) { padding-bottom: 88px; } }
.m-gp .ckb { padding-top: 10px; }
.m-gp .ckb p { font-size: .75rem; line-height: 1.125rem; }
@media (max-width: 480px) { .m-gp .ckb__in { gap: 8px; } .m-gp .ckb form { flex-wrap: nowrap; } }

/* ---------- 12. Movimento reduzido / impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  .m-gp *, .m-gp *::before, .m-gp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .gph, .gpm, .gpf, .favs-pop, .nc__fav, #aviso-cookies { display: none !important; } }
