/* Product-result geometry owned by Subsensor Core. Theme-specific row
 * neutralisation remains isolated in the compatibility adapter. */
body.subsensor-catalog-results ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px 16px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.subsensor-catalog-results ul.products::before,
body.subsensor-catalog-results ul.products::after {
	display: none !important;
	content: none !important;
}

body.subsensor-catalog-results ul.products > li.product {
	display: flex !important;
	box-sizing: border-box;
	width: auto !important;
	height: 100%;
	min-width: 0;
	flex-direction: column;
	float: none !important;
	margin: 0 !important;
}

body.subsensor-catalog-results ul.products > li.product .subsensor-rating-wrapper {
	min-height: 16px;
}

body.subsensor-catalog-results ul.products > li.product .subsensor-product-availability--loop {
	min-height: 20px;
}

body.subsensor-catalog-results ul.products > li.product > .price,
body.subsensor-catalog-results ul.products > li.product .price {
	box-sizing: border-box;
	width: 100%;
	text-align: center !important;
}

/* One heading contract across native, retained-builder and empty archives. */
body.subsensor-catalog-results .woocommerce-products-header__title,
body.subsensor-search-empty-results .subsensor-search-empty__summary h1 {
 margin: 0 !important;
 font-size: var(--subsensor-catalog-title-size) !important;
 line-height: var(--subsensor-catalog-title-line-height) !important;
 font-weight: 700 !important;
 letter-spacing: -.025em !important;
 overflow-wrap: anywhere;
}
body.subsensor-catalog-results .woocommerce-products-header { margin: 0 0 var(--subsensor-space-title-content); }
@media (max-width: 820px) {
 body.subsensor-catalog-results .woocommerce-products-header__title,
 body.subsensor-search-empty-results .subsensor-search-empty__summary h1 { font-size: var(--subsensor-catalog-title-size-mobile) !important; }
 body.subsensor-catalog-results ul.products > li.product .subsensor-rating-wrapper,
 body.subsensor-catalog-results ul.products > li.product .subsensor-product-availability--loop { min-width: 0; max-width: 100%; }
 body.subsensor-catalog-results ul.products > li.product .subsensor-availability-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

body.subsensor-search-empty-results .subsensor-search-empty-page {
	box-sizing: border-box;
	width: 100%;
	padding: 0 !important;
}

body.subsensor-search-empty-results .subsensor-search-empty-page__inner {
	box-sizing: border-box;
	width: 90%;
	max-width: 1296px;
	margin: 0 auto;
	padding-top: var(--subsensor-space-6);
	padding-bottom: var(--subsensor-space-6);
}

body.subsensor-search-empty-results .subsensor-search-empty {
	display: grid;
	width: 100%;
	gap: var(--subsensor-space-5);
	margin: 0;
	color: var(--subsensor-ink);
}

body.subsensor-search-empty-results .subsensor-search-empty__summary {
	box-sizing: border-box;
	min-width: 0;
	display: flex;
	width: min(100%, 760px);
	align-items: center;
	flex-direction: column;
	gap: 12px;
	margin: 0 auto;
	padding: 32px 24px;
	border: 1px solid var(--subsensor-border);
	border-radius: 16px;
	background: var(--subsensor-soft);
	text-align: center;
}

body.subsensor-search-empty-results .subsensor-search-empty__icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	color: var(--subsensor-primary);
}

body.subsensor-search-empty-results .subsensor-search-empty__icon svg {
	display: block;
	width: 36px;
	height: 36px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

body.subsensor-search-empty-results .subsensor-search-empty__summary h1 {
	margin: 0;
	color: var(--subsensor-ink);
}


body.subsensor-search-empty-results .subsensor-search-empty__summary p {
	max-width: 560px;
	margin: 0;
	color: var(--subsensor-muted);
	font-size: 16px;
	line-height: 1.5;
}

body.subsensor-search-empty-results .subsensor-search-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}

body.subsensor-search-empty-results a.subsensor-search-empty__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--subsensor-primary);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

body.subsensor-search-empty-results a.subsensor-search-empty__button.is-primary {
	background: var(--subsensor-primary);
	color: #fff;
}

body.subsensor-search-empty-results a.subsensor-search-empty__button.is-secondary {
	background: #fff;
	color: var(--subsensor-primary-dark);
}

body.subsensor-catalog-results .subsensor-catalog-pagination {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: var(--subsensor-space-3);
	margin: var(--subsensor-space-6) 0 0;
	padding-top: var(--subsensor-space-4);
	border-top: 1px solid #e4e7ec;
}

body.subsensor-catalog-results .subsensor-catalog-pagination__pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

body.subsensor-catalog-results .subsensor-catalog-pagination .page-numbers,
body.subsensor-catalog-results .subsensor-catalog-pagination__arrow {
	display: inline-grid;
	box-sizing: border-box;
	min-width: 36px;
	height: 36px;
	place-items: center;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #5d6472;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

body.subsensor-catalog-results .subsensor-catalog-pagination__arrow {
	background: #f3f4f6;
	color: #111827;
	font-size: 20px;
}

body.subsensor-catalog-results .subsensor-catalog-pagination__arrow.is-disabled {
	opacity: 0.42;
}

body.subsensor-catalog-results .subsensor-catalog-pagination .page-numbers.current {
	position: relative;
	color: #111827;
}

body.subsensor-catalog-results .subsensor-catalog-pagination .page-numbers.current::after {
	position: absolute;
	right: 8px;
	bottom: 0;
	left: 8px;
	height: 2px;
	background: #111827;
	content: '';
}

@media (max-width: 820px) {
	body.subsensor-catalog-results ul.products {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	body.subsensor-catalog-results ul.products > li.product {
		--subsensor-mobile-card-media-width: clamp(108px, 38%, 180px);
		display: grid !important;
		box-sizing: border-box !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		grid-template-columns: var(--subsensor-mobile-card-media-width) minmax(0, 1fr);
		grid-template-rows: 38px 46px 24px 46px;
		align-items: start;
		column-gap: 12px;
		row-gap: 6px;
		padding: 10px !important;
		text-align: left;
	}

	body.subsensor-search-empty-results .subsensor-search-empty-page {
		padding: 0 !important;
	}

	body.subsensor-search-empty-results .subsensor-search-empty-page__inner {
		width: 100%;
		padding-top: var(--subsensor-space-5);
		padding-right: var(--subsensor-space-4);
		padding-bottom: var(--subsensor-space-5);
		padding-left: var(--subsensor-space-4);
	}

	body.subsensor-search-empty-results .subsensor-search-empty {
		width: 100%;
		gap: var(--subsensor-space-5);
		margin-right: auto;
		margin-left: auto;
	}

	body.subsensor-search-empty-results .subsensor-search-empty__summary {
		gap: var(--subsensor-space-2);
		padding: var(--subsensor-space-5) var(--subsensor-space-4);
		border-radius: 12px;
	}


	body.subsensor-search-empty-results .subsensor-search-empty__summary p {
		font-size: 15px;
	}

	body.subsensor-search-empty-results .subsensor-search-empty__actions,
	body.subsensor-search-empty-results a.subsensor-search-empty__button {
		width: 100%;
	}

	body.subsensor-catalog-results .subsensor-catalog-pagination {
		gap: var(--subsensor-space-2);
		margin-top: var(--subsensor-space-6);
	}

	body.subsensor-catalog-results .subsensor-catalog-pagination .page-numbers,
	body.subsensor-catalog-results .subsensor-catalog-pagination__arrow {
		min-width: 32px;
		height: 32px;
		padding: 0 6px;
		font-size: 14px;
	}
}
