/* ==========================================================================
   AEXPARTS — sistema visual
   Premium Automotive E-commerce
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #2b3138;
  --navy: #082b63;
  --navy-deep: #071a35;
  --navy-500: #14458f;
  --orange: #f58220;
  --orange-dark: #d96c0e;
  --gold: #f5b51b;
  --gray-50: #fafbfc;
  --gray-100: #f5f5f5;
  --gray-150: #eef0f3;
  --line: #e2e6ec;
  --line-strong: #cdd4de;
  --muted: #5b6472;
  --muted-soft: #808a99;
  --green: #12805c;
  --green-soft: #e8f5f0;
  --red: #c0392b;

  --font-head: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 53, .06);
  --shadow-md: 0 6px 24px rgba(7, 26, 53, .09);
  --shadow-lg: 0 18px 50px rgba(7, 26, 53, .14);
  --header-h: 168px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
/* O clip precisa estar na raiz, e não só no body: o menu lateral do mobile
   é `position: fixed` e escaparia do clip do body, criando arraste lateral.
   `clip` (e não `hidden`) preserva o `position: sticky` do header. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
/* o [hidden] do navegador é regra de user-agent e perde para qualquer classe
   com display próprio (.eyebrow, .btn...). Sem o !important, o bloco do idioma
   inativo continua na tela ao lado do ativo. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.14;
  letter-spacing: -.015em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* O reset acima é para os menus e as listas de navegação, mas apaga também as
   listas escritas no Elementor: uma lista do cliente sai sem marcador e sem
   recuo, indistinguível de parágrafos soltos. Aqui a lista volta a ser lista. */
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol { margin: 0 0 1em; padding-left: 22px; }
.elementor-widget-text-editor ul { list-style: disc; }
.elementor-widget-text-editor ol { list-style: decimal; }
.elementor-widget-text-editor li { margin-bottom: 6px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--gray { background: var(--gray-50); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 24px; }

.section-head { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 10px; display: block;
}
.eyebrow--light { color: var(--gold); }
h1.display { font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; letter-spacing: -.02em; }
h2.title { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; }
h3.subtitle { font-size: clamp(18px, 1.6vw, 21px); }
.lead { font-size: 17px; color: var(--muted); }

/* --------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .07em;
  text-transform: uppercase; padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .16s, color .16s, border-color .16s;
  text-align: center; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-500); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 12px; }
.btn--lg { padding: 17px 34px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow {
  font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--orange); padding-bottom: 3px;
}
.link-arrow:hover { color: var(--orange); }

/* --------------------------------------------------------------- formulários */
.field { display: block; margin-bottom: 14px; }
.field > span:not(.field-error), .label {
  display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235b6472' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px;
  padding-right: 36px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8, 43, 99, .1); outline: none;
}
.select:disabled { background-color: var(--gray-100); color: var(--muted-soft); cursor: not-allowed; }
.textarea { min-height: 120px; resize: vertical; }
.field .field-error {
  display: none; color: var(--red); font-size: 12.5px; margin-top: 5px;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500;
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--red); }
.field.is-invalid > .field-error { display: block; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-note { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------- topbar */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .82); font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
.topbar a:hover { color: #fff; }
.topbar__phone { font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: .02em; }
.mini-select {
  background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  border-radius: 3px; padding: 4px 24px 4px 9px; font-size: 12px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 9px; cursor: pointer;
}
.mini-select option { color: var(--ink); }

/* --------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); }
.header-main { border-bottom: 1px solid var(--line); }
.header-main .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 32px; min-height: 84px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 34px; letter-spacing: -.02em; color: var(--navy-deep); }
.logo__name b { color: var(--orange); font-weight: 800; }
.logo__tag { display: none; font-size: 9.5px; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.header-search { display: flex; position: relative; }
.header-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font-size: 14.5px;
  border: 2px solid var(--navy); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.header-search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--navy); }
.header-search button {
  height: 48px; padding: 0 26px; background: var(--navy); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; letter-spacing: .08em; border-radius: 0 var(--radius) var(--radius) 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.header-search button:hover { background: var(--navy-500); }
.header-search button svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink); position: relative;
}
.header-action:hover { background: var(--gray-100); }
.header-action svg { width: 24px; height: 24px; flex: none; color: var(--navy); }
.header-action__label { display: flex; flex-direction: column; line-height: 1.25; }
.header-action__label small { font-size: 11px; color: var(--muted); }
.header-action__label strong { font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.cart-count {
  position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-head);
}

/* --------------------------------------------------------------- nav */
.header-nav { background: #fff; border-bottom: 1px solid var(--line); }
.header-nav .wrap { display: flex; align-items: stretch; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; min-height: 44px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.2px; letter-spacing: .045em;
  text-transform: uppercase; color: var(--ink); border-bottom: 3px solid transparent; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: var(--navy); border-bottom-color: var(--orange); }
.nav-link--all { background: var(--navy); color: #fff; padding-inline: 18px; margin-right: 10px; }
/* precisa vir depois de `.nav-link.is-active`, senão o texto do botão azul
   fica azul sobre azul e o rótulo some na própria página de categorias */
.nav-link--all:hover, .nav-link--all.is-active { background: var(--navy-500); color: #fff; border-bottom-color: var(--gold); }
.nav-link--accent { color: var(--orange); }
.nav-link svg { width: 16px; height: 16px; }
.nav-item { position: relative; display: flex; }

.mega {
  position: absolute; top: 100%; left: 0; width: min(760px, 92vw); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px; z-index: 70;
  display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; }
.mega a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius); }
.mega a:hover { background: var(--gray-100); color: var(--navy); }
.mega a img { width: 30px; height: 30px; flex: none; }
.mega a span { font-size: 14px; font-weight: 500; }
.mega__foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }

.nav-toggle { display: none; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.nav-toggle svg { width: 22px; height: 22px; }

/* drawer mobile */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(7, 26, 53, .5); z-index: 90; opacity: 0;
  pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); background: #fff; z-index: 95;
  transform: translateX(-100%); transition: transform .24s ease; display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer nav { padding: 8px 0 20px; }
.drawer nav a {
  display: block; padding: 13px 20px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--gray-150);
}
.drawer nav a:hover { background: var(--gray-100); color: var(--navy); }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* --------------------------------------------------------------- hero */
.hero { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 12% 8%, rgba(20, 69, 143, .55), transparent 62%),
    linear-gradient(180deg, #071a35 0%, #061529 100%);
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(245, 130, 32, .16), transparent 62%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px;
  align-items: center; padding: 60px 0 40px;
}
.hero h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); text-transform: uppercase; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__types {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 20px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.hero__types span { border: 1px solid rgba(255, 255, 255, .26); padding: 6px 12px; border-radius: 999px; color: rgba(255, 255, 255, .9); }
.hero__text { color: rgba(255, 255, 255, .74); font-size: 16.5px; max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; }
.hero__stats div strong { display: block; font-family: var(--font-head); font-size: 26px; color: #fff; line-height: 1; }
.hero__stats div span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.hero__art { position: relative; }
.hero__art img { width: 100%; }

/* faixa de peças do hero — a "vitrine" da campanha */
.hero__strip { border-top: 1px solid rgba(255, 255, 255, .13); padding: 26px 0 40px; }
.hero__strip-label {
  display: block; font-family: var(--font-head); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 16px;
}
.hero__strip ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.hero__strip li { min-width: 0; }
.hero__strip a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); transition: background .16s, border-color .16s, transform .16s;
}
.hero__strip a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(245, 130, 32, .6); transform: translateY(-2px); }
.hero__strip img { height: 66px; width: auto; object-fit: contain; }
.hero__strip span {
  font-family: var(--font-head); font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72); text-align: center;
}

/* --------------------------------------------------------------- finder */
.finder {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange); overflow: hidden; color: var(--ink-soft);
}
.finder__head { padding: 20px 24px 0; }
.finder__head h2 { font-size: 21px; text-transform: uppercase; margin-bottom: 2px; }
.finder__head p { font-size: 13px; color: var(--muted); margin: 0; }
.finder__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 24px 0; }
.finder__tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 6px;
  border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-head);
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  text-align: center; transition: .15s;
}
.finder__tab svg { width: 22px; height: 22px; }
.finder__tab:hover { border-color: var(--navy); color: var(--navy); }
.finder__tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.finder__panel { padding: 18px 24px 24px; }
.finder__panel[hidden] { display: none; }
.finder__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.finder__fields .field { margin: 0; }
.finder__fields .field--full { grid-column: 1 / -1; }
.finder__hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.finder__hint b { color: var(--ink); }
.finder__examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 12px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); background: #fff; transition: .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.finder__msg { margin-top: 12px; font-size: 13px; padding: 11px 14px; border-radius: var(--radius); display: none; }
.finder__msg.is-error { display: block; background: #fdeceb; color: var(--red); border: 1px solid #f5c6c2; }
.finder__msg.is-ok { display: block; background: var(--green-soft); color: var(--green); border: 1px solid #bfe3d6; }
.finder__msg.is-info { display: block; background: #eef3fb; color: var(--navy); border: 1px solid #cddcf2; }
.finder--page { border-top-color: var(--orange); }

/* --------------------------------------------------------------- benefícios */
.benefits { background: var(--white); border-bottom: 1px solid var(--line); }
.benefits__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.benefit { padding: 26px 20px; border-right: 1px solid var(--line); }
.benefit:last-child { border-right: 0; }
.benefit svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 12px; }
.benefit h3 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 5px; }
.benefit p { font-size: 13px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; position: relative; transition: border-color .16s, box-shadow .16s;
}
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; padding: 18px; background: var(--gray-50); border-bottom: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 168px; object-fit: contain; }
.product-card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card__brand { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product-card__name { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 10px; letter-spacing: -.005em; }
.product-card__name:hover { color: var(--navy); }
.product-card__meta { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.product-card__meta b { color: var(--ink-soft); font-weight: 600; }
.product-card__fit {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green);
  background: var(--green-soft); border-radius: 3px; padding: 5px 9px; margin-bottom: 12px; align-self: flex-start;
}
.product-card__fit svg { width: 14px; height: 14px; }
.product-card__foot { margin-top: auto; }
.product-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.product-card__price strong { font-family: var(--font-head); font-size: 21px; color: var(--ink); }
.product-card__price s { font-size: 13px; color: var(--muted-soft); }
.product-card__alt { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.product-card__actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }

.tag {
  font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 3px; display: inline-block;
}
.tag--oem { background: var(--navy); color: #fff; }
.tag--aftermarket { background: var(--gold); color: #3a2a00; }
.tag--usada { background: #6b7480; color: #fff; }
.tag--reman { background: var(--green); color: #fff; }
.tag--off { background: var(--orange); color: #fff; }
.stock { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--low { color: var(--orange-dark); }
.stock--out { color: var(--muted); }

/* categoria / marca cards */
.cat-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; background: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; transition: .16s; min-height: 100%;
}
.cat-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.cat-card img { width: 46px; height: 46px; }
.cat-card h3 { font-size: 14.5px; text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.cat-card span:not([class]) { font-size: 12.5px; color: var(--muted); }
.cat-card__more { margin-top: auto; font-family: var(--font-head); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--orange); }

.brand-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; transition: .16s; min-height: 104px;
}
.brand-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.brand-card strong { font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-deep); }
.brand-card span { font-size: 11.5px; color: var(--muted); }

/* cartão de marca de peça: só a logomarca, sem contagem. Enquanto o arquivo
   oficial não chega, o wordmark na cor da marca ocupa o mesmo lugar. */
.brand-card--logo { min-height: 96px; padding: 20px 14px; }
.brand-logo { max-width: 100%; max-height: 40px; object-fit: contain; }
.brand-card .brand-logo--text {
  font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.1;
  letter-spacing: -.01em; text-transform: uppercase; text-align: center; word-break: break-word;
}
.brand-card--logo:hover .brand-logo { filter: none; }
@media (max-width: 640px) { .brand-card .brand-logo--text { font-size: 14px; } }

/* --------------------------------------------------------------- página de busca */
.page-head { background: var(--gray-50); border-bottom: 1px solid var(--line); padding: 26px 0; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--line-strong); }
.page-head h1 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--muted); }

.vehicle-banner {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px;
}
.vehicle-banner__info { display: flex; align-items: center; gap: 14px; }
.vehicle-banner svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.vehicle-banner strong { display: block; font-family: var(--font-head); font-size: 17px; letter-spacing: .01em; }
.vehicle-banner span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.vehicle-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.search-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 32px; align-items: start; padding: 34px 0 72px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: sticky; top: calc(var(--header-h) + 12px); }
.filters__head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.filters__clear { font-size: 12px; color: var(--orange); font-weight: 600; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.filter-group__btn svg { width: 13px; height: 13px; transition: transform .18s; color: var(--muted); }
.filter-group[data-open="false"] .filter-group__btn svg { transform: rotate(-90deg); }
.filter-group[data-open="false"] .filter-group__body { display: none; }
.filter-group__body { padding: 0 16px 15px; max-height: 260px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.check span { flex: 1; }
.check small { color: var(--muted-soft); font-size: 12px; }
.price-range { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.price-range .input { padding: 8px 10px; font-size: 13.5px; }

.results__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.results__count { font-size: 14px; color: var(--muted); }
.results__count b { color: var(--ink); font-weight: 700; }
.results__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results__tools .select { width: auto; padding: 9px 34px 9px 12px; font-size: 13.5px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 7px; background: var(--gray-100); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px;
}
.active-filter button { color: var(--muted); font-size: 15px; line-height: 1; }
.active-filter button:hover { color: var(--red); }
.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state svg { width: 46px; height: 46px; color: var(--line-strong); margin: 0 auto 16px; }
.empty-state h3 { font-size: 19px; text-transform: uppercase; }
.empty-state p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.filters-toggle { display: none; }

/* --------------------------------------------------------------- produto */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding: 34px 0 20px; align-items: start; }
.gallery__main {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray-50);
  padding: 30px; display: grid; place-items: center; position: relative;
}
.gallery__main img { width: 100%; height: 400px; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb { width: 78px; height: 78px; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; background: #fff; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.pdp__flags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pdp h1 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.pdp__specs { border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
.pdp__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 15px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pdp__specs div:last-child { border-bottom: 0; }
.pdp__specs dt, .pdp__specs span:first-child { color: var(--muted); }
.pdp__specs b { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pdp__price strong { font-family: var(--font-head); font-size: 36px; color: var(--ink); line-height: 1; }
.pdp__price s { color: var(--muted-soft); font-size: 17px; }
.pdp__price-alt { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.pdp__buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 18px 0 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); height: 50px; }
.qty button { width: 42px; height: 100%; font-size: 19px; color: var(--navy); }
.qty button:hover { background: var(--gray-100); }
.qty input { width: 48px; height: 100%; text-align: center; border: 0; border-inline: 1px solid var(--line); font-weight: 700; font-family: var(--font-head); }
.pdp__buy .btn { height: 50px; }
.pdp__ship { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; margin-top: 18px; }
.pdp__ship div { display: flex; gap: 11px; font-size: 13.5px; align-items: flex-start; }
.pdp__ship svg { width: 19px; height: 19px; color: var(--navy); flex: none; margin-top: 1px; }

.fitment-banner {
  border-radius: var(--radius); padding: 15px 18px; display: flex; gap: 13px; align-items: flex-start;
  font-size: 14px; margin-bottom: 18px;
}
.fitment-banner svg { width: 21px; height: 21px; flex: none; margin-top: 1px; }
.fitment-banner--ok { background: var(--green-soft); color: var(--green); border: 1px solid #bfe3d6; }
.fitment-banner--no { background: #fdeceb; color: var(--red); border: 1px solid #f5c6c2; }
.fitment-banner--neutral { background: #eef3fb; color: var(--navy); border: 1px solid #cddcf2; }
.fitment-banner strong { display: block; font-family: var(--font-head); }
.fitment-banner a { text-decoration: underline; }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; }
.tabs button {
  padding: 14px 20px; font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--orange); }
.tab-panel { padding: 28px 0 0; }
.tab-panel[hidden] { display: none; }

.data-table { font-size: 14px; }
.data-table th {
  text-align: left; font-family: var(--font-head); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: var(--gray-100);
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 1px solid var(--line-strong); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table .is-match td { background: #f0f8f4; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.oem-list { display: flex; flex-wrap: wrap; gap: 8px; }
.oem-list li {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 7px 12px; background: var(--gray-50);
}

/* --------------------------------------------------------------- carrinho / checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 32px; align-items: start; padding: 34px 0 72px; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: var(--gray-50); }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item h3 { font-size: 15px; margin-bottom: 5px; }
.cart-item__meta { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.cart-item__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item__right strong { font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.cart-item .qty { height: 38px; }
.cart-item .qty button { width: 32px; font-size: 16px; }
.cart-item .qty input { width: 40px; }
.cart-item__remove { font-size: 12.5px; color: var(--muted); }
.cart-item__remove:hover { color: var(--red); }

.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 12px); background: #fff; }
.summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.summary__row span:last-child { font-weight: 600; color: var(--ink); }
.summary__total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.summary__total strong { font-family: var(--font-head); font-size: 25px; color: var(--ink); }
.summary__note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.summary .btn { margin-top: 16px; }

.steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); flex: 1; min-width: 160px;
}
.step b { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-150); color: var(--muted); display: grid; place-items: center; font-size: 12px; flex: none; }
.step.is-active { border-color: var(--navy); color: var(--navy); }
.step.is-active b { background: var(--navy); color: #fff; }
.step.is-done b { background: var(--green); color: #fff; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 32px; align-items: start; padding: 34px 0 72px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; margin-bottom: 20px; }
.panel h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.pay-option:hover { border-color: var(--line-strong); }
.pay-option input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; }
.pay-option strong { display: block; font-family: var(--font-head); font-size: 14px; }
.pay-option small { color: var(--muted); font-size: 12.5px; }
.pay-option:has(input:checked) { border-color: var(--navy); background: #f7f9fd; }
.order-done { text-align: center; padding: 60px 20px; max-width: 620px; margin-inline: auto; }
.order-done svg { width: 66px; height: 66px; color: var(--green); margin: 0 auto 20px; }
.order-code { font-family: var(--font-head); font-size: 24px; letter-spacing: .06em; color: var(--navy); background: var(--gray-100); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px; margin: 20px 0; }

/* --------------------------------------------------------------- blocos institucionais */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.about-facts div { border-left: 3px solid var(--orange); padding-left: 14px; }
.about-facts strong { display: block; font-family: var(--font-head); font-size: 26px; color: var(--ink); line-height: 1.1; }
.about-facts span { font-size: 12.5px; color: var(--muted); }

.b2b { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.b2b::after { content: ""; position: absolute; left: -140px; bottom: -180px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(245, 181, 27, .14), transparent 62%); }
.b2b .wrap { position: relative; z-index: 2; }
.b2b h2 { color: #fff; }
.b2b p { color: rgba(255, 255, 255, .74); }
.b2b__list { display: grid; gap: 12px; margin: 22px 0 28px; }
.b2b__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, .86); }
.b2b__list svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 2px; }
.b2b-form { background: #fff; border-radius: var(--radius-lg); padding: 26px; color: var(--ink-soft); box-shadow: var(--shadow-lg); }
.b2b-form h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.b2b-form > p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.testimonial { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; color: var(--gold); }
.testimonial p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; flex: none; }
.testimonial__who strong { display: block; font-family: var(--font-head); font-size: 14px; }
.testimonial__who span:not([class]) { font-size: 12.5px; color: var(--muted); }

.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.info-card svg { width: 26px; height: 26px; color: var(--orange); margin-bottom: 12px; }
.info-card h3 { font-size: 15px; text-transform: uppercase; }
.info-card p { font-size: 14px; color: var(--muted); margin: 0; }
.info-card a { color: var(--navy); font-weight: 600; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq summary {
  padding: 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--orange); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 14.5px; }

.steps-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: flow; }
.steps-flow div { position: relative; padding-top: 44px; }
.steps-flow div::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-head); font-size: 26px; font-weight: 800;
  color: var(--orange); line-height: 1;
}
.steps-flow h3 { font-size: 15px; text-transform: uppercase; }
.steps-flow p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- footer */
/* Mira o id, que é o que o footer.php escreve. A classe .site-footer não serve
   aqui por duas razões: não existe no HTML — a regra nunca casava e o rodapé
   ficava sem fundo, com os títulos brancos invisíveis — e é a classe do rodapé
   do Hello Elementor, que a limita à largura do container. */
#site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .68); font-size: 14px; margin-top: auto; }
.footer-top { padding: 56px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { font-size: 13.5px; max-width: 40ch; }
.footer-about__lead { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-badge {
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 3px; padding: 6px 11px; font-family: var(--font-head);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 12.5px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold); }
.imagine-credit { display: inline-flex; align-items: center; gap: 5px; opacity: .72; transition: opacity .2s ease; }
.imagine-credit:hover { opacity: 1; }
.imagine-credit b { font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; }

/* --------------------------------------------------------------- toast */
.toast-area { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; width: min(340px, calc(100vw - 40px)); }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: flex-start; font-size: 14px; animation: toast-in .22s ease;
}
.toast svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 1px; }
.toast strong { display: block; font-family: var(--font-head); font-size: 13.5px; }
.toast small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.toast a { color: var(--gold); text-decoration: underline; font-size: 12.5px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------- admin */
.admin-layout { display: grid; grid-template-columns: 186px minmax(0, 1fr); gap: 22px; padding: 28px 0 72px; align-items: start; }
.admin-nav { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-nav button {
  width: 100%; text-align: left; padding: 12px 16px; font-family: var(--font-head); font-size: 12.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); color: var(--muted);
}
.admin-nav button:last-child { border-bottom: 0; }
.admin-nav button[aria-current="true"] { background: var(--navy); color: #fff; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar .input { width: 260px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-stat strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--ink); line-height: 1.2; }
.admin-stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* A grade de produtos tem muitas colunas: rola na horizontal em vez de
   espremer as células até a miniatura colapsar em 0 de largura. */
.admin-layout .data-table { min-width: 900px; }
.admin-layout .data-table th, .admin-layout .data-table td { padding: 10px 11px; }
.admin-layout .data-table td:nth-child(3) { white-space: nowrap; font-size: 13px; }
.admin-layout .data-table td:nth-child(4), .admin-layout .data-table td:nth-child(6) { white-space: nowrap; }
.admin-layout .data-table td:first-child { width: 62px; }
.admin-layout .data-table thead th:last-child, .admin-layout .data-table tbody td:last-child { white-space: nowrap; text-align: right; }
.admin-layout .data-table tbody img { width: 44px; min-width: 44px; height: 44px; object-fit: contain; }
.fitment-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.fitment-row .input { padding: 9px 11px; font-size: 13.5px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; vertical-align: middle; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn svg { width: 15px; height: 15px; }
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(880px, 94vw); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(7, 26, 53, .55); }
.modal__head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal__head h2 { margin: 0; font-size: 17px; text-transform: uppercase; }
.modal__body { padding: 24px; max-height: 68vh; overflow-y: auto; }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--gray-50); }

/* --------------------------------------------------------------- utilidades */
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* --------------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .benefits__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit:nth-child(3n) { border-right: 0; }
  .benefit:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-main .wrap { gap: 20px; }
  .nav-link { padding-inline: 10px; font-size: 11.6px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 132px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 40px; }
  .hero__strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__art { order: 3; }
  .finder { max-width: 560px; }
  .search-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gallery__main img { height: 320px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-nav button { width: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-nav .wrap { overflow-x: auto; scrollbar-width: none; }
  .header-nav .wrap::-webkit-scrollbar { display: none; }
  .nav-item .mega { display: none !important; }
}

@media (max-width: 820px) {
  :root { --header-h: 104px; }
  .wrap { padding-inline: 18px; }
  .section { padding: 52px 0; }
  .header-main .wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 68px; }
  .header-search { grid-column: 1 / -1; order: 3; padding-bottom: 12px; }
  .logo__tag { display: none; }
  .logo__name { font-size: 26px; }
  .logo__mark { width: 36px; height: 36px; }
  .header-search input { height: 44px; font-size: 14px; }
  .header-search button { padding: 0 16px; }
  .header-search button span { display: none; }
  .header-actions { justify-self: end; }
  .header-action__label { display: none; }
  .header-action { padding: 8px; }
  .cart-count { left: 22px; }
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar__left .topbar__item--hide-sm, .topbar__right .topbar__item--hide-sm { display: none; }
  .topbar .wrap { gap: 10px; }
  .topbar__phone { font-size: 12px; }
  .topbar__left, .topbar__right { gap: 10px; }
  .cards, .cards--3, .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .benefit:nth-child(2n) { border-right: 0; }
  .finder__fields { grid-template-columns: 1fr; }
  .finder__tab { font-size: 10px; letter-spacing: .03em; }
  .hero__stats { gap: 20px; }
  .hero__strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__strip img { height: 54px; }
  .about-facts { grid-template-columns: 1fr; }
  .product-card__actions { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item__img { width: 72px; height: 72px; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .fitment-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav button { white-space: nowrap; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar .input, .admin-toolbar .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .pdp__buy { grid-template-columns: 1fr; }
  .qty { width: 100%; justify-content: space-between; }
  .qty input { flex: 1; }
}

@media (max-width: 520px) {
  .cards, .cards--3, .cards--5 { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .fitment-row { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; }
  .finder__tabs { grid-template-columns: 1fr; gap: 6px; }
  .finder__tab { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px 14px; font-size: 11.5px; }
  .hero h1 { font-size: 30px; }
  .steps-flow { grid-template-columns: 1fr; }
  .topbar__left { gap: 12px; }
  .results__bar { flex-direction: column; align-items: stretch; }
  .results__tools { justify-content: space-between; }
  .gallery__main { padding: 18px; }
  .gallery__main img { height: 240px; }
  .order-code { font-size: 18px; }
}

@media print {
  #site-header, #site-footer, .topbar, .toast-area { display: none; }
}

/* --------------------------------------------------- diálogo de confirmação */
.confirm-dialog { width: min(460px, 92vw); }
.confirm-dialog .modal__head { border-bottom: 0; padding-bottom: 0; }
.confirm-dialog .modal__body { padding-top: 12px; }
.confirm-dialog p { color: var(--muted); }

/* ==========================================================================
   Áreas de toque no telemóvel
   O dedo precisa de alvo maior que o cursor: links de rodapé com 17px de
   altura e botões pequenos de 36px foram apontados na auditoria de QA.
   ========================================================================== */
@media (max-width: 820px) {
  .footer-grid li { margin-bottom: 0; }
  .footer-grid ul:not(.footer-contact) a {
    display: block; padding: 11px 0; min-height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .footer-grid ul:not(.footer-contact) li:last-child a { border-bottom: 0; }
  .footer-contact li { padding: 8px 0; }
  .footer-contact a { display: inline-block; padding: 7px 0; min-height: 36px; }
  .topbar .wrap { min-height: 46px; }
  .topbar__item { padding: 6px 0; }
  .mini-select { padding: 9px 22px 9px 9px; min-height: 38px; font-size: 11.5px; }
  #lang-select { display: inline-block; }
  .btn--sm { padding: 13px 18px; min-height: 44px; }
  .filters__clear, .cart-item__remove { padding: 8px 4px; display: inline-block; min-height: 36px; }
  .check { padding: 9px 0; min-height: 40px; }
  .check input { width: 20px; height: 20px; }
  .tabs button { padding: 16px 18px; }
  .qty button { min-width: 44px; }
}

/* seletor de idioma no topo */
.mini-select--lang { font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; }

/* Em tela estreita o número empurra os seletores para fora: fica só o ícone,
   que continua clicável, e os três seletores cabem. */
@media (max-width: 520px) {
  .topbar__phone .topbar__phone-label { display: none; }
  .topbar .wrap { gap: 6px; }
  .topbar__left, .topbar__right { gap: 8px; }
  .mini-select { padding: 9px 20px 9px 7px; font-size: 11px; background-position: right 6px center; }
}

/* ============================================================================
   CARROSSEL DE PRODUTOS DA HOME — o topo que o cliente desenhou no PDF de 03/09.

   Fica no fim da folha de propósito: o herói original é escuro e pinta fundo,
   ::before e ::after em .hero, e o que troca tudo isso é a ordem, não uma
   especificidade maior. Mexer daqui para cima não derruba estas regras.
   ========================================================================== */

.hero--produto { background: var(--white); color: var(--ink); }
.hero--produto::before,
.hero--produto::after { content: none; }

/* --------------------------------------------------------- o slide em si */

.hero-prod {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding: 56px 0 40px;
}

.hero-prod__texto .eyebrow { color: var(--orange); }

/* Qualificado por .hero--produto de propósito: o herói escuro pinta
   `.hero h1 { color:#fff }`, que é 0-1-1 e ganharia de uma classe sozinha por
   especificidade, mesmo estando antes na folha. Vir depois não bastava. */
.hero--produto .hero-prod__titulo {
  font-size: clamp(26px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.01em;
  /* Nome de peça não é título de secção: vem em caixa mista, com número de
     modelo e faixa de anos legíveis. Por isso não herda o uppercase do h1/h2. */
  text-transform: none; color: var(--ink); margin: 0 0 22px;
  font-family: var(--font-head); font-weight: 800;
}
.hero--produto .hero-prod__titulo a { color: var(--ink); }
.hero--produto .hero-prod__titulo a:hover { color: var(--navy); }

.hero-prod__rotulo {
  display: block; font-family: var(--font-head); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}

/* O preço vem do get_price_html() do WooCommerce: <del> o antigo, <ins> o novo,
   e um <span class="screen-reader-text"> que não pode aparecer na tela. */
.hero-prod__preco {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-head); font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 30px;
}
.hero-prod__preco del {
  font-size: .48em; font-weight: 600; color: var(--muted-soft);
  text-decoration: line-through; order: -1;
}
.hero-prod__preco ins { text-decoration: none; background: none; color: var(--ink); }
.hero-prod__preco .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Amarelo com texto escuro: o botão que o cliente desenhou, e de quebra o
   único da paleta que passa folgado no contraste — o laranja com branco dá
   2,59:1 e este par dá acima de 10:1. */
.btn--gold { background: var(--gold); color: var(--ink); border-radius: 999px; }
.btn--gold:hover { background: #e0a413; color: var(--ink); }
.btn--gold svg { color: var(--ink); }

.hero-prod__foto { min-width: 0; }
.hero-prod__foto a { display: block; }
.hero-prod__foto img {
  width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block;
}

/* ------------------------------------------------------------ o carrossel */

/* Sem JS a pista rola de lado e todos os produtos continuam alcançáveis.
   Com JS (.psl--js) ela passa a andar por transform.

   Por que não scrollLeft com behavior:'smooth': o scroll suave programático é
   engolido pelo scroll-snap mandatory — medido a 04/09 neste mesmo carrossel,
   as bolinhas trocavam e a pista não saía do lugar. A transição de transform
   não depende de nada disso. */
.psl__viewport {
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.psl__viewport::-webkit-scrollbar { display: none; }

.psl--js .psl__viewport { overflow: hidden; }
.psl--js .psl__track { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }

.psl__track { display: flex; width: 100%; }
.psl__slide { flex: 0 0 100%; min-width: 0; }

/* Quem pediu menos animação recebe a troca seca. Fica na folha, e não no JS,
   porque quem anima é o CSS. */
@media (prefers-reduced-motion: reduce) {
  .psl--js .psl__track { transition: none; }
}

.psl__controles {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding-bottom: 44px;
}

.psl__seta {
  display: inline-flex; align-items: center; justify-content: center;
  /* 44px é o alvo de toque mínimo — abaixo disso o polegar erra. */
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.psl__seta:hover { border-color: var(--navy); color: var(--navy); }
.psl__seta:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.psl__pontos { display: flex; align-items: center; gap: 9px; }
.psl__ponto {
  /* O alvo de toque é o botão inteiro, 24px; a bolinha visível é o ::before.
     Encolher o botão para 10px deixaria o alvo pequeno demais. */
  width: 24px; height: 24px; padding: 0; border: 0; background: none;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.psl__ponto::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px;
  background: var(--line-strong); transition: background .16s, transform .16s;
}
.psl__ponto:hover::before { background: var(--muted); }
.psl__ponto[aria-selected="true"]::before { background: var(--orange); transform: scale(1.35); }
.psl__ponto:focus-visible { outline: 2px solid var(--navy); outline-offset: 0; border-radius: 999px; }

/* Um produto só: sem controles e sem recorte. */
.psl--unico .psl__viewport { overflow: visible; }

@media (max-width: 900px) {
  .hero-prod { grid-template-columns: 1fr; gap: 28px; padding: 34px 0 32px; }
  /* No telemóvel a foto vem primeiro: é ela que identifica a peça de relance. */
  .hero-prod__foto { order: -1; }
  .hero-prod__foto img { max-height: 300px; }
  .hero--produto .hero-prod__titulo { margin-bottom: 16px; }
  .hero-prod__preco { margin-bottom: 22px; }
  .psl__controles { padding-bottom: 32px; }
}

@media (max-width: 520px) {
  .hero-prod .btn--gold { width: 100%; }
}
