.lpf-wrap {
	display: grid;
	grid-template-columns: var(--lpf-sw) 1fr;
	gap: var(--lpf-sg);
	align-items: start;
	font-family: inherit;
	color: #000;
	margin-top: var(--lpf-mo);
}

/* ===== Sidebar ===== */
.lpf-sidebar {
	margin-top: calc(var(--lpf-so) - var(--lpf-mo));
}
.lpf-sidebar-inner { width: 100%; }
.lpf-heading {
	font-size: 14px;
	color: #666;
	font-weight: 400;
	margin: 0 0 12px 0;
	padding: 0 0 12px 0;
	border-bottom: 1px solid var(--lpf-accent);
}

.lpf-mobile-toggle {
	display: none;
	width: 100%;
	padding: 10px 14px;
	background: transparent;
	border: 2px solid var(--lpf-accent);
	color: var(--lpf-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	margin-bottom: 12px;
}

/* Search */
.lpf-search { margin-bottom: 16px; }
.lpf-search-input {
	width: 100%;
	padding: 11px 16px 11px 42px;
	border: 2px solid var(--lpf-accent);
	border-radius: 999px;
	font-size: var(--lpf-side-fs);
	outline: none;
	box-shadow: none;
	background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 14px center / 16px 16px no-repeat;
	color: #000;
	font-family: inherit;
}

/* Clear button */
.lpf-clear-wrap { margin-bottom: 12px; }
.lpf-clear {
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	background: transparent;
	border: 2px solid var(--lpf-accent);
	color: var(--lpf-accent);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
}
.lpf-clear:hover {
	background: var(--lpf-accent);
	color: #fff;
}

/* Accordion */
.lpf-accordion { width: 100%; }
.lpf-section { border-bottom: 1px solid var(--lpf-accent); }
.lpf-section-header {
	background: none;
	border: none;
	font-size: var(--lpf-side-fs);
	text-align: left;
	padding: 14px 0;
	width: 100%;
	cursor: pointer;
	outline: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #000;
	font-family: inherit;
}
.lpf-arrow {
	display: inline-block;
	width: 8px; height: 8px;
	border-right: 1.5px solid #000;
	border-bottom: 1.5px solid #000;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	margin-bottom: 3px;
}
.lpf-section.is-open .lpf-arrow { transform: rotate(-135deg); margin-bottom: -3px; }
.lpf-section-body { display: none; padding: 6px 0 14px; }
.lpf-section.is-open .lpf-section-body { display: block; }

.lpf-options { list-style: none; margin: 0; padding: 0; }
.lpf-options li { margin: 6px 0; }
.lpf-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: calc(var(--lpf-side-fs) - 1px);
	color: #000;
}
.lpf-opt {
	-webkit-appearance: none;
	appearance: none;
	width: 16px; height: 16px;
	margin: 0; padding: 0;
	border: 1.5px solid var(--lpf-accent);
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	outline: none;
}
.lpf-opt:checked {
	background: var(--lpf-accent);
	border-color: var(--lpf-accent);
}
.lpf-opt:checked::after {
	content: "";
	position: absolute;
	left: 4px; top: 0;
	width: 5px; height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
.lpf-opt-count { color: #888; margin-left: 4px; }

/* ===== Grid ===== */
.lpf-main { min-width: 0; }
.lpf-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--lpf-cols-d), 1fr);
	gap: var(--lpf-gap);
}
.lpf-item { margin: 0; padding: 0; list-style: none; }
.lpf-item[hidden] { display: none !important; }

.lpf-card {
	position: relative;
	display: block;
	aspect-ratio: var(--lpf-aspect);
	width: 100%;
	overflow: hidden;
	text-decoration: none !important;
	color: #fff;
	background: var(--lpf-card-bg);
	border-radius: var(--lpf-radius);
}
.lpf-card-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: block;
	transition: transform 0.6s ease;
}
.lpf-card-img.is-zoom { transition: transform 0.6s ease; }
.lpf-card:hover .lpf-card-img.is-zoom { transform: scale(1.04); }
.lpf-card-img--empty { background: linear-gradient(135deg, #999, #555); }
.lpf-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,var(--lpf-overlay)) 0%, rgba(0,0,0,0) 45%);
	pointer-events: none;
	z-index: 1;
}
.lpf-card-text {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 10px;
	z-index: 2;
	display: block;
	line-height: 1.3;
}
.lpf-card-title {
	display: inline;
	font-size: var(--lpf-t-size);
	font-weight: var(--lpf-t-w);
	color: var(--lpf-t-c);
	letter-spacing: var(--lpf-t-ls);
	text-transform: var(--lpf-t-tt);
	text-decoration: underline transparent !important;
	text-underline-offset: 4px !important;
	text-decoration-thickness: 1px !important;
	transition: text-decoration-color 0.25s ease !important;
}
.lpf-wrap--hover-underline .lpf-card:hover .lpf-card-title {
	text-decoration-color: var(--lpf-t-uc) !important;
}
.lpf-card-subtitle {
	display: block;
	font-size: var(--lpf-sub-size);
	font-weight: var(--lpf-sub-w);
	color: var(--lpf-sub-c);
	opacity: var(--lpf-sub-o);
	margin-top: 4px;
}

.lpf-empty {
	padding: 40px 0;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* ===== Pagination ===== */
.lpf-pager { margin-top: 32px; }
.lpf-pager--load-more { text-align: center; }
.lpf-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	min-height: 56px;
	padding: 0 24px;
	background: var(--lpf-accent);
	color: #fff;
	border: 0;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.lpf-load-more:hover:not([disabled]) { opacity: 0.85; }
.lpf-load-more[disabled] {
	opacity: 0.5;
	cursor: default;
	background: transparent;
	color: var(--lpf-accent);
	border: 1px solid var(--lpf-accent);
}

.lpf-pager--pages {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.lpf-pager--pages button,
.lpf-pager--pages .lpf-page {
	background: transparent;
	border: 1px solid transparent;
	color: #000;
	font-family: inherit;
	font-size: 13px;
	padding: 8px 12px;
	min-width: 40px;
	cursor: pointer;
}
.lpf-pager--pages .lpf-page.is-current {
	background: var(--lpf-accent);
	color: #fff;
	border-color: var(--lpf-accent);
}
.lpf-pager--pages button[disabled] { opacity: 0.3; cursor: default; }
.lpf-pager--pages .lpf-page-gap { padding: 8px 4px; color: #888; }

/* Responsive */
@media (max-width: 900px) {
	.lpf-wrap {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.lpf-sidebar { margin-top: 0; }
	.lpf-mobile-toggle { display: block; }
	.lpf-sidebar-inner { display: none; }
	.lpf-sidebar.is-open .lpf-sidebar-inner { display: block; }
	.lpf-grid { grid-template-columns: repeat(var(--lpf-cols-t), 1fr); }
}
@media (max-width: 560px) {
	.lpf-grid { grid-template-columns: repeat(var(--lpf-cols-m), 1fr); }
}
