/* =====================================================================
   Category page (templates/category.jinja) — "storefront"
   Loaded on this page only; every rule is scoped by .cg-page.
   Phones: the design's values. 768px and up: like the home page, the whole page is the phone design
   scaled by one ratio per band (zoom 1.15 from 768, 1.3 from 1200, content at most 1240px wide), so
   fonts, icons, buttons, radii and gaps grow together; the values the design changes on wider screens
   (cover height, title size, columns) are written before the zoom. Header, footer, dock and theme rail
   are outside. The filter window and the sort menu are not zoomed (real pixels).
   ===================================================================== */
.cg-page {
	--cg-ink: #121826;
	--cg-muted: #667085;
	--cg-line: #eceef2;
	--cg-surface: #ffffff;
	--cg-sub: #f5f6f8;
	--cg-accent: var(--primary-color, #3b82f6);
	--cg-soft-1: #f1f6fe;
	--cg-soft-1: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	--cg-soft-2: #e2ecfe;
	--cg-soft-2: color-mix(in srgb, var(--primary-color, #3b82f6) 15%, #fff);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 12px 16px;            /* the page starts 10px under the header's edge: 12px below it */
	color: var(--cg-ink);
	text-align: start;
}
.cg-page *,
.cg-page *::before,
.cg-page *::after {
	box-sizing: border-box;
}

/* ---------- breadcrumb (the theme's component, styled here only) ---------- */
.cg-page .breadcrumb-section {
	margin: 0;
	padding: 0;
	background: none;
}
.cg-page .breadcrumb-section .breadcrumb {
	margin: 0;
	padding: 0;
	background: none;
}
.cg-page .breadcrumb-section .breadcrumb .container {
	display: flex;
	flex-wrap: nowrap !important;       /* legacy !important: the component's .flex-wrap */
	align-items: center;
	gap: 4px;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--cg-muted);
	font-size: 11px;
	line-height: 1.6;
	white-space: nowrap;
}
.cg-page .breadcrumb-section .breadcrumb .container > * {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	color: var(--cg-muted);
	font-size: inherit;
}
.cg-page .breadcrumb-section .breadcrumb .container > a:hover {
	color: var(--cg-accent);
}
.cg-page .breadcrumb-section .breadcrumb .container > .item-category-page {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--cg-ink);
	font-weight: 700;
	text-overflow: ellipsis;
}
.cg-page .breadcrumb-section .breadcrumb .container > .item-category-page > span {
	overflow: hidden;
	text-overflow: ellipsis;
}
.cg-page .breadcrumb-section .bc-home-ic {
	display: none;                      /* the design writes "Home" only */
}
.cg-page .breadcrumb-section .separator {
	display: inline-flex;
	color: #c3c8d1;
}

/* ---------- cover (main category) ---------- */
.cg-cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 150px;                  /* grows only when the description is opened */
	border-radius: 22px;
	overflow: hidden;
	background-color: var(--cg-soft-2);
}
.cg-cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cg-cover.has-img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 24, 38, .05) 20%, rgba(18, 24, 38, .78) 100%);
}
.cg-cover-text {
	position: relative;
	z-index: 1;
	padding: 16px 16px 14px;
	color: var(--cg-ink);
}
.cg-cover.has-img .cg-cover-text {
	color: #ffffff;
}
.cg-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}
.cg-title {
	min-width: 0;
	margin: 0;
	color: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.cg-count {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background-color: var(--cg-soft-1);
	color: var(--cg-accent);
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}
.cg-cover.has-img .cg-count {
	background-color: rgba(255, 255, 255, .22);
	color: #ffffff;
}
.cg-cover.no-img .cg-count {
	background-color: var(--cg-surface);
}
.cg-page.has-filters .cg-count {
	display: none;                      /* with a filter on, the results line gives the number */
}
/* description: two lines, "More" opens it in place */
.cg-desc {
	max-width: 520px;
	margin-top: 6px;
	font-size: 11.5px;
	line-height: 1.7;
}
.cg-desc-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0;
	overflow: hidden;
	opacity: .9;
	overflow-wrap: anywhere;
	white-space: pre-line;
}
.cg-desc.is-open .cg-desc-text {
	display: block;
	-webkit-line-clamp: unset;
}
.cg-desc-more {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}
.cg-desc-more[hidden] {
	display: none;
}
.cg-subhead .cg-desc {
	color: var(--cg-muted);
}
.cg-subhead .cg-desc-more {
	color: var(--cg-accent);
}

/* ---------- subcategory head ---------- */
.cg-subhead .cg-title {
	font-size: 19px;
}
/* a sub category: the way back to the parent in its own row above the cover */
.cg-backrow {
	display: flex;
	min-width: 0;
}
.cg-back {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background-color: var(--cg-surface);
	color: var(--cg-accent);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}
.cg-back > span {
	overflow: hidden;
	text-overflow: ellipsis;
}
.cg-back:hover {
	color: var(--cg-accent);
}

/* ---------- metafields: quiet and compact ---------- */
.cg-meta {
	padding: 10px 12px;
	border-radius: 16px;
	background-color: var(--cg-surface);
	color: var(--cg-muted);
	font-size: 12px;
	line-height: 1.6;
}
.cg-meta:empty,
.cg-meta:not(:has(*:not(:empty))) {
	display: none;
}
.cg-meta * {
	font-size: inherit !important;      /* the platform's metafield markup carries its own sizes */
	margin-block: 0 !important;
}

/* ---------- category chips (subcategories / siblings) ---------- */
.cg-chips {
	display: flex;
	gap: 6px;
	margin-inline: -12px;               /* phones: the row scrolls edge to edge */
	padding-inline: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.cg-chips::-webkit-scrollbar {
	display: none;
}
.cg-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: var(--cg-surface);
	color: var(--cg-ink);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}
.cg-chip.has-pic {
	padding-inline-start: 4px;
}
.cg-chip:hover {
	color: var(--cg-accent);
}
.cg-chip.is-current {
	background-color: var(--cg-accent);
	color: #ffffff;
}
.cg-chip-pic {
	flex: 0 0 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--cg-soft-2);
}
.cg-chip-pic > img {
	width: 100%;
	height: 100%;
	object-fit: cover;                  /* category pictures fill the circle */
}
.cg-chip-pic.is-icon > img {
	width: 22px;
	height: 22px;
	object-fit: contain;                /* the merchant's icon, as uploaded */
}
.cg-chip-name {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* third level: small text chips */
.cg-l3 {
	display: flex;
	gap: 6px;
	margin-inline: -12px;
	padding-inline: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.cg-l3::-webkit-scrollbar {
	display: none;
}
.cg-l3-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 11px;
	border-radius: 999px;
	background-color: var(--cg-surface);
	color: var(--cg-ink);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.cg-l3-chip:hover {
	color: var(--cg-accent);
}
.cg-l3-chip.is-current {
	background-color: var(--cg-soft-2);
	color: var(--cg-accent);
}

/* ---------- toolbar: sticks under the header ---------- */
.cg-anchor {
	height: 0;
	scroll-margin-top: calc(var(--cg-sticky-top, 0px) / var(--cg-z, 1) + 8px);
}
.cg-tools {
	position: sticky;
	top: calc(var(--cg-sticky-top, 0px) / var(--cg-z, 1));
	z-index: 20;
	margin: -6px -12px;
	padding: 6px 12px;
	background-color: var(--store-bg, #fafafa);
}
.cg-tools-row {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.cg-tool {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 14px;
	background-color: var(--cg-surface);
	color: var(--cg-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.cg-tool:hover {
	color: var(--cg-ink);
}
.cg-tool:focus-visible {
	outline: 2px solid var(--cg-accent);
	outline-offset: 2px;
}
.cg-tool > svg.ico {
	flex: 0 0 auto;
	color: var(--cg-accent);
}
.cg-filter-btn {
	padding: 0 12px;
}
.cg-tool-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 99px;
	background-color: var(--cg-accent);
	color: #ffffff;
	font-size: 10px;
}
.cg-tool-badge[hidden] {
	display: none;
}
.cg-sort-btn {
	min-width: 0;
	flex: 0 1 auto;
}
.cg-sort-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cg-sort-btn > svg.cg-caret {
	color: var(--cg-muted);
}
@media (max-width: 767.98px) {
	/* phones with the filter count showing: the sort name takes the caret's place */
	.cg-tools-row.has-badge .cg-caret {
		display: none;
	}
}
.cg-sale {
	gap: 8px;
	padding-inline: 10px;
}
.cg-sale > svg.cg-sale-ic {
	color: #c4302f;
}
.cg-switch {
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 20px;
	padding: 2px;
	border-radius: 99px;
	background-color: #d5dae3;
	transition: background-color .2s;
}
.cg-switch > span {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(18, 24, 38, .2);
	transition: margin .2s;
}
.cg-sale[aria-checked="true"] .cg-switch {
	background-color: var(--cg-accent);
}
.cg-sale[aria-checked="true"] .cg-switch > span {
	margin-inline-start: 14px;
}

/* ---------- products grid: 2 / 3 / 4 / 5 (the home page's counts) ---------- */
.cg-grid {
	overflow-x: clip;                   /* the cards' entrance animation starts 20px sideways (style.css .anime-product) */
}
.cg-grid .row.products-list {
	--cg-cols: 2;
	display: grid;
	grid-template-columns: repeat(var(--cg-cols), minmax(0, 1fr));
	gap: 8px;
	margin: 0 !important;               /* legacy !important: .m-0 / .row margins */
	padding: 0;
}
.cg-grid .row.products-list > .product-item-slide {
	flex: none;
	width: auto;
	max-width: none !important;         /* legacy !important: the bootstrap col widths of loaded cards */
	min-width: 0;
	margin: 0 !important;
	padding: 0;
	border-radius: 20px;
}
.cg-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 40px 16px;
	border-radius: 20px;
	background-color: var(--cg-surface);
	color: var(--cg-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}
.cg-empty p {
	margin: 0;
}
.cg-more {
	display: flex;
	justify-content: center;
	padding-top: 6px;
}
.cg-more:empty {
	display: none;
}
.cg-more .cg-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 160px;
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background-color: var(--cg-accent);
	color: #ffffff;
	font-size: 12.5px;
	font-weight: var(--w-btn);
}
/* page numbers in the same row: no margin of their own (style.css .pagination 30px) */
.cg-more .pagination {
	margin: 0;
}
/* the legacy #load-more-btn margin (style.css, 25px above and below) would stack on the page's own spacing */
.cg-more #load-more-btn.cg-more-btn {
	margin: 0;
}
.cg-more .cg-more-btn.d-none {
	display: none;
}


/* ---------- 768 and up: one scale for the page; chips wrap ---------- */
@media (min-width: 768px) {
	.cg-page {
		--cg-z: 1.15;
		zoom: var(--cg-z);
		padding: calc(16px / var(--cg-z)) calc(20px / var(--cg-z)) 16px;
	}
	.cg-cover {
		min-height: 190px;
	}
	.cg-title {
		font-size: 28px;
	}
	.cg-desc {
		font-size: 13px;
	}
	.cg-subhead .cg-title {
		font-size: 22px;
	}
	.cg-chips,
	.cg-l3 {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}
	.cg-tools {
		margin-inline: calc(-20px / var(--cg-z));
		padding-inline: calc(20px / var(--cg-z));
	}
	.cg-grid .row.products-list {
		--cg-cols: 3;
	}
}
@media (min-width: 1024px) {
	.cg-grid .row.products-list {
		--cg-cols: 4;
	}
}
@media (min-width: 1200px) {
	.cg-page {
		--cg-z: 1.3;
		max-width: calc((1240px + 40px) / 1.3);
		margin-inline: auto;
	}
	.cg-cover {
		min-height: 220px;
	}
	.cg-subhead .cg-title {
		font-size: 24px;
	}
	.cg-grid .row.products-list {
		--cg-cols: 5;
	}
}

/* ---------- after applying: active filters, results line, filtered empty state ---------- */
.cg-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}
.cg-tools-row {
	flex: 0 1 auto;
}
.cg-active {
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.cg-active[hidden] {
	display: none;
}
.cg-active-list {
	display: flex;
	gap: 6px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.cg-active-list::-webkit-scrollbar {
	display: none;
}
.cg-active-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background-color: var(--cg-soft-1);
	color: var(--cg-accent);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.cg-active-chip:hover {
	color: var(--cg-accent);
	background-color: var(--cg-soft-2);
}
.cg-active-clear {
	flex: 0 0 auto;
	color: var(--cg-muted);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.cg-active-clear:hover {
	color: var(--cg-accent);
}
.cg-matching {
	display: none;
	margin: 0;
	color: var(--cg-muted);
	font-size: 11.5px;
}
.cg-page.has-filters .cg-matching {
	display: block;
}
.cg-empty-filtered,
.cg-empty-clear,
.cg-page.has-filters .cg-empty-plain {
	display: none;
}
.cg-page.has-filters .cg-empty-filtered {
	display: block;
}
.cg-page.has-filters .cg-empty-clear {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background-color: var(--cg-accent);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
}
@media (min-width: 1024px) {
	/* desktops: the chips share the toolbar's line when there is room */
	.cg-active {
		flex: 1 1 260px;
		justify-content: flex-end;
	}
	.cg-active-list {
		flex-wrap: wrap;
		justify-content: flex-end;
		overflow: visible;
	}
}

/* =====================================================================
   Filter window and sort menu (outside the zoom: real pixels)
   Phones: bottom sheets (85% of the screen at most, the content scrolls, the buttons stay at the bottom above
   everything, the dock included). 768px and up: a side panel (380 / 420 wide, 12px from the edges) over a dim
   layer, and a small menu under the sort button.
   ===================================================================== */
html.cg-locked {
	overflow: hidden;
}
.cgf,
.cgs {
	--cgf-ink: #121826;
	--cgf-muted: #667085;
	--cgf-line: #eceef2;
	--cgf-sub: #f5f6f8;
	--cgf-accent: var(--primary-color, #3b82f6);
	--cgf-soft: #f1f6fe;
	--cgf-soft: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	position: fixed;
	inset: 0;
	z-index: 1100;                      /* above the header (999) and the dock (1002); toasts stay above */
	color: var(--cgf-ink);
	font-size: 12px;
	text-align: start;
}
.cgf[hidden],
.cgs[hidden],
.cgf [hidden],
.cgs [hidden] {
	display: none !important;           /* [hidden] must win over the display rules below */
}
.cgf *,
.cgs * {
	box-sizing: border-box;
}
.cgf-scrim,
.cgs-scrim {
	position: absolute;
	inset: 0;
	background-color: rgba(18, 24, 38, .45);
	opacity: 0;
	transition: opacity .25s;
}
.is-open > .cgf-scrim,
.is-open > .cgs-scrim {
	opacity: 1;
}
.cgf-panel,
.cgs-panel {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 85vh;
	max-height: 85dvh;
	padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-radius: 26px 26px 0 0;
	background-color: #ffffff;
	box-shadow: 0 -8px 30px rgba(18, 24, 38, .12);
	outline: none;
	transform: translateY(100%);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.is-open > .cgf-panel,
.is-open > .cgs-panel {
	transform: none;
}
.cgf-handle {
	flex: 0 0 auto;
	width: 40px;
	height: 4px;
	margin: 0 auto 12px;
	border-radius: 4px;
	background-color: #d5dae3;
}
.cgf-head,
.cgs-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 0 10px;
}
.cgf-title {
	font-size: 16px;
	font-weight: 800;
}
.cgf-total {
	color: var(--cgf-muted);
	font-size: 11.5px;
}
.cgf-flex {
	flex: 1 1 auto;
}
.cgf-x {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--cgf-sub);
	color: var(--cgf-ink);
	cursor: pointer;
}
.cgf-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.cgf-group {
	padding: 14px 0;
	border-bottom: 1px solid var(--cgf-line);
}
.cgf-group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}
.cgf-group-head > b {
	font-size: 13px;
	font-weight: 800;
	overflow-wrap: anywhere;
}
.cgf-picked {
	flex: 0 0 auto;
	color: var(--cgf-accent);
	font-size: 11px;
	font-weight: 700;
}
.cgf-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cgf-opt {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background-color: var(--cgf-sub);
	color: var(--cgf-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: start;
	overflow-wrap: anywhere;
	cursor: pointer;
}
.cgf-opt[aria-pressed="true"] {
	background-color: var(--cgf-soft);
	color: var(--cgf-accent);
	box-shadow: inset 0 0 0 1.5px var(--cgf-accent);
}
.cgf-opt .cgf-check {
	display: none;
	flex: 0 0 auto;
}
.cgf-opt[aria-pressed="true"] .cgf-check {
	display: inline-block;
}
.cgf-dot {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(18, 24, 38, .15);
}
.cgf-pic {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
}
.cgf-all {
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cgf-accent);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}
.cgf-opt:focus-visible,
.cgf-all:focus-visible,
.cgf-x:focus-visible,
.cgf-switch:focus-visible,
.cgf-clear:focus-visible,
.cgf-apply:focus-visible,
.cgs-opt:focus-visible {
	outline: 2px solid var(--cgf-accent);
	outline-offset: 2px;
}
/* price: two thumbs on one track, tied both ways to the two fields */
.cgf-range {
	position: relative;
	height: 18px;
	margin: 0 9px 14px;
}
.cgf-track {
	position: absolute;
	inset-inline: 0;
	top: 7px;
	height: 4px;
	border-radius: 4px;
	background-color: #e6e9ef;
}
.cgf-fill {
	position: absolute;
	top: 0;
	height: 4px;
	border-radius: 4px;
	background-color: var(--cgf-accent);
	inset-inline-start: 0;
	inset-inline-end: 0;
}
.cgf-r {
	position: absolute;
	inset-inline: -9px;
	top: 0;
	width: calc(100% + 18px);
	height: 18px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.cgf-r::-webkit-slider-runnable-track {
	height: 18px;
	background: transparent;
}
.cgf-r::-moz-range-track {
	background: transparent;
}
.cgf-r::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 0 0 2px var(--cgf-accent), 0 1px 3px rgba(18, 24, 38, .2);
	pointer-events: auto;
	cursor: grab;
	-webkit-appearance: none;
	appearance: none;
}
.cgf-r::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 0 0 2px var(--cgf-accent), 0 1px 3px rgba(18, 24, 38, .2);
	pointer-events: auto;
	cursor: grab;
}
.cgf-r:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px var(--cgf-accent), 0 0 0 6px var(--cgf-soft);
}
.cgf-fields {
	display: flex;
	gap: 6px;
}
.cgf-field {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 10px;
	border-radius: 12px;
	background-color: var(--cgf-sub);
	font-size: 11.5px;
	font-weight: 400;
}
.cgf-field:focus-within {
	box-shadow: inset 0 0 0 1.5px var(--cgf-accent);
}
.cgf-field > span {
	flex: 0 0 auto;
	color: var(--cgf-muted);
}
.cgf-field > input {
	flex: 1 1 auto;
	width: 0;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cgf-ink);
	font: inherit;
	font-weight: 700;
	outline: 0;
	-moz-appearance: textfield;
}
.cgf-field > input::placeholder {
	color: #9aa3b2;
	font-weight: 400;
	opacity: 1;
}
.cgf-field > input::-webkit-outer-spin-button,
.cgf-field > input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
/* discounted only */
.cgf-sale {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0 6px;
}
.cgf-sale-text > b {
	display: block;
	font-size: 13px;
	font-weight: 800;
}
.cgf-sale-text > span {
	color: var(--cgf-muted);
	font-size: 11px;
}
.cgf-switch {
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	height: 20px;
	margin: 0;
	padding: 2px;
	border: 0;
	border-radius: 99px;
	background-color: #d5dae3;
	cursor: pointer;
	transition: background-color .2s;
}
.cgf-switch > span {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 1px 2px rgba(18, 24, 38, .2);
	transition: margin .2s;
}
.cgf-switch[aria-checked="true"] {
	background-color: var(--cgf-accent);
}
.cgf-switch[aria-checked="true"] > span {
	margin-inline-start: 14px;
}
.cgf-foot {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
	padding-top: 12px;
}
.cgf-clear,
.cgf-apply {
	height: 48px;
	margin: 0;
	border: 0;
	border-radius: 16px;
	font: inherit;
	font-weight: var(--w-btn);
	cursor: pointer;
}
.cgf-clear {
	flex: 0 0 auto;
	padding: 0 18px;
	background-color: var(--cgf-sub);
	color: var(--cgf-ink);
	font-size: 13px;
}
.cgf-apply {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 14px;
	background-color: var(--cgf-accent);
	color: #ffffff;
	font-size: 13.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cgf-apply:disabled {
	opacity: .5;
	cursor: default;
}
/* sort list */
.cgs-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
}
.cgs-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 0 12px;
	border-radius: 14px;
	color: var(--cgf-ink);
	font-size: 13px;
	font-weight: 600;
}
.cgs-opt:hover {
	color: var(--cgf-ink);
	background-color: var(--cgf-sub);
}
.cgs-opt[aria-checked="true"] {
	background-color: var(--cgf-soft);
	color: var(--cgf-accent);
	font-weight: 800;
}
.cgs-radio {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: inset 0 0 0 1.5px #cfd5df;
}
.cgs-opt[aria-checked="true"] .cgs-radio {
	box-shadow: inset 0 0 0 6px var(--cgf-accent);   /* a filled ring with a white centre */
}
@media (min-width: 768px) {
	.cgf-handle {
		display: none;
	}
	.cgf-panel {
		top: 12px;
		bottom: 12px;
		inset-inline-start: auto;
		inset-inline-end: 12px;
		width: 380px;
		max-height: none;
		padding: 18px 20px;
		border-radius: 26px;
		box-shadow: 0 16px 48px rgba(18, 24, 38, .18);
		opacity: 0;
		transform: translateX(calc(var(--cgf-dir, 1) * 24px));
		transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s;
	}
	html[dir="rtl"] .cgf-panel {
		--cgf-dir: -1;
	}
	.is-open > .cgf-panel {
		opacity: 1;
	}
	/* the sort menu: no dim layer, a small card under the button (placed by the script) */
	.cgs {
		pointer-events: none;
	}
	.cgs-scrim,
	.cgs-head {
		display: none;
	}
	.cgs-panel {
		position: fixed;
		inset: auto;
		width: 220px;
		max-height: none;
		padding: 6px;
		border-radius: 18px;
		box-shadow: 0 12px 32px rgba(18, 24, 38, .14), 0 0 0 1px #eceef2;
		opacity: 0;
		transform: translateY(-4px);
		transition: transform .18s, opacity .18s;
		pointer-events: auto;
	}
	.cgs-panel > .cgf-handle {
		display: none;
	}
	.is-open > .cgs-panel {
		opacity: 1;
		transform: none;
	}
	.cgs-opt {
		min-height: 42px;
	}
}
@media (min-width: 1200px) {
	.cgf-panel {
		width: 420px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cgf-panel,
	.cgs-panel,
	.cgf-scrim,
	.cgs-scrim {
		transition: opacity .15s;
		transform: none !important;
	}
}
