/* Radbone Product Filter */
#rcpf {
	--rc-navy: #303390;
	--rc-navy-dark: #24266f;
	--rc-red: #ED2128;
	--rc-ink: #1f2340;
	--rc-text: #4B5563;
	--rc-muted: #8a90a6;
	--rc-line: #e3e6f2;
	--rc-soft: #F0F6FF;
	--rc-bg: #F7FAFF;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	font-family: "Maven Pro", sans-serif;
	color: var(--rc-text);
	text-align: left;
}
#rcpf *, #rcpf *::before, #rcpf *::after { box-sizing: border-box; }
#rcpf [hidden] { display: none !important; }
#rcpf ul { list-style: none; margin: 0; padding: 0; }
#rcpf .rcpf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#rcpf button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }

/* ---------- Sidebar ---------- */
#rcpf .rcpf-side {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--rc-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(48, 51, 144, .06);
}
#rcpf .rcpf-side__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--rc-navy);
	color: #fff;
}
#rcpf .rcpf-side__title { font-size: 17px; font-weight: 600; }
#rcpf .rcpf-close { display: none; }
#rcpf .rcpf-side__scroll { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
#rcpf .rcpf-block { padding: 14px 20px 16px; border-bottom: 1px solid var(--rc-line); }
#rcpf .rcpf-block:last-child { border-bottom: 0; }
#rcpf .rcpf-block__head {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; padding: 4px 0 10px; margin: 0;
	background: none; border: 0; border-radius: 0; cursor: pointer;
	color: var(--rc-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
#rcpf .rcpf-block__head::after {
	content: ""; width: 8px; height: 8px; margin-right: 4px;
	border-right: 2px solid var(--rc-navy); border-bottom: 2px solid var(--rc-navy);
	transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
#rcpf .rcpf-block__head[aria-expanded="false"]::after { transform: rotate(-45deg); }
#rcpf .rcpf-block__head:hover, #rcpf .rcpf-block__head:focus { background: none; color: var(--rc-navy); }

/* Search */
#rcpf .rcpf-search { position: relative; }
#rcpf .rcpf-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: var(--rc-muted); pointer-events: none; }
#rcpf .rcpf-search input[type="search"] {
	width: 100%; height: 44px; margin: 0; padding: 0 12px 0 38px;
	border: 1px solid var(--rc-line); border-radius: 10px; background: var(--rc-bg);
	color: var(--rc-ink); font: 500 14px/1 "Maven Pro", sans-serif; box-shadow: none; outline: none;
	transition: border-color .15s, background .15s;
}
#rcpf .rcpf-search input[type="search"]:focus { border-color: var(--rc-navy); background: #fff; }

/* Checkbox rows */
#rcpf .rcpf-row { display: flex; align-items: center; gap: 8px; min-height: 34px; }
#rcpf .rcpf-row.is-empty { opacity: .42; }
#rcpf .rcpf-check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--rc-ink); }
#rcpf .rcpf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
#rcpf .rcpf-check__box {
	flex: none; width: 18px; height: 18px; border: 1.6px solid #b9bed6; border-radius: 5px; background: #fff;
	display: grid; place-items: center; transition: background .15s, border-color .15s;
}
#rcpf .rcpf-check__box::after {
	content: ""; width: 5px; height: 9px; margin-top: -2px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) scale(0); transition: transform .15s;
}
#rcpf .rcpf-check input:checked + .rcpf-check__box { background: var(--rc-navy); border-color: var(--rc-navy); }
#rcpf .rcpf-check input:checked + .rcpf-check__box::after { transform: rotate(45deg) scale(1); }
#rcpf .rcpf-check input:focus-visible + .rcpf-check__box { outline: 2px solid var(--rc-red); outline-offset: 2px; }
#rcpf .rcpf-check:hover .rcpf-check__box { border-color: var(--rc-navy); }
#rcpf .rcpf-check input:checked ~ .rcpf-check__label { color: var(--rc-navy); font-weight: 600; }
#rcpf .rcpf-check__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rcpf .rcpf-count {
	flex: none; min-width: 28px; padding: 3px 7px; border-radius: 20px; background: var(--rc-soft);
	color: var(--rc-navy); font-size: 12px; font-weight: 600; text-align: center;
}
#rcpf .rcpf-toggle {
	flex: none; width: 26px; height: 26px; padding: 0; margin: 0; border: 0; border-radius: 6px;
	background: transparent; cursor: pointer; display: grid; place-items: center;
}
#rcpf .rcpf-toggle::before {
	content: ""; width: 7px; height: 7px; border-right: 2px solid var(--rc-muted); border-bottom: 2px solid var(--rc-muted);
	transform: rotate(-45deg); transition: transform .2s;
}
#rcpf .rcpf-toggle[aria-expanded="true"]::before { transform: rotate(45deg); border-color: var(--rc-navy); }
#rcpf .rcpf-toggle:hover, #rcpf .rcpf-toggle:focus { background: var(--rc-soft); }
#rcpf .rcpf-tree--sub { margin: 2px 0 4px 8px; padding-left: 12px; border-left: 2px solid var(--rc-line); }
#rcpf .rcpf-tree--sub .rcpf-check { font-size: 14px; font-weight: 400; }

/* Mobile footer (hidden on desktop) */
#rcpf .rcpf-side__foot { display: none; }

/* ---------- Main column ---------- */
#rcpf .rcpf-main { position: relative; min-width: 0; }
#rcpf .rcpf-toolbar {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 12px 16px; margin-bottom: 14px;
	background: var(--rc-bg); border: 1px solid var(--rc-line); border-radius: 12px;
}
#rcpf .rcpf-result { margin: 0; flex: 1; font-size: 14.5px; color: var(--rc-text); }
#rcpf .rcpf-result strong { color: var(--rc-ink); font-weight: 700; }
#rcpf .rcpf-sort { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; font-size: 14px; color: var(--rc-text); }
#rcpf .rcpf-sort select {
	height: 38px; margin: 0; padding: 0 34px 0 12px; border: 1px solid var(--rc-line); border-radius: 9px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23303390' d='M6 8 0 1.4 1.4 0 6 4.8 10.6 0 12 1.4z'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
	-webkit-appearance: none; appearance: none; color: var(--rc-ink); font: 600 14px "Maven Pro", sans-serif; cursor: pointer;
}
#rcpf .rcpf-open { display: none; }

/* Chips */
#rcpf .rcpf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#rcpf .rcpf-chips:empty { display: none; }
#rcpf .rcpf-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; margin: 0;
	border: 1px solid #cfd3ef; border-radius: 30px; background: var(--rc-soft);
	color: var(--rc-navy); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
#rcpf .rcpf-chip span { font-size: 17px; line-height: 1; margin-top: -1px; }
#rcpf .rcpf-chip:hover, #rcpf .rcpf-chip:focus { background: var(--rc-navy); border-color: var(--rc-navy); color: #fff; }
#rcpf .rcpf-chip--clear { background: transparent; border-color: transparent; color: var(--rc-red); text-decoration: underline; padding: 0 6px; }
#rcpf .rcpf-chip--clear:hover, #rcpf .rcpf-chip--clear:focus { background: transparent; border-color: transparent; color: var(--rc-red); }

/* Loading bar */
#rcpf .rcpf-progress { position: absolute; left: 0; right: 0; top: -6px; height: 3px; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity .2s; }
#rcpf .rcpf-progress::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--rc-red); animation: rcpf-bar 1s ease-in-out infinite; }
#rcpf.is-loading .rcpf-progress { opacity: 1; }
#rcpf.is-loading .rcpf-grid { opacity: .45; pointer-events: none; }
@keyframes rcpf-bar { from { left: -35%; } to { left: 100%; } }

/* ---------- Product grid ---------- */
#rcpf .rcpf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; transition: opacity .2s; }
#rcpf .rcpf-card {
	display: flex; flex-direction: column; margin: 0;
	background: #fff; border: 1px solid var(--rc-line); border-radius: 14px; overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
#rcpf .rcpf-card:hover { border-color: var(--rc-navy); box-shadow: 0 10px 28px rgba(48, 51, 144, .12); transform: translateY(-2px); }
#rcpf .rcpf-card__media { display: block; aspect-ratio: 1 / 1; padding: 18px; background: #fff; }
#rcpf .rcpf-card__img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; margin: 0; }
#rcpf .rcpf-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 4px 16px 16px; text-align: center; }
#rcpf .rcpf-card__brand { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rc-muted); }
#rcpf .rcpf-card__title { margin: 0 0 6px; font: 500 15px/1.35 "Maven Pro", sans-serif; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#rcpf .rcpf-card__title a { color: var(--rc-navy); text-decoration: none; }
#rcpf .rcpf-card__title a:hover { color: var(--rc-red); }
#rcpf .rcpf-card__btn {
	display: block; margin-top: auto; padding: 11px 12px; border-radius: 10px;
	background: var(--rc-navy); color: #fff; font-size: 14.5px; font-weight: 600; text-align: center; text-decoration: none;
	transition: background .15s;
}
#rcpf .rcpf-card__btn:hover, #rcpf .rcpf-card__btn:focus { background: var(--rc-red); color: #fff; }

/* Empty state */
#rcpf .rcpf-empty { padding: 48px 24px; text-align: center; border: 1px dashed #cfd3ef; border-radius: 14px; background: var(--rc-bg); }
#rcpf .rcpf-empty p { margin: 0 0 6px; }
#rcpf .rcpf-empty__title { font-size: 19px; font-weight: 700; color: var(--rc-ink); }
#rcpf .rcpf-reset { margin: 0; padding: 0; border: 0; background: none; color: var(--rc-red); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
#rcpf .rcpf-reset:hover, #rcpf .rcpf-reset:focus { background: none; color: var(--rc-navy); }
#rcpf .rcpf-reset--solid { margin-top: 14px; padding: 11px 20px; border-radius: 10px; background: var(--rc-navy); color: #fff; text-decoration: none; }
#rcpf .rcpf-reset--solid:hover, #rcpf .rcpf-reset--solid:focus { background: var(--rc-red); color: #fff; }

/* Load more */
#rcpf .rcpf-more { display: flex; justify-content: center; margin-top: 28px; }
#rcpf .rcpf-more__btn {
	display: inline-block; padding: 13px 34px; border: 2px solid var(--rc-navy); border-radius: 12px;
	color: var(--rc-navy); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s;
}
#rcpf .rcpf-more__btn:hover, #rcpf .rcpf-more__btn:focus { background: var(--rc-navy); color: #fff; }
#rcpf .rcpf-more__btn.is-busy { opacity: .6; pointer-events: none; }

/* Preview wrapper */
.rcpf-preview { max-width: 1320px; margin: 0 auto; padding: 32px 20px 64px; }
.rcpf-preview__title { margin: 0 0 20px; color: #303390; font: 600 34px/1.2 "Maven Pro", sans-serif; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	#rcpf { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
	#rcpf .rcpf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile: filters become a slide-in panel ---------- */
@media (max-width: 860px) {
	#rcpf { display: block; }
	#rcpf .rcpf-side {
		position: fixed; z-index: 100000; top: 0; bottom: 0; left: 0;
		width: min(88vw, 380px); border-radius: 0; border: 0;
		display: flex; flex-direction: column;
		transform: translateX(-105%); transition: transform .28s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	}
	#rcpf.is-open .rcpf-side { transform: translateX(0); }
	#rcpf .rcpf-side__scroll { flex: 1; max-height: none; }
	#rcpf .rcpf-close {
		display: grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: 0;
		border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer;
	}
	#rcpf .rcpf-side__foot {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 14px 20px; border-top: 1px solid var(--rc-line); background: #fff;
	}
	#rcpf .rcpf-apply {
		flex: 1; height: 46px; margin: 0; border: 0; border-radius: 10px;
		background: var(--rc-navy); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
	}
	#rcpf .rcpf-apply:hover, #rcpf .rcpf-apply:focus { background: var(--rc-red); color: #fff; }
	#rcpf .rcpf-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(16, 18, 52, .5); }
	#rcpf .rcpf-open {
		display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin: 0;
		border: 0; border-radius: 10px; background: var(--rc-navy); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
	}
	#rcpf .rcpf-open svg { width: 18px; height: 18px; fill: #fff; }
	#rcpf .rcpf-open:hover, #rcpf .rcpf-open:focus { background: var(--rc-red); color: #fff; }
	#rcpf .rcpf-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rc-red); font-size: 12px; line-height: 20px; text-align: center; }
	#rcpf .rcpf-toolbar { gap: 10px; padding: 10px 12px; }
	#rcpf .rcpf-result { order: 3; flex-basis: 100%; font-size: 13.5px; }
	#rcpf .rcpf-sort { margin-left: auto; }
	#rcpf .rcpf-sort span { display: none; }
	#rcpf .rcpf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	#rcpf .rcpf-card__media { padding: 10px; }
	#rcpf .rcpf-card__body { padding: 2px 10px 12px; }
	#rcpf .rcpf-card__title { font-size: 13.5px; }
	#rcpf .rcpf-card__btn { padding: 9px 8px; font-size: 13.5px; }
	body.rcpf-lock { overflow: hidden; }
}
@media (max-width: 340px) {
	#rcpf .rcpf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	#rcpf *, #rcpf *::before, #rcpf *::after { transition: none !important; animation: none !important; }
}

/* Results count and sort bar removed on request (2026-11-11).
   Desktop: whole bar hidden. Phone: only the "Filters" button stays. */
#rcpf .rcpf-toolbar { display: none; }
@media (max-width: 860px) {
	#rcpf .rcpf-toolbar { display: flex; padding: 0; background: none; border: 0; }
	#rcpf .rcpf-result, #rcpf .rcpf-sort { display: none; }
}
/* Product counts beside categories and brands hidden on request (2026-11-11).
   They are still calculated, so options with no matching products keep greying out. */
#rcpf .rcpf-count { display: none; }
#rcpf .rcpf-row { padding-right: 2px; }
/* Panel sizing fix (2026-11-11): the panel is exactly as tall as its contents,
   capped at the window height; only the list area scrolls, so no empty space can appear. */
@media (min-width: 861px) {
	#rcpf .rcpf-side {
		align-self: start;
		height: auto;
		min-height: 0;
		max-height: calc(100vh - 48px);
		display: flex;
		flex-direction: column;
	}
	#rcpf .rcpf-side__head { flex: none; }
	#rcpf .rcpf-side__scroll { flex: 0 1 auto; min-height: 0; max-height: none; height: auto; }
}
@media (max-width: 860px) {
	#rcpf .rcpf-side__head, #rcpf .rcpf-side__foot { flex: none; }
	#rcpf .rcpf-side__scroll { flex: 1 1 auto; min-height: 0; }
}
/* Panel box fix v2 (2026-11-11): the outer panel is invisible; the white box, border and shadow
   are drawn on the header + list themselves, so the box always ends where the list ends,
   even if something on the page stretches the outer panel. */
@media (min-width: 861px) {
	#rcpf .rcpf-side {
		align-self: start !important;
		height: auto !important;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}
	#rcpf .rcpf-side__head { border-radius: 14px 14px 0 0; }
	#rcpf .rcpf-side__scroll {
		background: #fff;
		border: 1px solid var(--rc-line);
		border-top: 0;
		border-radius: 0 0 14px 14px;
		box-shadow: 0 6px 24px rgba(48, 51, 144, .06);
	}
}
/* Scroll bar fix (2026-11-11): the filter keeps its own scroll bar on desktop. Its height is set live
   by rcpf.js so the bottom of the list always stays on screen and the last brand can be reached.
   Scrolling past the end of the list carries on scrolling the page. */
@media (min-width: 861px) {
	#rcpf .rcpf-side { position: sticky; top: 24px; max-height: none; }
	#rcpf .rcpf-side__scroll { overflow-y: auto; overscroll-behavior: auto; scrollbar-gutter: stable; }
}
/* Floating filter button (2026-11-12): on phones and tablets the "Filters" button above the products
   is replaced by a round icon that floats in the bottom-right corner. The red dot shows how many
   filters are active. Desktop keeps the sidebar and never shows this button. */
@media (max-width: 860px) {
	#rcpf .rcpf-toolbar { display: block; height: 0; margin: 0; padding: 0; border: 0; overflow: visible; }
	#rcpf .rcpf-open {
		position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 99990;
		display: grid; place-items: center; width: 56px; height: 56px; padding: 0; margin: 0;
		border: 0; border-radius: 50%; background: var(--rc-navy); color: #fff;
		box-shadow: 0 6px 18px rgba(16, 18, 52, .35); cursor: pointer;
		transition: background .15s, transform .15s, opacity .2s;
	}
	#rcpf .rcpf-open:hover, #rcpf .rcpf-open:focus { background: var(--rc-red); color: #fff; }
	#rcpf .rcpf-open:active { transform: scale(.94); }
	#rcpf .rcpf-open svg { width: 24px; height: 24px; fill: #fff; }
	/* the word "Filters" stays for screen readers only */
	#rcpf .rcpf-open > span:not(.rcpf-badge) {
		position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
		clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	#rcpf .rcpf-open .rcpf-badge {
		position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px;
		border: 2px solid #fff; border-radius: 11px; line-height: 18px; font-size: 12px; font-weight: 700;
	}
	#rcpf.is-open .rcpf-open { opacity: 0; pointer-events: none; }
	/* room at the bottom so the button never covers the last row of products */
	#rcpf .rcpf-main { padding-bottom: 72px; }
	/* "Show N products" button removed on request (2026-11-12); the panel closes with the × or by tapping outside it. */
	#rcpf .rcpf-apply { display: none; }
	#rcpf .rcpf-side__foot { justify-content: center; }
}