/* WireNova Product Catalog — hero, quick nav, filter bar.
   Neutral styling that inherits WoodMart's look where possible. */

:root {
	--wn-accent: var(--wd-primary-color, #83b735);
	--wn-border: #e5e5e5;
	--wn-muted: #777;
	--wn-radius: 6px;
}

/* ---------- Hero ---------- */
.wn-hero {
	background: #fafafa;
	border: 1px solid var(--wn-border);
	border-radius: var(--wn-radius);
	padding: 28px 24px;
	margin: 0 0 24px;
}
.wn-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wn-muted);
	margin-bottom: 8px;
}
.wn-hero__crumbs a {
	color: var(--wn-muted);
	text-decoration: none;
}
.wn-hero__crumbs a:hover {
	color: var(--wn-accent);
}
.wn-hero__sep {
	color: #bbb;
}
.wn-hero__title {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 10px;
}
.wn-hero__blurb {
	max-width: 760px;
	margin: 0 0 14px;
	color: var(--wn-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* ---------- Quick nav chips ---------- */
.wn-quicknav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wn-quicknav__chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--wn-border);
	border-radius: 40px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	line-height: 1.2;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.wn-quicknav__chip:hover,
.wn-quicknav__chip.is-active {
	border-color: var(--wn-accent);
	color: var(--wn-accent);
	background: rgba(131, 183, 53, 0.06);
}

/* ---------- Filter bar ---------- */
.wn-filterbar {
	margin: 0 0 20px;
	border: 1px solid var(--wn-border);
	border-radius: var(--wn-radius);
	background: #fff;
}
.wn-filterbar__toggle {
	display: none;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: none;
	border: 0;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	gap: 8px;
}
.wn-filterbar__count {
	background: var(--wn-accent);
	color: #fff;
	border-radius: 12px;
	min-width: 22px;
	height: 20px;
	line-height: 20px;
	font-size: 12px;
	padding: 0 6px;
}
.wn-filterbar__panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 4px 24px;
	padding: 16px;
}
.wn-filterbar__group {
	padding: 6px 0;
}
.wn-filterbar__grouplabel {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--wn-muted);
	margin-bottom: 8px;
}
.wn-filterbar__options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.wn-f-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--wn-border);
	border-radius: 40px;
	font-size: 13px;
	color: #444;
	text-decoration: none;
	line-height: 1.2;
}
.wn-f-link:hover {
	border-color: var(--wn-accent);
	color: var(--wn-accent);
}
.wn-f-link.is-active {
	background: var(--wn-accent);
	border-color: var(--wn-accent);
	color: #fff;
}
.wn-f-link.is-active .wn-f-count {
	color: rgba(255, 255, 255, 0.85);
}
.wn-f-count {
	color: #9a9a9a;
	font-size: 12px;
}
.wn-filterbar__price {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.wn-filterbar__price input {
	width: 84px;
	padding: 6px 8px;
	border: 1px solid var(--wn-border);
	border-radius: var(--wn-radius);
	font-size: 13px;
}
.wn-f-apply {
	padding: 6px 14px;
	border: 1px solid var(--wn-accent);
	background: var(--wn-accent);
	color: #fff;
	border-radius: var(--wn-radius);
	font-size: 13px;
	cursor: pointer;
}
.wn-f-clear {
	display: inline-block;
	margin: 10px 0 0;
	color: #b32d2e;
	font-size: 13px;
	font-weight: 600;
}

/* ---------- AJAX loading state ---------- */
.wn-results.is-loading {
	opacity: 0.45;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

/* ---------- Single product compatibility block ---------- */
.wn-compat {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--wn-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13.5px;
}
.wn-compat__label {
	font-weight: 600;
	color: var(--wn-muted);
}
.wn-compat a {
	text-decoration: none;
}
.wn-compat a:hover {
	color: var(--wn-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.wn-hero {
		padding: 20px 16px;
	}
	.wn-hero__title {
		font-size: 24px;
	}
	.wn-filterbar__panel {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	/* Off-canvas / bottom-sheet filters on mobile */
	.wn-filterbar__toggle {
		display: flex;
	}
	.wn-filterbar__panel {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 78vh;
		overflow-y: auto;
		background: #fff;
		z-index: 99999;
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
		padding: 18px 16px 28px;
		grid-template-columns: 1fr;
	}
	.wn-filterbar.is-open .wn-filterbar__panel {
		display: grid;
	}
	.wn-filterbar__toggle::after {
		content: "▾";
		font-size: 12px;
	}
	.wn-filterbar.is-open .wn-filterbar__toggle::after {
		content: "▴";
	}
	.wn-hero__title {
		font-size: 21px;
	}
	.wn-quicknav__chip {
		padding: 6px 11px;
		font-size: 12.5px;
	}
}
