/* Itatiaia V12.25.4 — cabeçalho refinado + autocomplete limpo */
:root{
  --v12252-navy:#102a49;
  --v12252-navy-2:#17385f;
  --v12252-red:#b72f3e;
  --v12252-red-dark:#9f2634;
  --v12252-line:#e2e8f0;
  --v12252-muted:#64748b;
  --v12252-soft:#f7f9fc;
}

/* Cabeçalho: menos apertado, hierarquia B2B mais clara */
.site-header{
  background:#fff;
  border-bottom:1px solid rgba(16,42,73,.08);
  box-shadow:0 8px 28px rgba(15,38,66,.07);
}
.header-main{
  width:min(1400px,96vw);
  min-height:88px;
  height:auto;
  gap:24px;
  padding:14px 0;
}
.brand.brand-image img{
  width:196px;
  height:auto;
  max-height:72px;
  object-fit:contain;
}
.main-search{
  position:relative;
  flex:1;
  max-width:760px;
  min-width:280px;
  height:56px;
  margin-left:auto;
  padding-left:17px;
  overflow:visible;
  background:#fff;
  border:1px solid #d5dee9;
  border-radius:14px;
  box-shadow:0 3px 12px rgba(15,38,66,.045);
}
.main-search:focus-within{
  border-color:#6e92bc;
  box-shadow:0 0 0 4px rgba(80,128,183,.11),0 8px 24px rgba(15,38,66,.08);
}
.main-search>svg{width:20px;height:20px;color:#64748b;flex:0 0 auto}
.main-search>input{
  min-width:0;
  height:100%;
  padding:0 14px;
  color:#17283d;
  font-size:14px;
  font-weight:500;
}
.main-search>input::placeholder{color:#8491a1;font-weight:400}
.main-search>.v1223-scan-btn{
  height:40px;
  min-height:40px;
  padding:0 12px;
  margin:0 7px 0 0;
  border:1px solid #e1e7ee;
  border-radius:9px;
  background:#f1f5f9;
  color:#17385f;
  font-size:11px;
  font-weight:750;
}
.main-search>.v1223-scan-btn:hover{background:#e7edf4;color:#102a49}
.main-search>button[type="submit"]{
  align-self:stretch;
  min-width:108px;
  height:100%;
  padding:0 22px;
  border:0;
  border-radius:0 13px 13px 0;
  background:linear-gradient(180deg,#c33747,#ad2938);
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.045em;
  cursor:pointer;
  transition:background .16s ease,transform .16s ease;
}
.main-search>button[type="submit"]:hover{background:linear-gradient(180deg,#b92f40,#982331)}

.header-actions{gap:2px;flex:0 0 auto}
.header-action{
  min-height:54px;
  padding:7px 11px;
  border-radius:11px;
  gap:8px;
  color:#153454;
  text-decoration:none;
  transition:background .15s ease,color .15s ease;
}
.header-action:hover{background:#f3f6fa;color:#9f2634}
.header-action svg{width:21px;height:21px;stroke-width:1.8}
.header-action small{font-size:8px;line-height:1.1;color:#718096}
.header-action b{font-size:10px;line-height:1.18}
.header-action em,.v1222-fav-header em{
  min-width:18px;height:18px;line-height:18px;
  background:var(--v12252-red);
  border:2px solid #fff;
  box-sizing:content-box;
  font-size:9px;
}
.v1222-fav-header{border-radius:11px!important}
.v1222-heart{font-size:23px;color:#163759;font-family:Arial,sans-serif}

.category-nav{
  background:linear-gradient(90deg,#102a49 0%,#17385f 52%,#102a49 100%);
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(0,0,0,.12);
}
.category-nav-shell{
  width:min(1400px,96vw);
  min-height:52px;
  margin:auto;
  display:flex;
  align-items:stretch;
  gap:0;
}
.category-nav a,.category-nav .more-categories>summary{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 15px;
  color:#f8fbff;
  border-right:1px solid rgba(255,255,255,.08);
  font-size:11px;
  font-weight:700;
  text-decoration:none;
  transition:background .15s ease;
}
.category-nav a:hover,.category-nav .more-categories>summary:hover{background:rgba(255,255,255,.075)}
.category-nav svg{width:17px;height:17px;stroke-width:1.9}
.category-nav .catalog-link{
  margin-left:auto;
  padding-inline:22px;
  background:linear-gradient(180deg,#c33a4a,#ad2938);
  color:#fff;
  border-right:0;
}
.category-nav .catalog-link:hover{background:linear-gradient(180deg,#b83041,#982331)}
.more-categories [data-all-categories]{border-radius:14px!important;box-shadow:0 22px 58px rgba(9,28,50,.22)!important}

.workflow-nav{
  min-height:48px;
  padding:0 max(2vw,18px);
  background:#fbfcfe;
  border-bottom:1px solid #e5eaf0;
  box-shadow:none;
}
.workflow-nav.v1221-clean-nav{gap:0!important;justify-content:center}
.workflow-nav>a,.workflow-nav .v1221-more-tools>summary{
  min-height:48px;
  padding:0 17px!important;
  display:flex;
  align-items:center;
  gap:8px;
  border-right:1px solid #e5eaf0;
  color:#24384f;
  font-size:10px;
  font-weight:750;
  text-decoration:none;
  border-radius:0!important;
}
.workflow-nav>a:first-child{border-left:1px solid #e5eaf0}
.workflow-nav>a:hover,.workflow-nav .v1221-more-tools>summary:hover{background:#f0f4f8;color:#a32a38}
.workflow-nav svg{width:16px;height:16px}
.workflow-nav .customer-portal-nav{color:#a82c3a;font-weight:800}
.workflow-nav .v1221-more-tools-menu{border-radius:13px;box-shadow:0 18px 44px rgba(10,29,52,.16)}

/* Autocomplete: corrige o seletor antigo .main-search button que pintava tudo de vermelho */
.main-search .global-search-suggestions{
  position:absolute;
  z-index:1800;
  left:0;
  right:0;
  top:calc(100% + 9px);
  display:none;
  max-height:min(520px,68vh);
  overflow:auto;
  padding:8px;
  background:#fff;
  border:1px solid #dbe3ec;
  border-radius:15px;
  box-shadow:0 22px 60px rgba(11,31,55,.18);
}
.main-search .global-search-suggestions.show{display:block}
.main-search .global-search-suggestions .suggestion-heading{
  min-height:40px;
  padding:8px 10px 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #edf1f5;
  color:#6e7c8c;
  font-size:10px;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.main-search .global-search-suggestions .suggestion-clear{
  width:auto;
  height:auto;
  min-height:0;
  padding:5px 8px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#a52a39!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-transform:none!important;
  cursor:pointer;
}
.main-search .global-search-suggestions .suggestion-clear:hover{background:#fff0f2!important}
.main-search .global-search-suggestions .suggestion{
  width:100%;
  min-height:58px;
  height:auto;
  margin:2px 0;
  padding:9px 10px!important;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  justify-content:stretch;
  gap:10px;
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1b2f46!important;
  text-align:left!important;
  font:inherit!important;
  letter-spacing:0!important;
  text-transform:none!important;
  cursor:pointer;
}
.main-search .global-search-suggestions .suggestion:hover,
.main-search .global-search-suggestions .suggestion:focus-visible{
  background:#f5f8fb!important;
  outline:none;
}
.main-search .global-search-suggestions .suggestion-search-icon{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:9px;
  background:#f1f5f9;
  color:#60758d;
  font-size:16px;
}
.main-search .global-search-suggestions .recent-suggestion>span:last-child{min-width:0}
.main-search .global-search-suggestions .recent-suggestion b{
  display:block;
  overflow:hidden;
  color:#1d3249;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.main-search .global-search-suggestions .recent-suggestion small{
  display:block;
  margin-top:2px;
  color:#8290a0;
  font-size:10px;
  font-weight:500;
}
.main-search .global-search-suggestions .product-suggestion{
  grid-template-columns:48px minmax(0,1fr)!important;
  min-height:68px;
}
.main-search .global-search-suggestions .suggestion-thumb{
  width:46px;height:46px;
  border-radius:9px;
  overflow:hidden;
  border:1px solid #e5e9ee;
  background:#fff;
}
.main-search .global-search-suggestions .suggestion-thumb img{width:100%;height:100%;object-fit:contain}
.main-search .global-search-suggestions .suggestion-copy b{font-size:12px;color:#1a3048}
.main-search .global-search-suggestions .suggestion-copy small{font-size:9px;color:#728195}
.main-search .global-search-suggestions .suggestion-copy em{
  margin-top:4px;
  padding:2px 6px;
  border-radius:999px;
  background:#f7f1df;
  color:#725f26;
  font-size:9px;
}
.main-search .global-search-suggestions mark{background:#fff0b8;color:inherit;border-radius:3px;padding:0 1px}

/* Hero: reduz a sensação de uma faixa azul vazia logo abaixo do cabeçalho */
.hero.hero-lighting{scroll-margin-top:190px}
.hero.hero-lighting .hero-shell{padding-top:clamp(44px,5vw,76px)}

@media(max-width:1180px){
  .header-main{gap:14px}
  .brand.brand-image img{width:166px}
  .header-action{padding-inline:7px}
  .header-action span{display:none}
  .main-search{max-width:none}
  .category-nav a,.category-nav .more-categories>summary{padding-inline:11px}
}
@media(max-width:900px){
  .header-main{min-height:74px;padding:10px 0}
  .brand.brand-image img{width:145px}
  .main-search{height:48px;min-width:0}
  .main-search>button[type="submit"]{min-width:82px;padding-inline:14px}
  .main-search .global-search-suggestions{position:fixed;left:10px;right:10px;top:118px;max-height:58vh}
  .workflow-nav>a,.workflow-nav .v1221-more-tools>summary{padding-inline:13px!important}
}
@media(max-width:650px){
  .header-main{width:94vw;gap:8px}
  .brand.brand-image img{width:126px}
  .main-search{display:none}
  .header-actions{margin-left:auto}
  .category-nav-shell{width:100%;overflow-x:auto;scrollbar-width:none}
  .category-nav-shell::-webkit-scrollbar{display:none}
  .category-nav a,.category-nav .more-categories>summary{white-space:nowrap}
  .category-nav .catalog-link{margin-left:0}
  .workflow-nav{justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important}
}
