scoreboard players set @s shop -1

data modify entity @e[tag=name,sort=nearest,limit=1] CustomName set value '{"text":"Sold Out","color":"red"}'
data modify entity @e[tag=cost,sort=nearest,limit=1] CustomName set value '[{"text":"-","color":"dark_green"},{"text":"\\uF81d","color":"grey"}]'

data merge entity @e[type=item,tag=shop_d,sort=nearest,limit=1] {Item:{id:"slime_ball",tag:{CustomModelData:6001,display:{color:10286591}}}}
