/**
 * Mobile Finder / Search page — design system layout.
 */

.cx-app.cx-search-shell {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: clip;
	box-sizing: border-box;
}

.cx-search-shell {
	background: var(--cx-bg, #f8fafc);
	min-height: 60vh;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
}

.cx-search-page {
	max-width: var(--cx-container-xl, 1100px);
	width: 100%;
	margin: 0 auto;
	padding: var(--cx-space-6, 24px) var(--cx-space-4, 16px);
	font-family: var(--cx-font-body, system-ui, sans-serif);
	box-sizing: border-box;
	overflow-x: clip;
}

.cx-search-page.cx-has-sidebar {
	max-width: 1300px;
}

.cx-search-hero {
	text-align: center;
	padding: 30px 16px 24px;
	margin-bottom: 20px;
}

.cx-search-hero__title {
	font-size: var(--cx-text-3xl, 1.75rem);
	font-weight: 800;
	color: var(--cx-text, #0f172a);
	margin: 0 0 6px;
}

.cx-search-hero__sub {
	color: var(--cx-g500, #64748b);
	font-size: var(--cx-text-base, 0.875rem);
	margin: 0 0 20px;
}

.cx-search-hero__field {
	max-width: 600px;
	margin: 0 auto;
	position: relative;
}

.cx-search-hero__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cx-g400, #94a3b8);
	pointer-events: none;
}

.cx-search-hero__input {
	width: 100%;
	padding: 14px 14px 14px 44px;
	border: 2px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-lg, 14px);
	font-size: 15px;
	font-family: inherit;
	background: var(--cx-card, #fff);
	color: var(--cx-text, #0f172a);
	transition: border-color var(--cx-duration-fast, 0.15s);
}

.cx-search-hero__input:focus {
	outline: none;
	border-color: var(--cx-primary, #6366f1);
}

.cx-search-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cx-type-chip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	line-height: 0;
}

.cx-type-chip__icon svg {
	width: 14px !important;
	height: 14px !important;
	max-width: 14px;
	max-height: 14px;
	display: block;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.cx-search-chips {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 4px;
		margin-inline: calc(-1 * var(--cx-space-4, 16px));
		padding-inline: var(--cx-space-4, 16px);
		scroll-padding-inline: var(--cx-space-4, 16px);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}
	.cx-search-chips::-webkit-scrollbar {
		display: none;
	}
	.cx-search-page .cx-type-chip {
		flex-shrink: 0;
		align-self: center;
	}
}

.cx-search-mob-filter:focus-visible {
	outline: 2px solid var(--cx-primary, #6366f1);
	outline-offset: 2px;
}

.cx-search-brands {
	margin-bottom: 20px;
}

.cx-search-brands__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--cx-g500, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
	text-align: center;
}

.cx-search-brands__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.cx-search-brand-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-md, 10px);
	text-decoration: none;
	color: var(--cx-g700, #334155);
	font-size: 12px;
	font-weight: 600;
	background: var(--cx-card, #fff);
	transition: border-color var(--cx-duration-fast, 0.15s), background var(--cx-duration-fast, 0.15s);
}

.cx-search-brand-link:hover {
	border-color: var(--cx-primary, #6366f1);
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 6%, var(--cx-card, #fff));
}

.cx-search-brand-link img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	border-radius: 3px;
}

.cx-search-layout {
	display: flex;
	gap: 20px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cx-search-sidebar {
	width: 240px;
	flex-shrink: 0;
}

.cx-search-sidebar__panel {
	position: sticky;
	top: 16px;
	background: var(--cx-card, #fff);
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-lg, 14px);
	padding: 14px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.cx-search-sidebar__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.cx-search-sidebar__head h3 {
	font-size: 14px;
	font-weight: 800;
	margin: 0;
}

.cx-search-clear {
	font-size: 11px;
	color: var(--cx-primary, #6366f1);
	font-weight: 600;
	background: none;
	border: none;
	cursor: pointer;
	display: none;
}

.cx-search-main {
	flex: 1;
	min-width: 0;
}

.cx-search-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

.cx-search-count {
	font-size: 13px;
	color: var(--cx-g500, #64748b);
}

.cx-search-sort-row {
	display: flex;
	gap: 6px;
	align-items: center;
}

.cx-search-sort,
.cx-search-mob-filter {
	padding: 7px 10px;
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-sm, 8px);
	font-size: 12px;
	font-family: inherit;
	background: var(--cx-card, #fff);
	color: var(--cx-text, #0f172a);
}

.cx-search-mob-filter {
	display: none;
	cursor: pointer;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.cx-search-mob-filter svg {
	flex-shrink: 0;
	display: block;
}

.cx-search-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.cx-search-pagination {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 20px;
}

.cx-search-card {
	background: var(--cx-card, #fff);
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-md, 12px);
	overflow: hidden;
	transition: box-shadow var(--cx-duration-normal, 0.28s), transform var(--cx-duration-normal, 0.28s);
}

.cx-search-card:hover {
	box-shadow: var(--cx-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.06));
	transform: translateY(-2px);
}

.cx-search-page .cx-type-chip {
	padding: 8px 16px;
	border-radius: var(--cx-radius-full, 100px);
	border: 1.5px solid var(--cx-border, #e2e8f0);
	background: var(--cx-card, #fff);
	color: var(--cx-g700, #334155);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1.2;
	min-height: 36px;
	transition: all 0.15s;
}

.cx-search-page .cx-type-chip:hover {
	border-color: var(--cx-primary, #6366f1);
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 8%, var(--cx-card, #fff));
	color: var(--cx-primary, #6366f1);
}

.cx-search-page .cx-type-chip.active {
	border-color: var(--cx-primary, #6366f1) !important;
	background: var(--cx-primary, #6366f1) !important;
	color: #fff !important;
}

.cx-search-page .cx-type-chip svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: inherit;
}

.cx-search-page .cx-type-chip svg * {
	stroke: currentColor !important;
}

.cx-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 12%, var(--cx-card, #fff));
	color: var(--cx-primary, #2563eb);
	border-radius: var(--cx-radius-full, 100px);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid color-mix(in srgb, var(--cx-primary, #6366f1) 20%, var(--cx-border, #e2e8f0));
	font-family: inherit;
}

.cx-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 998;
}

.cx-filter-overlay.is-open {
	display: block;
}

@keyframes cxShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.cx-search-skeleton {
	height: 280px;
	background: linear-gradient(90deg, var(--cx-g100, #f1f5f9) 25%, #f8fafc 50%, var(--cx-g100, #f1f5f9) 75%);
	background-size: 200%;
	animation: cxShimmer 1.5s infinite;
	border-radius: var(--cx-radius-md, 12px);
}

.cx-search-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.cx-search-card__media {
	aspect-ratio: 1 / 1;
	background: var(--cx-bg, #f8fafc);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.cx-search-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}

.cx-search-card__type {
	position: absolute;
	top: 6px;
	left: 6px;
	font-size: 9px;
	font-weight: 700;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 2px 7px;
	border-radius: var(--cx-radius-full, 100px);
}

.cx-search-card__body {
	padding: 10px;
}

.cx-search-card__brand {
	font-size: 9px;
	color: var(--cx-g400, #94a3b8);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.cx-search-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--cx-text, #0f172a);
	margin: 2px 0 4px;
	line-height: 1.3;
}

.cx-search-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-bottom: 6px;
}

.cx-spec-chip {
	font-size: 9px;
	padding: 2px 5px;
	background: var(--cx-bg, #f1f5f9);
	border-radius: 3px;
	color: var(--cx-g700, #475569);
}

.cx-search-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.cx-filter-group {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cx-g100, #f1f5f9);
}

.cx-filter-group-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--cx-g500, #64748b);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.cx-filter-check {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	cursor: pointer;
	font-size: 12px;
	color: var(--cx-g700, #334155);
}

.cx-filter-range {
	display: flex;
	gap: 6px;
}

.cx-filter-range input {
	width: 50%;
	padding: 6px 8px;
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: 6px;
	font-size: 11px;
}

.cx-filter-empty,
.cx-empty-state {
	font-size: 12px;
	color: var(--cx-g400, #94a3b8);
	text-align: center;
	padding: 16px;
}

@media (max-width: 768px) {
	.cx-search-sidebar {
		display: none;
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: min(85vw, 300px);
		max-width: 300px;
		z-index: 999;
		padding: 0;
	}

	.cx-search-sidebar.is-open {
		display: block;
	}

	.cx-search-sidebar__panel {
		border-radius: 0;
		height: 100%;
		max-height: 100vh;
		border: none;
	}

	.cx-search-mob-filter {
		display: inline-flex !important;
	}

	.cx-search-layout {
		flex-direction: column;
		gap: 12px;
	}

	.cx-search-main {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.cx-search-toolbar {
		align-items: flex-start;
	}

	.cx-search-sort-row {
		flex-wrap: wrap;
		width: 100%;
	}

	.cx-search-sort-row .cx-search-sort {
		flex: 1;
		min-width: 0;
	}

	.cx-search-results {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.cx-search-page {
		padding: 12px var(--cx-space-3, 12px);
	}

	.cx-search-hero {
		padding: 12px 0 16px;
		margin-bottom: 12px;
		text-align: left;
	}

	.cx-search-hero__title {
		font-size: clamp(1.25rem, 5.5vw, 1.5rem);
	}

	.cx-search-hero__sub {
		font-size: 0.8125rem;
		margin-bottom: 12px;
	}

	.cx-search-hero__field {
		max-width: none;
		width: 100%;
	}

	.cx-search-brands__title {
		text-align: left;
	}

	.cx-search-brands__list {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		margin-inline: calc(-1 * var(--cx-space-3, 12px));
		padding-inline: var(--cx-space-3, 12px);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	.cx-search-brands__list::-webkit-scrollbar {
		display: none;
	}

	.cx-search-brand-link {
		flex-shrink: 0;
	}
}

@media (max-width: 480px) {
	.cx-search-results {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 430px) {
	.cx-search-page .cx-type-chip {
		padding: 7px 12px;
		font-size: 11px;
		min-height: 34px;
	}

	.cx-search-hero__input {
		font-size: 14px;
		padding: 12px 12px 12px 40px;
	}
}

/* ── Active filter chips ── */
.cx-search-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	padding: 0 2px;
}

.cx-search-active-filters .cx-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 10%, var(--cx-card, #fff));
	color: var(--cx-primary, #6366f1);
	border-radius: var(--cx-radius-full, 100px);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid color-mix(in srgb, var(--cx-primary, #6366f1) 25%, var(--cx-border, #e2e8f0));
	font-family: inherit;
}

/* ── Brand links with logos ── */
.cx-search-brand-link {
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 72px;
	padding: 10px 12px;
	gap: 4px;
}

.cx-search-brand-link__logo {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cx-search-brand-link__logo img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.cx-search-brand-link__letter {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--cx-primary, #6366f1);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cx-search-brand-link__name {
	font-size: 11px;
	line-height: 1.2;
}

.cx-search-brand-link__count {
	font-size: 9px;
	color: var(--cx-g400, #94a3b8);
	font-weight: 500;
}

/* ── Premium filter panel ── */
.cx-filter-panel__body,
.cx-filter-sheet__body {
	max-height: 55vh;
	overflow-y: auto;
	scrollbar-width: thin;
	padding-right: 2px;
}

.cx-filter-panel__foot,
.cx-filter-sheet__foot {
	display: flex;
	gap: 8px;
	padding-top: 12px;
	margin-top: 8px;
	border-top: 1px solid var(--cx-g100, #f1f5f9);
}

.cx-filter-apply,
.cx-filter-clear {
	flex: 1;
	padding: 12px 16px;
	border-radius: var(--cx-radius-md, 12px);
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.cx-filter-apply {
	background: var(--cx-primary, #6366f1);
	color: #fff;
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.cx-filter-clear {
	background: var(--cx-bg, #f8fafc);
	color: var(--cx-g700, #334155);
	border: 1px solid var(--cx-border, #e2e8f0);
}

.cx-filter-type-grid,
.cx-filter-brand-grid,
.cx-filter-pill-row,
.cx-filter-check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cx-filter-type-pill,
.cx-filter-brand-pill,
.cx-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1.5px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-full, 100px);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	background: var(--cx-card, #fff);
	color: var(--cx-g700, #334155);
	transition: border-color 0.15s, background 0.15s;
}

.cx-filter-type-pill input,
.cx-filter-brand-pill input,
.cx-filter-pill input,
.cx-filter-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cx-filter-type-pill:has(input:checked),
.cx-filter-brand-pill:has(input:checked),
.cx-filter-pill:has(input:checked) {
	border-color: var(--cx-primary, #6366f1);
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 10%, var(--cx-card, #fff));
	color: var(--cx-primary, #6366f1);
}

.cx-filter-brand-pill img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	border-radius: 4px;
}

.cx-filter-slider {
	position: relative;
	height: 28px;
	margin: 8px 0 4px;
}

.cx-filter-slider input[type="range"] {
	position: absolute;
	width: 100%;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	appearance: none;
	background: transparent;
}

.cx-filter-slider input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--cx-primary, #6366f1);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	pointer-events: auto;
	cursor: pointer;
}

.cx-filter-slider-values {
	font-size: 12px;
	font-weight: 700;
	color: var(--cx-text, #0f172a);
}

.cx-filter-group--sort select {
	width: 100%;
	margin-top: 4px;
}

.cx-search-mob-filter {
	position: relative;
}

.cx-search-mob-filter__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cx-primary, #6366f1);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── Bottom sheet (mobile) ── */
.cx-filter-sheet {
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
	visibility: hidden;
}

.cx-filter-sheet.is-open {
	pointer-events: auto;
	visibility: visible;
}

.cx-filter-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.cx-filter-sheet.is-open .cx-filter-sheet__backdrop {
	opacity: 1;
}

.cx-filter-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 92vh;
	background: var(--cx-card, #fff);
	border-radius: 20px 20px 0 0;
	padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
	display: flex;
	flex-direction: column;
}

.cx-filter-sheet.is-open .cx-filter-sheet__panel {
	transform: translateY(0);
}

.cx-filter-sheet__handle {
	width: 40px;
	height: 4px;
	border-radius: 999px;
	background: var(--cx-g200, #e2e8f0);
	margin: 4px auto 10px;
}

.cx-filter-sheet__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.cx-filter-sheet__head h3 {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}

.cx-filter-sheet__count {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--cx-primary, #6366f1);
	color: #fff;
}

.cx-filter-sheet__close {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--cx-bg, #f8fafc);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--cx-g700, #334155);
}

body.cx-filter-open {
	overflow: hidden;
}

@media (min-width: 769px) {
	.cx-filter-sheet {
		display: none;
	}

	.cx-filter-panel__body {
		max-height: calc(100vh - 220px);
	}
}

@media (max-width: 768px) {
	.cx-search-sidebar {
		display: none !important;
	}

	.cx-filter-panel__foot {
		display: none;
	}
}

/* ── Finder page sections ── */
.cx-finder-sections-wrap {
	max-width: var(--cx-container-xl, 1100px);
	margin: 0 auto;
	padding: 0 var(--cx-space-4, 16px) var(--cx-space-8, 32px);
}

.cx-finder-section {
	margin-top: var(--cx-space-6, 24px);
	background: var(--cx-card, #fff);
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-lg, 16px);
	padding: var(--cx-space-5, 20px);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.cx-finder-section__head {
	margin-bottom: var(--cx-space-4, 16px);
}

.cx-finder-section__title {
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: var(--cx-text, #0f172a);
}

.cx-finder-section__sub {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--cx-g500, #64748b);
}

.cx-finder-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
	gap: 10px;
}

.cx-finder-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 14px 10px;
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-md, 12px);
	text-decoration: none;
	color: var(--cx-text, #0f172a);
	background: var(--cx-card, #fff);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cx-finder-brand-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--cx-primary, #6366f1) 35%, var(--cx-border, #e2e8f0));
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cx-finder-brand-card__logo {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--cx-bg, #f8fafc);
}

.cx-finder-brand-card__logo img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.cx-finder-brand-card__letter {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--cx-primary, #6366f1);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cx-finder-brand-card__name {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.cx-finder-brand-card__count {
	font-size: 10px;
	color: var(--cx-g500, #64748b);
	font-weight: 600;
}

.cx-finder-comp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 12px;
}

.cx-finder-comp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--cx-border, #e2e8f0);
	border-radius: var(--cx-radius-lg, 14px);
	background: var(--cx-card, #fff);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.cx-finder-comp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cx-finder-comp-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	font-size: 9px;
	font-weight: 800;
	padding: 4px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, #f59e0b 16%, var(--cx-card, #fff));
	color: #b45309;
	border: 1px solid color-mix(in srgb, #f59e0b 24%, transparent);
}

.cx-finder-comp-card__main {
	display: block;
	padding: 14px 14px 10px;
	text-decoration: none;
	color: inherit;
}

.cx-finder-comp-card__phones {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.cx-finder-comp-card__vs {
	font-size: 10px;
	font-weight: 900;
	color: var(--cx-g400, #94a3b8);
}

.cx-finder-comp-phone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.cx-finder-comp-phone__thumb {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cx-bg, #f8fafc);
	border-radius: 12px;
	overflow: hidden;
}

.cx-finder-comp-phone__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cx-finder-comp-phone__score {
	font-size: 10px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--cx-primary, #6366f1) 12%, var(--cx-card, #fff));
	color: var(--cx-primary, #6366f1);
}

.cx-finder-comp-card__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
}

.cx-finder-comp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 11px;
}

.cx-finder-comp-card__score {
	font-weight: 700;
}

.cx-finder-comp-card__price {
	font-weight: 800;
	color: var(--cx-primary, #6366f1);
}

.cx-finder-comp-card__winner {
	display: inline-block;
	margin-top: 6px;
	font-size: 10px;
	font-weight: 700;
	color: #b45309;
}

.cx-finder-comp-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0 14px 14px;
	padding: 10px;
	border-radius: var(--cx-radius-md, 10px);
	background: var(--cx-primary, #6366f1);
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	transition: transform 0.15s;
}

.cx-finder-comp-card__btn:hover {
	transform: translateY(-1px);
	color: #fff;
}

.cx-search-card--placeholder .cx-search-card__media {
	opacity: 0.85;
}

@media (max-width: 320px) {
	.cx-finder-brand-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.cx-finder-brand-card {
		padding: 10px 6px;
	}

	.cx-finder-comp-grid {
		grid-template-columns: 1fr;
	}
}
