/* Hallmark · shape: Catalogue, equal cards (photo, price, name, mileage, description, WhatsApp) · genre: editorial · theme: brand · redesign: full · job: buy
 * paper: oklch(96.5% 0.003 60) · accent: oklch(58% 0.23 29) · display: Barlow Condensed · body: Barlow · hero: Banner (/), Stage (/?carro=) · nav: slab, the VCM shield logo and the language switch · footer: mast, the logo with the store facts and WhatsApp, one line when config.js gives no facts · signature: the red price tag, the shield's red
 * axes: warm-white/condensed/vcm-red · posture: full-palette (VCM black field, VCM red signal, WhatsApp seal on every car) · imagery: the store's own car photos · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: R, a WhatsApp button under every car adds green to each card; it is the store's one action, so it stays and the red keeps to prices, selection and the shield stripe */
/* Hallmark · waive 83 · the pictures are the store's own inventory photos, uploaded from its panel · a used-car catalogue is its photographs; every frame is a car for sale beside its price */
/* Hallmark · waive 78 · the list page has no sections below the hero, only the stock grid · its h2s are the cars' own names, set at item size so a row of three cars reads on one screen */
/* Hallmark · waive 3 · photo cards, not icon tiles; the icons are the photo count on each photo and the WhatsApp mark on the button · Outros carros à venda repeats the stock cards, each with its price and Falar no WhatsApp */
/* Hallmark · waive 49b · the wrapping links are the cars' own names, such as 2016 Jeep Grand Cherokee Limited 4x4, two lines at most · a car's name cannot shorten, and it is the link to that car's page */
/* Hallmark · dismissed F20 · the grid holds whatever cars the store has on the lot, so a last row of one car comes and goes with the stock */
/* Hallmark · dismissed 77 · an inventory page: the asphalt band, the stock and the footer; the job is to pick a car and message the store on WhatsApp */
/* Hallmark · dropped https://wa.me/?text=, /?carro=2017-ram-1500-big-horn-4x4-q8d1 · config.js now carries the store's WhatsApp, so every link became wa.me/12153304396; on the Civic page the new 2022 Ram took a slot in Outros carros à venda */
/* Hallmark · hero-review: not run separately, the page was redesigned whole · finish-review: subagent · 6 findings · 5 resolved 1 partial · gap: the list's first screen shows the featured car with its price, where the old page showed four smaller cars */

/* Vitrine VCM: estilos compartilhados (vitrine e painel). Os nomes dos tokens são os do projeto; o painel depende deles. */

:root {
  /* Marca VCM: preto, vermelho e branco, tirados do logo */
  --vcm-black: oklch(14% 0.005 25);
  --vcm-black-2: oklch(23% 0.008 25);
  --vcm-red: oklch(58% 0.23 29);            /* o vermelho do escudo e do "VCM" */
  --vcm-red-deep: oklch(50% 0.2 29);
  --vcm-white: oklch(98.5% 0.004 25);

  /* Nomes do projeto (o painel depende deles), apontando para a marca */
  --asphalt: var(--vcm-black);              /* topo, textos fortes */
  --asphalt-2: var(--vcm-black-2);
  --concrete: oklch(96.5% 0.003 60);        /* fundo da página */
  --concrete-2: oklch(92.5% 0.004 60);
  --paper: oklch(99% 0.003 60);             /* campos e botões sobre a foto */
  --line: oklch(88% 0.005 60);
  --edge: oklch(60% 0.01 25);               /* borda de campo, 3:1 sobre o fundo */
  --muted: oklch(47% 0.012 25);
  --on-dark: var(--vcm-white);
  --on-dark-muted: oklch(78% 0.008 25);
  --on-dark-edge: oklch(62% 0.012 25);
  --sticker: var(--vcm-red);                /* etiqueta de preço vermelha, como o escudo */
  --sticker-ink: var(--vcm-white);
  --sticker-sold: oklch(92.5% 0.004 60);
  --wa: oklch(50% 0.13 150);
  --wa-hover: oklch(44% 0.115 150);
  --wa-ink: var(--vcm-white);
  --focus: var(--vcm-red-deep);
  --focus-on-dark: var(--vcm-white);
  --danger: oklch(50% 0.182 30);
  --photo-bg: oklch(90% 0.006 30);
  --scrim: oklch(14% 0.005 25 / 0.78);
  --gal-btn: oklch(99% 0.005 30 / 0.94);
  --lightbox: oklch(10% 0.004 25);
  --lightbox-btn: oklch(98.5% 0.004 25 / 0.14);
  --shadow-float: 0 1px 4px oklch(14% 0.005 25 / 0.22);
  --shadow-sticker: 0 1px 0 oklch(14% 0.005 25 / 0.25), inset 0 -2px 0 oklch(14% 0.005 25 / 0.12);
  --stripe: 6px;                            /* a faixa vermelha do escudo */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --r-s: 4px;
  --r-m: 8px;

  /* Papéis do Hallmark, apontando para os nomes da marca */
  --color-paper: var(--concrete); --color-paper-2: var(--concrete-2); --color-paper-3: var(--paper);
  --color-ink: var(--asphalt); --color-ink-2: var(--asphalt-2); --color-muted: var(--muted); --color-rule: var(--line);
  --color-accent: var(--sticker); --color-accent-ink: var(--sticker-ink); --color-focus: var(--focus);
  --color-error: var(--danger); --color-success: var(--wa);
  --font-display: var(--font-cond); --font-body: var(--font); --font-outlier: var(--font);
  --radius-card: var(--r-m); --radius-pill: 999px; --rule-hair: 1px; --tracking-display: -0.01em;

  /* Escala */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem;
  --text-display-s: clamp(2.5rem, 3vw + 1rem, 3.75rem);
  --text-display: clamp(3.25rem, 6vw + 0.5rem, 6rem);  --text-section: clamp(2rem, 2.5vw + 1rem, 3.25rem);
  --text-title: clamp(1.375rem, 0.5vw + 1rem, 1.625rem);
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px;
  --z-base: 1; --z-raised: 10; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
}
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --gap-columns: 16px; } }

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--concrete); }
html:has(> body.noscroll) { overflow: hidden; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font: 400 var(--text-md)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--asphalt);
}
::selection { background: var(--sticker); color: var(--sticker-ink); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
main { display: block; outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-head :focus-visible, .hero :focus-visible, .buybar :focus-visible, .lightbox :focus-visible, .site-foot :focus-visible { outline-color: var(--focus-on-dark); }
.i { flex: none; }
[hidden] { display: none !important; }

:where(.vitrine) :where(h1, h2, h3) {
  margin: 0; font-family: var(--font-cond); font-synthesis: none;
  letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
:where(.vitrine) p { margin: 0; text-wrap: pretty; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--space-sm); top: var(--space-xs); z-index: var(--z-tooltip);
  padding: var(--space-xs) var(--space-md); border-radius: var(--r-s);
  background: var(--paper); color: var(--asphalt); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ------------------------------------------------------------ topo */

.demo-banner {
  background: var(--concrete-2); color: var(--asphalt);
  font-size: var(--text-sm); line-height: 1.4; text-align: center;
  padding: var(--space-xs) var(--space-md);
}
.demo-banner a { font-weight: 600; white-space: nowrap; }

.site-head { background: var(--asphalt); color: var(--on-dark); padding-top: env(safe-area-inset-top); box-shadow: inset 0 calc(-1 * var(--stripe)) 0 var(--vcm-red); }
/* Na lista, a faixa vermelha desce para o pé da faixa preta do topo */
.vitrine:has(main .hero) .site-head { box-shadow: none; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; }
.brand {
  display: flex; align-items: center; min-height: 44px;
  font: 800 clamp(1.375rem, 1rem + 2vw, 1.75rem)/1 var(--font-cond);
  color: var(--on-dark); text-decoration: none;
}
.vitrine .brand { white-space: nowrap; }
.brand img { height: 40px; width: auto; }
.vitrine .head-inner { min-height: 72px; padding-block: var(--space-xs) calc(var(--space-xs) + var(--stripe)); }
.vitrine .brand img { height: 56px; }
@media (min-width: 60rem) { .vitrine .head-inner { min-height: 96px; } .vitrine .brand img { height: 72px; } }

.lang { display: flex; padding: var(--space-3xs); border: 1px solid var(--on-dark-edge); border-radius: var(--radius-pill); }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 var(--space-sm);
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--on-dark); cursor: pointer;
  font: 600 var(--text-sm)/1 var(--font);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.lang button:hover { background: var(--asphalt-2); }
.lang button:active { transform: translateY(1px); }
.lang button[aria-pressed="true"] { background: var(--vcm-red); color: var(--vcm-white); }
@media (max-width: 22.5rem) { .lang button { min-width: 40px; padding: 0 var(--space-xs); } }

/* ------------------------------------------------------------ botões */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--r-m);
  font: 600 var(--text-md)/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.vitrine .btn { white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-dark { background: var(--asphalt); color: var(--on-dark); }
.btn-dark:hover { background: var(--asphalt-2); }
.btn-quiet { background: transparent; color: var(--asphalt); border-color: var(--edge); }
.btn-quiet:hover { background: var(--concrete-2); }

/* Etiqueta de preço: o elemento marcante do site */
.sticker {
  display: inline-block; padding: 0.3em 0.5em;
  background: var(--sticker); color: var(--sticker-ink); border-radius: var(--r-s);
  font: 800 1.625rem/1.2 var(--font-cond); font-variant-numeric: tabular-nums;
  white-space: nowrap; transform: rotate(-2.5deg); box-shadow: var(--shadow-sticker);
}
.sticker-lg { font-size: var(--text-display-s); }
.sticker-sold { background: var(--sticker-sold); color: var(--muted); }

/* ------------------------------------------------------------ estados */

.state { padding-block: var(--space-3xl); max-width: 35rem; }
.state p { font-size: var(--text-lg); margin: 0 0 var(--space-md); }
.state-inline { grid-column: 1 / -1; padding-block: var(--space-lg); }

/* ------------------------------------------------------------ lista: faixa de asfalto */

.hero { background: var(--asphalt); color: var(--on-dark); padding-block: var(--space-xl); border-bottom: var(--stripe) solid var(--vcm-red); }
.hero h1 {
  font-size: var(--text-display); font-weight: 800; line-height: 0.92;
  max-width: 16ch; overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
.hero .lead { margin-top: var(--space-md); color: var(--on-dark-muted); font-size: var(--text-lead); line-height: 1.45; max-width: 46ch; }
/* No celular a faixa aperta para o primeiro preço caber na primeira tela */
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-lg); }
  .hero .toolbar { margin-top: var(--space-md); }
}
/* No desktop largo, a busca fica à direita do título: a faixa encolhe e os carros sobem para a primeira tela */
@media (min-width: 75rem) {
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hero .wrap {
    display: grid; column-gap: var(--gap-columns);
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "head tools" "lead tools" "chips chips";
  }
  .hero h1 { grid-area: head; }
  .hero .lead { grid-area: lead; }
  .hero .toolbar { grid-area: tools; align-self: end; margin-top: 0; flex-wrap: nowrap; }
  .hero .search { flex: 1 1 0; min-width: 0; }
  .hero .sort { flex: 0 0 13rem; }
  .hero .chips { grid-area: chips; margin-top: var(--space-lg); }
}

.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.search { position: relative; display: block; flex: 1 1 280px; }
.search .i { position: absolute; left: var(--space-md); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 52px; padding: 0 var(--space-md) 0 52px;
  border: 1px solid var(--edge); border-radius: var(--r-m); background: var(--paper); color: var(--asphalt);
  font-size: var(--text-md);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.sort { position: relative; flex: 0 1 240px; }
.sort select {
  width: 100%; height: 52px; padding: 0 var(--space-2xl) 0 var(--space-md);
  border: 1px solid var(--edge); border-radius: var(--r-m); background: var(--paper); color: var(--asphalt);
  font-size: var(--text-md); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.sort::after {
  content: ""; position: absolute; right: var(--space-lg); top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--asphalt); border-bottom: 2px solid var(--asphalt);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
@media (max-width: 40rem) { .sort { flex: 1 1 100%; } }

.chips { display: flex; gap: var(--space-xs); overflow-x: auto; margin-top: var(--space-md); padding: var(--space-2xs); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 var(--space-md); cursor: pointer;
  border: 1px solid var(--on-dark-edge); border-radius: var(--radius-pill); background: transparent; color: var(--on-dark);
  font: 600 var(--text-sm)/1 var(--font);
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.chip:hover { background: var(--asphalt-2); border-color: var(--on-dark-muted); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { background: var(--vcm-red); border-color: var(--vcm-red); color: var(--vcm-white); }

/* ------------------------------------------------------------ lista: o estoque */

.stock { padding-block: var(--space-lg) var(--section-gap-s); }
@media (min-width: 60rem) { .stock { padding-block: var(--space-xl) var(--section-gap-s); } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl) var(--gap-columns); }
@media (min-width: 36rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-2xl); } }

/* O link do carro fica no título e cobre o card inteiro (::after); o botão do WhatsApp fica por cima dele */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-m); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: var(--z-base); border-radius: var(--r-m); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; }
.card-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-m); background: var(--photo-bg);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { display: grid; place-items: center; height: 100%; color: var(--muted); }
.count {
  position: absolute; right: var(--space-xs); bottom: var(--space-xs);
  display: flex; align-items: center; gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--r-s);
  background: var(--scrim); color: var(--on-dark);
  font: 600 var(--text-sm)/1 var(--font); font-variant-numeric: tabular-nums;
}
.flag {
  position: absolute; left: var(--space-xs); top: var(--space-xs);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--r-s);
  background: var(--paper); color: var(--asphalt);
  font: 600 var(--text-sm)/1 var(--font);
}
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2xs); padding-inline: var(--space-3xs); }
.card .sticker { position: relative; z-index: var(--z-raised); margin: calc(-1 * var(--space-lg)) 0 var(--space-xs) var(--space-sm); pointer-events: none; }
.card-title { font-size: var(--text-title); font-weight: 600; line-height: 1.1; }
.card:hover .card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card:active .card-title a { color: var(--asphalt-2); }
.card-meta { color: var(--muted); font-size: var(--text-md); font-variant-numeric: tabular-nums; }
/* Trecho da descrição: 2 linhas com reticências */
.card-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: var(--space-2xs); color: var(--asphalt-2); font-size: var(--text-md); line-height: 1.45;
}
/* O corpo ocupa a altura toda do card e o botão desce para o pé: os botões de uma fileira ficam alinhados */
.card-body { flex: 1 1 auto; }
.card-wa { position: relative; z-index: var(--z-raised); align-self: stretch; margin-top: auto; min-height: 48px; }
.card-body > :nth-last-child(2) { margin-bottom: var(--space-sm); }

/* ------------------------------------------------------- página do carro */

.detail { padding-block: var(--space-md) var(--section-gap-s); }
.back {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px;
  font-weight: 600; text-decoration: none;
}
.back:hover span { text-decoration: underline; }
.back:active { color: var(--asphalt-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-xs); }
.detail-media { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))); min-width: 0; }
.detail-info { min-width: 0; }
@media (min-width: 60rem) {
  .detail-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: start; }
  .detail-media { margin-inline: 0; }
  .detail-info { position: sticky; top: var(--space-lg); }
}

.gal { position: relative; background: var(--photo-bg); }
@media (min-width: 60rem) { .gal { border-radius: var(--r-m); overflow: hidden; } }
.gal-track {
  display: flex; aspect-ratio: 4 / 3;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.gal-empty { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: var(--space-xs); color: var(--muted); }
.gal-btn, .gal-zoom {
  position: absolute; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--gal-btn); color: var(--asphalt);
  box-shadow: var(--shadow-float);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.gal-btn:hover, .gal-zoom:hover { background: var(--paper); }
.gal-btn:active, .gal-zoom:active { transform: scale(0.96); }
.gal-btn { top: calc(50% - 24px); width: 48px; height: 48px; }
.gal-prev { left: var(--space-sm); }
.gal-next { right: var(--space-sm); }
.gal-btn:disabled { visibility: hidden; cursor: not-allowed; }
.gal-zoom { top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px; }
@media (hover: none) { .gal-btn { top: calc(50% - 22px); width: 44px; height: 44px; } }
.gal-count {
  position: absolute; left: var(--space-sm); bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill);
  background: var(--scrim); color: var(--on-dark);
  font: 600 var(--text-sm)/1 var(--font); font-variant-numeric: tabular-nums; pointer-events: none;
}
.gal-thumbs {
  position: relative; display: flex; gap: var(--space-xs); overflow-x: auto;
  padding: var(--space-sm) max(var(--gutter), env(safe-area-inset-left)) var(--space-2xs); scrollbar-width: thin;
}
@media (min-width: 60rem) { .gal-thumbs { padding: var(--space-sm) 0 var(--space-2xs); } }
.gal-thumb {
  flex: 0 0 80px; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-s); overflow: hidden; background: var(--photo-bg); opacity: 0.62;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 0.9; }
.gal-thumb:active { transform: translateY(1px); }
.gal-thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 3px var(--asphalt); }
.gal-thumb[aria-current="true"] img { padding: var(--space-2xs); border-radius: var(--r-m); }

.v-title {
  font-size: var(--text-section); font-weight: 800; line-height: 1; max-width: 16ch;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
.detail-info .sticker-lg { margin-top: var(--space-md); }
.notice { margin: 0 0 var(--space-lg); padding: var(--space-sm) var(--space-md); border-radius: var(--r-s); background: var(--concrete-2); }
.specs { margin: var(--space-xl) 0 0; border-bottom: 1px solid var(--line); }
.specs div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md);
  padding-block: var(--space-sm); border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.actions .btn-wa { flex: 1 1 100%; }
.actions .btn-quiet { flex: 0 1 auto; }
.desc { margin-top: var(--space-xl); }
.desc h2 { font-size: var(--text-2xl); font-weight: 800; line-height: 1.1; margin-bottom: var(--space-sm); }
.desc-body { white-space: pre-line; line-height: 1.65; max-width: 65ch; overflow-wrap: break-word; }

.others { margin-top: var(--section-gap-s); padding-top: var(--space-2xl); border-top: 1px solid var(--line); }
.others h2 { font-size: var(--text-section); font-weight: 800; line-height: 1; margin-bottom: var(--space-xl); }
@media (min-width: 75rem) { .others .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------- barra fixa no celular */

.buybar { display: none; }
@media (max-width: 59.99rem) {
  .buybar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    background: var(--asphalt);
    padding: var(--space-sm) max(var(--space-md), env(safe-area-inset-right)) calc(var(--space-sm) + env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left));
  }
  .buybar .btn { padding: 0 var(--space-md); }
  body.has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ tela cheia */

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; flex-direction: column; background: var(--lightbox); color: var(--on-dark);
}
.lightbox[hidden] { display: none; }
.lb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(var(--space-xs), env(safe-area-inset-top)) var(--space-sm) var(--space-xs) var(--space-md);
}
.lb-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-close, .lb-btn {
  display: grid; place-items: center; cursor: pointer;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--lightbox-btn); color: var(--on-dark);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.lb-close:hover, .lb-btn:hover { background: var(--asphalt-2); }
.lb-close:active, .lb-btn:active { transform: scale(0.96); }
.lb-track {
  flex: 1; min-height: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  outline: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.lb-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.lb-btn { position: absolute; top: calc(50% - 24px); }
.lb-prev { left: var(--space-md); }
.lb-next { right: var(--space-md); }
@media (hover: none) { .lb-btn { display: none; } }

/* ------------------------------------------------------------ rodapé */

.site-foot {
  background: var(--asphalt); color: var(--on-dark-muted); border-top: var(--stripe) solid var(--vcm-red);
  padding-block: var(--space-2xl) calc(var(--space-2xl) + env(safe-area-inset-bottom));
}
.foot-name img { height: 96px; width: auto; }
.foot-inner { display: grid; gap: var(--space-lg); }
.foot-name {
  margin: 0; color: var(--on-dark);
  font: 800 var(--text-display-s)/1 var(--font-cond); letter-spacing: var(--tracking-display);
  overflow-wrap: break-word; min-width: 0;
}
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding-top: var(--space-lg); border-top: 1px solid var(--asphalt-2);
}
.foot-facts p { margin: 0; }
/* Sem endereço e telefone no config.js: a marca e o WhatsApp numa linha só */
.site-foot-bare { padding-block: var(--space-xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
.foot-inner-bare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.foot-wa {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px;
  color: var(--on-dark); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.foot-wa:hover span { text-decoration: underline; }
.foot-wa:active { color: var(--on-dark-muted); }

/* ------------------------------------------------------------ aviso */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  max-width: min(36rem, calc(100% - var(--space-xl))); overflow-wrap: anywhere;
  padding: var(--space-sm) var(--space-md); border-radius: var(--r-s);
  background: var(--asphalt); color: var(--on-dark);
  opacity: 0; transform: translate(-50%, var(--space-sm)); pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

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