<!-- BEGIN: MAIN -->
<div class="pt20 mb20 page-basket">
  <div class="centerwrap">
    <div class="pt20 m-visible"></div>
    <h1 class="f32">Корзина</h1>
  </div>
  <div class="centerwrap m-p0">
    <div class=" w700">
      <div class="cart-popup" <!-- IF !{PHP.usr.marketorders_cartcnt} --> style="display:none;"<!-- ENDIF -->>
        <div class="block-popup not_to_hide" style="left: 50%;">
          <div class="cart-popup_row cart-popup_head">
            <div>
              <div class="pl10"><b>{PHP|cot_sitename('padeg', '_i')} в корзине</b></div>
            </div>
            <div>Кол-во</div>
            <div>Сумма</div>
          </div>
          <div>
            <!-- BEGIN: CART_ROW -->
            <div class="cart-popup_row" data-id="{CART.id}">
              <div>
                <a href="{CART.item_url}" class="dib v-align-m mr10">
                  <img src="{CART.photo_first_crop}" width="83" height="50" alt="{CART.title}">
                </a>
                <a href="{CART.item_url}" class="cart-popup_text m-visible mt10">
                  {CART.title}
                </a>
              </div>
              <div class="cart-popup_count">
                <span class="prd_count">{CART.cnt_item}</span> {CART.cnt_item|cot_sitename('declension', 'main', 'declension', $this, true)}
                <!-- IF {CART.cnt_extras} > 0 -->
                  <br> + {CART.cnt_extras|cot_declension($this, 'опция,опции,опций')}
                <!-- ENDIF -->
              </div>
              <div><span class="cart-popup_price_prd-js" data-price="{CART.cost}">{CART.cost_format}</span>&nbsp;<span class="rouble">Р</span></div>
              <div class="cart-popup_delete" onclick="CartModule.deleteItem(this, '{CART.id}');"></div>
            </div>
            <!-- END: CART_ROW -->
          </div>
          <div class="clearfix cart-popup_row_bottom">
            <!-- IF {PHP.usr.marketorders_cartinpay} > 0 -->
              <div onclick="CartModule.makeOrder();" class="pull-right hugeGreenBtn GreenBtnStyle pull-right">Заказать&nbsp;(<span class="cart-popup_total-js">{PHP.usr.marketorders_cartcnt}</span>&nbsp;<span class="rouble">Р</span>)</div>
            <!-- ELSE -->
              <div onclick="CartModule.makeOrder();" class="pull-right hugeGreenBtn GreenBtnStyle pull-right">Заказать&nbsp;(<span class="cart-popup_total-js">{PHP.usr.marketorders_cartcnt}</span>&nbsp;<span class="rouble">Р</span>)</div>
            <!-- ENDIF -->
          </div>
        </div>
      </div>
      <p class="empty-basket-text-js pl10"<!-- IF {PHP.usr.marketorders_cartcnt} > 0 --> style="display:none;"<!-- ENDIF -->>Корзина пуста. Но так быть не должно ;)<br>Добавляйте {PHP|cot_sitename('padeg', '_i')}, делайте заказы!</p>
    </div>
  </div>
</div>
<!-- END: MAIN -->