/* Jero filters: matches the BeRocket filters they replace (child theme styles of 2026-11-19).
   !important on link colours: on WooCommerce pages Divi colours every link black with an
   ID-level selector. */

/* "Filters" toggle (was <a class="btn_filters"><h4 class="widgettitle">) */
.jero-filters-toggle {
	display: block;
	margin: 0 0 30px;
	padding: 0 0 10px;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: bold;
	line-height: 14px;
	text-align: left;
	cursor: pointer;
}
.jero-filters-toggle::before {
	content: '';
	display: inline-block;
	position: relative;
	top: 5px;
	width: 24px;
	height: 24px;
	margin-right: 15px;
	background: url(/wp-content/uploads/2020/07/jero_filter_icon.svg) no-repeat;
}
.jero-filters { transition: opacity 0.2s; }
.jero-filters.is-closed { display: none; }
html.jero-filters-loading .jero-filters,
html.jero-filters-loading .et_pb_shop { opacity: 0.5; pointer-events: none; }

/* While a filter loads: the Load More animation, centred in the viewport. Fades in after
   150 ms so fast responses don't flash it. */
html.jero-filters-loading::after {
	content: '';
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100000;
	width: 50px;
	height: 58px;
	margin: -29px 0 0 -25px;
	background: url(/wp-content/uploads/2020/09/jero_loader_anim.svg) no-repeat center / contain;
	pointer-events: none;
	animation: jero-filters-loader-in 0.2s 0.15s both;
}
@keyframes jero-filters-loader-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Sections */
.jero-filter {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 0.5px solid #999;
}
.jero-filter__title {
	margin: 0;
	padding: 0 10px 20px;
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.jero-filter__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}
.jero-filter__sign { position: relative; width: 10px; height: 10px; }
.jero-filter__sign::before,
.jero-filter__sign::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 10px;
	height: 1.5px;
	margin-top: -0.75px;
	background: currentColor;
	transition: transform 0.2s;
}
.jero-filter__sign::after { transform: rotate(90deg) scaleX(0); }
.jero-filter.is-collapsed .jero-filter__sign::after { transform: rotate(90deg); }
.jero-filter.is-collapsed .jero-filter__values,
.jero-filter.is-collapsed .jero-filter__more { display: none; }

/* Values: two columns */
.jero-filter__values {
	display: flex;
	flex-wrap: wrap;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.jero-filter__values li {
	position: relative;
	flex-basis: 50%;
	margin: 0 !important;
	padding: 5px 0 !important;
	list-style: none;
	transition: background 0.2s ease-in-out;
}
.jero-filter__values li::before { display: none; } /* Divi list bullets */
.jero-filter__values li.is-extra { display: none; }
.jero-filter.is-expanded .jero-filter__values li.is-extra { display: block; }
.jero-filter__values a {
	display: block;
	padding: 0 0 0 10px;
	color: #4c4c4c !important;
	text-decoration: none;
}
.jero-filter__values li:hover,
.jero-filter__values li.is-active { background-color: #f5f5f5; }
.jero-filter__values li:hover a,
.jero-filter__values li.is-active a { color: #000 !important; }
.jero-filter__values li.is-active {
	background-image: url(/wp-content/uploads/2020/09/close_icon.svg);
	background-repeat: no-repeat;
	background-size: 10px;
	background-position: 95% center;
}

/* "Show all" / "Show less" */
.jero-filter__more {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 5px;
	border: 0;
	background-color: #f5f5f5;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}
.jero-filter__more:hover { background-color: #f1f1f1; }
.jero-filter__more-hide,
.jero-filter.is-expanded .jero-filter__more-show { display: none; }
.jero-filter.is-expanded .jero-filter__more-hide { display: inline; }

/* Colours */
.jero-filter--colours .jero-filter__values { gap: 6px; padding-left: 10px !important; }
.jero-filter--colours .jero-filter__values li { flex-basis: auto; padding: 2px !important; border: 0.5px solid transparent; }
.jero-filter--colours .jero-filter__values li:hover,
.jero-filter--colours .jero-filter__values li.is-active { border-color: #666; background: none; }
.jero-filter--colours .jero-filter__values a { padding: 0; }
.jero-filter__swatch {
	display: block;
	width: 24px;
	height: 24px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.jero-filter--colours li.is-active::after {
	content: '';
	position: absolute;
	top: -3px;
	right: -1px;
	width: 12px;
	height: 12px;
	background: #fff url(/wp-content/uploads/2020/09/close_icon.svg) no-repeat center / 10px;
}
.jero-filter__tip {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 999;
	margin-top: -15px;
	padding: 5px 10px;
	border-radius: 3px;
	background: #333;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	white-space: nowrap;
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, -100%);
	transition: opacity 0.3s, visibility 0.3s;
	pointer-events: none;
}
.jero-filter--colours li:hover .jero-filter__tip { visibility: visible; opacity: 1; }

/* Selected filters */
.jero-filters-selected:not(:empty) {
	margin-bottom: 30px;
	padding: 20px;
	background-color: #f5f5f5;
}
.jero-filters-selected h3 {
	margin-bottom: 20px;
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.jero-filters-selected__group { margin-bottom: 10px; }
.jero-filters-selected__label {
	display: block;
	color: #000;
	font-size: 10px;
	line-height: 23.8px;
	text-transform: uppercase;
}
.jero-filters-selected ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 5px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.jero-filters-selected li { flex: 0 0 calc(50% - 5px); margin: 0 !important; padding: 0 !important; list-style: none; }
.jero-filters-selected li::before { display: none; }
.jero-filters-selected li a {
	position: relative;
	display: block;
	margin-bottom: 10px;
	padding: 0 16px 0 5px;
	background-color: #fff;
	color: #000 !important;
	font-size: 12px;
	text-decoration: none;
}
.jero-filters-selected__remove {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 8px;
	height: 8px;
	background: url(/wp-content/uploads/2020/09/close_icon.svg) no-repeat center / 8px;
}
.jero-filters-selected__clear {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 10px;
	border: 1px solid #000;
	color: #000 !important;
	font-size: 10px;
	line-height: 14px;
	text-decoration: none;
	text-transform: uppercase;
}

/* Load More: pagination hidden once the script takes over (kept for visitors without JS) */
.et_pb_shop.has-load-more .woocommerce-pagination { display: none; }
.jero-load-more { margin: 20px 0; text-align: center; }
.jero-load-more[hidden],
.jero-load-more__button[hidden],
.jero-load-more__loading[hidden] { display: none; }
.jero-load-more__button {
	padding: 15px;
	border: 1px solid #000;
	background: none;
	color: #000;
	font: inherit;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
}
.jero-load-more__loading { display: inline-block; width: 50px; height: 57.5px; }
