:root {
  --bg: #03170f;
  --bg-deep: #020e0a;
  --panel: #08251a;
  --panel-soft: #0b3022;
  --line: rgba(232, 182, 29, 0.34);
  --line-green: rgba(47, 219, 126, 0.22);
  --gold: #e9b51a;
  --green: #12da72;
  --green-bright: #26ed83;
  --white: #f7f9f8;
  --muted: #9cb4a8;
  --ink: #06150e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% -10%, rgba(17, 161, 85, 0.22), transparent 31rem),
    linear-gradient(180deg, #03180f 0%, #04140e 60%, #020b08 100%);
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(233, 181, 26, 0.25);
  background: rgba(2, 17, 11, 0.9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand b { font-size: 1.08rem; letter-spacing: .075em; }
.brand small { margin-top: 5px; color: var(--gold); font-size: .64rem; letter-spacing: .2em; }
.brand-mark { position: relative; display: block; width: 35px; height: 32px; }
.brand-mark i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); transform: rotate(45deg); border-radius: 4px; }
.brand-mark i:first-child { left: 2px; top: 3px; }
.brand-mark i:last-child { right: 1px; bottom: 2px; border-color: #ffd84b; }
nav { display: flex; align-items: center; gap: 30px; color: #c7d5ce; font-size: .9rem; }
nav a:hover { color: var(--gold); }
.account-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(233, 181, 26, .65);
  border-radius: 9px;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(233, 181, 26, .08);
  cursor: pointer;
  font-weight: 700;
}
.account-button:hover { background: var(--gold); color: var(--ink); }
.user-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 218, 114, .14); }

main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr);
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
  min-height: 580px;
  padding: 72px 7vw 78px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .17em; }
h1, h2, .manufacturer-name { font-family: "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
h1 { margin: 12px 0 18px; font-size: clamp(4rem, 7vw, 7.6rem); line-height: .82; letter-spacing: -.035em; }
h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0 0 28px; color: #c0d0c8; font-size: 1.08rem; }
.search-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 730px;
  padding: 7px 8px 7px 18px;
  border: 1px solid rgba(38, 237, 131, .43);
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.25), 0 0 0 4px rgba(18,218,114,.04);
}
.search-shell:focus-within { outline: 3px solid rgba(38, 237, 131, .18); }
.search-icon { width: 16px; height: 16px; border: 2px solid #2a5641; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: #2a5641; transform: rotate(45deg); }
.search-shell input { min-width: 0; padding: 11px 6px; border: 0; outline: 0; color: #153025; background: transparent; }
.search-shell button, .login-dialog button[type="submit"] { border: 0; border-radius: 8px; padding: 12px 20px; color: #02150b; background: linear-gradient(135deg, var(--green-bright), #0acb67); font-weight: 800; cursor: pointer; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 21px; color: var(--muted); font-size: .83rem; }
.hero-meta span { display: flex; gap: 5px; }
.hero-meta b { color: var(--white); }

.hero-art { min-height: 430px; border-radius: 28px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 7% -5% -8% 14%; border-radius: 48% 28% 24% 45%; background: radial-gradient(circle at 50% 35%, rgba(233,181,26,.26), rgba(16,100,59,.25) 42%, transparent 71%); filter: blur(12px); z-index: -1; }
.hero-art > img { position: absolute; right: -3%; bottom: 0; width: 61%; height: 76%; border-radius: 22px; object-fit: cover; object-position: center; border: 1px solid rgba(233,181,26,.45); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.screen-card { position: absolute; left: 0; top: 4%; width: 64%; padding: 18px; border: 1px solid rgba(233,181,26,.48); border-radius: 18px; background: linear-gradient(145deg, rgba(11,42,30,.98), rgba(2,14,10,.98)); box-shadow: 0 30px 65px rgba(0,0,0,.55); transform: rotate(-2deg); }
.screen-top { display: flex; align-items: center; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.screen-top > span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); }
.screen-top > span:first-child { background: var(--gold); }
.screen-top small { margin-left: auto; color: var(--muted); }
.screen-search { margin: 15px 0; padding: 11px 13px; border-radius: 8px; color: #a8beb3; background: rgba(255,255,255,.06); font-size: .78rem; }
.screen-list { display: grid; gap: 9px; }
.screen-list article { display: grid; gap: 2px; padding: 12px 13px 12px 42px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.035); position: relative; }
.screen-list article::before { content: ""; position: absolute; left: 14px; top: 16px; width: 15px; height: 19px; border: 1px solid var(--gold); border-radius: 2px; }
.screen-list b { font-size: .78rem; }
.screen-list small { color: var(--muted); font-size: .66rem; }
.active-badge { position: absolute; right: 7%; top: 2%; z-index: 2; padding: 9px 12px; border-radius: 999px; color: #d9e9e1; background: rgba(2,19,12,.92); border: 1px solid rgba(38,237,131,.35); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.active-badge span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.workspace { max-width: 1440px; margin: 0 auto; padding: 64px 5vw 82px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
h2 { margin: 6px 0 0; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: .95; letter-spacing: .015em; }
h2 small { color: var(--gold); font-size: .55em; }
.view-tools { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.clear-button { border: 0; padding: 7px 10px; color: var(--gold); background: transparent; cursor: pointer; }
.category-strip { display: flex; gap: 10px; margin: 0 0 30px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.category { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: #b8c9c0; background: rgba(255,255,255,.035); cursor: pointer; font-weight: 600; }
.category span { color: var(--gold); font-size: 1.05rem; }
.category:hover, .category.active { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.category.active span { color: var(--ink); }
.manufacturer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.manufacturer-card { overflow: hidden; position: relative; min-height: 305px; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; color: var(--white); background: var(--panel); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.manufacturer-card:hover { transform: translateY(-5px); border-color: rgba(233,181,26,.7); box-shadow: 0 22px 45px rgba(0,0,0,.32); }
.manufacturer-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.card-image { position: relative; height: 168px; overflow: hidden; background: #102c20; }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(3,23,15,.95)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.manufacturer-card:hover .card-image img { transform: scale(1.045); }
.card-sector { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 9px; border-radius: 6px; color: #f8d75f; background: rgba(2,14,9,.82); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 2px 18px 18px; }
.manufacturer-name { display: block; font-size: 1.75rem; line-height: 1; }
.card-body p { min-height: 44px; margin: 8px 0 14px; color: var(--muted); font-size: .82rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); color: #d6e2dc; font-size: .75rem; }
.card-footer b { color: var(--green-bright); }
.card-footer i { color: var(--gold); font-style: normal; font-size: 1.15rem; }
.empty-state { padding: 64px 20px; border: 1px dashed rgba(233,181,26,.35); border-radius: 16px; text-align: center; color: var(--muted); }
.empty-state b { color: var(--white); font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; text-transform: uppercase; }

.recent { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; padding: 66px 7vw; border-top: 1px solid var(--line-green); border-bottom: 1px solid var(--line-green); background: linear-gradient(90deg, rgba(8,50,34,.9), rgba(4,25,17,.96)); }
.recent p { max-width: 650px; color: var(--muted); }
.recent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recent-stats article { display: grid; gap: 5px; padding: 26px 20px; border: 1px solid rgba(233,181,26,.27); border-radius: 12px; background: rgba(0,0,0,.17); }
.recent-stats b { color: var(--gold); font-family: "Barlow Condensed", sans-serif; font-size: 2.2rem; line-height: 1; }
.recent-stats span { color: var(--muted); font-size: .78rem; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 5vw; color: #789085; font-size: .78rem; }
.brand.compact { transform: scale(.9); transform-origin: left; }

.dialog { width: min(920px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(233,181,26,.45); border-radius: 18px; color: var(--white); background: #061d14; box-shadow: 0 30px 110px rgba(0,0,0,.75); }
.dialog::backdrop { background: rgba(0,10,6,.82); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 14px; right: 15px; z-index: 4; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: white; background: rgba(0,0,0,.42); cursor: pointer; font-size: 1.4rem; }
.login-dialog { max-width: 520px; padding: 38px; }
.login-dialog h2 { margin-bottom: 14px; }
.login-dialog > p { color: var(--muted); }
.login-dialog form { display: grid; gap: 11px; margin-top: 24px; }
.login-dialog label { font-size: .82rem; font-weight: 700; }
.login-dialog input { width: 100%; padding: 14px 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; color: white; outline: 0; background: rgba(255,255,255,.06); }
.login-dialog input:focus { border-color: var(--green); }
.privacy-note { display: block; margin-top: 17px; color: #789085; }
.detail-hero { display: grid; grid-template-columns: 320px 1fr; min-height: 260px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { padding: 42px; }
.detail-title h2 { margin: 5px 0 12px; font-size: 3.4rem; }
.detail-title p { color: var(--muted); }
.model-list { padding: 26px 34px 38px; border-top: 1px solid rgba(255,255,255,.08); }
.model-list > h3 { margin: 0 0 16px; font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; text-transform: uppercase; }
.model-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.model-tabs button { padding: 8px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: #d8e5df; background: rgba(255,255,255,.04); cursor: pointer; }
.model-tabs button:first-child { border-color: var(--gold); color: var(--gold); }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.document-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.035); }
.doc-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: var(--gold); background: rgba(233,181,26,.09); font-size: 1.2rem; }
.document-results { margin-top: 22px; scroll-margin-top: 18px; }
.document-result-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.document-result-title h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.55rem; text-transform: uppercase; }
.document-result-title span { color: var(--muted); font-size: .74rem; }
.search-results-head { padding: 34px 38px 18px; }
.search-results-head h2 { margin: 4px 0 8px; font-size: 2.4rem; }
.search-results-head p { color: var(--muted); }
.search-results-head + .document-grid { padding: 0 38px 38px; }
.document-card > div { min-width: 0; }
.document-card h4 { margin: 2px 0 5px; color: #edf8f2; font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.document-card p { margin: 0; color: var(--muted); font-size: .65rem; }
.document-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: var(--gold); background: rgba(233,181,26,.09); font-size: 1.2rem; }
.document-card small { color: var(--green-bright); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.document-download { padding: 8px 11px; border: 1px solid rgba(38,237,131,.38); border-radius: 7px; color: #071e14; background: var(--green-bright); font-size: .7rem; font-weight: 800; text-decoration: none; }
.document-download:hover { filter: brightness(1.08); }
.documents-loading, .no-documents { margin: 0; padding: 22px; border: 1px dashed rgba(233,181,26,.25); border-radius: 10px; color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; transform: translate(-50%, 30px); max-width: calc(100vw - 30px); padding: 12px 17px; border: 1px solid rgba(38,237,131,.38); border-radius: 9px; color: #eafff4; background: #0a3523; box-shadow: 0 15px 40px rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr .8fr; padding-inline: 5vw; }
  h1 { font-size: clamp(4rem, 8vw, 6rem); }
  .manufacturer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-header { min-height: 68px; padding-inline: 18px; }
  .account-button { width: 40px; height: 40px; justify-content: center; overflow: hidden; color: transparent; padding: 0; }
  .account-button .user-dot { flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; gap: 35px; min-height: auto; padding: 55px 20px; }
  .hero-art { min-height: 340px; }
  .hero-art > img { width: 58%; }
  .screen-card { width: 67%; }
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent { grid-template-columns: 1fr; padding-inline: 5vw; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero img { height: 210px; }
  .document-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brand b { font-size: .9rem; }
  .brand small { font-size: .54rem; }
  .brand-mark { transform: scale(.86); transform-origin: left; margin-right: -4px; }
  .hero { padding-top: 42px; }
  h1 { font-size: 4rem; }
  .hero-copy > p { font-size: .98rem; }
  .search-shell { grid-template-columns: auto 1fr; padding: 6px 9px 6px 16px; }
  .search-shell button { grid-column: 1 / -1; }
  .hero-meta { display: grid; gap: 8px; }
  .hero-art { min-height: 300px; }
  .screen-card { width: 75%; left: -3%; }
  .hero-art > img { width: 59%; height: 69%; }
  .section-heading { align-items: start; flex-direction: column; }
  .manufacturer-grid { grid-template-columns: 1fr; }
  .manufacturer-card { min-height: 290px; }
  .recent-stats { grid-template-columns: 1fr; }
  footer { align-items: start; flex-direction: column; }
  .detail-title { padding: 30px 24px; }
  .model-list { padding: 24px; }
  .document-grid { grid-template-columns: 1fr; }
  .login-dialog { padding: 34px 22px 26px; }
}

/* Cartões de fabricantes no padrão visual já usado pela Lucas Sul. */
.manufacturer-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
}
.manufacturer-card.brand-card {
  min-height: 0;
  aspect-ratio: .7;
  border: 1px solid rgba(53, 172, 100, .6);
  border-radius: 12px;
  background: #092519;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
.brand-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #0a281b;
  background-image: url('./public/assets/marcas-cards-hq-v6.png');
  background-repeat: no-repeat;
  transition: transform .22s ease, filter .22s ease;
}
.brand-card:hover .brand-art { transform: scale(1.025); filter: brightness(1.06); }
.brand-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: end center;
  gap: 5px;
  padding: 22px 12px;
  text-align: center;
  color: white;
  background: radial-gradient(circle at 50% 28%, #246044, #071d14 70%);
}
.brand-fallback b { font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; text-transform: uppercase; }
.brand-fallback small { color: #d8b63f; text-transform: uppercase; }
.detail-brand-preview { position: relative; display: grid; place-items: center; min-height: 290px; background: #061c13; overflow: hidden; }
.detail-brand-preview .brand-art { position: relative; width: 190px; height: 272px; border-radius: 12px; }

@media (max-width: 1100px) {
  .manufacturer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 850px; }
}
@media (max-width: 820px) {
  .manufacturer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
}
@media (max-width: 560px) {
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .manufacturer-card.brand-card { min-height: 0; }
}

/* Direção visual aprovada em 14/09: primeira tela espelha a referência do acervo. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  grid-template-columns: 1fr auto;
  min-height: 88px;
  padding: 0 2.7vw;
  border: 0;
  background: linear-gradient(90deg, rgba(1,38,26,.98) 0%, rgba(1,32,22,.72) 61%, rgba(1,31,21,.95) 100%);
  backdrop-filter: none;
}
.site-header .brand-mark { width: 56px; height: 48px; transform: scale(1.15); }
.site-header .brand b { font-size: 1.55rem; }
.site-header .brand small { color: #e9edea; font-size: .64rem; letter-spacing: .32em; }
.account-button {
  min-height: 58px;
  gap: 20px;
  padding: 0 18px 0 26px;
  border: 0;
  border-radius: 0 0 0 26px;
  background: rgba(1,38,26,.95);
  font-weight: 500;
}
.account-button:hover { color: white; background: rgba(2,53,35,.98); }
.account-greeting, .access-status { white-space: nowrap; }
.account-greeting { padding-right: 22px; border-right: 1px solid rgba(255,255,255,.35); }
.access-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #12da72; border-radius: 999px; color: #dfffee; background: rgba(12,170,86,.22); font-size: .75rem; font-weight: 800; }
.exit-icon { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.35); font-size: 1.5rem; }
.hero {
  display: block;
  min-height: 490px;
  padding: 102px 2.7vw 18px;
  background-image: linear-gradient(90deg, rgba(0,36,24,.38), transparent 48%), url('./public/assets/hero-acervo-clean.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(13,219,111,.18);
}
.hero::before { display: none; }
.hero-copy { max-width: none; }
.hero-brand-note { position: absolute; left: 19.7rem; top: -77px; padding-left: 24px; border-left: 2px solid var(--gold); color: rgba(255,255,255,.78); font-size: .6rem; line-height: 1.35; letter-spacing: .26em; }
h1 { margin: 5px 0 3px; font-family: Inter, sans-serif; font-size: clamp(2.65rem, 4vw, 4.55rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
h1 em { font-size: 1.04em; text-transform: uppercase; }
.hero-copy > p { margin: 0 0 24px; color: white; font-size: 1.25rem; }
.search-shell { max-width: 715px; height: 64px; padding: 5px 5px 5px 20px; border: 0; border-radius: 11px; }
.search-shell input { font-size: 1rem; }
.search-shell button { align-self: stretch; width: 72px; overflow: hidden; color: transparent; background: var(--gold); position: relative; }
.search-shell button::before { content: ''; position: absolute; left: 25px; top: 17px; width: 19px; height: 19px; border: 3px solid #062016; border-radius: 50%; }
.search-shell button::after { content: ''; position: absolute; left: 44px; top: 38px; width: 12px; height: 3px; background: #062016; transform: rotate(45deg); }
.hero-categories { max-width: 96vw; margin: 28px 0 17px; padding-bottom: 0; gap: 8px; }
.hero-categories { scrollbar-width: none; }
.hero-categories::-webkit-scrollbar { display: none; }
.hero-categories .category { min-height: 42px; padding: 8px 21px; border-color: #0ed774; color: white; background: rgba(1,47,31,.8); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.hero-categories .category.active { color: #082014; background: var(--gold); border-color: var(--gold); }
.hero-meta { display: flex; width: 48%; justify-content: space-between; gap: 0; margin-top: 15px; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; }
.hero-meta span { align-items: center; gap: 12px; padding: 0 30px; border-right: 1px solid rgba(23,218,120,.35); }
.hero-meta span:first-child { padding-left: 0; }
.hero-meta span:last-child { border: 0; }
.hero-meta b { color: #e9ce63; font-size: 1.7rem; font-weight: 400; }
.workspace { max-width: none; padding: 16px 1.7vw 18px; background: #031810; }
.section-heading { min-height: 52px; margin: 0; padding: 0 12px; align-items: center; }
.section-heading .eyebrow { display: none; }
.section-heading h2 { margin: 0; font-family: Inter, sans-serif; font-size: 1.7rem; font-weight: 800; }
.section-heading h2 small { display: inline-flex; justify-content: center; min-width: 52px; padding: 3px 9px; border: 1px solid #14d878; border-radius: 999px; color: white; font-family: Inter, sans-serif; font-size: .54em; background: rgba(15,170,86,.2); }
.manufacturer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.manufacturer-card { min-height: 267px; border: 0; border-radius: 8px; color: #0b1e15; background: #f8f9f8; box-shadow: none; }
.manufacturer-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.card-image { display: grid; place-items: center; height: 190px; background: #f8f9f8; }
.card-image::after { display: none; }
.card-sector { display: none; }
.sprite-machine { display: block; width: min(64%, 190px); height: auto; aspect-ratio: 1; flex: none; background-color: #0a2418; background-image: url('./public/assets/fabricantes-equipamentos-v1.png'); background-repeat: no-repeat; background-size: 500% auto; filter: drop-shadow(0 8px 6px rgba(0,0,0,.14)); }
.card-product-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 4px 16px 0; mix-blend-mode: multiply; }
.card-body { padding: 8px 18px 13px; }
.manufacturer-name { font-family: Inter, sans-serif; font-size: 1.15rem; font-weight: 800; }
.card-body p { min-height: 0; margin: 8px 0 0; color: #68716d; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-footer { justify-content: flex-start; gap: 8px; padding-top: 4px; border: 0; color: #263b31; }
.card-footer b { padding: 5px 13px; border-radius: 999px; color: #052216; background: #45da93; }
.card-footer span { display: none; }
.card-footer i { position: absolute; right: 17px; bottom: 35px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d7dcda; border-radius: 50%; color: #15271f; background: #f1f3f2; }
.catalog-stats { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 86px; padding: 0 4.5vw; border-top: 1px solid rgba(17,218,112,.18); background: #02150e; }
.catalog-stats span { display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid rgba(234,200,93,.33); font-size: .78rem; letter-spacing: .08em; }
.catalog-stats span:last-child { border: 0; }
.catalog-stats b { color: #e9ce63; font-size: 1.8rem; font-weight: 400; }
.catalog-stats strong { color: white; font-size: 1rem; }
.catalog-stats span:first-child strong, .catalog-stats span:nth-child(2) strong { color: var(--gold); font-size: 1.5rem; }
.recent { display: none; }
footer { display: none; }

@media (max-width: 1100px) {
  .hero-brand-note { display: none; }
  .hero-meta { width: 62%; }
}
@media (max-width: 820px) {
  .site-header { min-height: 66px; padding: 0 16px; }
  .site-header .brand b { font-size: 1rem; }
  .site-header .brand small { font-size: .52rem; }
  .site-header .brand-mark { width: 38px; transform: scale(.82); }
  .account-button { width: auto; height: 42px; min-height: 42px; border-radius: 999px; color: white; padding: 0 11px; }
  .account-greeting, .exit-icon { display: none; }
  .access-status { border: 0; padding: 0; background: transparent; font-size: .66rem; }
  .hero { min-height: 570px; padding: 95px 18px 16px; background-position: 59% center; }
  .hero::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0,29,19,.97) 0%, rgba(0,29,19,.78) 54%, rgba(0,29,19,.08) 100%); }
  .hero-copy { z-index: 1; }
  h1 { max-width: 580px; font-size: clamp(2.35rem, 8vw, 3.7rem); }
  .hero-copy > p { max-width: 530px; font-size: 1rem; }
  .search-shell { max-width: 620px; }
  .hero-categories { margin-top: 22px; }
  .hero-meta { width: 100%; }
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-stats { grid-template-columns: repeat(2,1fr); }
  .catalog-stats span:nth-child(2) { border-right: 0; }
}
@media (max-width: 560px) {
  .hero { min-height: 610px; background-position: 64% center; }
  h1 { font-size: 2.7rem; }
  .hero-copy > p { max-width: 330px; }
  .search-shell { height: auto; }
  .search-shell button { width: auto; min-height: 48px; }
  .search-shell button::before { left: calc(50% - 12px); top: 12px; }
  .search-shell button::after { left: calc(50% + 5px); top: 32px; }
  .hero-meta { display: none; }
  .manufacturer-grid { grid-template-columns: 1fr; }
  .manufacturer-card { min-height: 280px; }
  .card-image { height: 176px; }
  .view-tools { display: none; }
  .catalog-stats { grid-template-columns: 1fr; padding: 0 16px; }
  .catalog-stats span { min-height: 68px; border-right: 0; border-bottom: 1px solid rgba(234,200,93,.2); }
}

/* Mantém o mosaico vertical como última regra, acima dos cartões brancos antigos. */
.manufacturer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 1060px; margin: 0 auto; }
.manufacturer-card.brand-card { min-height: 0; aspect-ratio: .7; border: 1px solid rgba(53,172,100,.6); border-radius: 12px; background: #092519; }
@media (max-width: 1100px) { .manufacturer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 850px; } }
@media (max-width: 820px) { .manufacturer-grid { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 620px; } }
@media (max-width: 560px) {
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .manufacturer-card.brand-card { min-height: 0; }
}

.brand-fallback {
  place-content: center;
  align-content: center;
  padding: 18px 10px;
  border: 1px solid rgba(233,181,26,.18);
  background:
    linear-gradient(145deg, transparent 0 54%, rgba(233,181,26,.08) 54% 55%, transparent 55%),
    radial-gradient(circle at 50% 30%, #174a34 0%, #082a1d 45%, #04170f 100%);
}
.brand-monogram {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  color: var(--gold);
  background: rgba(0,0,0,.22);
  box-shadow: 0 0 30px rgba(233,181,26,.1);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 800;
}
.brand-fallback b { max-width: 100%; font-size: clamp(1.15rem, 1.8vw, 1.65rem); line-height: 1; overflow-wrap: anywhere; }
.brand-fallback small { font-size: .68rem; letter-spacing: .08em; }
.brand-fallback em { margin-top: 9px; color: #aec4b8; font-size: .68rem; font-style: normal; }
.dialog { max-height: 92vh; overflow: auto; }
.fallback-preview .brand-monogram { width: 138px; height: 138px; margin: 0; font-size: 3.2rem; }
.model-tree { display: grid; gap: 9px; }
.model-group { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.025); }
.model-group summary { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; cursor: pointer; color: #eef8f3; font-weight: 750; }
.model-group summary::marker { color: var(--gold); }
.model-group summary b { color: #86a898; font-size: .74rem; white-space: nowrap; }
.subcategory-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 0 12px 12px; }
.subcategory-list button { display: flex; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(38,237,131,.16); border-radius: 8px; color: #dcebe4; background: rgba(8,54,36,.72); text-align: left; cursor: pointer; }
.subcategory-list button:hover { border-color: var(--gold); }
.subcategory-list button span { overflow-wrap: anywhere; }
.subcategory-list button b { color: var(--gold); font-size: .72rem; white-space: nowrap; }
.no-subcategory { padding: 10px 12px; color: var(--muted); font-size: .8rem; }
@media (max-width: 620px) {
  .subcategory-list { grid-template-columns: 1fr; }
  .model-group summary { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Versão compacta: mais acervo visível e cartões fotográficos para todas as fabricantes. */
.site-header { min-height: 64px; padding: 0 2.2vw; }
.site-header .brand-mark { width: 43px; height: 38px; transform: scale(1); }
.site-header .brand b { font-size: 1.2rem; }
.site-header .brand small { font-size: .54rem; }
.account-button { min-height: 46px; gap: 14px; padding: 0 14px 0 20px; border-radius: 0 0 0 20px; }
.account-greeting { padding-right: 15px; }
.exit-icon { padding-left: 15px; font-size: 1.2rem; }
.hero { min-height: 360px; padding: 76px 2.2vw 12px; }
.hero-brand-note { top: -56px; left: 15rem; }
h1 { margin-top: 0; font-size: clamp(2.2rem, 3.25vw, 3.45rem); }
.hero-copy > p { margin-bottom: 15px; font-size: 1rem; }
.search-shell { max-width: 610px; height: 52px; padding-left: 16px; }
.search-shell button { width: 59px; }
.search-shell button::before { left: 19px; top: 12px; width: 17px; height: 17px; }
.search-shell button::after { left: 35px; top: 31px; }
.hero-categories { margin: 16px 0 10px; gap: 6px; }
.hero-categories .category { min-height: 33px; padding: 5px 13px; font-size: .66rem; }
.hero-meta { margin-top: 9px; font-size: .52rem; }
.hero-meta span { padding: 0 18px; }
.hero-meta b { font-size: 1.3rem; }
.workspace { padding: 10px 1.5vw 14px; }
.section-heading { min-height: 42px; padding: 0 7px; }
.section-heading h2 { font-size: 1.35rem; }
.section-heading h2 small { min-width: 43px; padding: 2px 7px; }
.manufacturer-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; max-width: 1280px; }
.manufacturer-card.brand-card { aspect-ratio: .76; border-radius: 9px; }
.brand-fallback { place-content: end stretch; padding: 13px 10px; border: 0; background-repeat: no-repeat; }
.brand-fallback::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,204,34,.18); border-radius: inherit; pointer-events: none; }
.brand-fallback b.brand-wordmark { max-width: 100%; color: white; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1rem, 1.35vw, 1.35rem); line-height: .95; text-shadow: 0 2px 5px #000; overflow-wrap: anywhere; }
.brand-fallback small { margin-top: 2px; color: #ffd132; font-size: .59rem; font-weight: 800; letter-spacing: .09em; text-shadow: 0 1px 3px #000; }
.brand-fallback em { margin-top: 4px; color: #d4e1da; font-size: .58rem; line-height: 1.2; text-shadow: 0 1px 3px #000; }
.detail-brand-preview { min-height: 230px; }
.fallback-preview { background-repeat: no-repeat; }
.fallback-preview strong { align-self: end; width: 100%; padding: 28px 16px 16px; color: white; background: linear-gradient(transparent,rgba(0,16,10,.94)); font-family: "Barlow Condensed",sans-serif; font-size: 2.2rem; text-align: center; text-transform: uppercase; text-shadow: 0 2px 6px #000; }
.catalog-stats { min-height: 64px; }
.catalog-stats b { font-size: 1.35rem; }
.catalog-stats span:first-child strong,.catalog-stats span:nth-child(2) strong { font-size: 1.15rem; }

@media (max-width: 1180px) {
  .manufacturer-grid { grid-template-columns: repeat(6, minmax(0,1fr)); max-width: 1060px; }
}
@media (max-width: 900px) {
  .hero { min-height: 430px; padding-top: 78px; }
  .manufacturer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 760px; }
}
@media (max-width: 620px) {
  .site-header { min-height: 58px; }
  .hero { min-height: 490px; padding: 76px 14px 12px; }
  h1 { font-size: 2.15rem; }
  .hero-copy > p { font-size: .9rem; }
  .search-shell { grid-template-columns: auto minmax(0,1fr) 52px; height: 52px; padding: 5px 5px 5px 14px; gap: 9px; }
  .search-shell input { width: 100%; padding-inline: 2px; }
  .search-shell button { grid-column: auto; width: 52px; min-height: 42px; padding: 0; }
  .search-shell button::before { left: 15px; top: 10px; }
  .search-shell button::after { left: 31px; top: 29px; }
  .hero-categories { margin-top: 14px; }
  .hero-categories .category { min-height: 32px; padding: 5px 11px; }
  .workspace { padding: 8px 10px 12px; }
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .manufacturer-card.brand-card { aspect-ratio: .78; }
  .brand-fallback { padding: 11px 8px; }
  .brand-fallback b.brand-wordmark { font-size: 1.15rem; }
  .brand-fallback em { font-size: .55rem; }
}

/* Menus sempre inteiros: quebra organizada no desktop e grade no celular. */
@media (min-width: 821px) {
  .hero-categories {
    width: calc(100vw - 4.4vw);
    max-width: none;
    flex-wrap: wrap;
    overflow: visible;
    align-content: flex-start;
    padding-right: 2.2vw;
  }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
    gap: 7px;
  }
  .hero-categories .category {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.05;
  }
}
