/**
 * WooCommerce Filter Addon — shop layout + filter styles.
 */

/* ------------------------------------------------------------------
   Shared tokens / form controls
------------------------------------------------------------------ */
.wfa-filter-wrap,
.wfa-shop {
	--wfa-bg: #f6f7f8;
	--wfa-surface: #ffffff;
	--wfa-border: #e5e7eb;
	--wfa-text: #111827;
	--wfa-muted: #6b7280;
	--wfa-accent: #ff4c00;
	--wfa-accent-contrast: #ffffff;
	--wfa-accent-soft: rgba(255, 76, 0, 0.1);
	--wfa-radius: 6px;
	--wfa-gap: 1rem;
	--wfa-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	color: var(--wfa-text);
}

.wfa-filter-wrap {
	background: var(--wfa-bg);
	border: 1px solid var(--wfa-border);
	border-radius: var(--wfa-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.wfa-filter__title,
.wfa-shop__heading {
	margin: 0 0 0.45rem;
	font-size: clamp(1.75rem, 2.5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	color: #111827;
	letter-spacing: -0.03em;
}

.wfa-shop__heading {
	position: relative;
	display: inline-block;
	padding-bottom: 0.55rem;
}

.wfa-shop__heading::after {
	content: '';
	display: block;
	width: 3.25rem;
	height: 3px;
	margin: 0.65rem auto 0;
	border-radius: 999px;
	background: #ff4c00;
}

.wfa-filter__field {
	margin-bottom: var(--wfa-gap);
}

.wfa-filter__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wfa-muted);
}

.wfa-filter__input,
.wfa-filter__select,
.wfa-shop .woocommerce-ordering select {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--wfa-border);
	border-radius: var(--wfa-radius);
	background: var(--wfa-surface);
	color: var(--wfa-text);
	font-size: 0.9375rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wfa-filter__input:focus,
.wfa-filter__select:focus,
.wfa-shop .woocommerce-ordering select:focus {
	outline: none;
	border-color: var(--wfa-accent);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.wfa-filter__hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: var(--wfa-muted);
	line-height: 1.4;
}

.wfa-filter__actions,
.wfa-shop__top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wfa-filter__submit,
.wfa-filter__reset {
	flex: 1 1 auto;
	min-width: 6.5rem;
	cursor: pointer;
	padding: 0.7rem 1rem;
	border-radius: var(--wfa-radius);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wfa-filter__submit,
.wfa-shop .wfa-filter__submit,
.wfa-shop button.wfa-filter__submit,
.wfa-shop .wfa-shop__search-btn.button {
	background: #ff4c00 !important;
	border: 1px solid #ff4c00 !important;
	color: #ffffff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

.wfa-filter__submit:hover,
.wfa-filter__submit:focus,
.wfa-shop .wfa-filter__submit:hover,
.wfa-shop .wfa-filter__submit:focus,
.wfa-shop .wfa-shop__search-btn.button:hover,
.wfa-shop .wfa-shop__search-btn.button:focus {
	opacity: 1;
	background: #e64500 !important;
	border-color: #e64500 !important;
	color: #ffffff !important;
}

.wfa-filter__reset,
.wfa-shop .wfa-filter__reset,
.wfa-shop .wfa-shop__reset-btn.button {
	background: #ffffff !important;
	border: 1px solid var(--wfa-border) !important;
	color: #111827 !important;
	text-shadow: none !important;
}

.wfa-filter__reset:hover,
.wfa-filter__reset:focus,
.wfa-shop .wfa-shop__reset-btn.button:hover,
.wfa-shop .wfa-shop__reset-btn.button:focus {
	border-color: #ff4c00 !important;
	color: #ff4c00 !important;
	background: #fff !important;
}

.wfa-filter__status {
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.65rem;
	border-radius: var(--wfa-radius);
	background: #eef6ff;
	font-size: 0.8125rem;
	color: #1a5276;
}

.wfa-filter__status.is-error {
	background: #fdecea;
	color: #922b21;
}

.wfa-filter__loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	color: var(--wfa-muted);
}

.wfa-filter__spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid var(--wfa-border);
	border-top-color: var(--wfa-accent);
	border-radius: 50%;
	animation: wfa-spin 0.7s linear infinite;
}

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

/* ------------------------------------------------------------------
   Full shop layout
------------------------------------------------------------------ */
.wfa-shop {
	margin: 0 0 2rem;
}

.wfa-shop__form {
	margin: 0;
}

.wfa-shop__top {
	background: linear-gradient(180deg, #fff7f2 0%, #ffffff 70%);
	border: 1px solid #ffd7c4;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(255, 76, 0, 0.08);
	padding: 1.35rem 1.35rem 1.45rem;
	margin: 1.5rem 0;
}

.wfa-shop__top--hero {
	padding: 1.6rem 1.5rem 1.7rem;
}

.wfa-shop__top-intro {
	margin-bottom: 1.15rem;
	text-align: center;
}

.wfa-shop__subheading {
	margin: 0.35rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wfa-muted);
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

.wfa-shop__top-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	align-items: end;
}

.wfa-shop__top-search-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	align-items: stretch;
}

.wfa-shop__top-search {
	position: relative;
}

.wfa-shop__search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #ff4c00 !important;
	display: flex;
	pointer-events: none;
	z-index: 2;
}

.wfa-shop__search-icon svg,
.wfa-shop__search-icon svg * {
	display: block;
	stroke: #ff4c00 !important;
	color: #ff4c00 !important;
	fill: none !important;
}

.wfa-shop__keyword {
	padding-left: 3rem !important;
	min-height: 58px !important;
	font-size: 1.05rem !important;
	border-width: 2px !important;
	border-color: #ffc4a8 !important;
	border-radius: 10px !important;
	box-shadow: 0 2px 0 rgba(255, 76, 0, 0.04);
}

.wfa-shop__keyword:focus {
	border-color: #ff4c00 !important;
	box-shadow: 0 0 0 4px rgba(255, 76, 0, 0.15) !important;
}

.wfa-shop__top-actions {
	display: flex;
	gap: 0.65rem;
}

.wfa-shop__top-actions .wfa-filter__submit,
.wfa-shop__top-actions .wfa-filter__reset {
	min-height: 58px;
	min-width: 7.5rem;
	flex: 1 1 auto;
	font-size: 0.95rem;
	border-radius: 10px;
}

.wfa-shop__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: start;
}

.wfa-shop__sidebar {
	background: var(--wfa-surface);
	border: 1px solid var(--wfa-border);
	border-radius: var(--wfa-radius);
	box-shadow: var(--wfa-shadow);
}

.wfa-shop__sidebar-inner {
	padding: 1rem 1.1rem 1.25rem;
}

.wfa-shop__sidebar-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.wfa-shop__sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.wfa-shop__sidebar-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.wfa-shop__drawer-close {
	display: none;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.wfa-shop__mobile-bar {
	display: none;
	margin-bottom: 0.75rem;
}

.wfa-shop__filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.15rem;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.wfa-shop__filter-toggle-icon {
	display: inline-flex;
	color: #111827;
}

.wfa-shop__drawer-backdrop {
	display: none;
}

.wfa-shop__drawer-footer {
	display: none;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wfa-border);
}

.wfa-shop__apply-filters {
	width: 100%;
	min-height: 48px;
	background: #ff4c00 !important;
	border-color: #ff4c00 !important;
	color: #fff !important;
	font-weight: 700;
}

.wfa-shop__clear-filters {
	border: 0;
	background: transparent;
	color: var(--wfa-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.wfa-shop__clear-filters:hover,
.wfa-shop__clear-filters:focus {
	color: #e64500;
}

.wfa-shop__facet + .wfa-shop__facet {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--wfa-border);
}

.wfa-shop__facet-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.wfa-shop__facet-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #111827;
}

.wfa-shop__facet-chevron {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex: 0 0 auto;
}

.wfa-shop__facet.is-open .wfa-shop__facet-chevron {
	transform: rotate(-135deg);
}

.wfa-shop__facet-body {
	display: none;
	padding-bottom: 0.55rem;
}

.wfa-shop__facet.is-open .wfa-shop__facet-body {
	display: block;
}

.wfa-shop__facet-list,
.wfa-shop__check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	max-height: 240px;
	overflow: auto;
}

.wfa-shop__check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.4rem 0.35rem;
	border-radius: var(--wfa-radius);
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--wfa-text);
}

.wfa-shop__check:hover {
	background: var(--wfa-bg);
}

.wfa-shop__check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--wfa-accent);
	cursor: pointer;
}

.wfa-shop__check span {
	flex: 1 1 auto;
}

.wfa-shop__facet-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.55rem 0.7rem;
	border: 1px solid transparent;
	border-radius: var(--wfa-radius);
	background: transparent;
	color: var(--wfa-text);
	font-size: 0.9rem;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wfa-shop__facet-btn:hover,
.wfa-shop__facet-btn:focus {
	background: var(--wfa-bg);
	border-color: var(--wfa-border);
}

.wfa-shop__facet-btn.is-active {
	background: #ff4c00;
	border-color: #ff4c00;
	color: #fff;
	font-weight: 600;
}

.wfa-shop__main {
	min-width: 0;
}

.wfa-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.65rem 0.85rem;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.wfa-shop__toolbar-left,
.wfa-shop__toolbar-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.wfa-shop__view-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.wfa-shop__view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	padding: 0;
}

.wfa-shop__view-btn svg {
	fill: currentColor;
}

.wfa-shop__view-btn.is-active,
.wfa-shop__view-btn[aria-pressed="true"] {
	background: #ff4c00;
	border-color: #ff4c00;
	color: #fff;
}

.wfa-shop__toolbar .woocommerce-result-count,
.wfa-shop__count-root .woocommerce-result-count {
	margin: 0;
	float: none;
	font-size: 0.875rem;
	color: #6b7280;
}

.wfa-shop__toolbar .woocommerce-ordering {
	margin: 0;
	float: none;
}

.wfa-shop__toolbar .woocommerce-ordering select {
	min-width: 200px;
	width: auto;
}

/* Custom sorting dropdown */
.wfa-sort {
	position: relative;
	min-width: 190px;
}

.wfa-sort__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 40px;
	padding: 0.45rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #111827;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

.wfa-sort__chevron {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	margin-top: -2px;
}

.wfa-sort.is-open .wfa-sort__chevron {
	transform: rotate(-135deg);
	margin-top: 2px;
}

.wfa-sort__panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 40;
	min-width: 240px;
	padding: 0.45rem 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
}

.wfa-sort__option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.85rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: #111827;
}

.wfa-sort__option:hover {
	background: #f9fafb;
}

.wfa-sort__option input {
	accent-color: #ff4c00;
	margin: 0;
}

/* WooCommerce product grid inside our results root */
.wfa-shop__products-root {
	min-height: 120px;
	position: relative;
}

.wfa-shop.is-loading .wfa-shop__products-root {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.wfa-shop .products,
.wfa-shop .wfa-products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem;
	margin: 0 !important;
	padding: 0;
	list-style: none;
	width: 100% !important;
}

.wfa-shop .products::before,
.wfa-shop .products::after,
.wfa-shop .wfa-products::before,
.wfa-shop .wfa-products::after {
	display: none !important;
	content: none !important;
}

/* ------------------------------------------------------------------
   Custom filter product card
------------------------------------------------------------------ */
.wfa-card {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	list-style: none;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.wfa-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wfa-card:hover .wfa-card__inner {
	border-color: rgba(255, 76, 0, 0.35);
	box-shadow: 0 12px 28px rgba(255, 76, 0, 0.12);
	transform: translateY(-3px);
}

.wfa-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3f4f6;
}

.wfa-card__image,
.wfa-card__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0 !important;
	transition: transform 0.35s ease;
}

.wfa-card:hover .wfa-card__image,
.wfa-card:hover .wfa-card__media img {
	transform: scale(1.04);
}

.wfa-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0.95rem 1rem 1.1rem;
	gap: 0.45rem;
}

.wfa-card__category {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
}

.wfa-card__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.wfa-card__title a {
	color: #111827;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wfa-card__title a:hover {
	color: #ff4c00;
}

.wfa-card__oem {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.3rem 0.35rem 0.3rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 76, 0, 0.1);
	border: 1px solid rgba(255, 76, 0, 0.22);
}

.wfa-card__oem-label {
	flex: 0 0 auto;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ff4c00;
}

.wfa-card__oem-value {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wfa-card__oem-copy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #ff4c00;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wfa-card__oem-copy:hover,
.wfa-card__oem-copy:focus {
	background: #ff4c00;
	color: #fff;
	outline: none;
}

.wfa-card__oem-copy.is-copied {
	background: #16a34a;
	color: #fff;
	transform: scale(1.05);
}

.wfa-shop__pagination-root {
	margin-top: 1.5rem;
}

.wfa-shop .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wfa-shop .woocommerce-pagination li {
	margin: 0;
}

.wfa-shop .woocommerce-pagination a,
.wfa-shop .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	border: 1px solid var(--wfa-border);
	border-radius: var(--wfa-radius);
	background: var(--wfa-surface);
	color: var(--wfa-text);
	text-decoration: none;
	font-size: 0.875rem;
}

.wfa-shop .woocommerce-pagination .current,
.wfa-shop .woocommerce-pagination a:hover {
	background: var(--wfa-accent);
	border-color: var(--wfa-accent);
	color: var(--wfa-accent-contrast);
}

.wfa-no-results {
	margin: 1rem 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* View modes */
.wfa-shop.wfa-view-grid-large .products,
.wfa-shop.wfa-view-grid-large .wfa-products {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.wfa-shop.wfa-view-list .products,
.wfa-shop.wfa-view-list .wfa-products {
	grid-template-columns: 1fr !important;
	gap: 0.85rem !important;
}

.wfa-shop.wfa-view-list .wfa-card__inner {
	flex-direction: row;
	align-items: stretch;
}

.wfa-shop.wfa-view-list .wfa-card__media {
	flex: 0 0 140px;
	width: 140px;
	max-width: 140px;
	aspect-ratio: 1 / 1;
}

.wfa-shop.wfa-view-list .wfa-card__body {
	justify-content: center;
	padding: 0.85rem 1rem;
}

.wfa-shop.wfa-view-list .wfa-card:hover .wfa-card__inner {
	transform: none;
}

/* Mobile: sliding filter drawer */
@media (max-width: 781px) {
	.wfa-shop__mobile-bar {
		display: block;
	}

	.wfa-shop__drawer-close,
	.wfa-shop__drawer-footer {
		display: block;
	}

	.wfa-shop__body,
	.wfa-shop__body--filters-left {
		grid-template-columns: 1fr;
	}

	.wfa-shop__sidebar {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100050;
		width: min(88vw, 360px);
		height: 100vh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
		border: 0;
		border-right: 1px solid #e5e7eb;
		box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
		transform: translateX(-105%);
		transition: transform 0.28s ease;
		overflow: auto;
		background: #fff;
	}

	.wfa-shop.is-filter-open .wfa-shop__sidebar {
		transform: translateX(0);
	}

	.wfa-shop__drawer-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100040;
		border: 0;
		padding: 0;
		margin: 0;
		background: rgba(17, 24, 39, 0.45);
		cursor: pointer;
	}

	.wfa-shop__drawer-backdrop[hidden] {
		display: none !important;
	}

	body.wfa-filter-drawer-open {
		overflow: hidden;
	}

	.wfa-shop__toolbar {
		gap: 0.65rem;
	}

	.wfa-shop__toolbar-left,
	.wfa-shop__toolbar-right {
		width: 100%;
		justify-content: space-between;
	}

	.wfa-shop__count-root {
		flex: 1 1 auto;
	}

	.wfa-sort {
		width: 100%;
	}

	.wfa-shop.wfa-view-list .wfa-card__media {
		flex-basis: 110px;
		width: 110px;
		max-width: 110px;
	}
}

/* Desktop: filters left + products right; prominent search on top */
@media (min-width: 782px) {
	.wfa-shop__mobile-bar,
	.wfa-shop__drawer-backdrop,
	.wfa-shop__drawer-close,
	.wfa-shop__drawer-footer {
		display: none !important;
	}

	.wfa-shop__top-intro {
		text-align: center;
	}

	.wfa-shop__heading::after {
		margin-left: auto;
		margin-right: auto;
	}

	.wfa-shop__top-search-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.wfa-shop__top-actions {
		flex-wrap: nowrap;
	}

	.wfa-shop__top-actions .wfa-filter__submit,
	.wfa-shop__top-actions .wfa-filter__reset {
		flex: 0 0 auto;
		min-width: 8rem;
	}

	.wfa-shop__body,
	.wfa-shop__body--filters-left {
		grid-template-columns: 280px minmax(0, 1fr);
	}

	.wfa-shop__sidebar {
		position: sticky;
		top: 1rem;
		order: 0;
		transform: none !important;
	}

	.wfa-shop__main {
		order: 0;
	}

	.wfa-shop .products,
	.wfa-shop .wfa-products,
	.wfa-shop.wfa-view-grid .products,
	.wfa-shop.wfa-view-grid .wfa-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wfa-shop.wfa-view-grid-large .products,
	.wfa-shop.wfa-view-grid-large .wfa-products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.wfa-shop.columns-2 .products,
	.wfa-shop .products.columns-2,
	.wfa-shop .wfa-products.columns-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wfa-shop.columns-4 .products,
	.wfa-shop .products.columns-4,
	.wfa-shop .wfa-products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.wfa-shop__body,
	.wfa-shop__body--filters-left {
		grid-template-columns: 300px minmax(0, 1fr);
	}

	.wfa-shop__heading {
		font-size: 2.5rem;
	}
}

/* Hide theme/page title on catalogue pages that use [wfa_shop] */
body.wfa-shop-page .entry-header,
body.wfa-shop-page .page-header,
body.wfa-shop-page h1.entry-title,
body.wfa-shop-page .entry-title,
body.wfa-shop-page .page-title,
body.wfa-shop-page .woocommerce-products-header,
body.wfa-shop-page .woocommerce-products-header__title,
body.wfa-shop-page .rbb-page-title,
body.wfa-shop-page .page-title-bar,
body.wfa-shop-page .breadcrumb-wrapper + .entry-header {
	display: none !important;
}

/* Fallback dim for themes without :has() support already covered via .wfa-shop.is-loading */
body:has(.wfa-filter.is-loading):not(:has(.wfa-shop)) ul.products {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ------------------------------------------------------------------
   OEM badge — above product title
------------------------------------------------------------------ */
.wfa-oem {
	--wfa-oem-accent: #ff4c00;
	--wfa-oem-accent-soft: rgba(255, 76, 0, 0.12);
	--wfa-oem-text: #111827;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	margin: 0 0 0.75rem;
	padding: 0.35rem 0.35rem 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--wfa-oem-accent-soft);
	border: 1px solid rgba(249, 115, 22, 0.28);
	line-height: 1.2;
	vertical-align: middle;
}

.wfa-oem__label {
	flex: 0 0 auto;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wfa-oem-accent);
}

.wfa-oem__value {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: var(--wfa-oem-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wfa-oem__copy {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--wfa-oem-accent);
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wfa-oem__copy:hover,
.wfa-oem__copy:focus {
	background: var(--wfa-oem-accent);
	color: #fff;
	outline: none;
}

.wfa-oem__copy.is-copied {
	background: #16a34a;
	color: #fff;
	transform: scale(1.05);
}

.wfa-oem--single {
	margin-bottom: 0.85rem;
}

.summary .wfa-oem--single,
.entry-summary .wfa-oem--single,
.product-summary .wfa-oem--single {
	margin-top: 0;
}

.wfa-oem--loop {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	z-index: 3;
	margin: 0;
	padding: 0.25rem 0.55rem;
	max-width: calc(100% - 1.3rem);
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wfa-oem--loop .wfa-oem__label {
	font-size: 0.625rem;
}

.wfa-oem--loop .wfa-oem__value {
	font-size: 0.75rem;
}

/* Shop card — replaces category line above product title */
.wfa-oem--card {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	margin: 0 0 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	max-width: 100%;
}

.wfa-oem--card .wfa-oem__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--wfa-oem-accent, #ff4c00);
}

.wfa-oem--card .wfa-oem__value {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ensure loop product can position the badge */
ul.products li.product {
	position: relative;
}

.wfa-shop .products li.product {
	position: relative;
}

/* ------------------------------------------------------------------
   Single product: meta under excerpt; aligned action buttons
------------------------------------------------------------------ */
.single-product .summary .product_meta,
.single-product .entry-summary .product_meta,
.single-product .product-summary .product_meta {
	margin-top: 1rem !important;
	margin-bottom: 1.15rem !important;
	padding-top: 1rem !important;
	border-top: 1px solid #e5e7eb;
}

.single-product .summary .product_meta:empty,
.single-product .entry-summary .product_meta:empty {
	display: none;
}

.single-product .summary form.cart,
.single-product .entry-summary form.cart,
.single-product .product-summary form.cart {
	margin-top: 0.35rem;
	margin-bottom: 0.85rem;
}

.single-product .wfa-product-actions {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0.85rem 0 1rem;
	width: 100%;
}

.single-product .wfa-product-actions .woosc-btn,
.single-product .wfa-product-actions #enquiry,
.single-product .wfa-product-actions #enquiry .button,
.single-product .wfa-product-actions #enquiry input.button,
.single-product .wfa-product-actions #enquiry input.contact,
.single-product .wfa-product-actions #enquiry a.contact,
.single-product .wfa-product-actions .woosw-btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 1.25rem !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	border-radius: 999px !important;
	vertical-align: middle !important;
	float: none !important;
	text-shadow: none !important;
}

.single-product .wfa-product-actions #enquiry {
	padding: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	background: transparent !important;
	border: 0 !important;
}

.single-product .wfa-product-actions #enquiry .button,
.single-product .wfa-product-actions #enquiry input.button,
.single-product .wfa-product-actions #enquiry input.contact,
.single-product .wfa-product-actions #enquiry a.contact {
	width: auto !important;
}

.single-product .wfa-product-actions .woosw-btn {
	width: 48px !important;
	min-width: 48px !important;
	padding: 0 !important;
}

.single-product .wfa-product-actions .woosc-btn .woosc-btn-icon,
.single-product .wfa-product-actions .woosc-btn i,
.single-product .wfa-product-actions .woosw-btn i,
.single-product .wfa-product-actions .woosw-btn .woosw-btn-icon {
	font-size: 1rem !important;
	line-height: 1 !important;
	margin: 0 0.35rem 0 0 !important;
}

.single-product .wfa-product-actions .woosw-btn i,
.single-product .wfa-product-actions .woosw-btn .woosw-btn-icon {
	margin: 0 !important;
}

/* Hide native WooCommerce shop/archive grids; only [wfa_shop] lists products. */
body.wfa-hide-native-shop ul.products:not(.wfa-products),
body.woocommerce-shop ul.products:not(.wfa-products),
body.tax-product_cat ul.products:not(.wfa-products),
body.tax-product_tag ul.products:not(.wfa-products),
body.post-type-archive-product ul.products:not(.wfa-products) {
	display: none !important;
}

body.wfa-hide-native-shop .woocommerce-result-count,
body.wfa-hide-native-shop .woocommerce-ordering,
body.wfa-hide-native-shop .woocommerce-pagination,
body.wfa-hide-native-shop .woocommerce-info {
	display: none !important;
}

body.wfa-hide-native-shop .wfa-shop .woocommerce-result-count,
body.wfa-hide-native-shop .wfa-shop .woocommerce-ordering,
body.wfa-hide-native-shop .wfa-shop .woocommerce-pagination,
body.wfa-hide-native-shop .wfa-shop .woocommerce-info,
body.wfa-hide-native-shop .wfa-shop ul.products {
	display: revert !important;
}

body.wfa-hide-native-shop .wfa-shop .wfa-products,
body.wfa-hide-native-shop .wfa-shop ul.products.wfa-products {
	display: grid !important;
}

