/**
 * ELPH Guard product-category archive layout.
 *
 * Scope: the product_category taxonomy archive and Elementor template 29369.
 * The rules are mobile-first and only restyle existing Elementor elements.
 * No card borders or shadows are introduced.
 */

:where(body.tax-product_category, body.elementor-page-29369) {
	--eg-archive-ink: #172b35;
	--eg-archive-muted: #61727b;
	--eg-archive-line: #dce6ea;
	--eg-archive-surface: #ffffff;
	--eg-archive-soft: #f3f7f8;
	--eg-archive-primary: #1286a3;
	--eg-archive-primary-dark: #0b6177;
}

/* Keep the page content aligned to the site's 1440px design width. */
body.tax-product_category main#main-content.wd-content-layout.container,
body.elementor-page-29369 main#main-content.wd-content-layout.container {
	width: 100%;
	max-width: 1480px;
	padding-top: 0;
	padding-right: 20px;
	padding-bottom: 72px;
	padding-left: 20px;
}

/* On phones the product results remain above the secondary category menu. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f826b31 {
	--width: 100%;
	--display: flex;
	--flex-direction: column-reverse;
	--align-items: stretch;
	--gap: 32px;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: 28px 0 56px;
	gap: 32px;
}

/* Category navigation: same quiet, pale sidebar treatment as product detail. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f347e9b {
	--width: 100%;
	--padding-top: 20px;
	--padding-right: 20px;
	--padding-bottom: 20px;
	--padding-left: 20px;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	width: 100% !important;
	min-width: 0;
	padding: 20px !important;
	overflow: hidden;
	background: var(--eg-archive-soft);
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Match the Product Categories and News headings used on Catalog Product. */
:where(body.tax-product_category, body.elementor-page-29369) :is(.elementor-element-9509668, .elementor-element-8975289) .elementor-heading-title {
	margin: 0;
	padding: 0 0 12px;
	color: var(--eg-archive-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	border-bottom: 2px solid var(--eg-archive-primary);
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-8975289 {
	margin-top: 28px;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-8131df1 {
	--eg-category-text: var(--eg-archive-ink);
	--eg-category-accent: var(--eg-archive-primary-dark);
	--eg-category-divider: var(--eg-archive-line);
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-8131df1 .elphguard-product-categories__link {
	min-height: 0;
	padding-inline: 2px;
	font-size: 14px;
	line-height: 1.35;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-8131df1 .elphguard-product-categories__link:hover {
	padding-inline-start: 7px;
}

/* Reuse the Catalog Product sidebar treatment for the News Loop Grid. */
:where(body.tax-product_category, body.elementor-page-29369) :is(.elementor-element-8131df1, .elementor-element-f03d997) {
	margin: 0 !important;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-loop-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0 !important;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318.e-loop-item,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .e-con,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .e-con-inner {
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .elementor-heading-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .elementor-heading-title a {
	display: block;
	padding: 11px 2px;
	color: var(--eg-archive-muted);
	border-bottom: 1px solid var(--eg-archive-line);
	transition: color 160ms ease, padding-inline-start 160ms ease;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .elementor-heading-title a:hover,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f03d997 .elementor-29318 .elementor-heading-title a:focus-visible {
	padding-inline-start: 7px;
	color: var(--eg-archive-primary-dark);
}

/* Results column and Loop Grid spacing. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-fef969d {
	--width: 100%;
	width: 100%;
	min-width: 0;
	padding: 0 !important;
	background: transparent;
	border: 0;
	box-shadow: none;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-loop-container {
	width: 100%;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-loop-container {
	column-gap: 0;
	row-gap: 28px;
}

/* One clean loop item: spacing creates separation, not a card outline. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-6f6c07d {
	--width: 100%;
	--display: flex;
	--flex-direction: column;
	--align-items: stretch;
	--gap: 18px;
	width: 100%;
	padding: 0;
	background: var(--eg-archive-surface);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	gap: 18px;
}

/* A fixed aspect-ratio reserves image space and keeps rows visually consistent. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-af78835 {
	--width: 100%;
	width: 100%;
	min-width: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--eg-archive-soft);
	border: 0;
	box-shadow: none;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-9abbc56,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-9abbc56 .elementor-widget-container,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-9abbc56 a {
	display: block;
	width: 100%;
	height: 100%;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-9abbc56 img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 220ms ease;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-6f6c07d:hover .elementor-element-9abbc56 img {
	transform: scale(1.025);
}

/* Text column: compact hierarchy with comfortable line length. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-aa8ba96 {
	--width: 100%;
	--justify-content: center;
	--gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 2px 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	gap: 10px;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-fca57c1 :is(h1, h2, h3, h4, .e-heading-title, .elementor-heading-title),
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-fca57c1 :is(h1, h2, h3, h4, .e-heading-title, .elementor-heading-title) a {
	margin: 0;
	color: var(--eg-archive-ink);
	font-size: clamp(20px, 4.8vw, 27px);
	font-weight: 600;
	line-height: 1.28;
	text-decoration: none;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-fca57c1 a:hover {
	color: var(--eg-archive-primary-dark);
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-a17de90,
:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-a17de90 p {
	margin: 0;
	color: var(--eg-archive-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Keyboard focus remains clearly visible without adding permanent outlines. */
:where(body.tax-product_category, body.elementor-page-29369) :is(.elphguard-product-categories__link, .elementor-element-9abbc56 a, .elementor-element-fca57c1 a):focus-visible {
	outline: 2px solid var(--eg-archive-primary);
	outline-offset: 3px;
}

/* Keep Elementor pagination compact and visually secondary. */
:where(body.tax-product_category, body.elementor-page-29369) .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 36px;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-pagination .page-numbers {
	display: inline-grid;
	min-width: 38px;
	min-height: 38px;
	place-items: center;
	margin: 0;
	color: var(--eg-archive-ink);
	background: var(--eg-archive-soft);
	border: 0;
	box-shadow: none;
}

:where(body.tax-product_category, body.elementor-page-29369) .elementor-pagination :is(.page-numbers.current, .page-numbers:hover) {
	color: #fff;
	background: var(--eg-archive-primary-dark);
}

@media (min-width: 700px) {
	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-6f6c07d {
		--flex-direction: row;
		--align-items: center;
		--gap: 24px;
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-af78835 {
		--width: 36%;
		flex: 0 0 36%;
		width: 36%;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-aa8ba96 {
		--width: auto;
		flex: 1 1 auto;
		width: auto;
		padding-block: 10px;
	}
}

@media (min-width: 992px) {
	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f826b31 {
		--flex-direction: row;
		--align-items: flex-start;
		--gap: clamp(28px, 3vw, 44px);
		flex-direction: row;
		align-items: flex-start;
		gap: clamp(28px, 3vw, 44px);
		padding-top: 40px;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f347e9b {
		--width: clamp(240px, 23%, 290px);
		position: sticky;
		top: 92px;
		flex: 0 0 clamp(240px, 23%, 290px);
		width: clamp(240px, 23%, 290px);
		padding: 24px !important;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-fef969d {
		--width: auto;
		flex: 1 1 0;
		width: auto;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-af78835 {
		--width: 34%;
		flex-basis: 34%;
		width: 34%;
	}
}

@media (max-width: 479px) {
	body.tax-product_category main#main-content.wd-content-layout.container,
	body.elementor-page-29369 main#main-content.wd-content-layout.container {
		padding-right: 16px;
		padding-left: 16px;
	}

	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-f826b31 {
		padding-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(body.tax-product_category, body.elementor-page-29369) .elementor-element-eb8a3b5 .elementor-element-9abbc56 img {
		transition: none;
	}
}
