.bayrebooks-product-filter-layout {
	align-items: start;
	box-sizing: border-box;
	clear: both;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	justify-content: stretch;
	margin: 28px 0 36px !important;
	min-height: 440px;
	max-width: 100% !important;
	overflow-x: hidden;
	width: 100% !important;
}

.bayrebooks-product-filter-layout__results {
	min-width: 0;
	overflow: hidden;
	text-align: initial;
	transition: opacity 160ms ease;
	width: 100%;
}

.bayrebooks-product-filter-layout__results > *,
.bayrebooks-product-filter-layout__results .woocommerce,
.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-collection {
	box-sizing: border-box;
	max-width: 100%;
}

.bayrebooks-product-filter-layout__results ul.products,
.bayrebooks-product-filter-layout__results .wc-block-grid__products,
.bayrebooks-product-filter-layout__results .wc-block-product-template,
.bayrebooks-product-filter-layout__results .wp-block-post-template {
	box-sizing: border-box;
	display: grid !important;
	gap: 44px 30px !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	justify-content: start;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

.bayrebooks-product-filter-layout__results ul.products > *,
.bayrebooks-product-filter-layout__results .wc-block-grid__products > *,
.bayrebooks-product-filter-layout__results .wc-block-product-template > *,
.bayrebooks-product-filter-layout__results .wp-block-post-template > * {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

.bayrebooks-product-filter-layout__results ul.products::before,
.bayrebooks-product-filter-layout__results ul.products::after {
	content: none !important;
	display: none !important;
}

.bayrebooks-product-filter-layout__results ul.products li.product,
.bayrebooks-product-filter-layout__results .wc-block-grid__product,
.bayrebooks-product-filter-layout__results .wc-block-product,
.bayrebooks-product-filter-layout__results .wp-block-post {
	box-sizing: border-box;
	clear: none !important;
	float: none !important;
	margin: 0 !important;
	max-width: none;
	min-width: 0;
	text-align: center;
	width: 100% !important;
}

.bayrebooks-product-filter-layout__results ul.products[class*="columns-"] li.product,
.bayrebooks-product-filter-layout__results .wc-block-grid.has-2-columns .wc-block-grid__product,
.bayrebooks-product-filter-layout__results .wc-block-grid.has-3-columns .wc-block-grid__product,
.bayrebooks-product-filter-layout__results .wc-block-grid.has-4-columns .wc-block-grid__product,
.bayrebooks-product-filter-layout__results .wc-block-grid.has-5-columns .wc-block-grid__product,
.bayrebooks-product-filter-layout__results .wc-block-grid.has-6-columns .wc-block-grid__product {
	flex: none !important;
	width: 100% !important;
}

.bayrebooks-product-filter-layout__results .woocommerce-loop-product__link,
.bayrebooks-product-filter-layout__results .wc-block-grid__product-link,
.bayrebooks-product-filter-layout__results .wp-block-post-featured-image a,
.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-image a {
	display: block;
	min-width: 0;
}

.bayrebooks-product-filter-layout__results ul.products li.product img,
.bayrebooks-product-filter-layout__results .wc-block-grid__product-image img,
.bayrebooks-product-filter-layout__results .wp-block-post-featured-image img,
.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-image img {
	aspect-ratio: 3 / 4;
	display: block;
	height: auto;
	margin: 0 auto 14px;
	max-height: 260px;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

.bayrebooks-product-filter-layout__results .woocommerce-loop-product__title,
.bayrebooks-product-filter-layout__results .wc-block-grid__product-title,
.bayrebooks-product-filter-layout__results .wp-block-post-title,
.bayrebooks-product-filter-layout__results .wp-block-post-title a {
	font-size: clamp(15px, 1vw, 18px);
	line-height: 1.28;
	margin-left: auto;
	margin-right: auto;
	max-width: 16rem;
	overflow-wrap: anywhere;
	text-align: center;
}

.bayrebooks-product-filter-layout__results .price,
.bayrebooks-product-filter-layout__results .wc-block-grid__product-price,
.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-price {
	display: block;
	font-size: 14px;
	margin-top: 8px;
	text-align: center;
}

.bayrebooks-product-filter-layout__results .button,
.bayrebooks-product-filter-layout__results .wp-block-button,
.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-button {
	margin-left: auto;
	margin-right: auto;
}

.bayrebooks-product-filter-layout.is-loading .bayrebooks-product-filter-layout__results {
	opacity: 0.45;
	pointer-events: none;
}

.bayrebooks-product-filter-layout.is-loading .bayrebooks-product-filters__submit {
	opacity: 0.72;
}

.bayrebooks-product-filter-layout .wp-block-query-pagination,
.bayrebooks-product-filter-layout .woocommerce-pagination,
.bayrebooks-product-filter-layout .wc-block-components-pagination {
	align-items: center;
	column-gap: 36px !important;
	display: flex;
	gap: 36px !important;
	grid-column: 1 / -1;
	justify-content: center;
	margin: 48px auto 0;
	row-gap: 12px;
	width: 100%;
}

.bayrebooks-product-filter-layout .wp-block-query-pagination-numbers,
.bayrebooks-product-filter-layout .woocommerce-pagination .page-numbers,
.bayrebooks-product-filter-layout .wc-block-components-pagination__page-list {
	align-items: center;
	display: inline-flex;
	gap: 14px !important;
}

.bayrebooks-product-filter-layout .wp-block-query-pagination a,
.bayrebooks-product-filter-layout .wp-block-query-pagination .page-numbers,
.bayrebooks-product-filter-layout .woocommerce-pagination a,
.bayrebooks-product-filter-layout .woocommerce-pagination .page-numbers,
.bayrebooks-product-filter-layout .wc-block-components-pagination a,
.bayrebooks-product-filter-layout .wc-block-components-pagination button {
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
}

.bayrebooks-product-filter-layout .wp-block-query-pagination-previous,
.bayrebooks-product-filter-layout .wp-block-query-pagination-next,
.bayrebooks-product-filter-layout .woocommerce-pagination a.prev,
.bayrebooks-product-filter-layout .woocommerce-pagination a.next,
.bayrebooks-product-filter-layout .wc-block-components-pagination a[rel="prev"],
.bayrebooks-product-filter-layout .wc-block-components-pagination a[rel="next"] {
	font-weight: 800 !important;
}

body.woocommerce-shop .wp-block-query-pagination,
body.tax-product_cat .wp-block-query-pagination,
body.post-type-archive-product .wp-block-query-pagination,
body.woocommerce-shop .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.post-type-archive-product .woocommerce-pagination {
	align-items: center !important;
	display: flex !important;
	gap: 36px !important;
	grid-column: 1 / -1 !important;
	justify-content: center !important;
	margin: 48px auto 0 !important;
	width: 100% !important;
}

body.woocommerce-shop .wp-block-query-pagination-numbers,
body.tax-product_cat .wp-block-query-pagination-numbers,
body.post-type-archive-product .wp-block-query-pagination-numbers,
body.woocommerce-shop .woocommerce-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination .page-numbers,
body.post-type-archive-product .woocommerce-pagination .page-numbers {
	align-items: center !important;
	display: inline-flex !important;
	gap: 14px !important;
}

body.woocommerce-shop .wp-block-query-pagination a,
body.woocommerce-shop .wp-block-query-pagination .page-numbers,
body.tax-product_cat .wp-block-query-pagination a,
body.tax-product_cat .wp-block-query-pagination .page-numbers,
body.post-type-archive-product .wp-block-query-pagination a,
body.post-type-archive-product .wp-block-query-pagination .page-numbers,
body.woocommerce-shop .woocommerce-pagination a,
body.woocommerce-shop .woocommerce-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination a,
body.tax-product_cat .woocommerce-pagination .page-numbers,
body.post-type-archive-product .woocommerce-pagination a,
body.post-type-archive-product .woocommerce-pagination .page-numbers {
	border-bottom: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
}

body.woocommerce-shop .wp-block-query-pagination-previous,
body.woocommerce-shop .wp-block-query-pagination-next,
body.tax-product_cat .wp-block-query-pagination-previous,
body.tax-product_cat .wp-block-query-pagination-next,
body.post-type-archive-product .wp-block-query-pagination-previous,
body.post-type-archive-product .wp-block-query-pagination-next,
body.woocommerce-shop .woocommerce-pagination a.prev,
body.woocommerce-shop .woocommerce-pagination a.next,
body.tax-product_cat .woocommerce-pagination a.prev,
body.tax-product_cat .woocommerce-pagination a.next,
body.post-type-archive-product .woocommerce-pagination a.prev,
body.post-type-archive-product .woocommerce-pagination a.next {
	font-weight: 800 !important;
}

.bayrebooks-product-filter-layout__results > .woocommerce-info,
.bayrebooks-product-filter-layout__results > .woocommerce-no-products-found {
	grid-column: auto;
	width: 100%;
}

.bayrebooks-product-filter-layout__results > *:first-child {
	margin-top: 0;
}

.bayrebooks-product-filter-layout__results .woocommerce-no-products-found,
.bayrebooks-product-filter-layout__results .wp-block-query-no-results,
.bayrebooks-product-filter-layout__results .wc-block-product-template__no-results,
.bayrebooks-product-filter-layout__results [class*="no-results"] {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin: 0;
	max-width: 100%;
	min-height: 220px;
	padding: 34px;
	text-align: left;
}

.bayrebooks-product-filter-layout__results .woocommerce-no-products-found h2,
.bayrebooks-product-filter-layout__results .wp-block-query-no-results h2,
.bayrebooks-product-filter-layout__results .wc-block-product-template__no-results h2,
.bayrebooks-product-filter-layout__results [class*="no-results"] h2 {
	margin-top: 0;
	text-align: left;
}

.bayrebooks-product-filters {
	--bayrebooks-filter-accent: var(--wp--preset--color--bayrebooks-navy, #0f3f94);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
	color: #111827;
	font-family: inherit;
	margin: 0;
	max-width: 100%;
	position: sticky;
	top: 16px;
	width: 100%;
	z-index: 1;
}

.bayrebooks-product-filters *,
.bayrebooks-product-filters *::before,
.bayrebooks-product-filters *::after {
	box-sizing: border-box;
}

.bayrebooks-product-filters__toggle {
	display: none;
}

.bayrebooks-product-filters__panel {
	margin: 0;
	padding: 18px;
}

.bayrebooks-product-filters__head {
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 18px;
	padding-bottom: 14px;
}

.bayrebooks-product-filters__title {
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.bayrebooks-product-filters__clear {
	color: currentColor;
	display: inline-block;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bayrebooks-product-filters__groups {
	display: grid;
	gap: 20px;
}

.bayrebooks-product-filters__group {
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	margin: 0;
	padding: 0 0 18px;
}

.bayrebooks-product-filters__group:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bayrebooks-product-filters__group legend {
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 12px;
	padding: 0;
}

.bayrebooks-product-filters__price-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.bayrebooks-product-filters__price-slider {
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.bayrebooks-product-filters__price-values {
	align-items: center;
	color: #111827;
	display: flex;
	font-size: 13px;
	font-weight: 800;
	gap: 10px;
	justify-content: space-between;
}

.bayrebooks-product-filters__range-control {
	height: 28px;
	position: relative;
}

.bayrebooks-product-filters__range-track {
	background: #e5e7eb;
	border-radius: 999px;
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.bayrebooks-product-filters__range-track span {
	background: var(--bayrebooks-filter-accent);
	border-radius: inherit;
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.bayrebooks-product-filters__range-input {
	appearance: none;
	background: transparent;
	height: 28px;
	left: 0;
	margin: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 100%;
}

.bayrebooks-product-filters__range-input::-webkit-slider-thumb {
	appearance: none;
	background: #fff;
	border: 3px solid var(--bayrebooks-filter-accent);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
	cursor: grab;
	height: 20px;
	pointer-events: auto;
	width: 20px;
}

.bayrebooks-product-filters__range-input::-moz-range-thumb {
	background: #fff;
	border: 3px solid var(--bayrebooks-filter-accent);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
	cursor: grab;
	height: 16px;
	pointer-events: auto;
	width: 16px;
}

.bayrebooks-product-filters__range-input:active::-webkit-slider-thumb {
	cursor: grabbing;
}

.bayrebooks-product-filters__range-input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--bayrebooks-filter-accent);
	outline-offset: 3px;
}

.bayrebooks-product-filters__range-input:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--bayrebooks-filter-accent);
	outline-offset: 3px;
}

.bayrebooks-product-filters__price-grid label {
	display: grid;
	gap: 6px;
}

.bayrebooks-product-filters__price-grid span {
	color: #4b5563;
	font-size: 13px;
	font-weight: 700;
}

.bayrebooks-product-filters input[type="number"] {
	appearance: textfield;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	font: inherit;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.bayrebooks-product-filters input[type="number"]:focus {
	border-color: var(--bayrebooks-filter-accent);
	outline: 2px solid transparent;
}

.bayrebooks-product-filters__category-list {
	display: grid;
	gap: 10px;
	max-height: 360px;
	overflow: auto;
	padding-right: 2px;
}

.bayrebooks-product-filters__check {
	align-items: center;
	cursor: pointer;
	display: grid;
	gap: 10px;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	line-height: 1.35;
}

.bayrebooks-product-filters__check input {
	accent-color: var(--bayrebooks-filter-accent);
	height: 18px;
	margin: 0;
	width: 18px;
}

.bayrebooks-product-filters__check span {
	font-size: 14px;
	min-width: 0;
}

.bayrebooks-product-filters__check small {
	color: #6b7280;
	font-size: 12px;
}

.bayrebooks-product-filters__check input:disabled + span {
	font-weight: 800;
}

.bayrebooks-product-filters__actions {
	margin-top: 18px;
}

.bayrebooks-product-filters__submit {
	background: var(--bayrebooks-filter-accent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	min-height: 46px;
	padding: 10px 16px;
	transition: opacity 140ms ease, transform 140ms ease;
	width: 100%;
}

.bayrebooks-product-filters__submit:hover,
.bayrebooks-product-filters__submit:focus-visible {
	opacity: 0.88;
	transform: translateY(-1px);
}

.bayrebooks-product-filters__submit:active {
	opacity: 0.78;
	transform: translateY(0);
}

@media (max-width: 1320px) {
	.bayrebooks-product-filter-layout__results ul.products,
	.bayrebooks-product-filter-layout__results .wc-block-grid__products,
	.bayrebooks-product-filter-layout__results .wc-block-product-template,
	.bayrebooks-product-filter-layout__results .wp-block-post-template {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1120px) {
	.bayrebooks-product-filter-layout__results ul.products,
	.bayrebooks-product-filter-layout__results .wc-block-grid__products,
	.bayrebooks-product-filter-layout__results .wc-block-product-template,
	.bayrebooks-product-filter-layout__results .wp-block-post-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 782px) {
	.bayrebooks-product-filter-layout {
		display: block;
		margin-top: 22px !important;
		min-height: 0;
		max-width: 100% !important;
		width: 100% !important;
	}

	.bayrebooks-product-filters {
		margin: 0 0 22px;
		position: static;
		width: 100%;
	}

	.bayrebooks-product-filter-layout__results ul.products,
	.bayrebooks-product-filter-layout__results .wc-block-grid__products,
	.bayrebooks-product-filter-layout__results .wc-block-product-template,
	.bayrebooks-product-filter-layout__results .wp-block-post-template {
		gap: 34px 18px !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.bayrebooks-product-filter-layout__results ul.products li.product img,
	.bayrebooks-product-filter-layout__results .wc-block-grid__product-image img,
	.bayrebooks-product-filter-layout__results .wp-block-post-featured-image img,
	.bayrebooks-product-filter-layout__results .wp-block-woocommerce-product-image img {
		max-height: 220px;
	}

	.bayrebooks-load-more {
		gap: 14px;
		margin-top: 34px;
	}

	.bayrebooks-load-more__summary {
		font-size: 14px;
	}

	.bayrebooks-load-more__button {
		min-height: 44px;
		min-width: 140px;
	}

	.bayrebooks-product-filters__toggle {
		align-items: center;
		background: var(--bayrebooks-filter-accent);
		border: 0;
		border-radius: 8px;
		color: #fff;
		cursor: pointer;
		display: flex;
		font: inherit;
		font-weight: 800;
		justify-content: space-between;
		min-height: 48px;
		padding: 12px 14px;
		width: 100%;
	}

	.bayrebooks-product-filters__count {
		align-items: center;
		background: #fff;
		border-radius: 999px;
		color: #111827;
		display: inline-flex;
		font-size: 12px;
		height: 22px;
		justify-content: center;
		min-width: 22px;
		padding: 0 6px;
	}

	.bayrebooks-product-filters__panel {
		display: none;
		padding: 16px;
	}

	.bayrebooks-product-filters.is-open .bayrebooks-product-filters__panel {
		display: block;
	}

	.bayrebooks-product-filters__head {
		margin-bottom: 16px;
	}
}

@media (max-width: 420px) {
	.bayrebooks-product-filter-layout__results ul.products,
	.bayrebooks-product-filter-layout__results .wc-block-grid__products,
	.bayrebooks-product-filter-layout__results .wc-block-product-template,
	.bayrebooks-product-filter-layout__results .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}
