/* CompareThem Core — components for product, category and home blocks.
   Colours and fonts come from the theme's tokens; the values here are fallbacks. */

:where(:root) {
	--ct-ink: #101828;
	--ct-text: #344054;
	--ct-muted: #475467;
	--ct-faint: #667085;
	--ct-line: #D9DEE5;
	--ct-line-soft: #E4E7EC;
	--ct-row: #EEF0F3;
	--ct-bg: #F4F5F7;
	--ct-white: #FFFFFF;
	--ct-photo: #EEF1F5;
	--ct-blue: #1D4ED8;
	--ct-blue-dark: #1E3A8A;
	--ct-blue-soft: #EAF0FF;
	--ct-blue-line: #C7D7FE;
	--ct-blue-row: #F3F7FF;
	--ct-amber: #F59E0B;
	--ct-green-bg: #ECFDF3;
	--ct-green: #05603A;
	--ct-red-bg: #FEF3F2;
	--ct-red: #912018;
	--ct-control: #C5CCD6;
	--ct-radius: 14px;
	--ct-font-head: "Bricolage Grotesque", system-ui, sans-serif;
	--ct-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ct-block { margin-block: 0; }
.ct-muted { color: var(--ct-muted); }
.ct-icon { flex: none; }

/* Logo ------------------------------------------------------------ */
.ct-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ct-ink);
	text-decoration: none;
	font-family: var(--ct-font-head);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.02em;
	line-height: 1;
}
.ct-logo:hover { color: var(--ct-ink); }
.ct-logo__mark { flex: none; }
.ct-logo__them { color: var(--ct-blue); }
.ct-logo--dark, .ct-logo--dark:hover { color: #fff; }
.ct-logo--dark .ct-logo__them { color: #8AA9FF; }

/* Buttons, chips, pills ------------------------------------------- */
.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ct-btn:focus-visible { outline: 3px solid var(--ct-amber); outline-offset: 2px; }
.ct-btn--primary { background: var(--ct-blue); color: #fff; }
.ct-btn--primary:hover { background: var(--ct-blue-dark); color: #fff; }
.ct-btn--ghost { background: var(--ct-white); border-color: var(--ct-control); color: var(--ct-ink); }
.ct-btn--ghost:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-btn--outline { background: var(--ct-white); border-color: var(--ct-blue); color: var(--ct-blue); }
.ct-btn--outline:hover { background: var(--ct-blue-soft); color: var(--ct-blue-dark); }
.ct-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ct-btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 10px; }

.ct-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ct-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #F2F4F7;
	color: var(--ct-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.ct-chip--blue { background: var(--ct-blue-soft); color: var(--ct-blue-dark); }
.ct-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ct-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	vertical-align: 1px;
}
.ct-pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--ct-line);
	background: var(--ct-white);
	color: var(--ct-ink);
	font-size: 14px;
	text-decoration: none;
}
.ct-pill:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-pill.is-on { background: var(--ct-ink); border-color: var(--ct-ink); color: #fff; font-weight: 600; }
.ct-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.ct-shortcuts__label { align-self: center; font-weight: 600; font-size: 15px; }
.ct-shortcuts--hero { margin: 18px 0 0; gap: 8px; }
.ct-shortcuts--hero .ct-pill { min-height: 34px; padding: 0 12px; }
.ct-shortcuts--hero .ct-shortcuts__label { color: var(--ct-muted); font-weight: 400; font-size: 14px; }

/* Cards and headings ----------------------------------------------- */
.ct-card {
	background: var(--ct-white);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius);
	padding: 20px 22px;
	min-width: 0;
}
.ct-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 600; font-family: inherit; letter-spacing: 0; }
.ct-card__sub { margin: -6px 0 12px; font-size: 14px; color: var(--ct-muted); }
.ct-h2 {
	margin: 0;
	font-family: var(--ct-font-head);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.ct-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.ct-section-head a { font-weight: 600; }
.ct-more-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }

/* Breadcrumbs ----------------------------------------------------- */
.ct-crumbs { font-size: 14px; color: var(--ct-muted); margin: 0 0 16px; }
.ct-crumbs a { color: var(--ct-muted); text-decoration: none; }
.ct-crumbs a:hover { text-decoration: underline; }
.ct-crumbs a:hover { color: var(--ct-ink); }
.ct-crumbs__sep { margin: 0 6px; }

/* Product header -------------------------------------------------- */
.ct-phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 24px; }
.ct-phead__main { flex: 1 1 560px; min-width: 0; }
.ct-phead__main .ct-chips { margin-bottom: 10px; }
.ct-phead__title {
	margin: 0;
	font-family: var(--ct-font-head);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ct-phead__lead { margin: 10px 0 0; color: var(--ct-muted); font-size: 17px; max-width: 760px; }
.ct-score { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: 12px; }
.ct-score__num { font-family: var(--ct-font-mono); font-weight: 600; font-size: 30px; }
.ct-score__text { display: flex; flex-direction: column; font-size: 13px; color: var(--ct-muted); }
.ct-score__text strong { font-size: 16px; color: var(--ct-ink); }

/* Overview: photos, key specs, alternatives ------------------------ */
.ct-overview { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ct-overview > .ct-gallery { flex: 1 1 340px; padding: 16px; }
.ct-overview > .ct-keyspecs { flex: 1.2 1 380px; }
.ct-overview > .ct-alts { flex: 0.8 1 260px; }

.ct-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	width: 100%;
	background: var(--ct-photo);
	border-radius: 10px;
	overflow: hidden;
	color: #98A2B3;
}
.ct-photo__img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ct-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ct-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; background: var(--ct-photo); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.ct-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-gallery__thumb.is-active { border-color: var(--ct-ink); }

.ct-spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-spec-table th { text-align: left; font-weight: 500; color: var(--ct-muted); padding: 9px 12px 9px 0; border-bottom: 1px solid var(--ct-row); width: 42%; vertical-align: top; }
.ct-spec-table td { padding: 9px 0; border-bottom: 1px solid var(--ct-row); }
.ct-spec-table tr:last-child th, .ct-spec-table tr:last-child td { border-bottom: 0; }

.ct-alts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ct-alts__item { display: block; padding: 12px; border: 1px solid var(--ct-line-soft); border-radius: 10px; color: var(--ct-ink); text-decoration: none; }
.ct-alts__item:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-alts__name { display: block; font-weight: 600; }
.ct-alts__note { display: block; font-size: 14px; color: var(--ct-muted); }
.ct-alts__price { display: block; margin-top: 4px; font-family: var(--ct-font-mono); font-weight: 600; font-size: 14px; color: var(--ct-blue); }

/* Price table ------------------------------------------------------ */
.ct-prices { padding: 0; margin-top: 32px; }
.ct-prices__head { padding: 20px 22px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.ct-prices__sub { margin: 0; font-size: 14px; color: var(--ct-muted); }
.ct-prices__wrap { padding: 0 10px 10px; }
.ct-prices__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-prices__table thead th { text-align: left; color: var(--ct-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; font-weight: 600; }
.ct-prices__table tbody tr { border-top: 1px solid var(--ct-line-soft); }
.ct-prices__table td { padding: 14px 12px; vertical-align: middle; }
.ct-prices__table tr.is-lowest { background: var(--ct-blue-row); }
.ct-prices__table tr.is-out td, .ct-prices__table tr.is-stale td { color: var(--ct-muted); }
.ct-prices__store { font-weight: 600; }
.ct-prices__when { color: var(--ct-muted); font-size: 14px; }
.ct-prices__go { text-align: right; }
.ct-prices__mrp { display: block; font-size: 13px; color: var(--ct-faint); text-decoration: line-through; }
.ct-prices__note { margin: 0; padding: 12px 22px 18px; border-top: 1px solid var(--ct-line-soft); font-size: 13px; color: var(--ct-muted); }
.ct-prices__empty { margin: 0; padding: 4px 22px 22px; color: var(--ct-muted); }
.ct-price { font-family: var(--ct-font-mono); font-weight: 600; font-size: 17px; white-space: nowrap; }
.ct-price--big { font-size: 20px; }

@media (max-width: 640px) {
	.ct-prices__table thead { display: none; }
	.ct-prices__table, .ct-prices__table tbody { display: block; }
	.ct-prices__table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "store go" "price go" "when go";
		gap: 2px 12px;
		padding: 12px;
	}
	.ct-prices__table td { padding: 0; }
	.ct-prices__store { grid-area: store; }
	.ct-prices__price { grid-area: price; }
	.ct-prices__when { grid-area: when; font-size: 13px; }
	.ct-prices__go { grid-area: go; align-self: center; }
	.ct-prices__wrap { padding: 0 6px 6px; }
	.ct-prices__go .ct-btn { white-space: normal; max-width: 150px; min-height: 44px; padding: 6px 12px; }
	.ct-prices__when:empty { display: none; }
}

/* History, verdict, specs ----------------------------------------- */
.ct-history { margin-top: 24px; }
.ct-history p { margin: 8px 0 0; color: var(--ct-muted); }
.ct-verdict { margin-top: 40px; padding: 24px; }
.ct-verdict .ct-h2 { margin-bottom: 10px; }
.ct-verdict__text { font-size: 17px; color: var(--ct-ink); }
.ct-verdict__text p { margin: 0 0 12px; }
.ct-verdict__lists { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.ct-verdict__buy, .ct-verdict__skip { flex: 1 1 240px; min-width: 0; padding: 16px; border-radius: 10px; }
.ct-verdict__buy { background: var(--ct-green-bg); }
.ct-verdict__skip { background: var(--ct-red-bg); }
.ct-verdict__label { margin: 0 0 8px; font-weight: 600; }
.ct-verdict__buy .ct-verdict__label { color: var(--ct-green); }
.ct-verdict__skip .ct-verdict__label { color: var(--ct-red); }
.ct-verdict ul { margin: 0; padding-left: 20px; }
.ct-verdict li + li { margin-top: 4px; }
.ct-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ct-line-soft); }
.ct-author__photo { border-radius: 999px; flex: none; }
.ct-author p { margin: 0; font-size: 14px; color: var(--ct-muted); display: flex; flex-direction: column; }
.ct-author strong { color: var(--ct-ink); }
.ct-allspecs { margin-top: 24px; }
.ct-allspecs .ct-h2 { margin-bottom: 12px; }
@media (min-width: 900px) {
	.ct-spec-table--two tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.ct-spec-table--two tr { display: grid; grid-template-columns: 42% 1fr; border-bottom: 1px solid var(--ct-row); }
	.ct-spec-table--two th, .ct-spec-table--two td { border-bottom: 0; width: auto; }
}

/* Tiles and more-in-category -------------------------------------- */
.ct-more { margin-top: 40px; }
.ct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ct-tile {
	display: flex;
	flex-direction: column;
	background: var(--ct-white);
	border: 1px solid var(--ct-line);
	border-radius: 12px;
	overflow: hidden;
	color: var(--ct-ink);
	text-decoration: none;
}
.ct-tile:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-tile__photo .ct-photo { border-radius: 0; }
.ct-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.ct-tile__title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.ct-tile__specs { font-size: 14px; color: var(--ct-muted); }
.ct-tile .ct-from { margin-top: auto; padding-top: 8px; }

.ct-from { margin: 0; display: flex; flex-direction: column; }
.ct-from__label { font-size: 13px; color: var(--ct-muted); }
.ct-from__none { font-weight: 600; color: var(--ct-muted); }

/* Category finder -------------------------------------------------- */
.ct-cathead { margin-bottom: 20px; }
.ct-cathead__title { margin: 0 0 8px; font-family: var(--ct-font-head); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.ct-cathead__lead { margin: 0; color: var(--ct-muted); font-size: 17px; max-width: 760px; }
.ct-finder { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.ct-finder.no-filters { grid-template-columns: minmax(0, 1fr); }
.ct-filters { padding: 18px 20px; }
.ct-filters__toggle > summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.ct-filters__toggle > summary::-webkit-details-marker { display: none; }
.ct-filters__toggle > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ct-ink); border-bottom: 2px solid var(--ct-ink); transform: rotate(45deg); margin: -4px 4px 0 0; }
.ct-filters__toggle[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ct-filters form { margin-top: 12px; }
.ct-filter { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.ct-filter legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.ct-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; }
.ct-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ct-blue); flex: none; }
.ct-filters__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.ct-results__count { margin: 0; font-weight: 600; }
.ct-sort { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ct-sort select { min-height: 40px; padding: 0 10px; border: 1px solid var(--ct-control); border-radius: 8px; font: inherit; background: var(--ct-white); color: var(--ct-ink); }
.ct-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; padding: 16px; background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); }
.ct-row__photo { flex: 0 0 120px; display: block; }
.ct-row__photo .ct-photo { aspect-ratio: 4 / 3; }
.ct-row__photo .ct-icon { width: 36px; height: 36px; }
.ct-row__main { flex: 1 1 280px; min-width: 0; }
.ct-row__title { font-weight: 600; font-size: 18px; color: var(--ct-ink); text-decoration: none; line-height: 1.35; }
.ct-row__title:hover { color: var(--ct-blue); text-decoration: underline; }
.ct-row__specs { margin: 2px 0 8px; color: var(--ct-muted); font-size: 14px; }
.ct-row__price { flex: 0 1 170px; }
.ct-row__go { flex: 0 1 auto; }
.ct-results__note { margin: 16px 0 0; font-size: 13px; color: var(--ct-muted); }
.ct-empty { padding: 32px 24px; background: var(--ct-white); border: 1px dashed var(--ct-control); border-radius: var(--ct-radius); text-align: center; }
.ct-empty p { margin: 0 0 12px; color: var(--ct-muted); }
.ct-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ct-pages__n { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--ct-control); background: var(--ct-white); color: var(--ct-ink); text-decoration: none; font-weight: 600; }
.ct-pages__n.is-current { background: var(--ct-ink); border-color: var(--ct-ink); color: #fff; }

@media (max-width: 760px) {
	.ct-finder { grid-template-columns: minmax(0, 1fr); }
	.ct-row { gap: 12px 14px; }
	.ct-row__photo { flex-basis: 88px; }
	.ct-row__main { flex-basis: calc(100% - 110px); }
	.ct-row__price { flex: 1 1 auto; }
}

/* Home ------------------------------------------------------------- */
.ct-catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ct-catcard { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--ct-white); border: 1px solid var(--ct-line); border-radius: 12px; color: var(--ct-ink); text-decoration: none; }
.ct-catcard:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-catcard .ct-icon { color: var(--ct-blue); stroke-width: 1.6; }
.ct-catcard__name { display: block; font-weight: 600; font-size: 18px; }
.ct-catcard__line { display: block; color: var(--ct-muted); font-size: 15px; }
.ct-catcard__count { display: block; margin-top: 6px; color: var(--ct-faint); font-size: 13px; }

.ct-hero-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 580px; }
.ct-hero-search input[type="search"] {
	flex: 1 1 300px;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #98A2B3;
	border-radius: 10px;
	font: inherit;
	font-size: 16px;
	background: var(--ct-white);
	color: var(--ct-ink);
}
.ct-hero-search input[type="search"]:focus { outline: 3px solid var(--ct-blue-line); border-color: var(--ct-blue); }

.ct-mini { padding: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
.ct-mini__head { padding: 18px 20px; border-bottom: 1px solid var(--ct-line-soft); }
.ct-mini__head p { margin: 0; font-size: 13px; }
.ct-mini__title { display: block; margin-top: 2px; font-weight: 600; color: var(--ct-ink); text-decoration: none; }
.ct-mini__title:hover { text-decoration: underline; }
.ct-mini__rows { padding: 4px 20px; }
.ct-mini__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 16px; padding: 10px 0; border-bottom: 1px solid var(--ct-row); }
.ct-mini__row:last-child { border-bottom: 0; }
.ct-mini__store { font-weight: 500; }
.ct-mini__foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--ct-line-soft); font-size: 13px; color: var(--ct-muted); }

/* Footer bits ------------------------------------------------------- */
.ct-footnav__title { margin: 0 0 8px; font-weight: 600; }
.ct-footnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ct-footnav a { color: var(--ct-text); text-decoration: none; }
.ct-footnav a:hover { color: var(--ct-blue); text-decoration: underline; }
.ct-disclosure { margin: 0; font-size: 13px; color: var(--ct-muted); }

/* Site Editor placeholder ------------------------------------------- */
.ct-placeholder { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px dashed var(--ct-control); border-radius: 10px; background: #FAFBFC; color: var(--ct-muted); font-size: 14px; }
.ct-placeholder strong { color: var(--ct-ink); font-size: 15px; }
