#speedrace-grid-header .sg-community{display:flex;align-items:center;gap:24px;flex-shrink:0}
#speedrace-grid-header .sg-social-links{display:flex;align-items:center;gap:10px}
#speedrace-grid-header a.sg-social-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0 14px!important;font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;letter-spacing:0!important;border:1px solid var(--sg-line)!important;border-radius:4px;white-space:nowrap;color:var(--sg-ink)!important;background:transparent!important}
#speedrace-grid-header a.sg-social-market{background:#ffe600!important;border-color:#ffe600!important;color:#242424!important}
#speedrace-grid-header a.sg-social-whatsapp{background:#25d366!important;border-color:#25d366!important;color:#082a16!important}
#speedrace-grid-header a.sg-social-whatsapp:hover{background:#50df85!important;border-color:#50df85!important}
#speedrace-grid-header .sg-social-link svg{width:19px;height:19px;flex:none;stroke-width:1.7}
#speedrace-grid-header a.sg-social-link:hover{border-color:var(--sg-accent)!important;background:var(--sg-line)!important}
#speedrace-grid-header a.sg-social-market:hover{background:#f4da00!important;border-color:#f4da00!important}
#speedrace-grid-header .sg-dialog>.sg-social-links{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:980px){#speedrace-grid-header .sg-community>.sg-contact{display:none!important}}
@media(max-width:700px){
 #speedrace-grid-header .sg-subrow{flex-wrap:wrap;row-gap:16px;padding-bottom:14px}
 #speedrace-grid-header .sg-subrow>.sg-universes{width:100%!important;justify-content:space-between!important}
 #speedrace-grid-header .sg-community{width:100%}
 #speedrace-grid-header .sg-community>.sg-social-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}
 #speedrace-grid-header a.sg-social-link{min-height:42px;font-size:12px;padding:0 10px!important}
}
@media(max-width:440px){#speedrace-grid-header a.sg-social-link{flex-direction:column;gap:5px;min-height:62px;font-size:11px;padding:7px 3px!important}}

/* Mobile social actions live in the complete menu. */
@media(max-width:980px){
 #speedrace-grid-header .sg-subrow>.sg-community{display:none!important}
 #speedrace-grid-header .sg-dialog>.sg-social-links{gap:8px}
 #speedrace-grid-header .sg-dialog>.sg-social-links a{white-space:normal;text-align:center}
}
.sg-whatsapp-float{display:none!important}
@media(max-width:760px){
 html body .sg-whatsapp-float{position:fixed!important;display:flex!important;align-items:center!important;justify-content:center!important;left:16px!important;right:auto!important;top:auto!important;bottom:calc(var(--sg-whatsapp-bottom,16px) + env(safe-area-inset-bottom,0px))!important;width:48px!important;height:48px!important;padding:0!important;border:0!important;border-radius:50%!important;overflow:hidden!important;background:#25d366!important;box-shadow:0 5px 16px #0003!important;z-index:90!important;text-decoration:none!important}
 html body .sg-whatsapp-float img{display:block!important;width:84px!important;max-width:none!important;height:70px!important;flex:none!important;object-fit:contain!important}
 html body .sg-whatsapp-float:focus-visible{outline:3px solid #075e54!important;outline-offset:4px!important}
 html body:is(.cart-open,.stock-notify-open) .sg-whatsapp-float,
 html body:has(dialog[open]) .sg-whatsapp-float{display:none!important}
}

/* Social buttons stay in the complete menu on every screen size. */
#speedrace-grid-header .sg-subrow>.sg-community{display:none!important}

/* Compact complete menu; keep touch targets and all destinations. */
#speedrace-grid-header .sg-dialog>.sg-social-links{gap:10px}
#speedrace-grid-header .sg-dialog a.sg-social-link{min-height:48px;gap:10px;padding:10px 12px!important;border-radius:8px;font-weight:600;transition:background-color .16s ease}
#speedrace-grid-header .sg-dialog .sg-social-link .sg-brand-icon{display:block;width:24px;height:24px;stroke:none;flex:none}
#speedrace-grid-header .sg-dialog .sg-social-market .sg-brand-icon{width:34px;height:24px}
#speedrace-grid-header .sg-dialog a.sg-social-instagram{background:#a52b68!important;border-color:#a52b68!important;color:#fff!important}
#speedrace-grid-header .sg-dialog a.sg-social-instagram:hover{background:#8e2359!important;border-color:#8e2359!important}
#speedrace-grid-header .sg-dialog a.sg-social-whatsapp:hover{background:#50df85!important;border-color:#50df85!important}
@media(max-width:760px){
 #speedrace-grid-header .sg-dialog[data-sg-menu-dialog]{width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:16px!important}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-dialog-top{padding-bottom:10px;margin-bottom:8px}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-dialog-top strong{font-size:19px!important}
 #speedrace-grid-header [data-sg-menu-dialog] [data-sg-close]{min-width:44px;min-height:44px}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-mobile-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-mobile-nav a{grid-column:1/-1;display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:6px 0!important;font-size:17px!important;line-height:1.25!important;text-align:center!important}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-mobile-nav a[href*="cliente.html"],
 #speedrace-grid-header [data-sg-menu-dialog] .sg-mobile-nav a[href*="carrinho.html"]{grid-column:auto;min-height:48px!important;padding:4px 8px!important;font-size:14px!important;line-height:1.2!important}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-universes{padding:14px 0!important;margin:8px 0 0!important;min-height:44px;gap:8px!important}
 #speedrace-grid-header [data-sg-menu-dialog]>.sg-social-links{margin-top:14px;gap:8px}
 #speedrace-grid-header [data-sg-menu-dialog] a.sg-social-link{flex-direction:column;min-height:72px;gap:7px;font-size:12px;padding:9px 4px!important;white-space:normal;line-height:1.2}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-social-link .sg-brand-icon{width:25px;height:25px}
 #speedrace-grid-header [data-sg-menu-dialog] .sg-social-market .sg-brand-icon{width:36px;height:25px}
}
@media(prefers-reduced-motion:reduce){#speedrace-grid-header .sg-dialog a.sg-social-link{transition:none}}
