Higher prices for gasoline, apparel and new cars show cost pressures are building as steady demand provides some companies with pricing power.