/* ==========================================================================
   FP Shop UI
   Everything is prefixed fpsu- and scoped under .fpsu-shop (except the
   product <li>, which WooCommerce prints inside ul.products — that is
   scoped by .fpsu-card). Brand values live in the token block below.
   ========================================================================== */

.fpsu-shop {
	--fpsu-navy: #0a1f44;
	--fpsu-ink: #0b1426;
	--fpsu-red: #c1121f;
	--fpsu-red-dark: #9c0e18;
	--fpsu-muted: #6b7788;
	--fpsu-line: #e4e8ee;
	--fpsu-soft: #f6f8fb;
	--fpsu-radius: 14px;
	--fpsu-cols: 4;
	--fpsu-pad: 50px;

	box-sizing: border-box;
	width: 100%;
	padding: var(--fpsu-pad);
	color: var(--fpsu-ink);
}

@media (max-width: 1024px) { .fpsu-shop { --fpsu-pad: 40px; } }
@media (max-width: 767px)  { .fpsu-shop { --fpsu-pad: 10px; } }

.fpsu-shop *,
.fpsu-shop *::before,
.fpsu-shop *::after { box-sizing: border-box; }

/* ---------- category bar ---------- */

.fpsu-cats { margin: 0 0 18px; }

.fpsu-cats-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 16px;
	background: #fff;
	border: 1px solid var(--fpsu-line);
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	color: var(--fpsu-navy);
	cursor: pointer;
}

.fpsu-cats-toggle svg { transition: transform .25s ease; }
.fpsu-cats-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.fpsu-cats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fpsu-cats-list li { margin: 0; padding: 0; list-style: none; }

.fpsu-cats-list { gap: 10px; }

/* Each pill reads its colours from five tokens:
   --p   : accent (text, dot, active fill)
   --pb  : light background
   --pbh : background on hover
   --pbd : border
   --ps  : soft glow used on hover / active                       */
.fpsu-pill {
	--p: var(--fpsu-navy);
	--pb: #eef1f6;
	--pbh: #e2e7ef;
	--pbd: #dde3ec;
	--ps: rgba(10, 31, 68, .22);

	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 10px 15px;
	border: 1px solid var(--pbd);
	border-radius: 999px;
	background: var(--pb);
	color: var(--p);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fpsu-pill--all { padding-right: 16px; }

/* palette — cycles 1..8, assigned in category order */
.fpsu-pill--c1 { --p: #1d4ed8; --pb: #eef4ff; --pbh: #e0eaff; --pbd: #d4e2ff; --ps: rgba(29, 78, 216, .28); }  /* blue    */
.fpsu-pill--c2 { --p: #c1121f; --pb: #fff0f1; --pbh: #ffe2e5; --pbd: #ffd6da; --ps: rgba(193, 18, 31, .26); }  /* red     */
.fpsu-pill--c3 { --p: #15803d; --pb: #ecfaf1; --pbh: #dcf5e6; --pbd: #cdeedb; --ps: rgba(21, 128, 61, .26); }  /* green   */
.fpsu-pill--c4 { --p: #b45309; --pb: #fff6e8; --pbh: #ffecd0; --pbd: #fde3bd; --ps: rgba(180, 83, 9, .26); }   /* amber   */
.fpsu-pill--c5 { --p: #6d28d9; --pb: #f4efff; --pbh: #e9e0ff; --pbd: #e0d4ff; --ps: rgba(109, 40, 217, .26); } /* violet  */
.fpsu-pill--c6 { --p: #0f766e; --pb: #e9f8f7; --pbh: #d6f1ee; --pbd: #c8ebe7; --ps: rgba(15, 118, 110, .26); } /* teal    */
.fpsu-pill--c7 { --p: #be185d; --pb: #fdeef6; --pbh: #fbdcec; --pbd: #f8d0e4; --ps: rgba(190, 24, 93, .26); }  /* pink    */
.fpsu-pill--c8 { --p: #0369a1; --pb: #eaf6fd; --pbh: #d7eefb; --pbd: #c9e7f8; --ps: rgba(3, 105, 161, .26); }  /* sky     */

.fpsu-pill:hover {
	background: var(--pbh);
	border-color: var(--pbd);
	color: var(--p);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -10px var(--ps);
}

.fpsu-pill:focus { outline: none; }
.fpsu-pill:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

.fpsu-pill-dot {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--p);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}

.fpsu-pill-icon { flex: 0 0 auto; opacity: .9; }

.fpsu-pill-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 7px;
	border-radius: 999px;
	background: #fff;
	color: var(--p);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: inset 0 0 0 1px var(--pbd);
	font-variant-numeric: tabular-nums;
}

/* active: solid fill in the pill's own colour */
.fpsu-pill.is-active,
.fpsu-pill.is-active:hover {
	background: var(--p);
	border-color: var(--p);
	color: #fff;
	transform: none;
	box-shadow: 0 10px 22px -10px var(--ps);
}

.fpsu-pill.is-active .fpsu-pill-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.fpsu-pill.is-active .fpsu-pill-count { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }

/* ---------- toolbar ---------- */

.fpsu-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid var(--fpsu-line);
	border-bottom: 1px solid var(--fpsu-line);
	margin-bottom: 26px;
}

.fpsu-tool { display: flex; align-items: center; gap: 12px; }
.fpsu-tool--right { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

.fpsu-tool-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--fpsu-muted);
	white-space: nowrap;
}

.fpsu-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fpsu-ink);
	white-space: nowrap;
}

/* column switcher — the bars are drawn with <i> elements, no icon font */
.fpsu-views { display: flex; gap: 6px; }

.fpsu-view {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 26px;
	padding: 4px 5px;
	background: none;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	opacity: .35;
	transition: opacity .2s ease, border-color .2s ease;
}

.fpsu-view i {
	display: block;
	width: 4px;
	height: 17px;
	background: var(--fpsu-ink);
	border-radius: 1px;
}

.fpsu-view[data-cols="5"] i { width: 3px; }
.fpsu-view:hover { opacity: .7; }
.fpsu-view.is-active { opacity: 1; border-color: var(--fpsu-line); }

.fpsu-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--fpsu-line);
	border-radius: 999px;
	background: #fff;
	color: var(--fpsu-muted);
	min-width: 210px;
}

.fpsu-search input[type="search"] {
	border: 0;
	outline: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	color: var(--fpsu-ink);
	width: 100%;
	padding: 0;
	box-shadow: none;
}

.fpsu-sort { display: flex; align-items: center; gap: 8px; margin: 0; }

.fpsu-sort select {
	border: 1px solid var(--fpsu-line);
	border-radius: 8px;
	background: #fff;
	padding: 9px 30px 9px 12px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--fpsu-ink);
	cursor: pointer;
	max-width: 190px;
}

.fpsu-filter-btn,
.fpsu-mini-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--fpsu-line);
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fpsu-navy);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fpsu-filter-btn:hover { border-color: var(--fpsu-navy); }
.fpsu-filter-btn.is-active { background: var(--fpsu-navy); border-color: var(--fpsu-navy); color: #fff; }

/* ---------- filter panel ---------- */

.fpsu-filters {
	margin: -8px 0 28px;
	background: #fff;
	border: 1px solid var(--fpsu-line);
	border-radius: var(--fpsu-radius);
	box-shadow: 0 18px 40px -18px rgba(10, 31, 68, .22);
	position: relative;
	overflow: hidden;
}

/* thin brand stripe along the top edge */
.fpsu-filters::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--fpsu-navy), var(--fpsu-red));
}

.fpsu-filters[hidden] { display: none; }
.fpsu-filters:not([hidden]) { animation: fpsu-drop .28s ease; }

@keyframes fpsu-drop {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.fpsu-filters-inner {
	display: grid;
	grid-template-columns: minmax(280px, 1.7fr) minmax(200px, 1fr) auto;
	align-items: stretch;
	gap: 0;
	padding: 0;
}

.fpsu-field {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 30px;
	min-width: 0;
}

.fpsu-field + .fpsu-field { border-left: 1px solid var(--fpsu-line); }

.fpsu-field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.fpsu-field-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fpsu-muted);
}

.fpsu-range-summary {
	font-size: 14px;
	font-weight: 700;
	color: var(--fpsu-navy);
	white-space: nowrap;
}

/* --- dual-thumb range slider --- */

.fpsu-range {
	position: relative;
	cursor: pointer;
	touch-action: none;
	height: 28px;
	margin: 4px 11px 0;   /* half a thumb, so thumbs never overhang the panel */
}

.fpsu-range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 6px;
	margin-top: -3px;
	border-radius: 999px;
	background: #e7ebf1;
}

.fpsu-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--fpsu-navy), var(--fpsu-red));
}

.fpsu-shop input[type="range"].fpsu-range-input {
	position: absolute;
	top: 0;
	left: -11px;
	width: calc(100% + 22px);
	height: 28px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	outline: none;
	box-shadow: none;
	pointer-events: none;       /* only the thumbs are grabbable */
	-webkit-appearance: none;
	appearance: none;
}

.fpsu-shop input[type="range"].fpsu-range-input::-webkit-slider-runnable-track { background: none; border: 0; height: 28px; }
.fpsu-shop input[type="range"].fpsu-range-input::-moz-range-track { background: none; border: 0; }

.fpsu-shop input[type="range"].fpsu-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--fpsu-navy);
	box-shadow: 0 3px 10px rgba(10, 31, 68, .28);
	cursor: grab;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.fpsu-shop input[type="range"].fpsu-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--fpsu-navy);
	box-shadow: 0 3px 10px rgba(10, 31, 68, .28);
	cursor: grab;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.fpsu-shop input[type="range"].fpsu-range-input--max::-webkit-slider-thumb { border-color: var(--fpsu-red); }
.fpsu-shop input[type="range"].fpsu-range-input--max::-moz-range-thumb { border-color: var(--fpsu-red); }

.fpsu-shop input[type="range"].fpsu-range-input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.15); }
.fpsu-shop input[type="range"].fpsu-range-input:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.15); }

.fpsu-shop input[type="range"].fpsu-range-input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(10, 31, 68, .15), 0 3px 10px rgba(10, 31, 68, .28); }
.fpsu-shop input[type="range"].fpsu-range-input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(10, 31, 68, .15), 0 3px 10px rgba(10, 31, 68, .28); }

.fpsu-shop input[type="range"].fpsu-range-input:disabled::-webkit-slider-thumb { opacity: .4; cursor: default; }

.fpsu-range-values {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fpsu-range-box {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 14px;
	border: 1px solid var(--fpsu-line);
	border-radius: 10px;
	background: var(--fpsu-soft);
}

.fpsu-range-box small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fpsu-muted);
}

.fpsu-range-box strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--fpsu-ink);
	font-variant-numeric: tabular-nums;
}

.fpsu-range-sep {
	flex: 0 0 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--fpsu-line);
}

/* --- toggle switches --- */

.fpsu-switch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--fpsu-line);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--fpsu-ink);
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.fpsu-switch:hover { border-color: #cfd7e2; }

.fpsu-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.fpsu-switch-ui {
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #d6dce5;
	transition: background-color .22s ease;
}

.fpsu-switch-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .22s ease;
}

.fpsu-switch input:checked + .fpsu-switch-ui { background: var(--fpsu-red); }
.fpsu-switch input:checked + .fpsu-switch-ui::after { transform: translateX(18px); }
.fpsu-switch input:focus-visible + .fpsu-switch-ui { box-shadow: 0 0 0 4px rgba(10, 31, 68, .15); }
.fpsu-switch:has(input:checked) { border-color: rgba(193, 18, 31, .35); background: rgba(193, 18, 31, .04); }

/* --- actions --- */

.fpsu-field--actions {
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 12px;
	min-width: 200px;
	background: var(--fpsu-soft);
}

.fpsu-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--fpsu-red);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}

.fpsu-apply:hover { background: var(--fpsu-navy); }
.fpsu-apply svg { transition: transform .25s ease; }
.fpsu-apply:hover svg { transform: translateX(3px); }

.fpsu-clear {
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--fpsu-muted);
	text-decoration: none;
}

.fpsu-clear:hover { color: var(--fpsu-red); text-decoration: underline; }

/* ---------- results ---------- */

.fpsu-results { position: relative; min-height: 220px; }

.fpsu-results[aria-busy="true"] { opacity: .45; pointer-events: none; }

.fpsu-results[aria-busy="true"]::after {
	content: "";
	position: absolute;
	top: 90px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 2px solid var(--fpsu-line);
	border-top-color: var(--fpsu-navy);
	border-radius: 50%;
	animation: fpsu-spin .7s linear infinite;
}

@keyframes fpsu-spin { to { transform: rotate(360deg); } }

/* The grid. Class names are doubled on purpose: themes ship rules like
   .woocommerce ul.products li.product { width: 22%; float: left } and we
   have to outrank them without resorting to !important. */
.fpsu-shop ul.products.products {
	display: grid;
	grid-template-columns: repeat(var(--fpsu-cols, 4), minmax(0, 1fr));
	gap: var(--fpsu-gap, 26px);
	align-items: stretch; /* every card in a row matches the tallest one */
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.fpsu-shop ul.products.products::before,
.fpsu-shop ul.products.products::after { display: none; }

.fpsu-shop ul.products.products li.product.product {
	width: auto;
	max-width: none;
	float: none;
	clear: none;
	margin: 0;
	padding: 0;
	text-align: left;
	height: 100%;         /* beat theme rules that set height: auto */
	align-self: stretch;
}

/* ---------- card ---------- */

.fpsu-shop li.fpsu-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--fpsu-line);
	border-radius: var(--fpsu-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.fpsu-shop li.fpsu-card:hover {
	transform: translateY(-3px);
	border-color: #cfd7e2;
	box-shadow: 0 14px 30px rgba(10, 31, 68, .1);
}

.fpsu-media {
	position: relative;
	display: block;
	flex: 0 0 auto;
	line-height: 0;
	font-size: 0;
	background: var(--fpsu-img-bg, #fff);
	padding: var(--fpsu-img-pad, 0);
	height: var(--fpsu-img-h, auto);
	overflow: hidden;
}

.fpsu-media > a {
	display: block;
	line-height: 0;
	height: 100%;
	width: 100%;
}

/* doubled classes: Astra ships "ul.products li.product img { height: auto }",
   which silently breaks the fixed image box if it wins */
.fpsu-shop ul.products.products li.product.product .fpsu-media img,
.fpsu-shop .fpsu-media img {
	display: block;
	width: var(--fpsu-img-w, 100%);
	height: 100%;
	max-height: 100%;
	margin: 0 auto;
	padding: 0;
	border-radius: 0;
	object-fit: var(--fpsu-img-fit, cover);
	object-position: center;
	transition: transform .4s ease;
}


.fpsu-shop li.fpsu-card:hover .fpsu-media img { transform: scale(1.04); }

.fpsu-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1;
	color: #fff;
}

.fpsu-badge--sale { background: var(--fpsu-red); }
.fpsu-badge--oos { background: #64748b; }

.fpsu-body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	flex: 1 1 auto;       /* fill the stretched card; content stays at the top */
	padding: 18px 20px 20px;
	text-align: left;
}

.fpsu-cat {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fpsu-muted);
	margin-bottom: 8px;
}

.fpsu-shop h2.fpsu-title,
.fpsu-shop ul.products.products li.product.product h2.fpsu-title {
	font-family: var(--fpsu-title-font, inherit);
	font-size: var(--fpsu-title-size, 17px);
	font-weight: var(--fpsu-title-weight, 700);
	text-transform: var(--fpsu-title-transform, none);
	letter-spacing: normal;
	line-height: 1.3;
	margin: 0 0 8px;
	padding: 0;
	color: var(--fpsu-title-color, var(--fpsu-navy));
	text-align: left;
	min-height: 0;
	max-height: none;
	overflow: visible;
}

.fpsu-shop h2.fpsu-title a,
.fpsu-shop ul.products.products li.product.product h2.fpsu-title a {
	color: inherit;
	text-decoration: none;
	font: inherit;
	letter-spacing: inherit;
}

.fpsu-shop h2.fpsu-title a:hover,
.fpsu-shop ul.products.products li.product.product h2.fpsu-title a:hover { color: var(--fpsu-title-hover, var(--fpsu-red)); }

.fpsu-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 7px;
	margin: 0 0 16px;
	font-size: var(--fpsu-price-size, 17px);
	font-weight: 700;
	color: var(--fpsu-ink);
	text-align: left;
}

.fpsu-price .woocommerce-Price-amount,
.fpsu-price bdi,
.fpsu-price ins,
.fpsu-price del { font: inherit; color: inherit; }

.fpsu-price ins { text-decoration: none; }
.fpsu-price del { opacity: .5; font-weight: 400; font-size: .85em; }

.fpsu-shop ul.products.products li.product.product a.fpsu-btn,
.fpsu-shop a.fpsu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 0;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--fpsu-red);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1;
	text-decoration: none;
	transition: background-color .22s ease;
}

.fpsu-shop a.fpsu-btn:hover { background: var(--fpsu-navy); color: #fff; }
.fpsu-shop a.fpsu-btn svg { transition: transform .25s ease; }
.fpsu-shop a.fpsu-btn:hover svg { transform: translateX(4px); }

/* ---------- load more ---------- */

.fpsu-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 40px;
}

.fpsu-progress {
	margin: 0;
	font-size: 13px;
	color: var(--fpsu-muted);
}

.fpsu-progress strong { color: var(--fpsu-ink); font-weight: 600; }

.fpsu-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 240px;
	padding: 16px 34px;
	border: 1px solid var(--fpsu-navy);
	border-radius: 999px;
	background: #fff;
	color: var(--fpsu-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.fpsu-more:hover { background: var(--fpsu-navy); color: #fff; }

.fpsu-more[disabled] { opacity: .55; cursor: default; }

.fpsu-more.is-loading::before {
	content: "";
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: fpsu-spin .7s linear infinite;
}

/* ---------- pagination ---------- */

.fpsu-shop .woocommerce-pagination { margin-top: 38px; text-align: center; }

.fpsu-shop .woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	border: 0;
	margin: 0;
	padding: 0;
}

.fpsu-shop .woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }

.fpsu-shop .woocommerce-pagination ul li a,
.fpsu-shop .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--fpsu-line);
	border-radius: 9px;
	background: #fff;
	color: var(--fpsu-navy);
	font-size: 14px;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fpsu-shop .woocommerce-pagination ul li a:hover { border-color: var(--fpsu-navy); background: #fff; }

.fpsu-shop .woocommerce-pagination ul li span.current {
	background: var(--fpsu-navy);
	border-color: var(--fpsu-navy);
	color: #fff;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
	.fpsu-shop { --fpsu-cols: 3; }
}

@media (max-width: 900px) {
	.fpsu-shop { --fpsu-cols: 2; }

	/* categories: one swipeable row of pills, edge to edge */
	.fpsu-cats {
		margin-left: calc(var(--fpsu-pad) * -1);
		margin-right: calc(var(--fpsu-pad) * -1);
	}

	.fpsu-cats-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding: 0 max(var(--fpsu-pad), 12px);
		padding: 4px max(var(--fpsu-pad), 12px) 16px;
		margin-bottom: -10px;   /* room for the active pill's glow without extra gap */
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.fpsu-cats-list::-webkit-scrollbar { display: none; }
	.fpsu-cats-list li { flex: 0 0 auto; scroll-snap-align: start; }
	.fpsu-pill { white-space: nowrap; }

	.fpsu-tool--view { display: none; }

	.fpsu-toolbar { gap: 12px; }
	.fpsu-tool--right { width: 100%; justify-content: space-between; }
	.fpsu-search { flex: 1 1 100%; order: -1; min-width: 0; }
	.fpsu-sort select { max-width: 160px; }

	.fpsu-filters-inner { grid-template-columns: 1fr; }
	.fpsu-field { padding: 22px 20px; }
	.fpsu-field + .fpsu-field { border-left: 0; border-top: 1px solid var(--fpsu-line); }
	.fpsu-field--avail { flex-direction: row; flex-wrap: wrap; }
	.fpsu-field--avail .fpsu-field-label { flex: 1 1 100%; }
	.fpsu-field--avail .fpsu-switch { flex: 1 1 160px; }
	.fpsu-field--actions { flex-direction: row-reverse; align-items: center; min-width: 0; }
	.fpsu-apply { flex: 1; }
	.fpsu-clear { padding: 0 8px; }
}

@media (max-width: 560px) {
	.fpsu-shop ul.products.products { gap: 14px; }
	.fpsu-body { padding: 15px 14px 16px; }
	.fpsu-price { font-size: 15px; margin-bottom: 14px; }
	.fpsu-shop a.fpsu-btn { padding: 12px 14px; font-size: 12px; }
	.fpsu-sort .fpsu-tool-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fpsu-pill,
	.fpsu-shop li.fpsu-card,
	.fpsu-shop .fpsu-media img,
	.fpsu-shop a.fpsu-btn,
	.fpsu-shop a.fpsu-btn svg,
	.fpsu-switch-ui,
	.fpsu-switch-ui::after { transition: none; }
	.fpsu-filters:not([hidden]) { animation: none; }
	.fpsu-results[aria-busy="true"]::after { animation-duration: 2s; }
}
