<script>
	jQuery(function($){
		$("#shippingZoneZip").mask("99999-999");
	});
</script>
<script type="text/javascript" src="%%GLOBAL_ShopPath%%/javascript/jquery.js?%%GLOBAL_JSCacheToken%%"></script>
<script src="%%GLOBAL_ShopPath%%/javascript/jquery/plugins/imodal/imodal.js?%%GLOBAL_JSCacheToken%%" type="text/javascript"></script>
<script type="text/javascript">
	lang.InvalidQuantity = "%%LNG_InvalidQuantity%%";
	lang.Calculating = "%%LNG_Calculating%%"
	lang.CalculateShipping = "%%LNG_CalculateShipping%%"
	lang.ChooseShippingMethod = "%%LNG_ChooseShippingMethod%%"
	lang.CartRemoveConfirm = '%%LNG_CartRemoveConfirm%%';
	lang.ConfirmRemoveGiftWrapping = '%%LNG_ConfirmRemoveGiftWrapping%%';
	lang.SelectCountry = '%%LNG_ChooseShippingCountry%%';
	lang.SelectState = '%%LNG_ChooseShippingState%%';
	lang.EnterZip = '%%LNG_EnterShippingZip%%';
</script>
<h2 class="title">Carrinho de Compras</h2>
<div style="display: %%GLOBAL_HideShoppingCartGrid%%">
	<form enctype="multipart/form-data" onsubmit="return Cart.ValidateQuantityForm(this);" action="cart.php" name="cartForm" id="cartForm" method="post">
		<input type="hidden" name="action" value="update" />
		<div class="form-group">
			<table class="table table-bordered">
				<thead>
					<tr>
						<td class="text-center"></td>
						<td class="text-left">Produto</td>
						<td class="text-center">Quantidade</td>
						<td class="text-center hidden-xs">Valor</td>
						<td class="text-center hidden-xs">Total</td>
					</tr>
				</thead>
				<tbody>
					%%SNIPPET_CartItems%%
				</tbody>
			</table>
		</div>

		<div class="row">
			<div class="col-md-8">
				<div class="panel-group">
					<div class="panel panel-default">
						<div class="panel-heading">
							<h4 class="panel-title">Calcular Frete</h4>
						</div>
						<div class="panel-body" style="%%GLOBAL_HideShoppingCartShippingEstimator%%">
							<div class="panel-body EstimateShipping">
								<div class="form-horizontal">
									<select style="display: none;" name="shippingZoneCountry" id="shippingZoneCountry" onchange="Cart.ToggleShippingEstimateCountry();">
										%%GLOBAL_ShippingCountryList%%
									</select>

									<div class="form-group required">
										<label class="col-sm-2 control-label" for="input-zone">%%LNG_StateProvince%%</label>
										<div class="col-sm-10">
											<select style="display: %%GLOBAL_ShippingHideStateList%%" name="shippingZoneState" id="shippingZoneState" class="form-control">
												%%GLOBAL_ShippingStateList%%
											</select>
										</div>
									</div>
									<div class="form-group required">
										<label class="col-sm-2 control-label" for="input-postcode">%%LNG_ZipPostcode%%</label>
										<div class="col-sm-10">
											<input type="text" class="form-control" name="shippingZoneZip" id="shippingZoneZip" value="%%GLOBAL_ShippingZip%%">
										</div>
									</div>
									
									<div class="EstimateShippingButtons form-group">
										<div class="col-sm-2"></div>
										<div class="col-sm-10">
											<button type="button" id="button-quote" data-loading-text="Carregando..." class="btn btn-primary" onclick="Cart.EstimateShipping();">Calcular Frete</button>
										</div>
									</div>

									<div class="EstimatedShippingMethods" style="margin-top: 10px;display: none;">
										<div class="ShippingMethodList">
											
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<table class="table table-bordered">
					<tbody>
						<tr>
							<td class="text-right">
								<strong>%%LNG_Subtotal%%:</strong>
							</td>
							<td class="text-right">%%GLOBAL_CartItemTotal%%</td>
						</tr>
						<tr style="%%GLOBAL_HideDiscountAmount%%">
							<td class="text-right">
								<strong>%%LNG_Discount%%:</strong>
							</td>
							<td class="text-right">%%GLOBAL_DiscountAmount%%</td>
						</tr>
						<tr style="display:%%GLOBAL_HideShoppingCartShippingCost%%">
							<td class="text-right">
								<strong>%%GLOBAL_ShippingProvider%%:</strong>
							</td>
							<td class="text-right">%%GLOBAL_ShippingCost%%</td>
						</tr>
						<tr>
							<td class="text-right">
								<strong>%%LNG_GrandTotal%%:</strong>
							</td>
							<td class="text-right">%%GLOBAL_CartTotal%%</td>
						</tr>
					</tbody>
				</table>
				<div style="text-align: right;display:%%GLOBAL_HideSimulador%%">				
					%%GLOBAL_CartBoleto%%
					%%GLOBAL_CartCartao%%
				</div>
				<hr>
				<div class="buttons" >
					<div class="pull-left"><a href="%%GLOBAL_ShopPath%%" class="btn btn-primary">Continuar Comprando</a></div>
					%%GLOBAL_CartCheckoutButtonOptimizerScriptTag%%
					<div style="%%GLOBAL_HideCheckoutButton%%"class="pull-right"><a href="%%GLOBAL_CheckoutLink%%" onclick="%%GLOBAL_OptimizerLinkFunction%%" class="btn btn-success">Finalizar Pedido</a></div>
					%%GLOBAL_CartCheckoutButtonOptimizerNoScriptTag%%
				</div>
			</div>

		</div>
		<center style="display:%%GLOBAL_HideSimulador%%">*Desconto aplicado somente sobre o valor dos produtos, não considera frete e outros serviços.</center>
	</form>
</div>
<div class="wrapper-main brandshop clearfix" style="display: %%GLOBAL_HideShoppingCartEmptyMessage%%">
	<div class="spacer15"></div>
	<div class="container">
		<div class="inner-block">
			<div class="row">
				<div class="cart-main">
					<div class="col-md-12">
						<div class="cart-control clearfix">
							<div class="alert alert-info">
								%%LNG_NoItemsInCart%%
							</div>
							%%LNG_EmptyCartInfo%%
							<br /><br />
							<a href="%%GLOBAL_ShopPath%%/"><button type="button" class="btn btn-success">%%LNG_ContinueShopping%%</button></a> %%LNG_OnThe%% %%GLOBAL_StoreName%% 
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<br>