/* Elush Storefront — Shop Categories + Our Popular Products. */

.elush-sf {
	margin: 32px 0;
}
.elush-sf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.elush-sf-titles {
	text-align: left;
	flex: 0 1 auto;
}
.elush-sf-title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 6px;
	line-height: 1.2;
}
.elush-sf-title > * {
	font-size: inherit;
	font-weight: inherit;
	margin: 0;
	line-height: inherit;
}
.elush-sf-subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}
/* Popular Products: tabs + arrows share one white pill on the right. */
.elush-sf-controls {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border-radius: 999px;
	padding: 6px 10px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}
/* Side arrows: icon buttons centred on the track (left/right edges). */
.elush-sf-viewport {
	position: relative;
	/* When a fixed tile `size` is set, cap the strip to per_view tiles and
	   centre it on the page; otherwise full width (responsive per_view). */
	max-width: var( --sf-maxw, 100% );
	margin-left: auto;
	margin-right: auto;
}
/* Bare icon — no button chrome, no theme focus/active colour. */
.elush-sf-arrow,
.elush-sf-arrow:hover,
.elush-sf-arrow:focus,
.elush-sf-arrow:active {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 3;
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.elush-sf-arrow img {
	display: block;
	width: auto;
	height: auto;
}
.elush-sf-prev {
	left: var( --sf-arrow-x, -6px );
}
.elush-sf-next {
	right: var( --sf-arrow-x, -6px );
}

/* Carousel track (scroll-snap, arrow-driven). */
.elush-sf-track {
	display: flex;
	gap: var( --sf-gap, 18px );
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.elush-sf-track::-webkit-scrollbar {
	display: none;
}

/* ---- Shop Categories: circular tiles ---- */
/* Centre the tiles when they don't fill the strip; `safe` keeps the start
   reachable (no clipping) when they overflow and the carousel scrolls. */
.elush-sf-cats .elush-sf-track {
	justify-content: safe center;
}
.elush-sf-cats .elush-sf-item {
	flex: 0 0 auto;
	/* Fixed tile width via shortcode `size="…"`, else responsive per_view. */
	width: var(
		--sf-size,
		calc( ( 100% - ( var( --sf-per, 6 ) - 1 ) * var( --sf-gap, 18px ) ) / var( --sf-per, 6 ) )
	);
	min-width: 96px;
	scroll-snap-align: start;
	text-align: center;
	text-decoration: none;
	color: inherit;
}
.elush-sf-cats .elush-sf-circle {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var( --sf-radius, 50% );
	overflow: hidden;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	border: 1px solid #eee;
}
.elush-sf-cats .elush-sf-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.elush-sf-cats .elush-sf-name {
	font-size: 14px;
	font-weight: 600;
}

/* ---- Product grid / carousel cards (Popular Products + DOTD-like) ---- */
.elush-sf-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}
.elush-sf-tab {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	line-height: 1;
}
.elush-sf-tab.is-active {
	background: transparent;
	color: #2563eb;
	font-weight: 700;
}
/* Popular Products: arrows live in the head as small rounded buttons,
   not absolutely positioned on the viewport sides. */
.elush-sf-arrows {
	display: inline-flex;
	gap: 8px;
}
.elush-sf-pop .elush-sf-arrow,
.elush-sf-pop .elush-sf-arrow:hover,
.elush-sf-pop .elush-sf-arrow:focus,
.elush-sf-pop .elush-sf-arrow:active {
	position: static;
	transform: none;
}
.elush-sf-pop .elush-sf-arrow img {
	display: block;
	width: auto;
	height: auto;
}
.elush-sf-grid {
	display: grid;
	grid-template-columns: repeat( var( --sf-cols, 4 ), 1fr );
	gap: 18px;
}
/* Tabbed product carousel: fixed rows, columns scroll horizontally. */
.elush-sf-pgrid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat( var( --sf-rows, 2 ), auto );
	grid-auto-columns: calc(
		( 100% - ( var( --sf-cols, 4 ) - 1 ) * var( --sf-gap, 18px ) ) / var( --sf-cols, 4 )
	);
}
.elush-sf-pgrid .elush-sf-card {
	scroll-snap-align: start;
}
/* When the track is showing a status message (loader / empty / error),
   override the grid so the message centers across the full container. */
.elush-sf-pgrid.is-status {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}
.elush-sf-loading.is-spinner img {
	display: block;
	width: 80px;
	height: 80px;
}
.elush-sf-card {
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.elush-sf-card-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
}
.elush-sf-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.elush-sf-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #e23744;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}
.elush-sf-card-body {
	padding: 10px 12px 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.elush-sf-card-meta {
	flex: 1;
}
.elush-sf-card-name {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 4px;
}
.elush-sf-card-cat {
	font-size: 12px;
	color: #6b7280;
	margin: 0 0 8px;
}
.elush-sf-card-price {
	font-size: 14px;
	font-weight: 700;
}
.elush-sf-card-price del {
	color: #9ca3af;
	font-weight: 400;
	margin-left: 6px;
}
.elush-sf-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
}
.elush-sf-foot-arrows {
	display: inline-flex;
	gap: 16px;
}
.elush-sf-more {
	display: inline-block;
	border: 1px solid #111827;
	border-radius: 999px;
	padding: 9px 26px;
	text-decoration: none;
	color: #111827;
	font-weight: 600;
	font-size: 14px;
}
.elush-sf-more:hover {
	background: #111827;
	color: #fff;
}
.elush-sf-loading {
	text-align: center;
	color: #9ca3af;
	padding: 30px 0;
}
@media ( max-width: 782px ) {
	.elush-sf-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}
