/* ============================================
   Ideal Ferro Velho — Site Redesign v2 (2026-05-16)
   Aplica todos os 14 itens da revisão do Claude Design.
   Paleta: #0E1014 · #C8262C · #FFFFFF · #F4F5F7 · #FFD600 (amarelo) · #5DE39A (verde)
   ============================================ */

:root {
  --ink: #0E1014;
  --ink-soft: #1a1d24;
  --red: #C8262C;
  --red-dark: #a01f24;
  --red-soft: #d94951;
  --white: #FFFFFF;
  --gray: #F4F5F7;
  --gray-dark: #e5e7ea;
  --line: #e1e3e8;
  --yellow: #FFD600;
  --green: #5DE39A;
  --navy: #1B3A8C;
  --body: #4a5057;
  --muted: #7a818a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --shadow-red: 0 8px 24px rgba(200,38,44,0.30);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--gray);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: 0.01em; }

.stk-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .stk-container { padding: 0 16px; } .hide-sm { display: none !important; } }

/* ===== Padrão de listras diagonais (item #1) ===== */
.stk-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 18px);
}
.stk-pattern.opacity-strong {
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px);
}
.stk-pattern.opacity-soft {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 18px);
}

/* ============================================
   STICKY TOP — auto-hide via transform (item #6)
   ============================================ */
.stk {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.stk.hidden { transform: translateY(-100%); }

/* ===== TopBar vermelha ===== */
.stk-topbar {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  position: relative; overflow: hidden;
}
.stk-topbar .stk-container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 2;
}
.stk-tbar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stk-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.stk-tbar-right { display: flex; align-items: center; gap: 10px; opacity: 0.95; font-size: 12px; }
.stk-track-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; text-decoration: none;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.25);
  font-weight: 600; font-size: 12px;
  transition: background .15s, border-color .15s;
}
.stk-track-link:hover { background: rgba(0,0,0,.4); border-color: var(--yellow); color: var(--yellow); }
.stk-tbar-divider { display: inline-block; width: 1px; height: 14px; background: rgba(255,255,255,.25); }

/* ===== Selo DETRAN/PR (item #14) ===== */
.detran-seal {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--yellow);
  border-radius: 100px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.detran-logo {
  height: 18px; width: auto; max-width: 80px;
  background: var(--white);
  border-radius: 4px;
  padding: 2px 4px;
  display: block;
  flex: 0 0 auto;
}
.detran-label { color: var(--white); }

/* Mobile: encolhe topbar (selo DETRAN + Rastrear + App ficavam grandes demais) */
@media (max-width: 600px) {
  .stk-topbar { font-size: 11px; padding: 6px 0; }
  .stk-topbar .stk-container { gap: 8px; }
  .stk-tbar-left { gap: 8px; }
  .stk-tbar-right { gap: 6px; }
  .detran-seal { padding: 3px 8px 3px 3px; gap: 6px; font-size: 8.5px; letter-spacing: 0.06em; }
  .detran-logo { height: 14px; max-width: 54px; padding: 1px 3px; }
  .stk-track-link { padding: 2px 8px; font-size: 10.5px; gap: 4px; border-radius: 10px; }
  .stk-track-link svg { width: 12px; height: 12px; flex: 0 0 auto; }
}

/* ============================================
   HEADER preto + busca 52px (item #13)
   ============================================ */
.stk-header {
  background: var(--ink);
  color: var(--white);
  padding: 14px 0;
  border-bottom: 4px solid var(--red);
  position: relative;
  /* overflow: hidden REMOVIDO — estava cortando os dropdowns user-menu e cart-preview.
     O circuit fica contido pelo overflow:hidden do .stk-header__bg (filho). */
}
.stk-header > .stk-container { position: relative; z-index: 2; }
.stk-header__bg { overflow: hidden; }  /* contém o circuit, mas não afeta dropdowns que são siblings */

/* ===== Background animado do header — handoff Claude Design "Header Navbar"
       Circuit-board zigzag traces + pulsing pads + source flare.
       Aplicado em cima do .stk-header existente. ============================ */
.stk-header__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* Gear cluster — top-LEFT, bleeds off the edge */
.stk-header__gear {
  position: absolute; left: -75px; top: 50%;
  transform: translateY(-50%);
  width: 290px; height: 290px;
  filter: drop-shadow(6px 4px 18px rgba(230,57,70,.35));
  opacity: .9;
}
.stk-gear-body { fill: #ececec; }
.stk-gear-hub  { fill: #0a0a0a; }

/* === Engrenagens FIXAS no header (30/05) — mesmo desenho do banner === */
/* Reusa o SVG do partial _engrenagens_inline.php mas cancela animação + posiciona perto do logo */
.stk-header-gears-fixas {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  opacity: 0.92;
  filter: drop-shadow(2px 3px 10px rgba(230, 57, 70, .45));
  pointer-events: none;
  z-index: 1;
}
/* Cancela qualquer animação herdada do partial — Ton pediu ESTÁTICAS */
.stk-header-gears-fixas .ifv-gear-big,
.stk-header-gears-fixas .ifv-gear-small {
  animation: none !important;
  transform: none !important;
}
@media (max-width: 980px) {
  .stk-header-gears-fixas { width: 100px; height: 100px; left: 6px; }
}
@media (max-width: 560px) {
  /* Ajuste 30/05: aumentado de 72px → 92px (mais presença no mobile) */
  .stk-header-gears-fixas { width: 92px; height: 92px; left: 4px; }
}

/* Streaks SVG — covers the full bar with screen blend for hot glow on overlaps */
.stk-header__streaks {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  mix-blend-mode: screen;
}

/* Static rail — faint baseline so the circuit route is always readable */
.ifv-rail {
  fill: none;
  stroke: rgba(230, 57, 70, .22);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Solder pads where inner traces terminate (the "chip" boundary) */
.ifv-pad {
  r: 2.2;
  fill: #ff5a68;
  filter: drop-shadow(0 0 5px rgba(230, 57, 70, .8));
  opacity: .7;
}

/* Energy pulse — bright dash that races along the rail.
   dasharray "34 220" → multiple pulses visible at once, period 254. */
/* Trilhas (pulse trains) DESLIGADAS — economia de CPU/GPU em celular fraco e máquina lenta:
   o repaint de stroke-dashoffset + 2 drop-shadow por path a 60fps era o custo dominante.
   Os trilhos estáticos .ifv-rail seguem desenhando o circuito. */
.stk-header__streak { display: none; }

/* Source point — estático (sem flare) pra zerar custo por frame */
.ifv-source {
  fill: #ffe5e8;
  filter:
    drop-shadow(0 0 6px #ff4150)
    drop-shadow(0 0 14px rgba(230, 57, 70, .85));
  opacity: .9;
}

/* Circuito do header agora é ESTÁTICO de propósito (engrenagens + trilhas paradas) —
   decisão de performance pra celular fraco/máquina lenta. Sem custo de repaint por frame. */

/* === Zap animations dos botões Entrar/Carrinho (handoff Header Navbar) ============
   A energia do circuit "curto-circuita" primeiro o Entrar (flicker caótico),
   depois a descarga transfere e alimenta o Carrinho (power-up suave).
   Ambos compartilham ciclo de 1s sincronizado com a pulse-flow. ================== */
.user-menu-trigger,
.stk-actions .user-menu > .user-menu-trigger {
  animation: ifv-zap-short 1s linear infinite;
}
@keyframes ifv-zap-short {
  0%, 60%, 100% { color: #ffffff; filter: none; text-shadow: none; }
  62% { color: #ffd6d9; filter: drop-shadow(0 0 4px #ff3a47); }
  64% { color: #5a5a5a; filter: none; }
  66% { color: #ffffff; filter: drop-shadow(0 0 6px #ff3a47) drop-shadow(0 0 12px rgba(230,57,70,.7)); }
  68% { color: #3a3a3a; filter: none; }
  70% { color: #ffeef0;
        filter: drop-shadow(0 0 8px #ff3a47) drop-shadow(0 0 18px rgba(230,57,70,.85));
        text-shadow: 0 0 8px #ff3a47, 0 0 16px rgba(230,57,70,.8); }
  72% { color: #4a4a4a; filter: none; text-shadow: none; }
  74% { color: #ffeef0;
        filter: drop-shadow(0 0 10px #ff3a47) drop-shadow(0 0 22px rgba(230,57,70,.9));
        text-shadow: 0 0 10px #ff3a47, 0 0 20px rgba(230,57,70,.9); }
  78% { color: #ffd6d9;
        filter: drop-shadow(0 0 6px #ff3a47) drop-shadow(0 0 14px rgba(230,57,70,.6));
        text-shadow: 0 0 6px rgba(230,57,70,.5); }
  85% { color: #ffffff;
        filter: drop-shadow(0 0 2px rgba(230,57,70,.4));
        text-shadow: 0 0 3px rgba(230,57,70,.3); }
}

#cartBtn,
.cart-wrap-hover > #cartBtn {
  animation: ifv-zap-transfer 1s linear infinite;
}
@keyframes ifv-zap-transfer {
  0%, 78%, 100% { color: #ffffff; filter: none; text-shadow: none; }
  82% { color: #ffd6d9;
        filter: drop-shadow(0 0 3px #ff3a47) drop-shadow(0 0 7px rgba(230,57,70,.5));
        text-shadow: 0 0 4px rgba(230,57,70,.5); }
  88% { color: #ffeef0;
        filter: drop-shadow(0 0 8px #ff3a47) drop-shadow(0 0 18px rgba(230,57,70,.85));
        text-shadow: 0 0 8px #ff3a47, 0 0 16px rgba(230,57,70,.8); }
  94% { color: #ffd6d9;
        filter: drop-shadow(0 0 4px #ff3a47) drop-shadow(0 0 10px rgba(230,57,70,.55));
        text-shadow: 0 0 5px rgba(230,57,70,.5); }
}
/* Quando o dropdown está aberto, pausa a animação pra não distrair o usuário */
.user-menu.open .user-menu-trigger,
.cart-wrap-hover:hover #cartBtn { animation-play-state: paused; }
@media (max-width: 720px) {
  .stk-header__gear { width: 200px; height: 200px; left: -65px; }
}

.stk-hd-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 880px) { .stk-hd-grid { gap: 12px; } }

/* Mobile: a busca desce pra linha própria, largura total (não espreme entre logo e ações) */
@media (max-width: 720px) {
  .stk-hd-grid {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo actions"
      "search search";
    row-gap: 10px; column-gap: 12px;
  }
  .stk-hd-grid > .stk-logo    { grid-area: logo; }
  .stk-hd-grid > .stk-actions { grid-area: actions; justify-self: end; }
  .stk-hd-grid > .stk-search  { grid-area: search; height: 46px; }
}

/* Logo: text-only (engrenagem agora vive no bg do header) */
.stk-logo {
  display: flex; flex-direction: column; line-height: 1;
  color: var(--white); text-decoration: none;
  padding-left: 130px; /* abre espaço pra engrenagem do bg */
  flex-shrink: 0;
}
.logo-text { display: contents; } /* legado: deixa filhos no flex do .stk-logo */
/* === Logo Opção A (30/05): Black Ops One maior + relevo 3D === */
.logo-top {
  font-family: 'Black Ops One', 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: .95;
  text-shadow:
    0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa,
    0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1),
    0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25);
}
.logo-bot {
  font-family: 'Black Ops One', 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 5.5px;
  color: var(--red);
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(230,57,70,.3);
}
@media (max-width: 720px) {
  .stk-logo { padding-left: 90px; }
  .logo-top { font-size: 32px; letter-spacing: 1.5px;
    text-shadow:
      0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #aaa,
      0 4px 1px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.3);
  }
  .logo-bot { font-size: 12px; letter-spacing: 3.5px; }
}
@media (max-width: 540px) {
  .stk-logo { padding-left: 80px; }
  /* Ajuste 30/05: manter FERRO VELHO visível no mobile (era display:none) */
  .logo-bot { font-size: 10px; letter-spacing: 2.5px; margin-top: 2px; }
}

.stk-search {
  display: flex; align-items: stretch;
  height: 52px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.stk-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  padding: 0 18px;
  font-size: 15px; font-family: inherit;
  color: var(--ink);
  background: transparent;
}
.stk-search button {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  border: 0; padding: 0 30px;
  font-weight: 600; font-size: 14px;
  height: 100%;
}
.stk-search button:hover { background: var(--red-dark); }

/* Mobile: busca mais compacta + respiro embaixo pro balão do Tônico (FAB) não tampar conteúdo */
@media (max-width: 600px) {
  .stk-search { height: 44px; }
  .stk-search input { padding: 0 12px; font-size: 14px; }
  .stk-search #btn-busca-voz, .stk-search #btn-busca-foto { padding: 0 9px !important; }
  .stk-search #btn-busca-voz svg, .stk-search #btn-busca-foto svg { width: 16px; height: 16px; }
  .stk-search button[type="submit"] { padding: 0 16px; }
  .site-main { padding-bottom: 88px; }
}

.stk-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.stk-act {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  color: var(--white);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: background 0.15s;
}
.stk-act:hover { background: rgba(255,255,255,0.08); }
.stk-act-ico {
  position: relative; display: inline-flex; align-items: center;
}
.badge-cart {
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
  position: absolute; top: -7px; right: -9px;
  min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid var(--ink);
  pointer-events: none;
}
.badge-cart:empty, .badge-cart[data-count="0"] { display: none; }

/* ============================================
   CategoryMenuBar (item #7, #8)
   ============================================ */
.stk-catbar {
  background: var(--red);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.stk-catbar-flex {
  display: flex; align-items: stretch; gap: 0;
  min-height: 44px;
}
.dept-menu {
  position: relative; display: flex; align-items: stretch;
  border-right: 1px solid rgba(255,255,255,0.20);
}
.dept-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; height: 100%;
  background: transparent; border: 0; color: inherit;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  cursor: pointer; position: relative; z-index: 5;
  text-transform: inherit; letter-spacing: inherit;
  cursor: pointer; list-style: none;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px;
  user-select: none;
  position: relative;
}
.dept-trigger::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: center;
  transition: transform .18s;
}


.dept-mega {
  position: absolute; top: 100%; left: 0;
  width: 280px; max-width: 90vw;
  background: var(--white); color: var(--ink);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.dept-menu:hover .dept-mega,
.dept-menu:focus-within .dept-mega { display: flex; }
.dept-menu:hover .dept-trigger,
.dept-menu:focus-within .dept-trigger { background: var(--red-dark); }
.dept-menu:hover .dept-trigger::after,
.dept-menu:focus-within .dept-trigger::after { transform: scaleX(1); }
/* Bridge invisivel pra mouse passar do botão pro mega sem fechar */
.dept-mega::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}

.dept-item {
  display: flex; flex-direction: column; padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.12s;
}
.dept-item:hover { background: var(--gray); }
.dept-item-name { font-weight: 600; color: var(--ink); }
.dept-item-count { font-size: 11px; color: var(--muted); margin-top: 2px; }


.dept-promo::after {
  content: ''; position: absolute; right: -30px; bottom: -30px;
  width: 140px; height: 140px;
  background: url('/assets/images/logo-engrenagem-branca.png') no-repeat center/contain;
  opacity: 0.10;
}




/* Inline category buttons */
.cat-quick { display: flex; align-items: stretch; gap: 0; flex: 1; flex-wrap: nowrap; }
.cat-quick::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  /* Em mobile permite scroll horizontal — dropdowns ficam menos críticos lá */
  .cat-quick { overflow-x: auto; scrollbar-width: none; }
}
.cat-quick-link {
  padding: 0 16px; display: flex; align-items: center;
  color: var(--white); white-space: nowrap;
  min-height: 44px;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  position: relative;
  transition: background 0.12s;
}
.cat-quick-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: center;
  transition: transform .18s;
}
.cat-quick-link:hover { background: var(--red-dark); }
.cat-quick-link:hover::after { transform: scaleX(1); }
.cat-ofertas {
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 0 18px; gap: 6px;
}
.cat-ofertas::after { display: none; }
.cat-ofertas:hover { background: #ffe033; }

/* Cat-quick items com dropdown hover (subcategorias) */
.cat-quick-item { position: relative; display: flex; align-items: stretch }
.cat-quick-item .cat-quick-link { display: inline-flex; align-items: center; gap: 5px }
.cat-quick-arrow { transition: transform .18s; opacity: .8 }
.cat-quick-item:hover .cat-quick-arrow,
.cat-quick-item:focus-within .cat-quick-arrow { transform: rotate(180deg) }
.cat-quick-subs {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; max-width: 90vw;
  background: var(--white); color: var(--ink);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 1px;
  z-index: 40;
}
.cat-quick-subs::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.cat-quick-item.has-subs:hover .cat-quick-subs,
.cat-quick-item.has-subs:focus-within .cat-quick-subs { display: flex }
.cat-quick-sub {
  padding: 7px 12px; font-size: 13px; color: var(--ink); border-radius: 6px;
  transition: background .12s, color .12s;
  text-transform: none; letter-spacing: 0; font-weight: 500;
}
.cat-quick-sub:hover { background: var(--gray); color: var(--red) }
.cat-quick-sub-all {
  border-top: 1px solid var(--line); margin-top: 4px;
  font-weight: 700; color: var(--red);
  display: flex; justify-content: space-between; align-items: center;
}
.cat-quick-sub-all:hover { background: rgba(200,38,44,.06) }


/* ============================================
   BRANDS MARQUEE (item #9)
   ============================================ */
.brands-marquee {
  background: var(--white);
  padding: 22px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.brands-fade {
  position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 3; pointer-events: none;
}
.brands-fade-l { left: 0; background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0) 100%); }
.brands-fade-r { right: 0; background: linear-gradient(-90deg, var(--white) 0%, rgba(255,255,255,0) 100%); }
.brands-track {
  display: flex; gap: 56px; align-items: center;
  animation: brandMarquee 36s linear infinite;
  width: max-content;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-chip {
  flex: 0 0 auto;
  height: 70px; min-width: 130px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(0.5); opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
  font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--ink); font-size: 18px;
}
.brand-chip:hover { filter: grayscale(0); opacity: 1; transform: scale(1.08); }
.brand-chip img {
  max-height: 44px; max-width: 100%;
  width: auto; height: 44px;
  object-fit: contain; display: block;
  /* Como muitos logos SVG já são pretos/cinza, removemos o grayscale forçado */
}

@keyframes brandMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HERO (itens #1, #2, #3, #4, #5)
   ============================================ */
.hero-ec {
  position: relative;
  height: 460px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #7a1a1d 100%);
  color: var(--white);
  overflow: hidden;
}
@media (max-width: 720px) { .hero-ec { height: 420px; } }

.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 18px);
}
/* === SVG inline com 2 engrenagens separadas (mecanismo real) === */
.ifv-gears {
  display: block;
  pointer-events: none;
}
.ifv-gear-big {
  transform-box: fill-box;
  transform-origin: center;
  animation: gearSpin 24s linear infinite;
  will-change: transform;
}
.ifv-gear-small {
  transform-box: fill-box;
  transform-origin: center;
  animation: gearSpin 16s linear infinite reverse;
  will-change: transform;
}
.hero-watermark-tr {
  position: absolute; top: -80px; right: -80px;
  width: 420px; height: 420px;
  opacity: 0.10;
  filter: brightness(2.5);
  z-index: 1;
}
.hero-watermark-bl {
  position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  opacity: 0.06;
  filter: brightness(2.5);
  z-index: 1;
}
.hero-showcase-inline {
  width: 100%; height: 100%;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.40));
}
.hero-halo {
  position: absolute; top: 50%; right: 12%;
  width: 480px; height: 480px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.32) 0%, transparent 62%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 1;
}
.hero-showcase {
  position: absolute; top: 50%; right: 8%; transform: translateY(-50%);
  width: 280px; height: 280px;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-showcase img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.40));
}
/* (reduce-motion desativado — Ton prefere animação sempre rodando) */
@media (max-width: 900px) { .hero-showcase, .hero-halo { display: none; } }

@keyframes gearSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Logo do header — gira contínua (mesmo desenho do PNG, só animado) */
.stk-logo-spin {
  animation: gearSpin 12s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
/* (reduce-motion desativado — Ton prefere animação sempre rodando) */
.stk-logo:hover .stk-logo-spin { animation-play-state: paused; }

.hero-slides { position: relative; height: 100%; z-index: 2; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 32px;
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hero-slide-img { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); max-height: 78%; max-width: 42%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); pointer-events: none; z-index: 1; border-radius: 12px; }
.hero-slide.hero-slide-dyn .hero-text { max-width: 56%; position: relative; z-index: 2; }
@media (max-width: 820px) {
  .hero-slide-img { display: none; }
  .hero-slide.hero-slide-dyn .hero-text { max-width: 100%; }
}
.hero-text { max-width: 560px; }

/* Eyebrow pill com dot verde pulsante (item #4) */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-slide h1 {
  font-size: 44px; line-height: 1.05; margin: 0 0 16px;
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.hero-slide h1 em { font-style: normal; color: var(--yellow); }
@media (max-width: 720px) { .hero-slide h1 { font-size: 30px; } }
.hero-slide p { font-size: 16px; color: rgba(255,255,255,0.92); margin: 0 0 22px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Dots (item #5) */
.hero-dots {
  position: absolute; bottom: 24px; left: 32px;
  display: flex; gap: 8px; z-index: 3;
}
.hero-dots button {
  width: 8px; height: 8px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.40);
  padding: 0;
  transition: all 0.3s;
}
.hero-dots button.active {
  width: 26px;
  border-radius: 100px;
  background: var(--white);
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px;
  border: 2px solid transparent;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }

/* No hero a botão primary é amarelo */
.hero-slide .btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.hero-slide .btn-primary:hover { background: #ffe033; }

/* ============================================
   PLATE SEARCH (item #1 — listras leves)
   ============================================ */
.plate-section {
  background: var(--ink); color: var(--white);
  padding: 32px 0;
  position: relative; overflow: hidden;
}
.plate-section .stk-pattern { z-index: 1; }
.plate-section .stk-container { position: relative; z-index: 2; }
.plate-box {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
@media (max-width: 720px) { .plate-box { grid-template-columns: 1fr; gap: 16px; padding: 20px; } }
.plate-info h2 { font-size: 22px; margin: 0; color: var(--white); }
.plate-info p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,0.75); }
.plate-form { display: flex; align-items: center; gap: 10px; }
.plate-input-wrap {
  display: flex; align-items: stretch;
  background: var(--white);
  border: 2px solid var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.plate-mercosul {
  background: linear-gradient(180deg, #003c92 0%, #002870 100%);
  color: var(--white); font-weight: 700; font-family: 'Oswald', sans-serif;
  padding: 0 10px;
  display: flex; align-items: center;
  font-size: 14px;
}
.plate-input {
  border: 0; outline: 0;
  padding: 12px 14px;
  font-family: 'Oswald', monospace; font-weight: 700;
  font-size: 20px; letter-spacing: 0.16em;
  width: 160px; text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================
   PRODUCT CAROUSEL (item #10)
   ============================================ */
.prod-section { padding: 40px 0; }
.prod-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.prod-head h2 { font-size: 26px; margin: 0; text-transform: uppercase; }
.prod-link { font-weight: 700; color: var(--red); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.prod-link:hover { color: var(--red-dark); }

.prod-carousel-wrap { position: relative; }
.prod-carousel {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.prod-carousel::-webkit-scrollbar { height: 6px; }
.prod-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.prod-card {
  flex: 0 0 auto;
  width: 278px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gray-dark); }

.prod-img {
  position: relative;
  height: 190px;
  background: var(--gray);
  display: flex; align-items: center; justify-content: center;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-noimg { font-size: 52px; color: var(--gray-dark); }

.prod-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 9px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prod-badge.new { background: var(--green); color: var(--ink); }
.prod-badge.offer { background: var(--yellow); color: var(--ink); }

.prod-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.prod-name { font-weight: 600; font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; line-height: 1.35; }
.prod-meta { font-size: 12.5px; color: var(--body); }
.prod-price { margin-top: auto; padding-top: 10px; font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--red); }
.prod-price-ask { color: var(--body); font-size: 16px; }

.prod-empty { text-align: center; padding: 40px 20px; background: var(--white); border-radius: var(--radius); }
.prod-empty p { color: var(--body); margin: 0 0 16px; }

.carousel-arrow {
  width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink);
  font-size: 22px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.carousel-arrow:hover { background: var(--red); color: var(--white); border-color: var(--red); transform: scale(1.05); }
.prod-head-arrows { display: flex; gap: 8px; }

/* ============================================
   PROMO BANNER (item #1 listras no card vermelho)
   ============================================ */
.promo-section { padding: 16px 0 40px; }
.promo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 720px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-card {
  border-radius: var(--radius);
  padding: 26px;
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.promo-detran {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
}
.promo-frete {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
}
.promo-icon { flex: 0 0 auto; z-index: 2; }
.promo-icon img { max-height: 64px; max-width: 100px; object-fit: contain; }
.promo-icon svg { color: var(--white); }
.promo-text { z-index: 2; }
.promo-text h3 { margin: 0 0 6px; font-size: 19px; text-transform: uppercase; }
.promo-text p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.promo-frete .promo-text p { color: rgba(255,255,255,0.9); }

/* ============================================
   PLATFORMS
   ============================================ */
.plat-section { background: var(--white); padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plat-title { font-size: 24px; text-align: center; margin: 0 0 28px; text-transform: uppercase; }
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
.plat-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px;
  background: var(--gray); border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  text-align: center;
}
.plat-card:hover { transform: translateY(-4px); background: var(--white); border-color: var(--red); }
.plat-card img { max-height: 60px; max-width: 120px; object-fit: contain; }
.plat-icon-svg { color: var(--red); }
.plat-label { font-weight: 700; font-size: 13.5px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================
   INFO STRIP (item #1)
   ============================================ */
.info-strip { background: var(--ink); color: var(--white); padding: 30px 0; position: relative; overflow: hidden; }
.info-strip .stk-pattern { z-index: 1; }
.info-strip .stk-container { position: relative; z-index: 2; }
.info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 720px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: rgba(255,255,255,0.92);
}
.info-item strong { font-family: 'Oswald', sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.info-item svg { color: var(--yellow); flex: 0 0 auto; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding: 44px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 26px; margin: 0 0 18px; text-transform: uppercase; }
.contact-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 14px; color: var(--body); }
.contact-row svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.contact-cta { margin-top: 18px; }

/* FOOTER antigo removido — CSS do footer atual está inline em partials/footer.php.
   A classe .ftr e variantes continuam no DOM mas estilizadas pelo footer.php.
   (Bloco anterior tinha .ftr/.ftr-grid/.ftr-bottom/.ftr-pay-strip etc, hoje todos órfãos ou sobrescritos.) */

/* ============================================
   CHATBOT (item #12)
   ============================================ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 72px; height: 72px; border-radius: 50%;
  border: 0;
  background: #25D366; color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.chat-fab svg { width: 32px; height: 32px; }
.chat-fab:hover { transform: scale(1.08); background: #1ebe5a; }
.chat-fab.open { background: var(--ink); }
.chat-fab-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chat-fab-badge.hidden { display: none; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  z-index: 1001;
  display: none; flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink); color: var(--white);
}
.chat-head strong { font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.chat-close {
  border: 0; background: transparent; color: var(--white);
  font-size: 26px; line-height: 1; padding: 0; width: 28px; height: 28px;
}

/* Banner WhatsApp interno (item #12) */
.chat-whatsapp {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: #25D366; color: var(--white);
  border-radius: 12px;
  margin: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.chat-whatsapp:hover { background: #1ab855; }
.chat-whatsapp-icon {
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.chat-whatsapp-text { display: flex; flex-direction: column; gap: 1px; }
.chat-whatsapp-title { font-weight: 700; font-size: 13px; }
.chat-whatsapp-sub { font-size: 11px; opacity: 0.92; }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--gray);
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}
.chat-msg.bot { background: var(--white); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.user { background: var(--red); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { font-style: italic; color: var(--muted); }

.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 14px; font-size: 13.5px; font-family: inherit;
  outline: 0;
}
.chat-input input:focus { border-color: var(--red); }
.chat-input button {
  width: 38px; height: 38px;
  border-radius: 50%; border: 0;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.chat-input button:hover { background: var(--red-dark); }

@media (max-width: 540px) {
  .chat-panel { right: 8px; bottom: 80px; height: calc(100vh - 100px); width: calc(100vw - 16px); }
  .chat-fab { right: 16px; bottom: 16px; width: 62px; height: 62px; }
  .chat-fab svg { width: 28px; height: 28px; }
}

/* ============================================
   Site Redesign — Extras (2026-05-17)
   Estilos pra páginas internas (detalhes_peca, busca, etc)
   Reusa as vars de :root do site-redesign.css principal.
   ============================================ */

:root {
  --bg: var(--gray); /* alias retrocompat */
}

/* ---------- Wrapper main ---------- */
.site-main { padding: 28px 0 56px; min-height: 50vh; }
.site-main-inner { display: block; }

/* ---------- Breadcrumb ---------- */
.bcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.bcrumb a:hover { color: var(--red); }
.bcrumb-sep { color: var(--gray-dark); font-weight: 700; }
.bcrumb-current { color: var(--ink); font-weight: 500; }

/* ---------- Página de detalhes ---------- */
.peca-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .peca-main { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
}

.peca-gal-main {
  aspect-ratio: 1;
  background: var(--gray);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.peca-gal-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.peca-gal-noimg { color: #9098A4; }
.peca-gal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.thumb-btn {
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--gray);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s;
}
.thumb-btn.active { border-color: var(--red); }
.thumb-btn:hover  { border-color: var(--red-soft); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.peca-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.peca-title {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
}
.peca-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.badge-ok, .badge-out, .badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-ok      { background: rgba(93,227,154,.18); color: #1d8c50; }
.badge-out     { background: rgba(200,38,44,.10);  color: var(--red); }
.badge-neutral { background: var(--gray);          color: var(--ink); }

.peca-price-box {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--gray) 0%, #fff 100%);
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.peca-price {
  font-family: 'Oswald', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.peca-price-sub {
  font-size: 13px;
  color: #1d8c50;
  font-weight: 600;
  margin-top: 5px;
}
.peca-price-ask {
  padding: 14px 18px;
  background: var(--gray);
  font-size: 14px;
  color: var(--body);
}

.peca-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,.32);
  transition: background .15s, transform .15s;
  width: 100%;
}
.peca-cta-wa:hover { background: #1eb557; transform: translateY(-1px); }

/* ---------- Share ---------- */
.share-bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-bar-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, transform .15s;
  color: #fff;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-wa   { background: #25D366; }
.share-fb   { background: #1877F2; }
.share-tg   { background: #2AABEE; }
.share-copy { background: var(--ink); }
#copy-msg {
  font-size: 12px;
  color: #1d8c50;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
}

/* ---------- Cards descrição/specs ---------- */
.peca-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .peca-detail-grid { grid-template-columns: 1fr; }
}
.peca-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.peca-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.peca-desc {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.65;
  white-space: pre-wrap;
}
.peca-desc-empty { font-size: 14px; color: var(--muted); }

.peca-specs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  margin: 0;
}
.peca-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.peca-spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.peca-spec-row dt { color: var(--muted); font-weight: 500; margin: 0; }
.peca-spec-row dd { color: var(--ink); font-weight: 600; text-align: right; margin: 0; }

/* ---------- Relacionadas ---------- */
.peca-rel { margin-bottom: 30px; }
.peca-rel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.peca-rel-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.peca-rel-link {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.peca-rel-link:hover { text-decoration: underline; }

/* ---------- Grid produtos (reuso) ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ---------- Empty state ---------- */
.empty-active {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 28px;
  text-align: center;
  max-width: 560px;
  margin: 32px auto;
}
.empty-active-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}
.empty-active h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.empty-active p {
  color: var(--body);
  font-size: 14.5px;
  margin: 0 0 18px;
}
.empty-active-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-wa, .btn-chat {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-wa   { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1eb557; }
.btn-chat { background: var(--ink); color: #fff; }
.btn-chat:hover { background: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* ============================================
   Painel do Cliente — 2026-05-17
   Reusa vars de :root do site-redesign.css
   ============================================ */

.painel-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.painel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 18px);
  pointer-events: none;
}
.painel-hero-text { position: relative; z-index: 1; flex: 1; min-width: 250px; }
.painel-hero-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  margin: 8px 0 6px;
  letter-spacing: -0.5px;
}
.painel-hero-text p { color: rgba(255,255,255,.7); margin: 0; font-size: 14.5px; }

.painel-hero-stats { display: flex; gap: 18px; position: relative; z-index: 1; }
.painel-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 110px;
  text-align: center;
}
.painel-stat-val {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}
.painel-stat-lbl {
  font-size: 11.5px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

.painel-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .painel-grid { grid-template-columns: 1fr; }
  .painel-hero-stats { width: 100%; }
}

.painel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}
.painel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.painel-card-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.painel-card-link {
  color: var(--red);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}
.painel-card-link:hover { text-decoration: underline; }

.painel-card-cart {
  background: linear-gradient(135deg, #fffaf0 0%, #fff 100%);
  border-color: var(--yellow);
}

/* Empty state */
.painel-empty {
  text-align: center;
  padding: 36px 20px;
}
.painel-empty-icon {
  width: 72px; height: 72px;
  background: var(--gray);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 14px;
}
.painel-empty h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.painel-empty p, .painel-empty-sub {
  color: var(--body);
  font-size: 14.5px;
  margin: 0 0 16px;
}
.painel-empty-sub a { color: var(--red); font-weight: 600; }

/* Tabela de pedidos */
.painel-pedidos {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.painel-pedidos thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}
.painel-pedidos tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
.painel-pedidos tbody tr:last-child td { border-bottom: 0; }
/* Não quebrar data/valor/pagamento em 2 linhas */
.painel-pedidos td[data-label="Data"],
.painel-pedidos td[data-label="Valor"],
.painel-pedidos td[data-label="Pagamento"] { white-space: nowrap; }
.painel-pedidos td[data-label="Valor"] { font-weight: 700; }
.painel-pedidos td[data-label="Pagamento"] { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.painel-pedidos tbody tr:hover td { background: var(--gray); }

/* Mobile: tabela de pedidos vira CARTÕES empilhados (cabe na tela, sem rolar de lado) */
@media (max-width: 640px) {
  .painel-pedidos thead { display: none; }
  .painel-pedidos,
  .painel-pedidos tbody,
  .painel-pedidos tr,
  .painel-pedidos td { display: block; width: 100%; }
  .painel-pedidos tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 4px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
  }
  .painel-pedidos tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .painel-pedidos tbody tr td:last-child { border-bottom: 0; }
  .painel-pedidos tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
    flex-shrink: 0;
  }
  .painel-pedidos td[data-label="Ações"] { justify-content: flex-end; }
  .painel-pedidos .painel-pedido-itens { text-align: right; }
}
.painel-pedido-cell { display: flex; align-items: center; gap: 10px; }
.painel-pedido-txt { min-width: 0; }
.painel-pedido-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: var(--gray);
}
.painel-pedido-itens {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 5px;
}
.status-pend   { background: rgba(255,214,0,.18);  color: #876c00; }
.status-conf   { background: rgba(38,162,212,.15); color: #0d6e94; }
.status-prep   { background: rgba(200,38,44,.10);  color: var(--red); }
.status-ok     { background: rgba(93,227,154,.20); color: #1d8c50; }
.status-cancel { background: var(--gray);          color: var(--muted); }

.painel-link-small {
  font-size: 12.5px;
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.painel-link-small:hover { border-color: var(--red); background: #fff5f5; }
.painel-link-cancel { border-color: #f0c0c2; }
.painel-link-cancel:hover { border-color: var(--red); background: #fdecec; }
.painel-link-small:hover { text-decoration: underline; }
.painel-link-mute { color: var(--muted); font-weight: 400; }

/* Side card perfil */
.painel-card-prof { text-align: center; }
.painel-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.painel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.painel-prof-name {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
}
.painel-prof-email {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-all;
}
.painel-prof-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--body);
  margin-top: 8px;
}

.painel-prof-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.painel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all .15s;
}
.painel-btn-ghost {
  background: var(--gray);
  color: var(--ink);
  border: 1px solid var(--line);
}
.painel-btn-ghost:hover { background: var(--gray-dark); }
.painel-btn-out {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
}
.painel-btn-out:hover { background: var(--red); color: #fff; }
.painel-btn-wa {
  background: #25D366; color: #fff;
  width: 100%; margin-top: 10px;
}
.painel-btn-wa:hover { background: #1eb557; }

.painel-card-help h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--ink);
}
.painel-card-help p {
  color: var(--body);
  font-size: 13.5px;
  margin: 0;
}

/* ============================================
   Logos novas no footer + marquee — 2026-05-17
   ============================================ */

/* Footer: substitui .ftr-pays (spans) por .ftr-pays-imgs (imagens reais) */
.ftr-pays-imgs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ftr-pay-bandeiras {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.9);
  transition: filter .2s;
}
.ftr-pay-bandeiras:hover { filter: brightness(0) invert(1) opacity(1); }

.ftr-pay-logo {
  height: 26px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
.ftr-pay-logo:hover { opacity: 1; }

/* InfinitePay tem proporção mais alta */
.ftr-pay-logo-tall {
  height: 30px;
}

.ftr-pay-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  display: inline-block;
}

.ftr-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 5px;
  height: 22px;
  line-height: 1;
}
.ftr-pay-chip.pix { background: rgba(50,180,150,0.18); color: #5DD8C0; border-color: rgba(50,180,150,0.35) }
.ftr-pay-chip.boleto { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85) }

/* Marquee: item featured (logo ideal solta) maior e sem hover de hover */

/* 2026-05-17: ajustes individuais por marca no marquee */
.brand-chip[data-logo-slot="brand-nissan"] img { height: 56px; }
.brand-chip[data-logo-slot="brand-hyundai"] img { height: 50px; }
.brand-chip[data-logo-slot="brand-honda"] img { height: 48px; }


/* 2026-05-17: chips de pagamento (footer) */
.pay-chips {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pay-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; width: 56px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform .15s, box-shadow .15s;
}
.pay-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.pay-chip img { max-height: 24px; max-width: 100%; width: auto; object-fit: contain; display: block; }
.pay-chip-wide { width: 78px; }
.pay-chip-dark { background: #1a1d24; border-color: #2a2d34; }
.pay-chip-dark img { filter: brightness(0) invert(1); max-height: 26px; }
.pay-chip-sep {
  display: inline-block; width: 1px; height: 28px;
  background: rgba(255,255,255,0.18);
  margin: 0 8px; align-self: center;
}
.pay-chip-marketplace { width: 78px; background: #fff; }
.pay-chip-marketplace img { max-height: 22px; }

/* === CMS bloco editável (V5) — entre marquee de marcas e hero === */
.cms-bloco {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid var(--line, #e5e7eb);
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.cms-bloco-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: center;
}
.cms-bloco-grid:has(.cms-bloco-text:only-child) { grid-template-columns: 1fr; }
.cms-bloco-img {
  width: 100%; height: auto; max-height: 220px;
  object-fit: cover; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cms-bloco-title {
  font-family: 'Oswald', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--ink, #222);
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.cms-bloco-sub {
  font-size: 15px; color: var(--red, #C8262C);
  font-weight: 600; margin: 0 0 12px;
}
.cms-bloco-body {
  font-size: 14.5px; line-height: 1.55;
  color: var(--body, #444);
  margin-bottom: 14px;
}
.cms-bloco-cta {
  display: inline-block; padding: 10px 22px;
  background: var(--red, #C8262C); color: #fff;
  border-radius: 7px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.cms-bloco-cta:hover { background: var(--red-dark, #a01f24); }
@media (max-width: 720px) {
  .cms-bloco-grid { grid-template-columns: 1fr; gap: 18px; }
  .cms-bloco-title { font-size: 22px; }
}


/* 2026-05-17: Detalhes peça — carrinho, qty, payment chips, trust badges */
.peca-rev-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow), #ffc400);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.peca-price-strike {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}
.peca-price-pix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(50,180,150,0.12);
  color: #1d8c50;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 8px;
}
.peca-price-pix strong { font-weight: 700; }
.peca-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1d8c50;
  font-weight: 600;
  margin: 8px 0 14px;
  padding: 4px 10px;
  background: rgba(93,227,154,0.14);
  border-radius: 5px;
}
.peca-quantity-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
}
.peca-quantity-box label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.qty-input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qty-input button {
  width: 38px;
  background: var(--gray);
  border: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.qty-input button:hover { background: var(--gray-dark); }
.qty-input input {
  width: 60px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input:focus { outline: none; }

.peca-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .peca-cta-row { grid-template-columns: 1fr; }
}
.peca-cta-cart, .peca-cta-buy {
  padding: 14px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.peca-cta-cart {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.peca-cta-cart:hover:not(:disabled) { background: var(--ink); color: #fff; transform: translateY(-1px); }
.peca-cta-cart:disabled { opacity: .65; cursor: wait; }
.peca-cta-buy {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(200,38,44,.32);
}
.peca-cta-buy:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200,38,44,.45); }
.peca-cta-buy:disabled { opacity: .65; cursor: wait; }

.peca-cta-wa-secondary {
  background: #fff !important;
  color: #128C7E !important;
  border: 1.5px solid #128C7E;
  box-shadow: none !important;
  font-size: 14px !important;
  margin-top: 4px;
}
.peca-cta-wa-secondary:hover { background: #128C7E !important; color: #fff !important; }

.peca-pay-card {
  background: linear-gradient(135deg, #fff, var(--gray));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.peca-pay-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.peca-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.peca-pay-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 50px;
  padding: 5px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.peca-pay-pill img { max-height: 20px; max-width: 100%; object-fit: contain; display: block; }
.peca-pay-pill.peca-pay-pix {
  background: rgba(50,180,150,0.10);
  border-color: rgba(50,180,150,0.4);
  width: auto;
  padding-right: 28px;
}
.peca-pay-pill.peca-pay-pix small {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}
.peca-pay-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.peca-trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--gray);
  border-radius: 10px;
  margin-bottom: 14px;
}
.peca-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--body);
  font-weight: 600;
}
.peca-trust-item svg { color: #1d8c50; flex: 0 0 auto; }

/* Toast */
.peca-toast-host { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; pointer-events: none; }
.peca-toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translateX(120%);
  transition: transform .25s;
  pointer-events: auto;
  max-width: 380px;
}
.peca-toast.show { transform: translateX(0); }
.peca-toast.err { background: #a01f24; }
.peca-toast.ok { background: linear-gradient(135deg, #1d8c50, #138e3c); }


/* 2026-05-17 F12c: cart preview no hover */
.cart-wrap-hover { position: relative; display: inline-flex; }
.cart-preview {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 16px;
  z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s ease-out, transform .12s ease-out, visibility 0s linear .12s;
  pointer-events: none;
}
.cart-wrap-hover:hover .cart-preview,
.cart-wrap-hover:focus-within .cart-preview {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition: opacity .12s ease-out, transform .12s ease-out, visibility 0s linear 0s;
}
/* Bridge pra mouse passar do botão pra preview sem fechar */
.cart-wrap-hover::after { content: ''; position: absolute; top: 100%; right: 0; width: 100%; height: 12px; }
.cart-preview-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 16px 0; }
.cart-preview-empty p { margin: 8px 0 12px; color: var(--ink); font-weight: 600; }
.cart-preview-cta { display: inline-block; background: var(--red); color: #fff !important; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; }
.cart-preview-cta:hover { background: var(--red-dark); }
.cart-preview-head { font-size: 13px; color: var(--body); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.cart-preview-head strong { color: var(--ink); }
.cart-preview-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.cart-preview-item { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 6px; border-radius: 7px; transition: background .15s; }
.cart-preview-item:hover { background: var(--gray); }
.cart-preview-img { width: 44px; height: 44px; background: var(--gray); border-radius: 7px; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.cart-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-preview-info { flex: 1; min-width: 0; }
.cart-preview-name { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-preview-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cart-preview-more { text-align: center; font-size: 12px; color: var(--muted); padding: 6px; font-style: italic; }
.cart-preview-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cart-preview-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--body); }
.cart-preview-total strong { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--ink); }
@media (max-width: 540px) {
  .cart-preview { display: none !important; }
}


/* 2026-05-17 F13B: user menu dropdown + cart preview editável */
.user-menu { position: relative; }
.user-menu-trigger { cursor: pointer; }
.user-avatar-mini {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-family: 'Oswald', sans-serif; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.user-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 8px;
  z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.user-menu:hover .user-menu-pop,
.user-menu:focus-within .user-menu-pop { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.user-menu::after { content: ''; position: absolute; top: 100%; right: 0; left: 0; height: 12px; }
.umenu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.umenu-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.umenu-email { font-size: 12px; color: var(--muted); word-break: break-all; margin-top: 2px; }
.umenu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px;
  color: var(--ink); text-decoration: none; font-size: 13.5px;
  transition: background .15s;
}
.umenu-item:hover { background: var(--gray); }
.umenu-item svg { color: var(--muted); flex: 0 0 auto; }
.umenu-item:hover svg { color: var(--red); }
.umenu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.umenu-out:hover { color: var(--red); }

/* Cart preview editavel */
.cart-mini { padding: 6px; display: grid !important; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.cart-mini-link { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; flex: 1; }
.cart-mini-controls {
  display: flex; align-items: center; gap: 4px;
  flex: 0 0 auto;
}
.cmqty {
  width: 22px; height: 22px;
  background: var(--gray); border: 1px solid var(--line);
  border-radius: 5px; cursor: pointer;
  font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--ink); padding: 0;
}
.cmqty:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmqty:disabled { opacity: 0.5; cursor: not-allowed; }
.cmqty-val { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.cmrm {
  width: 22px; height: 22px;
  background: transparent; border: 1px solid transparent;
  border-radius: 5px; cursor: pointer;
  font-size: 16px; line-height: 1;
  color: var(--muted); padding: 0;
  margin-left: 2px;
}
.cmrm:hover { background: rgba(200,38,44,0.1); color: var(--red); border-color: rgba(200,38,44,0.3); }
.cart-mini.is-loading { opacity: 0.5; pointer-events: none; }


/* 2026-05-18: busca / catálogo / filtros */
.search-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 0; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.search-count { font-size: 14.5px; color: var(--body); }
.search-count strong { color: var(--ink); font-family: 'Oswald', sans-serif; font-size: 18px; }
.search-order { display: flex; gap: 10px; align-items: center; }
.btn-filtros {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  color: var(--ink);
}
.btn-filtros:hover { border-color: var(--red); color: var(--red); }
#ordem-select {
  padding: 9px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; font-size: 13.5px; font-family: inherit; cursor: pointer;
}

.search-layout-v2 {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  align-items: flex-start;
}
@media (max-width: 880px) {
  .search-layout-v2 { grid-template-columns: 1fr; }
  .filtros-drawer {
    position: fixed !important; inset: 0; z-index: 1000;
    background: #fff; padding: 24px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s;
  }
  .filtros-drawer.open { transform: translateX(0); }
  .filtros-drawer-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 16px; }
}
@media (min-width: 881px) {
  .filtros-drawer-head { display: none; }
  .btn-filtros { display: none; }
}

.filtros-drawer { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: sticky; top: 100px; }
.filtros-drawer-title { font-family: 'Oswald', sans-serif; font-size: 18px; text-transform: uppercase; }
.filtros-drawer-close {
  background: var(--gray); border: 0; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.filter-block { margin-bottom: 18px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin-bottom: 8px;
}
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.filter-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; color: var(--body); text-decoration: none;
  font-size: 13px; border-radius: 6px; transition: background .15s;
}
.filter-list a:hover { background: var(--gray); }
.filter-list a.active { background: var(--ink); color: #fff; font-weight: 600; }
.filter-list .n { font-size: 11px; color: var(--muted); }
.filter-list a.active .n { color: rgba(255,255,255,.65); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .chip {
  padding: 5px 10px; background: var(--gray); border-radius: 5px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all .15s;
}
.filter-chips .chip:hover { background: var(--ink); color: #fff; }
.filter-chips .chip.active { background: var(--red); color: #fff; }

.filter-price { display: flex; gap: 6px; }
.filter-price input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 13px; font-family: inherit;
}

#grid-area .prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 24px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px;
  padding: 0 10px;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .active { background: var(--red); color: #fff; border-color: var(--red); }

/* Empty state (re-use peça) */

/* Banner busca por placa */
.busca-placa-card {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff; padding: 20px 24px; border-radius: 14px;
  margin-bottom: 22px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.busca-placa-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,214,0,.05) 0 14px, transparent 14px 32px);
  pointer-events: none;
}
.busca-placa-icon { font-size: 42px; flex: 0 0 auto; z-index: 1; }
.busca-placa-text { flex: 1; min-width: 240px; z-index: 1; }
.busca-placa-text h3 { font-family: 'Oswald', sans-serif; font-size: 18px; text-transform: uppercase; margin: 0 0 5px; }
.busca-placa-text code {
  background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 5px;
  font-family: 'Courier New', monospace; font-size: 15px; font-weight: 700;
}
.busca-placa-text p { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; line-height: 1.5; }
.busca-placa-btn {
  background: #25D366; color: #fff; padding: 12px 20px; border-radius: 9px;
  font-weight: 700; font-size: 13.5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(37,211,102,.32); z-index: 1;
  white-space: nowrap;
}
.busca-placa-btn:hover { background: #1eb557; transform: translateY(-2px); }


/* Placa identificada (variante verde) */
.busca-placa-card.busca-placa-ok {
  background: linear-gradient(135deg, #0E1014, #1a3d2a);
  border: 1px solid rgba(93,227,154,0.4);
}
.busca-placa-card.busca-placa-ok::before {
  background: repeating-linear-gradient(45deg, rgba(93,227,154,.06) 0 14px, transparent 14px 32px);
}
.busca-placa-card.busca-placa-ok code {
  background: #5DE39A; color: var(--ink);
}


/* 2026-05-18 F15+F16+F17: Login inline dropdown — redesign */
.login-pop {
  width: 360px !important; padding: 0 !important;
  border: 0 !important; border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22) !important;
}
/* Mobile: o dropdown de login de 360px estourava a tela (rótulos cortados).
   Vira um painel centralizado que sempre cabe no viewport. */
@media (max-width: 480px) {
  .user-menu-login .user-menu-pop.login-pop {
    position: fixed !important;
    top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
    width: 92vw !important; max-width: 380px;
    max-height: 88vh; overflow-y: auto !important;
    transform: translate(-50%, -46%) !important;
  }
  .user-menu-login:focus-within .user-menu-pop.login-pop,
  .user-menu-login:hover .user-menu-pop.login-pop,
  .user-menu-login.open .user-menu-pop.login-pop {
    transform: translate(-50%, -50%) !important;
  }
}
.lpop-head {
  position: relative; padding: 18px 22px 14px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.lpop-head::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,214,0,0.04) 0 14px, transparent 14px 32px, rgba(200,38,44,0.05) 32px 46px, transparent 46px 60px);
  pointer-events: none;
}
.lpop-tabs {
  position: relative; z-index: 1;
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
}
.lpop-tab {
  flex: 1; padding: 9px 14px;
  background: transparent; border: 0;
  border-radius: 100px;
  cursor: pointer;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,0.55);
  transition: all .2s;
}
.lpop-tab:hover { color: #fff; }
.lpop-tab.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200,38,44,0.4);
}

.lpop-body { padding: 18px 22px 20px; background: #fff; }

.lpop-oauth { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.lpop-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  border: 1px solid;
  transition: transform .15s, box-shadow .15s;
}
.lpop-oauth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.lpop-oauth-btn.google {
  background: #1a1d24;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
  font-weight: 600;
}
.lpop-oauth-btn.google:hover {
  background: #232730;
  border-color: rgba(255,214,0,0.4);
  color: #fff;
}
.lpop-oauth-btn.facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.lpop-oauth-btn.facebook:hover { background: #0d61c4; }

.lpop-divider {
  position: relative; text-align: center;
  margin: 16px 0 12px;
}
.lpop-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
}
.lpop-divider span {
  position: relative; background: #fff; padding: 0 12px;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
}

.lpop-err {
  background: rgba(200,38,44,0.10);
  color: #a01f24;
  border: 1px solid rgba(200,38,44,0.32);
  padding: 9px 13px; border-radius: 8px;
  font-size: 12.5px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

.lpop-row { margin-bottom: 11px; }
.lpop-row label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  margin-bottom: 5px;
}
.lpop-row label a {
  color: var(--red); text-decoration: none;
  text-transform: none; letter-spacing: 0;
  font-size: 11.5px; font-weight: 600;
}
.lpop-row label a:hover { text-decoration: underline; }
.lpop-row input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit;
  background: #fff; transition: border-color .15s;
  box-sizing: border-box;
}
.lpop-row input:focus { outline: none; border-color: var(--red); }

.lpop-btn {
  width: 100%; padding: 12px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 6px 18px rgba(200,38,44,0.32);
  margin-top: 6px;
}
.lpop-btn:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(200,38,44,0.42);
}
.lpop-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.lpop-recap-note {
  font-size: 10.5px; color: var(--muted);
  text-align: center; margin-top: 10px;
}

/* Esconder badge reCAPTCHA do canto */
.grecaptcha-badge { visibility: hidden !important; }


/* 2026-05-18: botão usuário logado com destaque amarelo (não-login) */
.user-menu:not(.user-menu-login) > .user-menu-trigger {
  background: rgba(255,214,0,0.10);
  border: 1px solid rgba(255,214,0,0.28);
  padding: 6px 10px 6px 6px;
}
.user-menu:not(.user-menu-login) > .user-menu-trigger:hover {
  background: rgba(255,214,0,0.18);
  border-color: rgba(255,214,0,0.5);
}
.user-menu:not(.user-menu-login) > .user-menu-trigger > .hide-sm {
  color: var(--yellow);
  font-weight: 600;
}


/* F17: botão favoritar na página da peça */
.fav-btn-peca {
  width:42px; height:42px; border-radius:50%;
  background:#fff; border:1.5px solid var(--line);
  cursor:pointer; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); transition:all .15s;
}
.fav-btn-peca:hover { border-color: var(--red); color: var(--red); transform:scale(1.05); }
.fav-btn-peca.is-fav { background:#ffe5e5; border-color:var(--red); color:var(--red); }
.fav-btn-peca.is-fav svg { fill: var(--red); }


/* 2026-05-18 F18: HTMX transitions */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.18s;
}
.site-main { view-transition-name: main-content; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-indicator { display: none; }


/* F18 v2: Mega menu coluna única + sub ao lado */
.dept-item-wrap { position: relative; }
.dept-item {
  display: flex; flex-direction: row; align-items: center; gap: 10px;   /* row explícito sobrescreve regra antiga linha 430 */
  padding: 10px 14px;
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  transition: background .15s;
  position: relative;
}
.dept-item:hover { background: var(--gray); }
.dept-item-name { flex: 1; }
.dept-item-count {
  font-size: 11px; color: var(--muted);
  background: var(--gray); padding: 1px 7px; border-radius: 4px;
  font-weight: 600;
}
.dept-item:hover .dept-item-count { background: #fff; }
.dept-item-arrow { color: var(--muted); flex: 0 0 auto; transition: transform .15s, color .15s; }
.dept-item-wrap.has-subs:hover .dept-item { background: var(--ink); color: #fff; }
.dept-item-wrap.has-subs:hover .dept-item-count { background: rgba(255,255,255,.16); color: rgba(255,255,255,.85); }
.dept-item-wrap.has-subs:hover .dept-item-arrow { transform: translateX(3px); color: var(--yellow); }

/* Painel das subcategorias — abre do lado direito do item */
.dept-subs {
  display: none;
  position: absolute; left: calc(100% + 8px); top: -8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  min-width: 240px; max-width: 320px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  z-index: 50;
}
.dept-item-wrap.has-subs:hover .dept-subs,
.dept-item-wrap.has-subs:focus-within .dept-subs { display: block !important; z-index: 9999; }
/* Bridge pro mouse passar do item pra subs sem fechar */
.dept-item-wrap.has-subs::before {
  content: ''; position: absolute; left: 100%; top: 0; bottom: 0; width: 14px;
}
.dept-subs-head {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
  color: var(--muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dept-sub-item {
  display: block; padding: 8px 12px;
  color: var(--ink); text-decoration: none;
  font-size: 13.5px; border-radius: 7px;
  transition: background .15s;
}
.dept-sub-item:hover { background: var(--gray); color: var(--red); }
.dept-sub-all {
  border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px;
  font-weight: 700; color: var(--red);
  display: flex; align-items: center; justify-content: space-between;
}
.dept-sub-all:hover { background: rgba(200,38,44,.08); }


/* dept-trigger explicit font (igual catbar links) */
.dept-trigger {
  font-family: 'Oswald', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  color: #fff !important;
}

/* === Botão "Entrar" do header — quando NÃO logado === */
.user-menu-login > .user-menu-trigger {
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.user-menu-login > .user-menu-trigger:hover {
  background: rgba(255,255,255,0.08);
}
.user-menu-login > .user-menu-trigger:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ───── Confirm estilizado (substitui o confirm() nativo do navegador) ───── */
.ifv-confirm-ov { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.48); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .18s; }
.ifv-confirm-ov.on { opacity: 1; }
.ifv-confirm { background: #fff; border-radius: 14px; max-width: 360px; width: 100%; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(10px) scale(.97); transition: transform .18s; }
.ifv-confirm-ov.on .ifv-confirm { transform: none; }
.ifv-confirm-title { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.ifv-confirm-msg { font-size: 14px; color: var(--body); line-height: 1.45; margin-bottom: 18px; }
.ifv-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ifv-confirm-btn { padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .12s; }
.ifv-confirm-btn.cancel:hover { background: var(--gray); }
.ifv-confirm-btn.ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.ifv-confirm-btn.ok.danger { background: var(--red); border-color: var(--red); }
.ifv-confirm-btn.ok:hover { opacity: .92; }
@media (max-width: 480px) { .ifv-confirm-actions { flex-direction: column-reverse; } .ifv-confirm-btn { width: 100%; } }
