
/* ═══ v732001 — a palavra final do header em telas pequenas, CONSOLIDADA. ═══
   Antes eram TRÊS grades brigando (v731118: 5 colunas, v731067: 4 "auto auto",
   v731068: 4 fixas com cart e account NA MESMA coluna 3 — medido @375: os dois
   empilhados em x=271). Agora é UMA grade: logo | busca | ações | menu.
   As ações voltam a ser flex (nada de display:contents): o que estiver
   visível ali dentro se acomoda sozinho, sem coluna para colidir.
   E a linha das verticais NÃO some mais no celular: vira faixa rolável dentro
   do header, em toda página — era só na home, via reparenting irreversível. */
@media(max-width:980px){
  html body .idmk-market-topline{display:grid!important;grid-template-columns:auto minmax(0,1fr) max-content 46px!important;grid-template-rows:auto!important;gap:8px!important;row-gap:0!important;align-items:center!important;max-width:calc(100vw - 20px)!important;padding:10px 0 9px!important}
  html body .idmk-market-topline>*{grid-row:1!important}
  html body .idmk-market-logo{grid-column:1!important}
  html body .idmk-market-search{grid-column:2!important;height:46px!important;min-width:0!important;grid-template-columns:auto minmax(0,1fr)!important;padding:0 12px!important}
  html body .idmk-market-search button[type=submit],html body .idmk-market-search .idmk-search-go{display:none!important}
  html body .idmk-market-actions{display:flex!important;grid-column:3!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;justify-content:flex-end!important;min-width:0!important}
  html body .idmk-m-menu{display:flex!important;grid-column:4!important;width:46px!important;height:46px!important}
  html body .idmk-market-cart{display:grid!important;place-items:center!important;width:46px!important;max-width:46px!important;height:46px!important;min-width:46px!important;padding:0!important;border-radius:15px!important;font-size:0!important;color:transparent!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(255,255,255,.06)!important;position:relative!important}
  html body .idmk-market-cart::after{content:""!important;display:block;width:21px;height:21px;background:#fff;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 4h2.2l2.2 11.2a1.6 1.6 0 0 0 1.6 1.3h8.4a1.6 1.6 0 0 0 1.6-1.3L21 7H6%27/%3E%3Ccircle cx=%279.5%27 cy=%2720%27 r=%271.4%27/%3E%3Ccircle cx=%2717.5%27 cy=%2720%27 r=%271.4%27/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 4h2.2l2.2 11.2a1.6 1.6 0 0 0 1.6 1.3h8.4a1.6 1.6 0 0 0 1.6-1.3L21 7H6%27/%3E%3Ccircle cx=%279.5%27 cy=%2720%27 r=%271.4%27/%3E%3Ccircle cx=%2717.5%27 cy=%2720%27 r=%271.4%27/%3E%3C/svg%3E") center/contain no-repeat}
  html body .idmk-market-cart::before{content:none!important}
  html body .idmk-market-cart b[data-idmk-cart-badge]{position:absolute!important;top:-4px!important;right:-4px!important;min-width:19px;height:19px;border-radius:99px;background:#e0fd0b;color:#050607;font-size:10px;font-weight:950;display:grid;place-items:center;padding:0 4px}
  html body .idmk-market-account{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;padding:0!important;border-radius:15px!important}
  html body .idmk-market-account>span:last-child{display:none!important}
  html body .idmk-market-location,
  html body .idmk-market-login,
  html body .idmk-market-join{display:none!important}
  /* idioma/moeda e outros extras da barra saem: vivem na gaveta */
  html body .idmk-market-actions>*:not(.idmk-market-cart):not(.idmk-market-account){display:none!important}
  /* a linha das verticais, rolável, dentro do header — igual em TODA página */
  html body .idmk-market-nav{display:block!important}
  html body .idmk-market-nav .idmk-nav-modos{display:none!important}
  html body .idmk-market-nav-inner.idmk-nav-tipos{display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 0 10px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  html body .idmk-nav-tipos::-webkit-scrollbar{display:none}
  html body .idmk-nav-tipos>a{flex:0 0 auto!important;scroll-snap-align:start;height:38px;padding:0 14px!important;display:inline-flex!important;align-items:center!important;gap:7px;border-radius:999px;font-size:12.5px;font-weight:900;white-space:nowrap}
  html body .idmk-nav-espaco{flex:0 0 10px!important;min-width:10px!important}
}
@media(max-width:430px){
  html body .idmk-market-cart{width:44px!important;max-width:44px!important;min-width:44px!important;height:44px!important;border-radius:14px!important}
  html body .idmk-market-account{width:44px!important;height:44px!important;border-radius:14px!important}
  html body .idmk-m-menu{width:44px!important;height:44px!important;border-radius:14px!important}
  html body .idmk-market-topline{grid-template-columns:auto minmax(0,1fr) max-content 44px!important;gap:6px!important}
  html body .idmk-logo-spark{width:58px!important;min-width:58px!important}
}
@media(max-width:359px){
  html body .idmk-market-topline{grid-template-columns:auto minmax(0,1fr) max-content 42px!important}
  html body .idmk-market-account{display:none!important}
  html body .idmk-m-menu{width:42px!important;height:42px!important}
}
/* desktop: "Vender no IDLINK" respira e nunca monta no vizinho */
@media(min-width:981px){
  html body .idmk-market-actions{display:flex!important;align-items:center;gap:8px;flex-wrap:nowrap!important}
  html body .idmk-market-sell{flex:0 0 auto!important;margin-left:8px!important;white-space:nowrap}
  html body .idmk-market-nav-inner{flex-wrap:nowrap}
  html body .idmk-market-nav-inner a{flex:0 0 auto}
}
