.fivemx-v2-archive {
	--fivemx-blue: #246cf0;
	--fivemx-blue-strong: #1559ed;
	--fivemx-ink: #101823;
	--fivemx-muted: #5c6875;
	--fivemx-line: #dce2ea;
	--fivemx-surface: #fff;
	--fivemx-surface-soft: #f6f8fb;
	--fivemx-focus: #0b56db;
	color: var(--fivemx-ink);
	font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fivemx-v2-archive *,
.fivemx-v2-archive *::before,
.fivemx-v2-archive *::after {
	box-sizing: border-box;
}

.fivemx-v2-archive .ct-container {
	max-width: 1360px;
}

.fivemx-archive-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px clamp(20px, 4vw, 48px);
	align-items: end;
	margin: 0 0 24px;
	padding: clamp(24px, 4vw, 48px) 0 26px;
	border-bottom: 1px solid var(--fivemx-line);
}

.fivemx-archive-intro__eyebrow {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--fivemx-blue-strong);
	font-size: 0.76rem;
	font-weight: 760;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.fivemx-archive-intro .woocommerce-breadcrumb {
	grid-column: 1 / -1;
	margin: 0 0 8px;
	color: var(--fivemx-muted);
	font-size: 0.78rem;
}

.fivemx-archive-intro .woocommerce-breadcrumb a {
	color: var(--fivemx-muted);
}

.fivemx-archive-intro .woocommerce-breadcrumb a:hover {
	color: var(--fivemx-blue-strong);
}

.fivemx-archive-intro h1 {
	margin: 0;
	color: var(--fivemx-ink);
	font-size: clamp(2.05rem, 5vw, 4.3rem);
	font-weight: 780;
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.fivemx-archive-intro__description {
	grid-column: 1;
	max-width: 760px;
	margin: 8px 0 0;
	color: var(--fivemx-muted);
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	line-height: 1.65;
}

.fivemx-browse {
	margin: 0 0 28px;
}

.fivemx-browse__status {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.fivemx-archive-result-count {
	margin: 0;
	color: var(--fivemx-muted);
	font-size: 0.88rem;
	font-weight: 650;
}

.fivemx-resource-nav {
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.fivemx-resource-nav ul {
	display: flex;
	gap: 6px;
	min-width: max-content;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
}

.fivemx-resource-nav a,
.fivemx-active-filters a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--fivemx-line);
	border-radius: var(--fmx-radius-control, 8px);
	background: var(--fivemx-surface);
	color: var(--fivemx-ink);
	font-size: 0.86rem;
	font-weight: 680;
	text-decoration: none;
}

.fivemx-resource-nav a:hover,
.fivemx-resource-nav a[aria-current="page"] {
	border-color: var(--fivemx-ink);
	background: var(--fivemx-ink);
	color: #fff;
}

.fivemx-filters {
	margin-top: 8px;
	border: 1px solid var(--fivemx-line);
	border-radius: 8px;
	background: var(--fivemx-surface-soft);
}

.fivemx-filters summary {
	display: none;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 14px;
	font-weight: 720;
	cursor: pointer;
	list-style: none;
}

.fivemx-filters summary::-webkit-details-marker {
	display: none;
}

.fivemx-filters summary span {
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	border-radius: 12px;
	background: var(--fivemx-blue);
	color: #fff;
	font-size: 0.75rem;
}

.fivemx-filters form {
	display: grid;
	grid-template-columns: repeat(4, minmax(140px, 1fr));
	gap: 12px;
	align-items: end;
	padding: 14px;
}

.fivemx-filters label {
	display: grid;
	gap: 5px;
	margin: 0;
}

.fivemx-price-range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fivemx-price-range legend {
	grid-column: 1 / -1;
	margin: 0 0 5px;
	padding: 0;
	color: var(--fivemx-muted);
	font-size: 0.72rem;
	font-weight: 740;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fivemx-filters label > span {
	color: var(--fivemx-muted);
	font-size: 0.72rem;
	font-weight: 740;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fivemx-filters select,
.fivemx-filters input,
.fivemx-filters button,
.fivemx-filter-reset {
	min-height: 44px;
	border-radius: var(--fmx-radius-control, 8px);
	font: inherit;
}

.fivemx-filters select {
	width: 100%;
	padding: 0 36px 0 12px;
	border: 1px solid #c8d0da;
	background-color: #fff;
	color: var(--fivemx-ink);
}

.fivemx-filters input {
	width: 100%;
	min-width: 0;
	padding: 0 10px;
	border: 1px solid #c8d0da;
	background: #fff;
	color: var(--fivemx-ink);
}

.fivemx-filters button {
	padding: 0 18px;
	border: 1px solid var(--fivemx-blue);
	background: var(--fivemx-blue);
	color: #fff;
	font-weight: 720;
	cursor: pointer;
}

.fivemx-filters button:hover {
	background: var(--fivemx-blue-strong);
}

.fivemx-filter-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	color: var(--fivemx-ink);
	font-weight: 680;
}

.fivemx-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.fivemx-active-filters a {
	min-height: 36px;
	padding-inline: 11px;
	background: #eef4ff;
	border-color: #c7dafd;
	font-size: 0.78rem;
}

.fivemx-v2-archive .woo-listing-top {
	display: none;
}

.fivemx-v2-archive ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 32px) clamp(14px, 2vw, 24px);
}

.fivemx-v2-archive ul.products li.product {
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.fivemx-v2-archive ul.products li.product figure {
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 12px;
	background: #edf1f5;
}

.fivemx-v2-archive ul.products li.product figure img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 180ms ease;
}

.fivemx-v2-archive [data-fivemx-card-media="exact"],
.fivemx-card-media-fallback {
	display: grid;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

.fivemx-card-media-fallback {
	place-content: center;
	gap: 4px;
	min-height: 160px;
	padding: 20px;
	text-align: center;
	text-decoration: none;
}

.fivemx-card-media-fallback span {
	color: var(--fivemx-blue-strong);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fivemx-card-media-fallback strong {
	color: var(--fivemx-ink);
	font-size: 0.9rem;
}

.fivemx-v2-archive ul.products li.product:hover figure img {
	transform: scale(1.018);
}

.fivemx-card-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 10px;
	align-items: center;
	margin: 0 0 9px;
}

.fivemx-card-facts__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-width: 0;
}

.fivemx-card-facts__badges span {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 0;
	border: 0;
	color: #435160;
	font-size: 0.68rem;
	font-weight: 720;
	letter-spacing: 0.025em;
	line-height: 1;
	text-transform: uppercase;
}

.fivemx-card-facts__badges span + span::before {
	margin-right: 5px;
	color: #a1aab4;
	content: "·";
}

.fivemx-card-facts__more {
	position: relative;
	display: inline-flex;
	font-size: 0.68rem;
}

.fivemx-card-facts__more summary {
	padding: 2px 5px;
	border: 1px solid var(--fivemx-line);
	border-radius: var(--fmx-radius-control, 8px);
	color: #435160;
	font-weight: 720;
	cursor: pointer;
	list-style: none;
}

.fivemx-card-facts__more summary::-webkit-details-marker {
	display: none;
}

.fivemx-card-facts__more[open] > span {
	position: absolute;
	z-index: 2;
	top: calc(100% + 4px);
	right: 0;
	display: block;
	min-width: max-content;
	padding: 6px 8px;
	border: 1px solid var(--fivemx-line);
	border-radius: var(--fmx-radius-control, 8px);
	background: #fff;
	box-shadow: 0 8px 20px rgb(21 31 44 / 12%);
	text-transform: none;
}

.fivemx-card-facts__rating {
	display: inline-flex;
	gap: 3px;
	align-items: center;
	margin: 0;
	color: #39495b;
	font-size: 0.75rem;
	font-weight: 680;
}

.fivemx-card-facts__rating > span:first-child {
	color: #dc8b16;
}

.fivemx-card-facts__rating > span:last-child {
	color: var(--fivemx-muted);
	font-weight: 540;
}

.fivemx-v2-archive ul.products .woocommerce-loop-product__title {
	margin-block: 0 8px;
	font-size: clamp(1rem, 1.2vw, 1.12rem);
	font-weight: 730;
	letter-spacing: -0.018em;
	line-height: 1.28;
}

.fivemx-v2-archive ul.products .woocommerce-loop-product__title a {
	color: var(--fivemx-ink);
}

.fivemx-v2-archive ul.products .price {
	color: var(--fivemx-ink);
	font-size: 0.94rem;
	font-weight: 730;
}

.fivemx-v2-archive ul.products .ct-woo-card-actions .button {
	width: auto;
	min-height: 44px;
	border-radius: 999px;
	padding-inline: 18px;
}

.fivemx-v2-archive :where(a, button, select, input, summary):focus-visible {
	outline: 3px solid color-mix(in srgb, var(--fivemx-focus) 48%, transparent);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.fivemx-v2-archive ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fivemx-filters form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.fivemx-resource-nav {
		scrollbar-width: none;
	}

	.fivemx-resource-nav::-webkit-scrollbar {
		display: none;
	}

	.fivemx-archive-intro {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 26px;
	}

	.fivemx-archive-intro__description {
		grid-column: 1;
		grid-row: auto;
	}

	.fivemx-browse__status {
		justify-content: flex-start;
	}

	.fivemx-filters summary {
		display: flex;
	}

	.fivemx-filters:not([open]) form {
		display: none;
	}

	.fivemx-filters form {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 4px;
	}

	.fivemx-filter-reset {
		justify-content: flex-start;
	}

	.fivemx-price-range {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fivemx-v2-archive ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

@media (max-width: 380px) {
	.fivemx-v2-archive ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fivemx-v2-archive ul.products li.product figure img {
		transition: none;
	}
}
