/* Osier Belle CRO: product filter bar + grid (refined / luxury). */

.ob-pf {
	--ob-line: #d9d0c5;
	--ob-ink: #2b2b2b;
	--ob-brown: #5c4a3a;
	--ob-muted: #8a8178;
	font-family: "Manrope", -apple-system, sans-serif;
}

/* ---- Filter bar ---- */
.ob-pf-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 26px 40px;
	padding: 22px 0 24px;
	margin-bottom: 30px;
	border-top: 1px solid var(--ob-line);
	border-bottom: 1px solid var(--ob-line);
}

.ob-pf-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--ob-muted);
	margin-bottom: 12px;
}

.ob-pf-price-readout {
	margin-left: 8px;
	color: var(--ob-brown);
	letter-spacing: 0.3px;
}

/* Category select */
.ob-pf-select {
	position: relative;
}
.ob-pf-select::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--ob-brown);
	border-bottom: 1.5px solid var(--ob-brown);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}
.ob-pf-input {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--ob-ink);
	background: #fff;
	border: 1px solid var(--ob-line);
	border-radius: 0;
	padding: 11px 38px 11px 14px;
	min-width: 200px;
	cursor: pointer;
}
.ob-pf-input:focus {
	outline: none;
	border-color: var(--ob-brown);
}

/* Material pills */
.ob-pf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ob-pf-pill {
	position: relative;
	cursor: pointer;
}
.ob-pf-pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ob-pf-pill span {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.2px;
	color: var(--ob-ink);
	padding: 9px 16px;
	border: 1px solid var(--ob-line);
	transition: all 0.18s ease;
}
.ob-pf-pill:hover span {
	border-color: var(--ob-brown);
}
.ob-pf-pill.is-active span {
	background: var(--ob-brown);
	border-color: var(--ob-brown);
	color: #fff;
}

/* Price dual-range slider */
.ob-pf-slider {
	position: relative;
	width: 240px;
	height: 26px;
}
.ob-pf-slider-track {
	position: absolute;
	top: 50%;
	left: 2px;
	right: 2px;
	height: 2px;
	transform: translateY(-50%);
	background: var(--ob-line);
}
.ob-pf-slider-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--ob-brown);
}
.ob-pf-range {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 26px;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}
.ob-pf-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--ob-brown);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}
.ob-pf-range::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--ob-brown);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}
.ob-pf-range::-webkit-slider-runnable-track {
	background: none;
	border: none;
}
.ob-pf-range::-moz-range-track {
	background: none;
	border: none;
}

.ob-pf-reset {
	margin-left: auto;
	align-self: center;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--ob-muted);
	cursor: pointer;
	padding: 6px 2px;
	border-bottom: 1px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.ob-pf-reset:hover {
	color: var(--ob-brown);
	border-bottom-color: var(--ob-brown);
}

/* ---- Results ---- */
.ob-pf-results {
	transition: opacity 0.25s ease;
}
.ob-pf.is-loading .ob-pf-results {
	opacity: 0.4;
	pointer-events: none;
}
.ob-pf-count {
	font-size: 12px;
	letter-spacing: 0.4px;
	color: var(--ob-muted);
	margin: 0 0 22px;
}

.ob-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 28px;
}
.ob-grid-card {
	display: block;
	color: var(--ob-ink);
	animation: ob-fade 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(var(--ob-row, 0) * 0.08s);
}
.ob-grid-card-image {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 14px;
	background: #f3efe9;
}
.ob-grid-card-media {
	display: block;
	width: 100%;
	height: 100%;
}
.ob-grid-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ob-grid-card:hover .ob-grid-card-image img {
	transform: scale(1.05);
}

/* Hover action overlay (Add to Cart / Get a Quote) */
.ob-grid-card-action {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	transform: translateY(101%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.ob-grid-card:hover .ob-grid-card-action,
.ob-grid-card:focus-within .ob-grid-card-action {
	transform: translateY(0);
	opacity: 1;
}
.ob-grid-btn {
	display: block;
	width: 100%;
	text-align: center;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	border-radius: 0;
	padding: 12px 10px;
	text-decoration: none;
	cursor: pointer;
	/* Match the site's charcoal action button; !important to beat WooCommerce .button styles. */
	color: #f5f5f5 !important;
	background-color: #565656 !important;
	border: 1px solid #232323 !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ob-grid-btn:hover,
.ob-grid-btn:focus {
	background-color: #232323 !important;
	color: #f5f5f5 !important;
}
.ob-grid-btn.added {
	background-color: #3f6b41 !important;
	border-color: #3f6b41 !important;
	color: #f5f5f5 !important;
}

.ob-grid-card-info {
	display: block;
	text-decoration: none;
	color: var(--ob-ink);
}
.ob-grid-card-title {
	display: block;
	font-family: "Baskervville", Georgia, serif;
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 5px;
}
.ob-grid-card-info:hover .ob-grid-card-title {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.ob-grid-card-price {
	display: block;
	font-size: 14px;
	color: var(--ob-muted);
}
.ob-grid-card-price del {
	opacity: 0.7;
	margin-right: 6px;
}
.ob-grid-card-price ins {
	text-decoration: none;
	color: var(--ob-brown);
}
.ob-grid-empty {
	grid-column: 1 / -1;
	font-family: "Baskervville", Georgia, serif;
	font-size: 18px;
	color: var(--ob-muted);
	text-align: center;
	padding: 40px 0;
}
.ob-pf-reset-inline {
	background: none;
	border: none;
	border-bottom: 1px solid var(--ob-brown);
	color: var(--ob-brown);
	font: inherit;
	cursor: pointer;
	padding: 0;
}

@keyframes ob-fade {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.ob-grid-card {
		animation: none;
	}
	.ob-grid-card-image img,
	.ob-grid-card-action {
		transition: none;
	}
}

/* Pagination */
.ob-pf-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}
.ob-pf-page {
	min-width: 40px;
	height: 40px;
	background: none;
	border: 1px solid var(--ob-line);
	font-family: inherit;
	font-size: 14px;
	color: var(--ob-ink);
	cursor: pointer;
	transition: all 0.18s ease;
}
.ob-pf-page:hover {
	border-color: var(--ob-brown);
}
.ob-pf-page.is-current {
	background: var(--ob-brown);
	border-color: var(--ob-brown);
	color: #fff;
}

@media (max-width: 1024px) {
	.ob-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.ob-pf-bar { gap: 20px 24px; }
	.ob-pf-field { flex: 1 1 100%; }
	.ob-pf-reset { margin-left: 0; }
	.ob-product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }

	/* Action buttons always visible on mobile (no hover) */
	.ob-grid-card-image { margin-bottom: 0; }
	.ob-grid-card-action {
		position: static;
		transform: none;
		opacity: 1;
		padding: 10px 0 0;
	}
	.ob-grid-card-info { margin-top: 12px; }
	.ob-grid-btn { padding: 11px 8px; letter-spacing: 0.4px; }
}
