\begin{table}
\centering
\begin{tblr}[         %% tabularray outer open
]                     %% tabularray outer close
{                     %% tabularray inner open
colspec={Q[]Q[]Q[]Q[]},
hline{2}={1,4}{solid, black, 0.03em},
hline{2}={3}{solid, black, 0.03em, l=-0.5},
hline{2}={2}{solid, black, 0.03em, r=-0.5},
hline{3}={1-4}{solid, black, 0.05em},
hline{1}={1-4}{solid, black, 0.08em},
hline{8}={1-4}{solid, black, 0.08em},
cell{1}{1}={c=2}{halign=c},
cell{1}{2}={}{font=\itshape, halign=c},
cell{1}{3}={c=2}{halign=c},
cell{1}{4}={}{halign=c},
cell{2-7}{2}={}{font=\itshape},
cell{3,5}{1}={}{font=\bfseries},
cell{4}{1}={c=4}{font=\bfseries},
}                     %% tabularray inner close
foo &  & bar &  \\
mpg & cyl & disp & hp \\
21.000 & 6 & 160 & 110 \\
hello world & hello world & hello world & hello world \\
21.000 & 6 & 160 & 110 \\
22.800 & 4 & 108 & 93 \\
21.400 & 6 & 258 & 110 \\
\end{tblr}
\end{table} 
