/* Liteway Product Finder — frontend styles */

.lpf-shop-finder-wrapper {
	margin-bottom: 32px;
}

.lpf-filter-bar {
	background: #f7f8fa;
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.lpf-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.lpf-filter-row:last-child {
	margin-bottom: 0;
}

.lpf-field-wrap {
	flex: 1 1 200px;
	min-width: 180px;
}

.lpf-field-wrap label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	font-weight: 600;
	color: #2b2f33;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lpf-slider-values {
	font-weight: 400;
	font-size: 12px;
	color: #6b7280;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.lpf-select {
	width: 100%;
	min-height: 38px;
	padding: 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
}

.lpf-select[multiple] {
	height: auto;
}

.lpf-slider-wrap {
	padding-top: 4px;
	padding-bottom: 10px;
}

.lpf-slider {
	margin-top: 10px;
}

/* noUiSlider theming */
.lpf-slider .noUi-connect {
	background: #1f6f54;
}

.lpf-slider .noUi-handle {
	border-radius: 50%;
	width: 18px;
	height: 18px;
	right: -9px;
	top: -5px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
	border: 1px solid #1f6f54;
}

.lpf-slider .noUi-handle:before,
.lpf-slider .noUi-handle:after {
	display: none;
}

.lpf-slider.noUi-target {
	background: #e1e4e8;
	border: none;
	box-shadow: none;
	height: 6px;
}

.lpf-filter-row.lpf-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 0;
}

.lpf-reset-btn {
	background: #1f6f54;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lpf-reset-btn:hover {
	background: #165a44;
}

.lpf-result-count {
	font-size: 14px;
	color: #4b5563;
	font-weight: 500;
}

/* Results grid */
.lpf-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.lpf-product-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lpf-product-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.lpf-card-image {
	display: block;
	background: #f3f4f6;
}

.lpf-card-image img {
	width: 100%;
	height: auto;
	display: block;
}

.lpf-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.lpf-card-title {
	font-size: 15px;
	margin: 0 0 10px;
	line-height: 1.3;
}

.lpf-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.lpf-card-specs {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	color: #4b5563;
	flex-grow: 1;
}

.lpf-card-specs li {
	margin-bottom: 4px;
}

.lpf-card-specs strong {
	color: #1a1a1a;
}

.lpf-card-link {
	margin-top: auto;
	display: inline-block;
	text-align: center;
	background: #1f6f54;
	color: #fff;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.lpf-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
	font-size: 15px;
}

.lpf-loading {
	text-align: center;
	padding: 20px;
	color: #6b7280;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.lpf-filter-row {
		flex-direction: column;
		gap: 14px;
	}

	.lpf-field-wrap {
		min-width: 100%;
	}

	.lpf-filter-row.lpf-actions {
		flex-direction: row;
	}

	.lpf-results-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.lpf-filter-bar {
		padding: 14px;
	}

	.lpf-results-grid {
		grid-template-columns: 1fr 1fr;
	}
}
