:: shop_item[menu]
	
    <<set _item_id = $location_var[$here][0]>>
	<<set _itemData = $wardrobe.itemData(_item_id)>>
	<<set _item_price = $location_var[$here][1]>>
	<<set _price_string = _item_price.toLocaleString()+' ₽'>>

	<<set _item = setup.OutfitItem.get(_item_id)>>

	<<set _itemInhibMode = $wardrobe.wearbleInhibition(_item_id)>>
	<<debugVar _itemData>>



	<<image `$wardrobe.itemImage(_item_id)`>>
	<<itemDescription _item_id>>


	<<if _itemInhibMode == 1>>
		<p>This outfit is a little more revealing than you would be completely comfortable with.</p>
	<</if>>

	<p>
		<<if $wardrobe.has(_item_id)>>
			You own this item.
		<<elseif _itemInhibMode == 0>>
			<<negative>>You don't feel daring enough to wear an outfit this revealing and can't bring yourself to buy it.<</negative>>
		<<elseif _item.type == 'shoes' and setup.difficultyOfHighHeels(_item) == 2>>
			<<negative>>These shoes are way too high for you to walk in. Buying them now wouldn't make sense.<</negative>>
		<<else>>
			<<if $finances.cash >= _item_price>>
				<<act `"Buy with cash ("+_price_string+")"`>>
					<<run $wardrobe.add(_item_id)>>
					<<set $finances.cash -= _item_price>>
					<<gt $store_return>>
				<</act>>
			<</if>>
			<<if $finances.bankAvailable >= _item_price>>
				<<act `"Buy with bank card ("+_price_string+")"`>>
					<<run $wardrobe.add(_item_id)>>
					<<set $finances.bank -= _item_price>>
					<<gt $store_return>>
				<</act>>
			<</if>>


			<<if $finances.cash < _item_price and $finances.bankAvailable < _item_price >>
				You don't have the <<money _item_price>> to afford this.
			<</if>>
		<</if>>
	</p>
	<p><<act 'Back'>><<gt 'shop_clothing'>><</act>></p>
