/*
 * Catalog / shop archive (phase 5). Loaded on the shop, product category / tag / attribute archives and
 * product search only. home.css is the dependency (tokens, FAQ, shared button language).
 *
 * <main> carries .pt-home, so --u is "1 design px" (mobile: --m, 1px at 390; desktop: --d, 1px at 1440 and
 * capped). Boxes are flexible (grids, aspect-ratio) so the --t* type floors never overflow a fixed box.
 * Figma: desktop 2046:39 (1440), mobile 2046:715 (390).
 */

.pt-catalog {
	--ct-ink: #0b0d12;
	--ct-brand: var(--color-text-brand);
	--ct-tile: #f1f6ff;
	--ct-line: #f0f6ff;
	--ct-ph: #757575;
	--ct-mask-search: url("../images/catalog/icon-search.svg");
	--ct-mask-sort: url("../images/catalog/icon-sort.svg");
}

.pt-catalog :where(a) {
	text-decoration: none;
}

.pt-catalog :focus-visible {
	outline: 2px solid var(--color-action);
	outline-offset: 2px;
}

/* ---- Rhythm (mobile 390 / desktop 1440 from the Figma frames) ------------------------------ */
.ct-head { margin-top: calc(16 * var(--u)); }
.ct-best { margin-top: calc(48 * var(--u)); }
.ct-interest { margin-top: calc(48 * var(--u)); }
.ct-results { margin-top: calc(24 * var(--u)); }
.ct-notices { margin-top: calc(16 * var(--u)); }
.ct-rev { margin-top: calc(48 * var(--u)); }

/* FAQ -> footer. Catalog-specific: the Home rule (.pt-home:not(.pt-product) + .site-footer) also matches this
   <main>, so it is overridden here on purpose. Desktop value is the one measured in the Catalog frame
   (FAQ bottom 6010 -> footer 6268). */
.pt-catalog.pt-home:not(.pt-product) + .site-footer {
	margin-top: calc(48 * var(--m)); /* mobile: Figma FAQ bottom -> footer */
}

@media (min-width: 768px) {
	.pt-catalog.pt-home:not(.pt-product) + .site-footer {
		margin-top: calc(258 * var(--d)); /* Figma Catalog frame: FAQ bottom 6010 -> footer 6268 */
	}
}

/* =====================================================================
 * Header
 * =================================================================== */
.ct-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: calc(16 * var(--u));
}

.ct-head__sub {
	margin-top: calc(8 * var(--u));
	color: rgba(24, 24, 24, 0.8);
	font-size: var(--t14);
	line-height: 1.4;
	letter-spacing: var(--ls-tight);
	overflow-wrap: anywhere;
}

.ct-empty.ct-empty--search {
	align-items: flex-start;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.ct-head__title {
	color: #141519;
	font-size: var(--t36);
	font-weight: var(--fw-medium);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
	overflow-wrap: anywhere;
}

.ct-search {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--ms));
	height: calc(44 * var(--ms));
	margin-top: calc(8 * var(--u)); /* title -> search 24 */
	padding-inline: calc(17 * var(--ms));
	border: 1px solid var(--color-border-soft);
	border-radius: var(--radius-pill);
	background: transparent;
}

.ct-search__icon,
.ct-sort__icon {
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--ct-mask-search) center / contain no-repeat;
	mask: var(--ct-mask-search) center / contain no-repeat;
}

.ct-search__icon {
	width: calc(14 * var(--ms));
	height: calc(14 * var(--ms));
	color: #181818;
}

.ct-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #181818;
	font: inherit;
	font-size: var(--t14);
	letter-spacing: var(--ls-tight);
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

.ct-search__input::placeholder {
	color: rgba(24, 24, 24, 0.8);
	opacity: 1;
}

.ct-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.ct-search:focus-within {
	border-color: var(--color-action);
}

/* Category pills: one row, touch swipe, no visible scrollbar, no library. */
.ct-pills {
	margin-inline: calc(var(--pad) * -1);
	min-width: 0;
}

.ct-pills__list {
	display: flex;
	gap: calc(8 * var(--ms));
	padding-inline: var(--pad);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ct-pills__list::-webkit-scrollbar {
	display: none;
}

.ct-pills__item {
	flex: none;
	list-style: none;
}

.ct-pill {
	display: flex;
	align-items: center;
	height: calc(36 * var(--ms));
	padding-inline: calc(18 * var(--ms));
	border: 1px solid var(--color-border-soft);
	border-radius: var(--radius-pill);
	background: var(--color-surface-1);
	color: rgba(19, 38, 107, 0.76);
	font-size: var(--t14);
	line-height: 1;
	letter-spacing: var(--ls-tight);
	white-space: nowrap;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.ct-pill:hover {
	border-color: var(--color-border-strong);
	color: var(--ct-brand);
}

.ct-pill.is-active {
	border-color: var(--color-action);
	background: var(--color-action);
	color: var(--color-surface-1);
}

/* Count + sort row. */
.ct-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(16 * var(--u));
	min-width: 0;
}

.ct-bar__count {
	color: rgba(24, 24, 24, 0.8);
	font-size: var(--t14);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ct-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: calc(8 * var(--ms));
	margin-left: auto;
	flex: none;
	color: rgba(24, 24, 24, 0.8);
}

.ct-sort__icon {
	width: calc(16 * var(--ms));
	height: calc(16 * var(--ms));
	-webkit-mask-image: var(--ct-mask-sort);
	mask-image: var(--ct-mask-sort);
}

.ct-sort__text {
	font-size: var(--t14);
	line-height: 1.3;
	white-space: nowrap;
}

.ct-sort__arrow {
	display: none;
}

/* Native <select> stretched over the label: accessible, keyboard and touch friendly, no custom listbox. */
.ct-sort__select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 16px;
}

.ct-sort:focus-within {
	outline: 2px solid var(--color-action);
	outline-offset: 4px;
	border-radius: 4px;
}

.ct-sort__apply {
	margin-left: 8px;
}

/* =====================================================================
 * Sections, headings
 * =================================================================== */
.ct-sec__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: calc(16 * var(--u));
}

.ct-sec__title {
	color: var(--ct-ink);
	font-size: var(--t36);
	font-weight: var(--fw-medium);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
}

.ct-sec__note {
	display: none; /* desktop only */
}

/* =====================================================================
 * Grids
 * =================================================================== */
.ct-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(12 * var(--u));
	list-style: none;
}

.ct-best .ct-grid,
.ct-group .ct-grid {
	margin-top: calc(24 * var(--u));
}

.ct-grid--best > .ct-card-wrap:nth-child(n + 3),
.ct-grid--interest > .ct-card-wrap:nth-child(n + 3) {
	display: none; /* mobile shows two */
}

.ct-card-wrap {
	display: flex;
	min-width: 0;
	list-style: none;
}

/* ---- Interest groups -------------------------------------------------- */
.ct-interest .ct-sec__head + .ct-group {
	margin-top: calc(30 * var(--u));
}

.ct-group + .ct-group {
	margin-top: calc(34 * var(--u));
}

.ct-group__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: calc(16 * var(--u));
}

.ct-group__title {
	min-width: 0;
	color: var(--ct-brand);
	font-size: var(--t16);
	font-weight: var(--fw-regular);
	line-height: 1.21;
	letter-spacing: 0.1em;
}

.ct-group__all {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: calc(8 * var(--ms));
	color: var(--ct-brand);
	font-size: var(--t14);
	line-height: 1.4;
	letter-spacing: var(--ls-tight);
	white-space: nowrap;
}

.ct-group__all:hover {
	color: var(--color-action);
}

.ct-group .ct-grid {
	margin-top: calc(16 * var(--u));
}

.ct-arrow {
	display: inline-block;
	font-family: var(--font-sans);
	line-height: 1;
}

/* ---- Show all products ------------------------------------------------ */
.ct-showall {
	display: flex;
	justify-content: center;
	margin-top: calc(26 * var(--u));
}

.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: calc(8 * var(--ms));
	min-height: calc(44 * var(--ms));
	padding: 0 calc(23 * var(--ms));
	border: 1px solid var(--color-action);
	border-radius: var(--radius-pill);
	background: var(--color-action);
	color: var(--color-on-action);
	font-size: var(--t16);
	line-height: 1.21;
	white-space: nowrap;
	transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.ct-btn:hover {
	border-color: var(--color-action-hover);
	background: var(--color-action-hover);
	color: var(--color-on-action);
}

/* =====================================================================
 * Card (mobile: white card, name on top; desktop: bare tile, name under the image)
 * =================================================================== */
.pt-catalog .ct-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title title"
		"media media"
		"cat cat"
		"price dose";
	grid-template-rows: auto auto auto 1fr;
	width: 100%;
	padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(16 * var(--u));
	overflow: hidden;
	border-radius: calc(8 * var(--u));
	background: var(--color-bg);
	box-shadow: 0 calc(2.24 * var(--u)) calc(66.2 * var(--u)) rgba(206, 225, 255, 0.5);
	color: var(--ct-brand);
	transition: box-shadow var(--transition);
}

.ct-card__row {
	display: contents;
}

.ct-card__title {
	grid-area: title;
	margin-bottom: calc(8 * var(--u));
	color: #181818;
	font-size: var(--t16);
	font-weight: var(--fw-medium);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
	overflow-wrap: anywhere;
}

.ct-card__link {
	color: inherit;
}

.ct-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ct-card__link:focus-visible {
	outline: 0;
}

.ct-card__link:focus-visible::after {
	outline: 2px solid var(--color-action);
	outline-offset: -2px;
}

.ct-card__media {
	position: relative;
	grid-area: media;
	aspect-ratio: 153 / 123;
	overflow: hidden;
	border-radius: calc(4 * var(--u));
	background: var(--ct-tile);
}

/* Product photos vary: contain + centre, never cropped, no per-product offsets. */
.pt-catalog .ct-card__media .ct-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: contain;
	object-position: center;
	mix-blend-mode: multiply;
}

.ct-card__cat {
	grid-area: cat;
	margin-top: calc(8 * var(--u));
	color: rgba(19, 38, 107, 0.76);
	font-size: var(--t10);
	line-height: 1.4;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.ct-card__price {
	grid-area: price;
	align-self: end;
	margin-top: calc(8 * var(--u));
	color: var(--ct-brand);
	font-size: var(--t12);
	font-weight: var(--fw-medium);
	line-height: 1.25;
	letter-spacing: var(--ls-tight);
}

.ct-card__price del {
	opacity: 0.5;
}

.ct-card__price ins {
	text-decoration: none;
}

.ct-card__dose {
	grid-area: dose;
	align-self: end;
	margin: calc(8 * var(--u)) 0 0 calc(8 * var(--u));
	color: var(--ct-brand);
	font-size: var(--t10);
	letter-spacing: var(--ls-tight);
	text-transform: uppercase;
	white-space: nowrap;
}

/* =====================================================================
 * Pagination, empty state, notices
 * =================================================================== */
.ct-pagination {
	margin-top: calc(40 * var(--u));
}

.ct-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: calc(8 * var(--ms));
	list-style: none;
}

.ct-pagination li {
	list-style: none;
}

.ct-pagination a.page-numbers,
.ct-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: max(40px, calc(44 * var(--ms)));
	height: max(40px, calc(44 * var(--ms)));
	padding-inline: calc(12 * var(--ms));
	border: 1px solid var(--color-border-soft);
	border-radius: var(--radius-pill);
	background: var(--color-surface-1);
	color: var(--ct-brand);
	font-size: var(--t14);
	line-height: 1;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.ct-pagination a.page-numbers:hover {
	border-color: var(--color-border-strong);
	background: var(--color-surface-3);
}

.ct-pagination span.current {
	border-color: var(--color-action);
	background: var(--color-action);
	color: var(--color-on-action);
}

.ct-pagination span.dots {
	border-color: transparent;
	background: transparent;
}

.ct-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(16 * var(--u));
	padding: calc(56 * var(--u)) calc(20 * var(--u));
	border: 1px solid var(--color-border-soft);
	border-radius: calc(16 * var(--u));
	text-align: center;
}

.ct-empty__title {
	color: var(--ct-ink);
	font-size: var(--t24);
	font-weight: var(--fw-medium);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
}

.ct-empty__text {
	max-width: 36em;
	color: rgba(24, 24, 24, 0.8);
	font-size: var(--t14);
	line-height: 1.4;
}

/* =====================================================================
 * Reviews (same visual as the Product page Reviews; placeholder content)
 * =================================================================== */
.ct-rev__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(16 * var(--u));
}

.ct-rev__title {
	color: #000;
	font-size: var(--t36);
	font-weight: var(--fw-medium);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
}

.ct-rev__short {
	color: var(--ct-brand);
	font-size: var(--t14);
	line-height: 1.4;
	letter-spacing: var(--ls-tight);
	text-align: right;
}

.ct-rating,
.ct-rev__hint {
	display: none; /* desktop only */
}

.ct-rev__row {
	display: flex;
	flex-direction: column;
	gap: calc(24 * var(--u));
	margin-top: calc(24 * var(--u));
	list-style: none;
}

.ct-review {
	min-height: calc(230 * var(--u));
	padding: calc(24 * var(--u)) calc(22 * var(--u)) calc(16 * var(--u));
	border: 1px solid var(--color-border-soft);
	border-radius: calc(16 * var(--u));
	background: var(--color-bg);
}

.ct-review--extra {
	display: none;
}

.ct-rev.is-expanded .ct-review--extra {
	display: block;
}

.ct-review__name {
	color: #000;
	font-size: var(--t20);
	font-weight: var(--fw-regular);
	line-height: 1.3;
	letter-spacing: var(--ls-tight);
}

.ct-review__stars {
	display: block;
	width: calc(120 * var(--u));
	height: auto;
	margin-top: calc(8 * var(--u));
}

.ct-review__text {
	margin-top: calc(52 * var(--u));
	color: rgba(24, 24, 24, 0.8);
	font-size: var(--t14);
	line-height: 1.4;
	letter-spacing: var(--ls-tight);
}

.ct-rev__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(8 * var(--ms));
	min-height: calc(44 * var(--ms));
	margin: calc(24 * var(--u)) auto 0;
	padding: 0 calc(25 * var(--ms));
	border: 1px solid #c9d5f4;
	border-radius: var(--radius-pill);
	background: var(--color-bg);
	color: #1b3bc5;
	font-family: inherit;
	font-size: var(--t16);
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color var(--transition);
}

.ct-rev__more:hover {
	background: var(--color-surface-3);
}

.ct-rev.is-expanded .ct-rev__more,
.no-js .ct-rev__more {
	display: none;
}

.no-js .ct-review--extra {
	display: block;
}

/* =====================================================================
 * Desktop (768+)
 * =================================================================== */
@media (min-width: 768px) {
	.ct-head { margin-top: calc(17 * var(--d)); }
	.ct-best { margin-top: calc(79 * var(--d)); }
	.ct-interest { margin-top: calc(120 * var(--d)); }
	.ct-results { margin-top: calc(56 * var(--d)); }
	.ct-notices { margin-top: calc(24 * var(--d)); }
	.ct-rev { margin-top: calc(112 * var(--d)); }

	.ct-head {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"title title"
			"pills sort"
			"count count";
		column-gap: calc(32 * var(--d));
		row-gap: calc(41 * var(--d));
		align-items: end;
	}

	.ct-head__text {
		grid-area: title;
		min-width: 0;
	}

	.ct-head__sub {
		margin-top: calc(12 * var(--d));
		color: rgba(19, 38, 107, 0.6);
		font-size: var(--t20);
		line-height: 1.3;
	}

	.pt-catalog--search .ct-head {
		grid-template-areas:
			"title title"
			"count sort";
		row-gap: calc(32 * var(--d));
	}

	.pt-catalog--search .ct-bar__count {
		margin-top: 0;
		align-self: center;
	}

	.pt-catalog--search .ct-head__text {
		padding-right: calc(492 * var(--d)); /* never under the search field */
	}

	.ct-empty.ct-empty--search {
		padding: 0;
		margin-top: calc(-8 * var(--d));
	}

	.ct-head__title {
		font-size: var(--t72);
		font-weight: var(--fw-regular);
		line-height: 1.1;
		color: var(--ct-ink);
	}

	.ct-search {
		grid-area: title; /* shares the title cell, pinned to the right: keeps the pills row as wide as in Figma */
		justify-self: end;
		width: min(100%, calc(460 * var(--d)));
		min-width: calc(260 * var(--d));
		height: auto;
		margin-top: 0;
		gap: calc(14 * var(--d));
		padding: 0 calc(4 * var(--d)) calc(16 * var(--d));
		border-width: 0 0 1px;
		border-radius: 0;
	}

	.ct-search__icon {
		width: max(15px, calc(19 * var(--d)));
		height: max(15px, calc(19 * var(--d)));
		color: #8a93a6;
	}

	.ct-search__input {
		height: auto;
		font-size: var(--t16);
		line-height: 1.21;
		color: var(--ct-ink);
	}

	.ct-search__input::placeholder {
		color: var(--ct-ph);
	}

	.ct-pills {
		grid-area: pills;
		margin-inline: 0;
	}

	.ct-pills__list {
		gap: calc(4 * var(--d));
		padding-inline: 0;
	}

	.ct-pill {
		height: calc(45 * var(--d));
		min-height: 34px;
		padding-inline: calc(22 * var(--d));
		border-color: #e4e8f0;
		background: transparent;
		color: var(--ct-ink);
		font-size: var(--t16);
	}

	.ct-pill:hover {
		border-color: var(--color-border-strong);
		color: var(--ct-ink);
	}

	.ct-pill.is-active {
		border-color: var(--color-action);
		background: var(--color-action);
		color: #fff;
	}

	.ct-bar {
		display: contents;
	}

	.pt-catalog--overview .ct-head {
		grid-template-areas:
			"title title"
			"pills sort";
	}

	.pt-catalog--overview .ct-bar__count {
		display: none; /* the overview shows the count next to "Shop by Interest" (Figma) */
	}

	.ct-bar__count {
		grid-area: count;
		margin-top: calc(-17 * var(--d));
		color: rgba(19, 38, 107, 0.5);
		font-size: var(--t16);
		white-space: nowrap;
	}

	.ct-sort {
		grid-area: sort;
		align-self: center;
		gap: calc(22 * var(--d));
		color: #8a93a6;
	}

	.ct-sort__icon {
		width: max(14px, calc(17 * var(--d)));
		height: max(14px, calc(17 * var(--d)));
		color: var(--ct-ink);
	}

	.ct-sort__text {
		font-size: var(--t16);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
	}

	.ct-sort__arrow {
		display: inline-block;
		margin-left: calc(-12 * var(--d));
		font-family: var(--font-sans);
		font-size: var(--t16);
		line-height: 1;
	}

	.ct-sec__title {
		font-size: var(--t48);
	}

	.ct-sec__note {
		display: block;
		color: rgba(19, 38, 107, 0.5);
		font-size: var(--t16);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
		text-align: right;
	}

	.ct-best .ct-grid,
	.ct-group .ct-grid {
		margin-top: calc(44 * var(--d));
	}

	.ct-grid--best,
	.ct-grid--all {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: calc(36 * var(--d));
		row-gap: calc(48 * var(--d));
	}

	.ct-grid--interest {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: calc(48 * var(--d));
	}

	.ct-grid--best > .ct-card-wrap:nth-child(n + 3),
	.ct-grid--interest > .ct-card-wrap:nth-child(n + 3) {
		display: flex;
	}

	/* Interest groups */
	.ct-interest .ct-sec__head + .ct-group {
		margin-top: calc(40 * var(--d));
	}

	.ct-group + .ct-group {
		margin-top: calc(92 * var(--d));
	}

	.ct-group__title {
		font-size: var(--t24);
		font-weight: var(--fw-medium);
		letter-spacing: var(--ls-tight);
		text-transform: uppercase;
	}

	.ct-group__all {
		gap: calc(6 * var(--d));
		color: var(--color-action);
		font-size: var(--t16);
		line-height: 1.21;
	}

	.ct-group__all:hover {
		color: var(--ct-brand);
	}

	.ct-group .ct-grid {
		margin-top: calc(27 * var(--d));
	}

	.ct-showall {
		margin-top: calc(80 * var(--d));
	}

	.ct-btn {
		gap: calc(10 * var(--d));
		min-height: calc(62 * var(--d));
		padding: 0 calc(34 * var(--d));
		border-color: #c3d2f5;
		background: transparent;
		color: var(--color-action);
		font-size: var(--t20);
		line-height: 1.3;
	}

	.ct-btn:hover {
		border-color: var(--color-border-strong);
		background: var(--color-surface-3);
		color: var(--color-action);
	}

	/* Card: bare tile, image first. */
	.pt-catalog .ct-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"cat"
			"row"
			"dose";
		grid-template-rows: auto auto 1fr auto;
		padding: 0;
		overflow: visible;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: var(--ct-ink);
	}

	.ct-card__row {
		display: flex;
		grid-area: row;
		align-items: baseline;
		justify-content: space-between;
		align-self: start;
		gap: calc(16 * var(--d));
		margin-top: calc(10 * var(--d));
	}

	.ct-card--best .ct-card__row,
	.ct-card--grid .ct-card__row {
		padding-bottom: calc(14 * var(--d));
		border-bottom: 1px solid var(--ct-line);
	}

	.ct-card--interest .ct-card__row {
		margin-top: calc(8 * var(--d));
		padding-top: calc(18 * var(--d));
	}

	.ct-card__title {
		grid-area: auto;
		min-width: 0;
		margin: 0;
		font-size: var(--t20);
		font-weight: var(--fw-regular);
		line-height: 1.3;
		color: var(--ct-ink);
	}

	.ct-card__media {
		aspect-ratio: 308 / 340;
		border-radius: calc(16 * var(--d));
	}

	.ct-card--interest .ct-card__media {
		aspect-ratio: 418.67 / 380;
	}

	.ct-card__link::after {
		border-radius: calc(16 * var(--d));
	}

	.ct-card__link:hover {
		color: var(--ct-brand);
	}

	.ct-card__cat {
		margin-top: calc(26 * var(--d));
		color: rgba(19, 38, 107, 0.5);
		font-size: var(--t14);
		line-height: 1.21;
	}

	.ct-card__price {
		grid-area: auto;
		flex: none;
		margin: 0;
		color: #181818;
		font-size: var(--t16);
		font-weight: var(--fw-regular);
		line-height: 1.3;
		text-align: right;
	}

	.ct-card--interest .ct-card__price {
		font-size: var(--t20);
	}

	.ct-card__dose {
		align-self: start;
		margin: calc(8 * var(--d)) 0 0;
		color: rgba(19, 38, 107, 0.5);
		font-size: var(--t16);
		line-height: 1.21;
		text-transform: none;
		white-space: normal;
	}

	/* The grid and Best Sellers show the dose only through the interest card. */
	.ct-card--best .ct-card__dose,
	.ct-card--grid .ct-card__dose {
		display: none;
	}

	.ct-pagination {
		margin-top: calc(72 * var(--d));
	}

	.ct-pagination a.page-numbers,
	.ct-pagination span.page-numbers {
		font-size: var(--t16);
	}

	.ct-empty {
		padding-block: calc(96 * var(--d));
	}

	.ct-empty__title {
		font-size: var(--t48);
	}

	.ct-empty__text {
		font-size: var(--t20);
	}

	/* Reviews: summary left, cards bleed to the viewport edge (same geometry as the Product page). */
	.ct-rev {
		--ct-bleed: calc(var(--pad) + max(0px, (100vw - 1440 * var(--d)) / 2));
		display: grid;
		grid-template-columns: calc(389 * var(--d)) minmax(0, 1fr);
		align-items: start;
	}

	.ct-rev__head {
		display: block;
		grid-column: 1;
	}

	.ct-rev__title {
		font-size: var(--t48);
	}

	.ct-rev__short,
	.ct-rev__more {
		display: none;
	}

	.ct-rating {
		display: flex;
		align-items: center;
		width: calc(299 * var(--d));
		height: calc(82 * var(--d));
		margin-top: calc(29 * var(--d));
		padding-left: calc(24 * var(--d));
		border-radius: calc(16 * var(--d));
		background: var(--color-surface-3);
		color: var(--ct-brand);
	}

	.ct-rating__score {
		font-size: var(--t60);
		font-weight: var(--fw-medium);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
	}

	.ct-rating__sep {
		align-self: stretch;
		width: 1px;
		margin: calc(1 * var(--d)) calc(28 * var(--d));
		background: var(--color-muted);
	}

	.ct-rating__count {
		width: calc(106 * var(--d));
		font-size: var(--t20);
		line-height: 1.3;
		letter-spacing: var(--ls-tight);
		opacity: var(--opacity-tertiary);
	}

	.ct-rev__hint {
		display: block;
		max-width: calc(306 * var(--d));
		margin-top: calc(20 * var(--d));
		color: #181818;
		font-size: var(--t16);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
		opacity: var(--opacity-tertiary);
	}

	.ct-rev__row {
		grid-column: 2;
		flex-direction: row;
		gap: calc(32 * var(--d));
		margin-top: 0;
		margin-right: calc(var(--ct-bleed) * -1);
		padding-right: var(--ct-bleed);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.ct-rev__row::-webkit-scrollbar {
		display: none;
	}

	.ct-review,
	.ct-review--extra {
		display: grid;
		flex: none;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		width: calc(573 * var(--d));
		min-height: calc(238 * var(--d));
		padding: calc(23 * var(--d)) calc(46 * var(--d)) calc(23 * var(--d)) calc(36 * var(--d));
	}

	.ct-review__name {
		grid-column: 1;
		grid-row: 1;
		font-size: var(--t24);
		font-weight: var(--fw-medium);
		line-height: 1.21;
	}

	.ct-review__stars {
		grid-column: 2;
		grid-row: 1;
		width: calc(160 * var(--d));
		margin: 0;
	}

	.ct-review__text {
		grid-column: 1 / -1;
		max-width: calc(432 * var(--d));
		margin-top: calc(54 * var(--d));
		color: #181818;
		font-size: var(--t20);
		line-height: 1.3;
		opacity: var(--opacity-tertiary);
	}
}

@media (min-width: 768px) and (hover: hover) {
	.ct-card:hover .ct-card__media {
		box-shadow: var(--shadow-soft);
	}
}

@media (hover: hover) and (max-width: 767.98px) {
	.pt-catalog .ct-card:hover {
		box-shadow: 0 calc(2.24 * var(--u)) calc(66.2 * var(--u)) rgba(155, 191, 255, 0.5);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-pill,
	.ct-btn,
	.ct-card,
	.ct-rev__more,
	.ct-pagination a.page-numbers {
		transition: none !important;
	}

	.ct-rev__row,
	.ct-pills__list {
		scroll-behavior: auto;
	}
}
