Many chains have raised prices to absorb rising costs — which works as long as customer loyalty, or indifference, endures