/* LMG Truck · Catálogo 2026 · Direção A / Faixa 44 · folha consolidada */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e2231a;
  --red-dark: #bc1913;
  --ink: #111214;
  --night: #0e0f11;
  --night-soft: #1a1b1e;
  --canvas: #f2f3f2;
  --surface: #ffffff;
  --surface-soft: #e9ebea;
  --muted: #5d6165;
  --muted-dark: #aeb2b5;
  --line: #c7cacc;
  --line-strong: #94989c;
  --line-dark: rgba(255, 255, 255, 0.24);
  --success: #087747;
  --whatsapp: #0d7540;
  --focus: #176ee8;
  --shell: 1560px;
  --header: 72px;
  --searchbar: 86px;
  --radius: 2px;
  --font: "Inter", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + var(--searchbar) + 12px);
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.topbar :focus-visible,
.finder :focus-visible,
.sheet :focus-visible {
  outline-color: #86b7ff;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow,
.sheet__eyebrow {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

/* Header and actions */

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: var(--header);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(14, 15, 17, 0.98);
  color: #fff;
}

.topbar__inner {
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand__copy strong,
.brand__copy > span {
  display: block;
}

.brand__copy strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.brand__copy > span {
  margin-top: 3px;
  color: #b9bdc0;
  font-size: 12px;
}

#catalogVersion {
  color: #fff;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.topbar__nav a,
.topbar__nav span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9dbdc;
  font-size: 14px;
  text-decoration: none;
}

.topbar__nav [aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px var(--red);
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.install-trigger {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #5d6165;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.install-trigger:hover {
  border-color: #fff;
}

.order-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 14px;
  border: 1px solid #5d6165;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.order-trigger:hover {
  border-color: #fff;
}

.order-trigger strong {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--red);
  font-size: 13px;
}

.connection-status {
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.whatsapp-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 66;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
}

.whatsapp-fab:hover {
  background: #095f33;
  transform: translateY(-3px);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.whatsapp-fab__bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-fab__phone {
  fill: currentColor;
}

body:has(.order-bar:not([hidden])) .whatsapp-fab {
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
}

/* Search band */

.finder {
  position: sticky;
  top: var(--header);
  z-index: 60;
  min-height: var(--searchbar);
  border-bottom: 1px solid #3f4246;
  background: var(--night);
  color: #fff;
}

.finder__inner {
  min-height: var(--searchbar);
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.finder__heading span,
.finder__heading h1 {
  display: block;
  margin: 0;
}

.finder__heading span {
  color: #9fa3a7;
  font-size: 12px;
}

.finder__heading h1 {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.search {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #72767a;
  background: #fff;
  color: var(--ink);
}

.search:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--focus);
}

.search__icon {
  text-align: center;
  color: var(--muted);
  font-size: 23px;
}

.search input {
  min-width: 0;
  min-height: 54px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
}

.search input::placeholder {
  color: #777b7f;
}

.search:has(input:disabled),
.search input:disabled {
  background: #dedfdf;
  color: #6f7376;
}

.search__clear {
  min-height: 44px;
  margin-right: 6px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.filter-toggle {
  min-width: 88px;
  min-height: 48px;
  border: 1px solid #75797d;
  background: transparent;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Primary layout */

.catalog-workspace {
  width: min(var(--shell), 100%);
  min-height: calc(100vh - var(--header) - var(--searchbar));
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 390px;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  background: var(--surface);
}

.catalog-rail {
  min-width: 0;
  padding: 20px 16px 48px;
  border-right: 1px solid var(--line);
  background: var(--canvas);
}

.catalog-center {
  min-width: 0;
  background: var(--surface);
}

/* Rail */

.quick-actions {
  display: grid;
  margin-bottom: 20px;
  border-top: 1px solid var(--line-strong);
}

.quick-action {
  min-height: 48px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.quick-action:hover {
  background: #fff;
}

.quick-action > span {
  color: var(--red);
  font-weight: 800;
  text-align: center;
}

.quick-action strong {
  font-size: 13px;
  line-height: 1.3;
}

.quick-action--urgent {
  color: #a61c16;
}

.vehicle-disclosure {
  border-bottom: 1px solid var(--line-strong);
}

.vehicle-disclosure > summary {
  display: none;
}

.vehicle-disclosure:not([open]) > .guided-flow {
  display: block;
}

.guided-flow {
  padding: 0 0 20px;
}

.guided-flow__header,
.cabins__header,
.exhaust-diagrams__header,
.results__header,
.reference-panel__header,
.cabin-detail__header,
.exhaust-diagram-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.guided-flow h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pilot-badge,
.truth-badge {
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.vehicle-picker,
.mode-picker {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.vehicle-card,
.mode-card,
.guided-back {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.vehicle-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
}

.vehicle-card--brand,
.vehicle-card--model-media {
  min-height: 58px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.vehicle-card:hover,
.mode-card:hover,
.vehicle-card[aria-current="true"],
.mode-card[aria-current="true"] {
  background: #fff;
}

.vehicle-card[aria-current="true"],
.mode-card[aria-current="true"] {
  box-shadow: inset 3px 0 var(--red);
}

.vehicle-card__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #f1f2f2;
  font-size: 10px;
  font-weight: 800;
}

.vehicle-card--brand .vehicle-card__mark,
.vehicle-card--model-media .vehicle-card__mark {
  width: 48px;
  height: 36px;
}

.vehicle-card__fallback {
  position: relative;
  z-index: 0;
}

.vehicle-card__picture,
.vehicle-card__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vehicle-card__picture img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.vehicle-card__mark.is-loaded .vehicle-card__picture img {
  opacity: 1;
}

.vehicle-card__copy strong,
.vehicle-card__copy span {
  display: block;
}

.vehicle-card__copy strong {
  font-size: 13px;
}

.vehicle-card__copy span,
.vehicle-card__status {
  color: var(--muted);
  font-size: 10px;
}

.guided-back {
  padding-inline: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.vehicle-selection__summary {
  display: grid;
  gap: 5px;
  padding: 12px 0;
}

.vehicle-selection__summary > span {
  color: var(--muted);
  font-size: 11px;
}

.vehicle-selection__summary > strong {
  font-size: 14px;
}

.mode-card {
  display: grid;
  gap: 3px;
  padding: 9px 8px;
}

.mode-card strong {
  font-size: 14px;
}

.mode-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.text-button {
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.catalog-nav,
.chapter-strip {
  padding-top: 20px;
}

.catalog-nav__label,
.chapter-strip__heading {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
}

.catalog-nav__label span,
.chapter-strip__heading span {
  font-size: 13px;
  font-weight: 800;
}

.catalog-nav__label small,
.chapter-strip__heading strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.brand-tabs,
.chapter-tabs,
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button:hover {
  border-color: var(--ink);
}

.tab-button[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Center sections */

.cabins,
.exhaust-kits,
.results {
  min-width: 0;
}

.cabins,
.exhaust-kits {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.cabins__header h2,
.exhaust-diagrams__header h3,
.cabin-detail__header h2,
.exhaust-diagram-detail__header h3,
.results__header h2 {
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cabins__header h2,
.results__header h2 {
  font-size: 28px;
}

.cabins__header > p,
.exhaust-diagrams__header > strong {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cabin-options,
.exhaust-diagram-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.cabin-option,
.exhaust-diagram-option {
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.cabin-option:hover,
.exhaust-diagram-option:hover,
.cabin-option[aria-current="true"],
.exhaust-diagram-option[aria-current="true"] {
  background: #f0f1f0;
}

.cabin-option[aria-current="true"],
.exhaust-diagram-option[aria-current="true"] {
  box-shadow: inset 3px 0 var(--red);
}

.cabin-option__media,
.exhaust-diagram-option__media {
  width: 96px;
  height: 102px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.cabin-option__media img,
.exhaust-diagram-option__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cabin-option__body,
.exhaust-diagram-option__body {
  min-width: 0;
  align-self: center;
}

.cabin-option__body > span,
.cabin-option__body strong,
.cabin-option__body small,
.exhaust-diagram-option__body strong,
.exhaust-diagram-option__body span,
.exhaust-diagram-option__body small {
  display: block;
}

.cabin-option__body > span,
.exhaust-diagram-option__body small {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.cabin-option__body strong,
.exhaust-diagram-option__body strong {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.cabin-option__body small,
.exhaust-diagram-option__body span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.cabin-detail,
.exhaust-diagram-detail {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.cabin-detail__header p,
.exhaust-diagram-detail__header p,
.exhaust-diagrams__header p {
  max-width: 62ch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cabin-workspace,
.exhaust-diagram-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  margin-top: 20px;
}

.diagram-viewer,
.reference-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.diagram-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
}

.diagram-toolbar output {
  min-width: 52px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}

.diagram-stage {
  height: min(58vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  touch-action: manipulation;
  background: #f5f6f5;
  cursor: grab;
}

.diagram-stage:active {
  cursor: grabbing;
}

.diagram-stage img {
  flex: none;
  max-width: none;
  height: auto;
  margin: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.diagram-hint {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.diagram-viewer:fullscreen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
}

.diagram-viewer:fullscreen .diagram-stage {
  height: auto;
}

.reference-panel {
  display: flex;
  flex-direction: column;
  max-height: min(68vh, 720px);
}

.reference-panel__header {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.reference-panel__header h3 {
  margin: 0;
  font-size: 17px;
}

.reference-panel__header > strong {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.reference-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 10px;
  border: 1px solid var(--line-strong);
}

.reference-search input {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
}

.reference-search:focus-within {
  box-shadow: 0 0 0 3px var(--focus);
}

.reference-search button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

.reference-list {
  min-height: 0;
  overflow: auto;
}

.reference-row,
.exhaust-component-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 74px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.reference-row[aria-current="true"],
.exhaust-component-row[aria-current="true"] {
  background: #f2efed;
  box-shadow: inset 3px 0 var(--red);
}

.reference-row__callout,
.exhaust-component-row__code {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 800;
  cursor: pointer;
}

.reference-row__content,
.exhaust-component-row__content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.reference-row__content strong,
.reference-row__content span,
.reference-row__content small,
.exhaust-component-row__content strong,
.exhaust-component-row__content span,
.exhaust-component-row__content small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-row__content strong,
.exhaust-component-row__content strong {
  font-size: 12px;
}

.reference-row__content span,
.reference-row__content small,
.exhaust-component-row__content span,
.exhaust-component-row__content small {
  color: var(--muted);
  font-size: 10px;
}

.reference-row__action,
.exhaust-component-row__action {
  min-height: 44px;
  align-self: center;
  margin: 4px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.module-status,
.reference-empty,
.exhaust-diagram-empty {
  padding: 22px;
  border: 1px solid #e0b2af;
  background: #fff4f3;
  color: #7c211c;
}

.module-status h3,
.reference-empty h3,
.exhaust-diagram-empty h3 {
  margin: 0;
  font-size: 17px;
}

.module-status p,
.reference-empty p,
.exhaust-diagram-empty p {
  margin: 7px 0 0;
}

/* Results and compact product rows */

.results__header {
  min-height: 92px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.results__count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.product-filters {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #f7f8f7;
}

.product-filters__heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.product-filters__heading h3,
.product-filters__heading p {
  margin: 0;
}

.product-filters__heading h3 {
  font-size: 16px;
}

.product-filters__heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.product-filters__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-filters__close {
  display: none;
}

.category-filters {
  margin-bottom: 12px;
}

.category-filter.tab-button {
  min-height: 44px;
}

.product-filters__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
}

.product-filters__selects label,
.form-grid label,
.form-section > label,
.cart-context__fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-filters__selects select,
.form-grid input,
.form-grid select,
.form-section > label input,
.cart-context__fields input {
  min-width: 0;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.product-grid {
  min-width: 0;
}

.product-card {
  min-height: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-card:hover,
.product-card.is-active {
  background: #f1f2f1;
}

.product-card.is-active {
  box-shadow: inset 4px 0 var(--red);
}

.product-card__open {
  min-width: 0;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.product-card__media {
  width: 100px;
  height: 98px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e4e4;
  background: #fff;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__media.is-missing::after {
  content: "Foto indisponível";
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.product-card__body {
  min-width: 0;
  display: grid;
  align-content: center;
}

.product-card__codes {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto minmax(0, auto);
  justify-content: start;
  gap: 3px 8px;
  align-items: baseline;
}

.product-card__code-label {
  color: var(--muted);
  font-size: 10px;
}

.product-card__code-value {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__code-value--original {
  color: var(--red);
  font-size: 14px;
}

.product-card h3 {
  margin: 7px 0 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__application {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__add {
  min-height: 44px;
  align-self: center;
  margin-right: 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-card__add:hover {
  background: var(--ink);
  color: #fff;
}

.skeleton-card {
  min-height: 120px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #eceeed 20%, #f6f7f6 45%, #eceeed 70%);
  background-size: 220% 100%;
  animation: skeleton 1.4s linear infinite;
}

@keyframes skeleton {
  to { background-position: -220% 0; }
}

.catalog-pagination {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.catalog-pagination span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state,
.error-state {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 48px;
}

.empty-state > span {
  color: var(--red);
  font-size: 32px;
}

.empty-state h3,
.error-state h3 {
  max-width: 18ch;
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.empty-state p,
.error-state p {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.empty-state > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.error-state > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Buttons */

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button--red {
  background: var(--red);
  color: #fff;
}

.button--red:hover {
  background: var(--red-dark);
}

.button--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.button--whatsapp:hover {
  background: #095c31;
}

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--ghost {
  border-color: currentColor;
}

.button--wide {
  width: 100%;
}

.button--compact {
  min-height: 44px;
  padding: 6px 9px;
  font-size: 12px;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Product: the same dialog is panel on wide screens and modal on mobile. */

.sheet,
.install-dialog {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.sheet::backdrop,
.install-dialog::backdrop {
  background: rgba(5, 6, 8, 0.72);
}

.sheet__frame {
  min-height: 100%;
  background: #fff;
}

.sheet__header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.sheet__header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.sheet__body {
  padding: 18px;
}

.product-sheet {
  width: min(100%, 560px);
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  overflow: auto;
}

.product-sheet:focus {
  outline: 0;
}

.product-sheet__empty {
  min-height: calc(100vh - var(--header) - var(--searchbar));
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 34px;
  background: var(--surface-soft);
}

.product-sheet__empty > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.product-sheet__empty > strong {
  max-width: 11ch;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.product-sheet__empty > p {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-back-label {
  display: none;
}

.product-detail__media {
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail__identity {
  margin-top: 18px;
}

.product-detail__identity h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.product-detail__identity p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.confirm-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 12px;
  border-left: 3px solid var(--red);
  background: #f7eceb;
}

.confirm-note strong {
  font-size: 13px;
}

.confirm-note span,
.trust-line {
  color: var(--muted);
  font-size: 11px;
}

.product-facts {
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.product-facts > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.product-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.product-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.form-section {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid--two {
  grid-template-columns: 0.65fr 1.35fr;
}

.sheet__actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.trust-line {
  margin: 4px 0 0;
  text-align: center;
}

/* Order and install dialogs */

.order-sheet {
  width: min(620px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
}

.order-editor {
  padding-bottom: 120px;
}

.cart-context {
  padding: 14px;
  border: 1px solid var(--line);
  background: #f5f6f5;
}

.cart-context__heading {
  display: grid;
  gap: 3px;
}

.cart-context__heading span {
  color: var(--muted);
  font-size: 11px;
}

.cart-context__heading strong {
  font-size: 16px;
}

.cart-context__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-context__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.input-plate {
  text-transform: uppercase;
}

.cart-context__stopped {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.cart-context__stopped input {
  width: 22px;
  height: 22px;
}

.cart-items {
  margin-top: 20px;
}

.cart-items__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-items__header h3,
.cart-items__header small {
  margin: 0;
}

.order-item,
.order-empty {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.order-empty {
  color: var(--muted);
}

.order-item__heading strong {
  font-size: 14px;
}

.order-item__reference {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.order-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 44px 42px 44px;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.quantity-stepper button {
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.quantity-stepper strong {
  text-align: center;
}

.order-item__remove {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.order-total {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  padding: 16px;
  background: var(--ink);
  color: #fff;
}

.order-total span,
.order-total small {
  color: #b8bbbe;
  font-size: 11px;
}

.order-total strong {
  font-size: 22px;
}

.sheet__actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 0;
  background: #fff;
}

.install-dialog {
  width: min(520px, calc(100% - 28px));
  max-width: none;
}

.install-dialog__panel > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.install-dialog__panel > header span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.install-dialog__panel h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.install-dialog__body {
  padding: 18px;
}

.install-dialog__note {
  padding: 12px;
  background: var(--surface-soft);
}

/* Footer, persistent List and toast */

.site-footer {
  padding: 34px 0 110px;
  border-top: 1px solid #35383b;
  background: var(--night);
  color: #fff;
}

.site-footer strong {
  font-size: 18px;
}

.site-footer p {
  max-width: 88ch;
  margin: 8px 0 0;
  color: #b8bbbe;
  font-size: 13px;
}

.order-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 65;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.order-bar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.order-bar__inner > div {
  display: grid;
}

.order-bar__inner span {
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 180;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 13px 16px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.filter-scrim {
  display: none;
}

@media (min-width: 1280px) {
  .filter-toggle {
    display: none;
  }

  .product-sheet:not(:modal)[open] {
    position: sticky;
    inset: auto;
    top: calc(var(--header) + var(--searchbar));
    grid-column: 3;
    align-self: start;
    width: 100%;
    height: calc(100vh - var(--header) - var(--searchbar));
    max-height: none;
    margin: 0;
    overflow: auto;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .catalog-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.has-active-product .catalog-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  }

  body.has-active-product .catalog-rail {
    display: none;
  }

  .product-sheet:not(:modal)[open] {
    position: sticky;
    inset: auto;
    top: calc(var(--header) + var(--searchbar));
    grid-column: 2;
    align-self: start;
    width: 100%;
    height: calc(100vh - var(--header) - var(--searchbar));
    max-height: none;
    margin: 0;
    overflow: auto;
    border-left: 1px solid var(--line);
  }

  .finder__inner {
    grid-template-columns: minmax(150px, 0.36fr) minmax(300px, 1fr) auto;
  }

  .cabin-workspace,
  .exhaust-diagram-workspace {
    grid-template-columns: 1fr;
  }

  .reference-panel {
    max-height: 620px;
  }

  .cabin-options,
  .exhaust-diagram-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .topbar__nav {
    display: none;
  }

  .finder__heading {
    display: none;
  }

  .finder__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .product-card__add {
    margin-right: 10px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  :root {
    --header: 64px;
    --searchbar: 72px;
  }

  html {
    scroll-padding-top: calc(var(--header) + var(--searchbar) + 8px);
  }

  .shell {
    width: calc(100% - 28px);
  }

  .vehicle-card--brand,
  .vehicle-card--model-media {
    min-height: 64px;
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .vehicle-card--brand .vehicle-card__mark,
  .vehicle-card--model-media .vehicle-card__mark {
    width: 56px;
    height: 42px;
  }

  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .install-trigger {
    width: 44px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .install-trigger::before {
    content: "↓";
    color: #fff;
    font-size: 20px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand {
    min-height: 44px;
  }

  .brand__copy strong {
    font-size: 15px;
  }

  .brand__copy > span {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .order-trigger {
    min-width: 86px;
    justify-content: center;
  }

  .order-trigger__icon,
  .order-trigger > span:not(.order-trigger__icon) {
    display: none;
  }

  .finder {
    top: var(--header);
  }

  .finder__inner {
    min-height: var(--searchbar);
    gap: 8px;
  }

  .search {
    min-height: 54px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .search input {
    min-height: 52px;
    font-size: 16px;
  }

  .search input::placeholder {
    color: #666a6e;
  }

  .filter-toggle {
    min-width: 74px;
    min-height: 54px;
  }

  .catalog-workspace {
    grid-template-columns: 1fr;
    border-inline: 0;
  }

  .catalog-rail {
    padding: 14px 14px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
  }

  .quick-action {
    min-height: 50px;
    border-right: 1px solid var(--line);
  }

  .quick-action--urgent {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .vehicle-disclosure > summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    font-weight: 800;
    cursor: pointer;
  }

  .vehicle-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .vehicle-disclosure:not([open]) > .guided-flow {
    display: none;
  }

  .vehicle-disclosure[open] > summary span {
    transform: rotate(45deg);
  }

  .guided-flow {
    padding-top: 16px;
  }

  .catalog-nav,
  .chapter-strip {
    padding-top: 14px;
  }

  .brand-tabs,
  .chapter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .brand-tabs .tab-button,
  .chapter-tabs .tab-button {
    flex: 0 0 auto;
  }

  .cabins,
  .exhaust-kits {
    padding: 22px 14px;
  }

  .cabins__header h2,
  .results__header h2 {
    font-size: 24px;
  }

  .cabin-options,
  .exhaust-diagram-options {
    grid-template-columns: 1fr;
  }

  .cabin-option,
  .exhaust-diagram-option {
    min-height: 116px;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .cabin-option__media,
  .exhaust-diagram-option__media {
    width: 82px;
    height: 90px;
  }

  .cabin-workspace,
  .exhaust-diagram-workspace {
    grid-template-columns: 1fr;
  }

  .diagram-stage {
    height: 54vh;
    min-height: 320px;
  }

  .reference-panel {
    max-height: none;
  }

  .reference-list {
    max-height: 520px;
  }

  .results__header {
    min-height: 78px;
    padding: 14px;
  }

  .product-filters:not([hidden]) {
    display: none;
  }

  body.has-filter-sheet {
    overflow: hidden;
  }

  body.has-filter-sheet .product-filters:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 130;
    max-height: 82dvh;
    display: block;
    overflow: auto;
    padding: 20px 16px max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: #fff;
  }

  body.has-filter-sheet .filter-scrim {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(5, 6, 8, 0.66);
  }

  .product-filters__close {
    display: inline-grid;
  }

  .category-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .category-filter.tab-button {
    min-width: 0;
    min-height: 46px;
    white-space: normal;
  }

  .product-filters__selects {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 114px;
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .product-card__open {
    min-height: 113px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
    padding: 8px 8px 8px 12px;
  }

  .product-card__media {
    width: 76px;
    height: 82px;
  }

  .product-card__codes {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 5px;
  }

  .product-card__code-label:nth-of-type(2),
  .product-card__code-value--internal {
    display: none;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .product-card__application {
    max-width: 100%;
    font-size: 12px;
  }

  .product-card__add {
    width: 44px;
    min-height: 44px;
    justify-self: start;
    margin: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .product-card__add::before {
    content: "+";
    color: var(--ink);
    font-size: 24px;
  }

  .product-card__add:hover::before {
    color: #fff;
  }

  .skeleton-card {
    min-height: 114px;
  }

  .catalog-pagination {
    flex-direction: column;
    gap: 8px;
  }

  .empty-state,
  .error-state {
    min-height: 300px;
    padding: 32px 18px;
  }

  .product-sheet:modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
  }

  .product-sheet:modal .sheet__frame {
    min-height: 100dvh;
  }

  .product-sheet:modal .sheet__header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
  }

  .product-sheet__back {
    width: auto;
    padding-inline: 10px;
    border-color: var(--ink);
    font-size: 13px;
    font-weight: 800;
  }

  .product-back-label {
    display: inline;
  }

  .product-close-mark {
    display: none;
  }

  .product-detail__media {
    max-height: 330px;
  }

  .form-grid--two,
  .cart-context__fields {
    grid-template-columns: 1fr;
  }

  .sheet__actions {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .order-sheet {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 100px;
  }

  .order-bar__inner {
    width: calc(100% - 28px);
  }
}

@media (max-width: 420px) {
  .quick-action strong {
    font-size: 12px;
  }

  .results__count {
    max-width: 120px;
    white-space: normal;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
