/* GaragemPro · Home V4 — só na home (home.html {% block head %}), depois de garagem.css.
   Escopo: classes hm-* novas + ajustes de .gh/.gv dentro de body.pg-home. Nada de animação de entrada que mexa no LCP/CLS. */

/* ---------- 1. Dobra: hero de reserva (sem banner) ---------- */
.pg-home .hm-hero__in { min-height: 0; gap: 10px; padding-block: 20px 22px; }
.hm-kicker, .gh .hm-kicker { display: none; color: #F2A900; font: 800 .8125rem/1.125rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.hm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
.pg-home .gh .hm-acts .gbtn { margin-top: 0; }
.hm-cta { min-height: 48px; padding-inline: 20px; }
.hm-cta .i, .hm-cup__go .i { transition: transform 160ms ease; }
.hm-cta:hover .i, .hm-cta:focus-visible .i, .hm-cup__a:hover .hm-cup__go .i { transform: translateX(3px); }
.hm-alt { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 12px; color: #fff; font: 700 .9375rem/1.25rem var(--font-body); text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.hm-alt .i { width: 20px; height: 20px; color: #F2A900; }
.hm-alt:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hm-alt:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }
/* celular: o seletor do carro já começa logo abaixo e a barra inferior tem "Meu carro" → só 1 CTA na dobra */
@media (max-width: 479px) { .hm-alt { display: none; } .pg-home .hm-hero__in { padding-block: 18px 20px; } }
@media (min-width: 768px) {
  .hm-kicker, .gh .hm-kicker { display: block; }
  .pg-home .hm-hero__in { padding-block: 40px; }
}
@media (min-width: 1024px) {
  .pg-home .hm-hero__in { min-height: 340px; padding-block: 36px; gap: 12px; }
}

/* ---------- 2. Seletor do carro: logo abaixo da dobra, alvo do atalho ---------- */
.pg-home #meu-carro { scroll-margin-top: 128px; }
@media (min-width: 1024px) { .pg-home #meu-carro { scroll-margin-top: 24px; } }
.pg-home .gv__f select { transition: box-shadow 160ms ease; }
.pg-home .gv__f select:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }

/* ---------- 3. Faixa de confiança ---------- */
.hm-trust { padding-block: 8px 4px; }
/* celular: 1 coluna, uma linha por garantia (texto legível, sem quebrar palavra) */
.hm-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.hm-trust__list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.hm-trust__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--page); color: var(--action-700); }
.hm-trust__ic .i { width: 20px; height: 20px; }
.hm-trust__list b { display: block; color: var(--ink); font: 700 .8125rem/1.125rem var(--font-body); }
.hm-trust__list li span:not(.hm-trust__ic) { display: block; margin-top: 1px; color: var(--muted); font-size: .8125rem; line-height: 1.125rem; }
.hm-trust__list li span.hm-stores { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.hm-stores em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; white-space: nowrap; }
.hm-stores .nc__dot { flex: none; margin: 0; }
@media (min-width: 560px) { .hm-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 1024px) { .hm-trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .hm-trust__list li { align-items: flex-start; padding: 12px 14px; } }

/* ---------- 4. Categorias grandes e tocáveis ---------- */
.hm-cat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-cat__a { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; min-height: 72px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.hm-cat__a img, .hm-cat__ic { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--brand-900); }
.hm-cat__ic { display: grid; place-items: center; background: var(--page); color: var(--brand-700); }
.hm-cat__t { display: grid; gap: 2px; min-width: 0; }
.hm-cat__t b { font: 700 .9375rem/1.25rem var(--font-body); }
.hm-cat__t small { color: var(--muted); font-size: .8125rem; line-height: 1.125rem; }
@media (max-width: 479px) {
  .hm-cat__a { min-height: 64px; gap: 8px; padding: 8px 6px; }
  .hm-cat__a img, .hm-cat__ic { width: 44px; height: 44px; }
  .hm-cat__t b { font-size: .875rem; }
  .hm-cat__t small { display: none; }
}
.hm-cat__a:hover { border-color: var(--brand-700); box-shadow: 0 6px 16px rgba(23, 33, 43, .08); transform: translateY(-2px); }
.hm-cat__a:active { transform: scale(.98); }
.hm-cat__a:focus-visible { outline: 3px solid var(--action-700); outline-offset: 2px; }
@media (min-width: 768px) { .hm-cat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) {
  .hm-cat { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hm-cat__a { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 12px 8px 14px; text-align: center; }
  .hm-cat__a img, .hm-cat__ic { width: 88px; height: 88px; border-radius: 12px; }
  .hm-cat__t { justify-items: center; }
}

/* ---------- 5. Teaser de cupons (só com cupom real verificado) ---------- */
.hm-cup { padding-block: 4px 8px; }
.hm-cup__a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid #F2D27A; border-radius: 14px; background: #FFF8E6; color: var(--ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.hm-cup__a:hover { border-color: #F2A900; box-shadow: 0 6px 16px rgba(23, 33, 43, .08); }
.hm-cup__a:focus-visible { outline: 3px solid var(--action-700); outline-offset: 2px; }
.hm-cup__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #F2A900; color: #17212B; }
.hm-cup__t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hm-cup__t b { font: 700 .9375rem/1.25rem var(--font-body); }
/* B-3: a lista de lojas quebra em 2 linhas no celular em vez de ser cortada */
.hm-cup__t small { display: block; color: var(--ink-2); font-size: .8125rem; line-height: 1.125rem; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.hm-cup__go { display: inline-flex; flex: none; align-items: center; gap: 4px; color: var(--action-700); font: 700 .875rem/1.25rem var(--font-body); }
.hm-cup__go .i { width: 18px; height: 18px; }
@media (max-width: 389px) { .hm-cup__go { font-size: 0; } .hm-cup__go .i { width: 22px; height: 22px; } }

/* ---------- 5b. V4.1 · proposta de valor colada ao carrossel (só com banner) ---------- */
.hm-vp { padding-block: 10px 0; }
.hm-vp__t { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid #F2A900; border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: .8125rem; line-height: 1.25rem; }
.hm-vp__t b, .hm-vp__t strong { color: var(--ink); font-weight: 800; }
.hm-vp__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--page); color: var(--action-700); }
.hm-vp__ic .i { width: 18px; height: 18px; }
@media (min-width: 768px) { .hm-vp__t { align-items: center; font-size: .875rem; } }

/* ---------- 5c. V4.1 · régua por faixa de preço (mini-vouchers com picote; ref. home-01) ---------- */
.hm-band__list { list-style: none; margin: 0; padding: 2px 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hm-band__list::-webkit-scrollbar { display: none; }
.hm-band__list li { scroll-snap-align: start; min-width: 0; }
.hm-band__a { position: relative; display: grid; align-content: center; gap: 0; min-height: 64px; height: 100%; padding: 10px 14px; border: 1.5px dashed #D49A00; border-radius: 12px; background: #FFF8E6; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
/* recortes de "ingresso" nas laterais (decorativos) */
.hm-band__a::before, .hm-band__a::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--page); border: 1.5px dashed #D49A00; }
.hm-band__a::before { left: -7px; clip-path: inset(0 0 0 50%); }
.hm-band__a::after { right: -7px; clip-path: inset(0 50% 0 0); }
.hm-band__a small { color: var(--accent-ink); font: 700 .8125rem/1.125rem var(--font-body); text-transform: none; letter-spacing: 0; }
.hm-band__a b { font: 800 1.25rem/1.625rem var(--font-body); letter-spacing: -.02em; white-space: nowrap; }
.hm-band__a:hover { border-color: #8A5A00; background: #FFF1CC; transform: translateY(-2px); }
.hm-band__a:active { transform: scale(.98); }
.hm-band__a:focus-visible { outline: 3px solid var(--action-700); outline-offset: 2px; }
/* régua de cupons (topo da home): mesmo "ingresso" da faixa de preço, mais largo para "R$ 178,57 OFF" caber inteiro */
/* Cupons 2026-11-17 · faixa compacta estilo Amazon (uma linha, etiqueta verde "Cupom", sem bilhete grande) */
.hm-cps { margin-top: 12px; margin-bottom: 12px; }
.hm-cps__bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.hm-cps__lead { display: flex; align-items: center; gap: 8px; flex: none; min-height: 44px; color: var(--ink); text-decoration: none; }
.hm-cps__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--success-bg); color: var(--success); }
.hm-cps__ic .i { width: 18px; height: 18px; }
.hm-cps__lt { display: grid; }
.hm-cps__lt b { font: 700 .875rem/1.125rem var(--font-body); }
.hm-cps__lt small { color: var(--muted); font: 400 .8125rem/1.125rem var(--font-body); }
.hm-cps__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.hm-cps__list::-webkit-scrollbar { display: none; }
.hm-cps__list li { flex: none; scroll-snap-align: start; }
.hm-cps__c { display: grid; gap: 2px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
.hm-cps__c:hover { border-color: var(--success); background: var(--success-bg); }
.hm-cps__c:focus-visible, .hm-cps__lead:focus-visible, .hm-cps__all:focus-visible { outline: 3px solid var(--action-700); outline-offset: 2px; }
.hm-cps__l1 { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hm-cps__tag { padding: 1px 6px; border-radius: 4px; background: var(--success); color: #fff; font: 700 .8125rem/1.125rem var(--font-body); }
.hm-cps__l1 b { font: 700 .875rem/1.25rem var(--font-body); }
.hm-cps__c small { color: var(--muted); font: 400 .8125rem/1.125rem var(--font-body); white-space: nowrap; }
.hm-cps__all { display: none; align-items: center; gap: 4px; flex: none; min-height: 44px; padding: 0 8px; color: var(--action-800); font: 600 .875rem/1.25rem var(--font-body); text-decoration: none; }
.hm-cps__all .i { width: 16px; height: 16px; }
@media (max-width: 559px) { .hm-cps__lt small { display: none; } .hm-cps__ic { display: none; } }
@media (min-width: 768px) { .hm-cps__all { display: inline-flex; } .hm-cps__all:hover { text-decoration: underline; } }
@media (min-width: 768px) { .hm-band__list { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; gap: 12px; } .hm-band__a { padding: 12px 18px; } .hm-band__a b { font-size: 1.5rem; line-height: 2rem; } }

/* ---------- 6. Movimento: rolagem suave só para quem não pediu menos movimento ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .hm-cta .i, .hm-cup__go .i, .hm-alt, .hm-cat__a, .hm-cup__a, .hm-band__a { transition: none; }
  .hm-cta:hover .i, .hm-cta:focus-visible .i, .hm-cup__a:hover .hm-cup__go .i, .hm-cat__a:hover, .hm-cat__a:active, .hm-band__a:hover, .hm-band__a:active { transform: none; }
}
