<?php

/**
 * Product Loop Start
 *
 * Wrap the default ul with div tag HTML.
 * Added CSS classes for get layout from options.
 *
 * @see https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/templates/loop/loop-start.php
 * @package     WooCommerce\Templates
 * @version     3.3.0
 */

defined('ABSPATH') || exit;

$columns          = esc_attr(wc_get_loop_prop('columns'));
$shop_stack_on_mobile = get_theme_mod('shop_stack_on_mobile', false);
$inline_style = $shop_stack_on_mobile === true
	? '--cols: 1; --cols-md: ' . $columns . '; --cols-lg: '. $columns
	: '--cols: 2; --cols-md: ' . $columns . '; --cols-lg: '. $columns;

?>
<div class="rt-products products grids" style="<?php echo esc_attr($inline_style); ?>">