{% sw_extends '@Storefront/storefront/section/cms-section-sidebar.html.twig' %}


{% block page_content_section_sidebar %}
	<div class="detail--listing">
		<div class="listing-box-header">
			<div class="container">
				{% set blocks = section.blocks.elements %}
				{% for cms_block in blocks %}
					{% if cms_block.type == "product-listing" %}
						{% set slot = cms_block.slots.elements|first %}
						{% set total = slot.data.listing.total %}
						<div class="listing-top-text">
							<div class="lbl">{{ "BrandCrockAquaTheme.listinglpage.pageCounts.title1"|trans|sw_sanitize }}</div>
							{{ (total > 0) ?  total : 0 }}
							{{ "BrandCrockAquaTheme.listinglpage.pageCounts.title2"|trans|sw_sanitize }}
						</div>
					{% endif %}
				{% endfor %}
			</div>
		</div>
		{{ parent() }}

		{% block section_sidebar_content %}
			{{ parent() }}
		{% endblock %}

		{% block section_main_content %}
			{{ parent() }}
		{% endblock %}
	</div>
{% endblock %}
