/*
 * GF product filter: the catalogue's filter panel. Measured from the panel it replaces (the
 * prdctfltr plugin as the theme dressed it, 2026-09-21), so the shop reads the same:
 * a 256px column in the theme's five-column shop grid on desktops, full width above the
 * products up to 1024px, and a full-screen sheet behind the theme's "Filter by" button on phones.
 * The theme's Elementor kit restyles every <button> (red, upper case, its own font), so each
 * button here starts from all: unset and states its own hover and focus.
 */

/* ---- place in the theme's shop grid (mirrors shop.min.css's rules for the old panel) ---- */
.shop-wrapper .gf-pf {
	width: 100%;
	min-width: 0;
	grid-column: span 1;
	font-size: 16px;
	line-height: 24px;
	color: #333;
}
@media (max-width: 1024px) {
	.shop-wrapper .gf-pf { grid-column: span 5; }
}
@media (max-width: 767px) {
	/* on phones the old block was its chip rows plus 21px, the divider included, chips or none */
	.shop-wrapper .gf-pf { padding-bottom: 19.5px; border-bottom: 1.5px solid #bdbdbd; }
}

/* Nothing matched: the message takes the products' place beside the panel. */
.shop-wrapper .woocommerce-no-products-found { grid-column: span 4; }
@media (max-width: 1024px) {
	.shop-wrapper .woocommerce-no-products-found { grid-column: span 5; }
}

/* ---- chips: the active choices, each with its own × ---- */
.gf-pf__chips {
	margin: 10px;
	font-size: 14.4px;
	line-height: 21.6px;
}
.gf-pf__chips[hidden] { display: none; }
@media (max-width: 767px) {
	.gf-pf__chips { margin: 0; padding-bottom: 1px; }
}
.gf-pf__chip {
	display: inline-block;
	margin: 0 7.2px 7.2px 0;
	padding: 3.6px 14.4px;
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.05);
	color: #333;
}
.gf-pf .gf-pf__chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 18px;
	margin-right: 5px;
	color: #000;
	text-decoration: none;
	cursor: pointer;
}
.gf-pf .gf-pf__chip-x:hover,
.gf-pf .gf-pf__chip-x:focus { color: #ef1111; }
.gf-pf .gf-pf__chip-x:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; border-radius: 2px; }

/* ---- the panel ---- */
.gf-pf__form { margin: 0; }
.gf-pf__panel { position: relative; }
.gf-pf__inner {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}
.gf-pf .gf-pf__close { display: none; }

.gf-pf__label {
	display: block;
	margin: 0;
	padding: 0 0 5px;
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	color: #333;
}

/* sort: the site's own select, with the theme's red up-and-down arrows (5px under it, as the old panel had) */
.gf-pf__block--sort { margin-bottom: 15px; padding-bottom: 5px; }
@media (max-width: 767px) {
	.gf-pf__block--sort { margin-bottom: 0; }
	.gf-pf__block--per-page { margin-top: 12px; }   /* the second select under Sort by */
}

/* products per page and the grid / list buttons share a line */
.gf-pf__row { display: flex; gap: 8px; align-items: stretch; }
.gf-pf__row .gf-pf__select { flex: 1 1 auto; min-width: 0; }
.gf-pf__views { display: flex; gap: 8px; }
.gf-pf__views[hidden] { display: none; }
.gf-pf .gf-pf__view {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid #bdbdbd;
	border-radius: 3px;
	background: #fff;
	color: #9a9a9a;
	cursor: pointer;
}
.gf-pf .gf-pf__view svg { display: block; fill: currentColor; }
.gf-pf .gf-pf__view:hover,
.gf-pf .gf-pf__view:focus { background: #fff; color: #333; }
.gf-pf .gf-pf__view[aria-pressed="true"],
.gf-pf .gf-pf__view[aria-pressed="true"]:hover,
.gf-pf .gf-pf__view[aria-pressed="true"]:focus { border-color: #ef1111; color: #ef1111; }
.gf-pf .gf-pf__view:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }

/* the quick row on phones, moved into the theme's Products / Filter by row (flex, wrapping, 10px gap): grid, list and
   Show all, in the theme's button look. margin-left: auto keeps it at the right on the same line when it fits, and at
   the right of its own line when it wraps (under about 480px). */
.gf-pf-quick { display: flex; gap: 8px; margin-left: auto; }
.gf-pf-quick[hidden], .gf-pf-quick__views[hidden] { display: none; }
.gf-pf-quick__views { display: flex; }
.gf-pf-quick .gf-pf-quick__btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 43px;
	height: 43px;
	padding: 0 14px;
	border: 1px solid rgb(119, 122, 121);
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.gf-pf-quick__views .gf-pf-quick__btn { width: 43px; padding: 0; }
.gf-pf-quick__views .gf-pf-quick__btn:first-child { border-radius: 4px 0 0 4px; }
.gf-pf-quick__views .gf-pf-quick__btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.gf-pf-quick .gf-pf-quick__btn svg { display: block; fill: currentColor; }
.gf-pf-quick .gf-pf-quick__btn:hover,
.gf-pf-quick .gf-pf-quick__btn:focus { background: #fff; color: #000; }
.gf-pf-quick .gf-pf-quick__btn[aria-pressed="true"],
.gf-pf-quick .gf-pf-quick__btn[aria-pressed="true"]:hover,
.gf-pf-quick .gf-pf-quick__btn[aria-pressed="true"]:focus { position: relative; z-index: 1; border-color: #ef1111; color: #ef1111; }
.gf-pf-quick .gf-pf-quick__btn:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }

/* list view (the second button; html.gf-pf-list): one product per row — a small picture, the name, the price —
   so more of the catalogue fits on a screen. The grid is the theme's own and is left alone. */
html.gf-pf-list .shop-wrapper ul.products { grid-template-columns: minmax(0, 1fr); gap: 0; }
html.gf-pf-list .shop-wrapper ul.products li.product { width: auto; float: none; margin: 0; border-bottom: 1px solid #e6e6e6; }
html.gf-pf-list .shop-wrapper ul.products li.product > a { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 6px 28px; padding: 12px 8px; }
/* the theme sets these pictures' height with !important (400 / 300 / 200px): a more specific !important beats it */
html.gf-pf-list .shop-wrapper ul.products li.product > a img { width: 120px; height: 120px !important; margin: 0; object-fit: contain; grid-row: 1 / span 2; }
html.gf-pf-list .shop-wrapper ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 20px; line-height: 1.3; align-self: end; }
/* the price under the name, never at the row's right end: the theme's #main runs past the screen's right edge */
html.gf-pf-list .shop-wrapper ul.products li.product .price { margin: 0; align-self: start; }
@media (max-width: 767px) {
	/* on phones the panel's bottom line sits right above the list, 20px up (the theme's .shop-wrapper row gap at <=1024px):
	   the list moves up onto that line, so it is the first row's top edge — one line, and the first product sits 10px under
	   it like every other row (his screenshot, 2026-09-22: a second line and a wider gap there) */
	html.gf-pf-list .shop-wrapper ul.products { margin-top: -20px; }
	html.gf-pf-list .shop-wrapper ul.products li.product > a { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; }
	html.gf-pf-list .shop-wrapper ul.products li.product > a img { width: 84px; height: 84px !important; }
	html.gf-pf-list .shop-wrapper ul.products li.product .woocommerce-loop-product__title { font-size: 16px; }
}
.gf-pf__select { position: relative; }
.gf-pf__select select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 10px 40px 10px 11px;
	border: 1px solid #bdbdbd;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.gf-pf__select select:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }
.gf-pf__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 28px;
	height: 15px;
	transform: rotate(180deg) translateY(50%);
	background: #fff url("../../themes/hello-elementor-child/assets/images/svg/filter.svg") no-repeat center / contain;
	pointer-events: none;
}

/* price: two range inputs on one track, red tags over the handles */
.gf-pf__block--price { margin-bottom: 15px; }
.gf-pf__range {
	position: relative;
	height: 55px;
}
.gf-pf__tag {
	position: absolute;
	top: 0;
	left: 0;
	padding: 1px 5px;
	border-radius: 3px;
	background: #b71923;
	color: #fff;
	font-size: 14px;
	line-height: 18.66px;
	white-space: nowrap;
}
.gf-pf__tag--to { left: auto; right: 0; }
.gf-pf__tag[hidden] { display: none; }
.gf-pf__track {
	position: absolute;
	top: 33px;
	left: 0;
	right: 0;
	height: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 16px;
	background: #fff;
}
.gf-pf__bar {
	position: absolute;
	top: 33px;
	left: 8px;
	right: 8px;
	height: 10px;
	box-sizing: border-box;
	border: 1px solid #b71923;
	background: #b71923;
}
.gf-pf__thumb {
	position: absolute;
	top: 30px;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 15px;
	margin: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
	outline: none;
}
.gf-pf__thumb--from { z-index: 3; }
.gf-pf__thumb::-webkit-slider-runnable-track { height: 15px; border: 0; background: transparent; }
.gf-pf__thumb::-moz-range-track { height: 15px; border: 0; background: transparent; }
.gf-pf__thumb::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	border: 1px solid #aaa;
	border-radius: 50%;
	background: linear-gradient(#fff, #e3e3e3);
	cursor: pointer;
	pointer-events: auto;
}
.gf-pf__thumb::-moz-range-thumb {
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	border: 1px solid #aaa;
	border-radius: 50%;
	background: linear-gradient(#fff, #e3e3e3);
	cursor: pointer;
	pointer-events: auto;
}
.gf-pf__thumb:focus-visible::-webkit-slider-thumb { border-color: #ef1111; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ef1111; }
.gf-pf__thumb:focus-visible::-moz-range-thumb { border-color: #ef1111; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ef1111; }

/* catalogue and muscle groups: accordion sections */
.gf-pf__section { border-bottom: 1px solid #bdbdbd; }
.gf-pf__section--first { border-top: 1px solid #bdbdbd; }
.gf-pf .gf-pf__toggle {
	all: unset;
	box-sizing: border-box;
	display: block;
	position: relative;
	width: 100%;
	padding: 10px 32px 10px 0;
	background: #fff;
	color: #444;
	font-family: inherit;
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}
.gf-pf .gf-pf__toggle:hover,
.gf-pf .gf-pf__toggle:focus { background: #fff; color: #444; }
.gf-pf .gf-pf__section.is-open > .gf-pf__toggle,
.gf-pf .gf-pf__section.is-open > .gf-pf__toggle:hover,
.gf-pf .gf-pf__section.is-open > .gf-pf__toggle:focus { color: #ef1111; }
.gf-pf .gf-pf__toggle:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }
.gf-pf__chev {
	position: absolute;
	top: 50%;
	right: 0;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	color: #000;
	transition: transform 0.2s ease;
}
.gf-pf__section.is-open .gf-pf__chev { transform: rotate(180deg); }

.gf-pf__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: -1px;
	padding: 5px 10px 15px 0;
}
.gf-pf__list[hidden] { display: none; }
.gf-pf .gf-pf__item {
	display: block;
	padding-left: 10px;
	color: #333;
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	text-decoration: none;
	cursor: pointer;
}
.gf-pf .gf-pf__item:hover,
.gf-pf .gf-pf__item:focus { color: #333; text-decoration: none; }
.gf-pf .gf-pf__item.is-active { font-weight: 600; }
.gf-pf .gf-pf__item--child { padding-left: 22px; }
.gf-pf .gf-pf__item:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }

/* no JavaScript: a plain submit for the sort and price */
.gf-pf .gf-pf__apply {
	all: unset;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin-top: 15px;
	padding: 10px;
	border: 1px solid #333;
	text-align: center;
	cursor: pointer;
}

/* ---- phones: the panel is a full-screen sheet, opened by the theme's "Filter by" button ---- */
@media (max-width: 767px) {
	.gf-pf__panel {
		display: none;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		padding: 40px 10px 10px;
		box-sizing: border-box;
		background: #fff;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.gf-pf__panel.is-open { display: flex; }
	/* auto margins centre it like the old sheet, and never cut the top off when it is taller than the screen */
	.gf-pf__inner { margin: auto 0; }
	.gf-pf .gf-pf__close {
		all: unset;
		box-sizing: border-box;
		display: flex;
		position: absolute;
		top: 0;
		right: 0;
		padding: 20px;
		background: #fff;
		color: #000;
		cursor: pointer;
	}
	.gf-pf .gf-pf__close:hover,
	.gf-pf .gf-pf__close:focus { background: #fff; color: #000; }
	.gf-pf .gf-pf__close:focus-visible { outline: 2px solid #ef1111; outline-offset: -6px; }
	.gf-pf__close svg { width: 20px; height: 20px; }
}
/* the theme's phone button is a <div>; it gets a keyboard focus ring once the script makes it a button */
.prdctfltr_filter-btn-mobile.filter-count[role="button"] { cursor: pointer; }
.prdctfltr_filter-btn-mobile.filter-count[role="button"]:focus-visible { outline: 2px solid #ef1111; outline-offset: 2px; }

/* ---- while a choice is being fetched ---- */
.shop-wrapper.gf-pf-busy ul.products,
.shop-wrapper.gf-pf-busy .woocommerce-no-products-found {
	opacity: 0.35;
	transition: opacity 0.15s ease;
	pointer-events: none;
}
.gf-pf-spinner {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 1000;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	box-sizing: border-box;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #ef1111;
	border-radius: 50%;
	animation: gf-pf-spin 0.7s linear infinite;
}
@keyframes gf-pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.gf-pf-spinner { animation-duration: 2.4s; }
	.gf-pf__chev { transition: none; }
}
.gf-pf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * The page numbers. Their look came from the old plugin's stylesheet (only the theme's colours
 * and arrows are in shop.min.css); without it WooCommerce's bordered boxes would show. The same
 * rules, one step more specific than WooCommerce's so they win without !important.
 */
body.gf-pf-archive nav.woocommerce-pagination { clear: both; display: block; flex-basis: 100%; }
body.gf-pf-archive nav.woocommerce-pagination ul {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	white-space: nowrap;
}
body.gf-pf-archive nav.woocommerce-pagination ul li { display: inline-block; }
body.gf-pf-archive nav.woocommerce-pagination ul li a,
body.gf-pf-archive nav.woocommerce-pagination ul li span {
	display: inline-block;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 6px 12px;
	border: 2px solid #444;
	border-radius: 2px;
	color: #444;
	font-size: 14px;
	line-height: 16px;
	font-weight: bold;
	text-decoration: none;
	vertical-align: bottom;
}
body.gf-pf-archive nav.woocommerce-pagination ul li a:focus,
body.gf-pf-archive nav.woocommerce-pagination ul li a:hover,
body.gf-pf-archive nav.woocommerce-pagination ul li span.current { border-color: #f00; color: #f00; }
