/* Loja do site — layout de loja de autopeças (referência: Autodoc): fundo claro,
   cabeçalho escuro com busca grande, seletor de carro em passos, cartões brancos.
   Cores da marca: preto, dourado e prata. Só vale nas páginas com body.loja. */
body.loja {
  --l-bg: #f2f3f5;
  --l-card: #ffffff;
  --l-ink: #16181c;
  --l-muted: #5d636d;
  --l-line: #e1e4e8;
  --l-dark: #0f1012;
  --l-dark-2: #1b1c20;
  --l-ok: #1f8a3b;
  --l-no: #b3261e;
  background: var(--l-bg);
  color: var(--l-ink);
  color-scheme: light;
}
body.loja h1, body.loja h2, body.loja h3 { text-transform: none; letter-spacing: 0; line-height: 1.2; }
body.loja :focus-visible { outline: 2px solid var(--gold-lo); }

/* Faixa de vantagens */
.lj-strip { background: var(--l-dark); color: #c9ccd2; font: 400 .8rem/1 var(--font-body); margin-inline: -16px; padding-inline: 16px; }
.lj-strip .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding-block: .55rem; justify-content: space-between; }
.lj-strip b { color: var(--gold-hi); font-weight: 600; }
.lj-strip a { text-decoration: none; }

/* Cabeçalho */
.lj-head { position: sticky; top: 0; z-index: 20; background: var(--l-dark-2); margin-inline: -16px; padding-inline: 16px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.lj-head .wrap { display: grid; grid-template-columns: auto auto 1fr auto; gap: .8rem 1rem; align-items: center; padding-block: .7rem; }
.lj-logo img { display: block; height: 38px; width: auto; }
.lj-car { display: flex; align-items: center; gap: .55rem; height: 44px; padding: 0 .9rem; border-radius: 4px; background: var(--metal-gold); color: var(--gold-ink); font: 600 .9rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.lj-car svg { width: 20px; height: 20px; flex: none; }
.lj-search { display: flex; height: 44px; min-width: 0; }
.lj-search input { flex: 1; min-width: 0; border: 0; border-radius: 4px 0 0 4px; padding: 0 1rem; font: 400 1rem/1 var(--font-body); color: var(--l-ink); background: #fff; }
.lj-search button { width: 52px; border: 0; border-radius: 0 4px 4px 0; background: #fff; border-left: 1px solid var(--l-line); cursor: pointer; display: grid; place-items: center; }
.lj-search svg { width: 20px; height: 20px; stroke: var(--l-ink); fill: none; stroke-width: 2; }
.lj-cart { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .3rem .4rem; }
.lj-cart .ico { position: relative; }
.lj-cart svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; display: block; }
.lj-cart .badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font: 700 .7rem/18px var(--font-body); text-align: center; }
.lj-cart .badge[hidden] { display: none; }
.lj-cart small { display: block; font-size: .72rem; color: #a4a7ad; }
.lj-cart b { font: 700 1.05rem/1.1 var(--font-body); }
@media (max-width: 900px) {
  .lj-head .wrap { grid-template-columns: auto 1fr auto; }
  .lj-search { grid-column: 1 / -1; order: 4; }
  .lj-car { justify-self: end; max-width: 100%; min-width: 0; height: 40px; padding: 0 .7rem; font-size: .82rem; }
  .lj-cart .txt { display: none; }
  .lj-logo img { height: 28px; }
  .lj-strip .wrap > :nth-child(n+3) { display: none; }
}
.lj-nav { background: var(--l-dark); margin-inline: -16px; padding-inline: 16px; }
.lj-nav .wrap { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; padding-block: .7rem; white-space: nowrap; font: 600 .88rem/1 var(--font-body); }
.lj-nav a { color: #e6e7ea; text-decoration: none; }
.lj-nav a:hover { color: var(--gold-hi); }
.lj-nav .sep { margin-left: auto; color: #7d8189; font-weight: 400; }
.lj-nav .sep a { color: #a4a7ad; font-weight: 400; margin-left: 1.2rem; }

/* Blocos */
.lj-main { padding-block: 1.5rem 3rem; }
.lj-box { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 6px; }
.lj-title { font: 700 1.35rem/1.2 var(--font-body); margin: 2.4rem 0 1rem; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.lj-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 46px; padding: 0 1.2rem; border: 0; border-radius: 4px; background: var(--metal-gold); color: var(--gold-ink); font: 700 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.lj-btn:hover { filter: brightness(1.05); }
.lj-btn.dark { background: var(--l-dark-2); color: #fff; }
.lj-btn.line { background: #fff; color: var(--l-ink); border: 1px solid var(--l-line); }
.lj-btn[disabled] { opacity: .5; cursor: default; }

/* Seletor de carro + banner */
.lj-hero { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; }
.lj-hero > * { min-width: 0; }
.lj-finder { padding: 1.4rem; display: grid; gap: .75rem; align-content: start; }
.lj-finder h2 { font: 600 1.05rem/1.3 var(--font-body); }
.lj-step { position: relative; }
.lj-step .n { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e7e9ec; color: var(--l-muted); font: 700 .75rem/22px var(--font-body); text-align: center; pointer-events: none; }
.lj-step.on .n { background: var(--gold); color: var(--gold-ink); }
.lj-step select { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border: 1px solid var(--l-line); border-radius: 4px; background: #fff; color: var(--l-ink); font: 400 .95rem/1 var(--font-body); appearance: auto; }
.lj-step.on select { border-color: var(--gold); }
.lj-step select:disabled { background: #f7f8f9; color: #9aa0a8; }
.lj-finder .help { font: 600 .78rem/1.4 var(--font-body); color: #8d6a22; text-decoration: none; text-transform: uppercase; }
.lj-finder .code { border-top: 1px solid var(--l-line); padding-top: .9rem; margin-top: .3rem; display: grid; gap: .5rem; }
.lj-finder .code input { height: 46px; padding: 0 1rem; border: 1px solid var(--l-line); border-radius: 4px; font: 400 .95rem/1 var(--font-body); color: var(--l-ink); background: #fff; }
.lj-finder .code small { color: var(--l-muted); font-size: .8rem; }
.lj-banner { position: relative; overflow: hidden; border-radius: 6px; background: radial-gradient(80% 120% at 100% 0%, rgba(207,165,75,.25), transparent 55%), linear-gradient(135deg, #191a1e 0%, #0b0b0d 100%); color: #fff; padding: clamp(1.6rem, 4vw, 3rem); display: grid; align-content: center; gap: 1rem; min-height: 320px; }
.lj-banner .eyebrow { color: var(--gold); }
.lj-banner h1 { font: 900 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--font-display); text-transform: uppercase; max-width: 16ch; }
.lj-banner p { color: #c9ccd2; max-width: 34rem; }
.lj-banner .marcas { display: flex; flex-wrap: wrap; gap: .5rem; }
.lj-banner .marcas span { font: 600 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); border: 1px solid #3a3b40; border-radius: 3px; padding: .45rem .6rem; }
.lj-banner .acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.lj-banner .lj-btn.line { background: transparent; color: #fff; border-color: #4a4b50; }
@media (max-width: 860px) { .lj-hero { grid-template-columns: 1fr; } .lj-banner { min-height: 0; } }

/* Carrossel de banners (imagens 1200×500 em partes/banners.json) */
.lj-slider { position: relative; overflow: hidden; border-radius: 6px; background: #0b0b0d; align-self: start; }
.lj-slider .slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.lj-slider .slides::-webkit-scrollbar { display: none; }
.lj-slider li { flex: 0 0 100%; scroll-snap-align: start; }
.lj-slider li a, .lj-slider li img { display: block; }
.lj-slider img { width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
.lj-slider .seta { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--l-ink); font: 400 1.6rem/1 var(--font-body); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .15s ease; }
.lj-slider:hover .seta, .lj-slider .seta:focus-visible { opacity: 1; }
.lj-slider .ant { left: 12px; } .lj-slider .prox { right: 12px; }
.lj-slider .pontos { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.lj-slider .pontos button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.lj-slider .pontos button[aria-current="true"] { background: var(--gold); width: 22px; border-radius: 5px; }
@media (hover: none) { .lj-slider .seta { display: none; } }

/* Vantagens */
.lj-hero-dir { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.lj-hero-dir .lj-perks { grid-template-columns: 1fr 1fr; margin-top: 0; }
.lj-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 1rem; background: var(--l-line); border: 1px solid var(--l-line); border-radius: 6px; overflow: hidden; }
.lj-perks div { background: #fff; padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center; font-size: .88rem; color: var(--l-muted); }
.lj-perks b { display: block; color: var(--l-ink); font-size: .95rem; }
.lj-perks svg { width: 30px; height: 30px; flex: none; stroke: var(--gold-lo); fill: none; stroke-width: 1.7; }
@media (max-width: 860px) { .lj-perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .lj-perks { grid-template-columns: 1fr; } }

/* Categorias */
.lj-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.lj-cat { display: grid; justify-items: center; gap: .6rem; padding: 1.2rem 1rem 1rem; text-align: center; text-decoration: none; cursor: pointer; font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.lj-cat:hover, .lj-cat[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.lj-cat img { width: 120px; height: 120px; object-fit: contain; }
.lj-cat b { font-size: 1rem; }
.lj-cat span { font-size: .8rem; color: var(--l-muted); }

/* Resultado */
.lj-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 2.2rem 0 1rem; }
.lj-bar h2 { font: 700 1.25rem/1.2 var(--font-body); margin-right: auto; }
.lj-bar .count { color: var(--l-muted); font-size: .9rem; }
.lj-fit { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: 4px; background: #fff8e8; border: 1px solid #ecd08a; font-size: .92rem; }
.lj-fit[hidden] { display: none; }
.lj-fit button { margin-left: auto; background: none; border: 0; color: #8d6a22; font: 600 .85rem/1 var(--font-body); cursor: pointer; text-decoration: underline; }
.lj-mais { text-align: center; margin: 1.2rem 0 0; }
.lj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lj-grid li[hidden] { display: none; }
@media (max-width: 1060px) { .lj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .lj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .lj-grid { grid-template-columns: 1fr; } }
.lj-card { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 1rem; gap: .7rem; transition: box-shadow .15s ease, border-color .15s ease; }
.lj-card:hover { border-color: #c9ccd2; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.lj-card .img { display: block; aspect-ratio: 1; }
.lj-card .img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lj-card .txt { display: grid; gap: .3rem; align-content: start; }
.lj-card .lj-marca { font: 700 .75rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #8d6a22; }
.lj-card h3 { font: 600 .98rem/1.3 var(--font-body); }
.lj-card h3 a { text-decoration: none; }
.lj-card h3 a:hover { text-decoration: underline; }
.lj-card .art { font-size: .78rem; color: var(--l-muted); }
.lj-card .apps { font-size: .8rem; color: var(--l-muted); }
.lj-card .compra { display: grid; gap: .55rem; }
.lj-card .price { font: 800 1.6rem/1 var(--font-body); }
.lj-card .price small { display: block; margin-top: .3rem; font: 400 .75rem/1.2 var(--font-body); color: var(--l-muted); }
.lj-stock { font: 600 .8rem/1 var(--font-body); color: var(--l-ok); }
.lj-stock.out { color: var(--l-muted); }
.lj-badge { display: inline-flex; align-items: center; gap: .35rem; font: 600 .8rem/1.2 var(--font-body); padding: .35rem .55rem; border-radius: 3px; }
.lj-badge.ok { background: #e7f5ea; color: var(--l-ok); }
.lj-badge.no { background: #fdecea; color: var(--l-no); }
.lj-badge[hidden] { display: none; }
.lj-empty { padding: 1.6rem; text-align: center; color: var(--l-muted); }
.lj-empty[hidden] { display: none; }
.lj-empty a { color: #8d6a22; font-weight: 600; }

/* Página da peça */
.lj-crumbs { font-size: .82rem; color: var(--l-muted); margin-bottom: 1rem; }
.lj-crumbs a { text-decoration: none; }
.lj-crumbs a:hover { text-decoration: underline; }
.lj-prod { display: grid; grid-template-columns: 1.05fr 1fr 340px; gap: 1rem; align-items: start; }
.lj-prod > * { min-width: 0; }
.lj-gal { padding: 1.2rem; }
.lj-gal img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.lj-info { padding: 1.4rem; display: grid; gap: .9rem; }
.lj-info .lj-marca { font: 700 .8rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #8d6a22; }
.lj-info h1 { font: 700 1.5rem/1.25 var(--font-body); }
.lj-info dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; font-size: .9rem; }
.lj-info dt { color: var(--l-muted); }
.lj-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.lj-info .sobre { color: var(--l-muted); font-size: .92rem; }
.lj-buy { padding: 1.4rem; display: grid; gap: .9rem; position: sticky; top: 90px; }
.lj-buy .price { font: 800 2.3rem/1 var(--font-body); }
.lj-buy .parc { font-size: .85rem; color: var(--l-muted); margin-top: -.4rem; }
.lj-buy .row { display: grid; grid-template-columns: 76px 1fr; gap: .5rem; }
.lj-buy input { height: 46px; text-align: center; border: 1px solid var(--l-line); border-radius: 4px; font: 600 1rem/1 var(--font-body); color: var(--l-ink); }
.lj-buy ul { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--l-line); display: grid; gap: .55rem; font-size: .86rem; color: var(--l-muted); }
.lj-buy li { display: flex; gap: .5rem; }
.lj-buy li::before { content: "✓"; color: var(--l-ok); font-weight: 700; }
.lj-buy li b { color: var(--l-ink); font-weight: 600; }
.lj-buy a.wa { color: #8d6a22; font-weight: 600; }
@media (max-width: 1060px) { .lj-prod { grid-template-columns: 1fr 1fr; } .lj-buy { grid-column: 1 / -1; position: static; } }
@media (max-width: 700px) { .lj-prod { grid-template-columns: 1fr; } }
.lj-sec { padding: 1.4rem; margin-top: 1rem; }
.lj-sec h2 { font: 700 1.15rem/1.2 var(--font-body); margin-bottom: .9rem; }
.lj-table-wrap { overflow-x: auto; }
.lj-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lj-table th, .lj-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--l-line); }
.lj-table th { background: #f7f8f9; font-weight: 600; color: var(--l-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.lj-table tr.meu td { background: #fff8e8; font-weight: 600; }
.lj-note { margin-top: .8rem; font-size: .82rem; color: var(--l-muted); }
.lj-oems { display: flex; flex-wrap: wrap; gap: .4rem; }
.lj-oems span { font: 500 .82rem/1 var(--font-mono); padding: .45rem .6rem; background: #f2f3f5; border: 1px solid var(--l-line); border-radius: 3px; }

/* Carrinho */
.lj-cartpage { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; align-items: start; }
.lj-cartpage > * { min-width: 0; }
.lj-cartpage h1 { font: 700 1.6rem/1.2 var(--font-body); grid-column: 1 / -1; }
.lj-items { list-style: none; margin: 0; padding: 0; }
.lj-items:empty { display: none; }
.lj-item { display: grid; grid-template-columns: 90px 1fr auto auto; gap: .4rem 1.2rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--l-line); }
.lj-item:last-child { border-bottom: 0; }
.lj-item img { width: 90px; height: 90px; object-fit: contain; display: block; }
.lj-item .t { display: grid; gap: .25rem; min-width: 0; }
.lj-item .t a { text-decoration: none; font-weight: 600; }
.lj-item .t small { color: var(--l-muted); }
.lj-item .t button { justify-self: start; background: none; border: 0; padding: 0; color: var(--l-muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.lj-qty { display: flex; align-items: center; border: 1px solid var(--l-line); border-radius: 4px; }
.lj-qty button { width: 36px; height: 38px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--l-ink); }
.lj-qty button:disabled { opacity: .3; cursor: default; }
.lj-qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.lj-item .sub { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 620px) { .lj-item { grid-template-columns: 70px 1fr auto; } .lj-item img { width: 70px; height: 70px; } .lj-item .lj-qty { grid-column: 2; justify-self: start; } }
.lj-sum { padding: 1.4rem; display: grid; gap: .9rem; position: sticky; top: 90px; }
.lj-sum[hidden] { display: none; }
.lj-sum .l { display: flex; justify-content: space-between; font-size: .92rem; color: var(--l-muted); }
.lj-sum .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: .9rem; border-top: 1px solid var(--l-line); font-weight: 600; }
.lj-sum .tot b { font: 800 1.7rem/1 var(--font-body); }
.lj-sum p { font-size: .85rem; color: var(--l-muted); }
.lj-sum a.more { text-align: center; font-size: .88rem; color: #8d6a22; }
@media (max-width: 860px) { .lj-cartpage { grid-template-columns: 1fr; } .lj-sum { position: static; } }
.lj-cartempty { padding: 2.4rem 1.4rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.lj-cartempty[hidden] { display: none; }

/* Modal "em construção" e aviso */
body.loja dialog.lj-modal { max-width: 30rem; width: calc(100% - 32px); border: 0; border-radius: 8px; padding: 1.8rem; background: #fff; color: var(--l-ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
body.loja dialog.lj-modal::backdrop { background: rgba(10,10,12,.6); }
.lj-modal h2 { font: 700 1.4rem/1.2 var(--font-body); }
.lj-modal p { color: var(--l-muted); margin-top: .7rem; }
.lj-modal .acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
body.loja .toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 160%); background: var(--l-dark-2); color: #fff; padding: .9rem 1.2rem; border-radius: 6px; font-size: .92rem; z-index: 50; transition: transform .25s ease; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
body.loja .toast.on { transform: translate(-50%, 0); }
body.loja .toast a { color: var(--gold-hi); margin-left: .4rem; }
@media (prefers-reduced-motion: reduce) { body.loja .toast { transition: none; } }

/* Rodapé escuro, como no resto do site */
body.loja footer { background: var(--bg); color: var(--muted); margin: 0 -16px; padding-inline: 16px; }
