/**
 * ForgeHub Product Listings - Front-end Stylesheet
 * Native dark/light mode support, WCAG 2.1 AA compliant contrast (>= 4.5:1), fully responsive.
 */

:root {
	--wpfh-pl-bg: #0b0f17;
	--wpfh-pl-surface: #111827;
	--wpfh-pl-surface-hover: #1f2937;
	--wpfh-pl-border: rgba(255, 255, 255, 0.1);
	--wpfh-pl-border-focus: #38bdf8;
	--wpfh-pl-text: #f8fafc;
	--wpfh-pl-text-muted: #cbd5e1;
	--wpfh-pl-accent: #0369a1;
	--wpfh-pl-accent-hover: #075985;
	--wpfh-pl-free: #047857;
	--wpfh-pl-pro: #6d28d9;
	--wpfh-pl-radius: 12px;
	--wpfh-pl-radius-sm: 8px;
}

/* Base Wrapper */
.wpfh-pl-wrapper {
	width: 100%;
	max-width: var(--wpfh-pl-container-width, 1400px);
	margin: 2rem auto;
	font-family: inherit;
	color: var(--wpfh-pl-text);
	box-sizing: border-box;
}

.wpfh-pl-wrapper *,
.wpfh-pl-wrapper *::before,
.wpfh-pl-wrapper *::after {
	box-sizing: border-box;
}

/* Layout: Sidebar Grid */
.wpfh-pl-layout {
	display: grid;
	grid-template-columns: var(--wpfh-pl-sidebar-width, 280px) 1fr;
	gap: 2rem;
	align-items: start;
}

/* Sidebar Right Position */
.wpfh-pl-sidebar-right .wpfh-pl-layout {
	grid-template-columns: 1fr var(--wpfh-pl-sidebar-width, 280px);
}

.wpfh-pl-sidebar-right .wpfh-pl-sidebar {
	order: 2;
}

.wpfh-pl-sidebar-right .wpfh-pl-main {
	order: 1;
}

@media (max-width: 900px) {
	.wpfh-pl-layout,
	.wpfh-pl-sidebar-right .wpfh-pl-layout {
		grid-template-columns: 1fr;
	}
	.wpfh-pl-sidebar-right .wpfh-pl-sidebar {
		order: 1;
	}
	.wpfh-pl-sidebar-right .wpfh-pl-main {
		order: 2;
	}
}

/* Sidebar */
.wpfh-pl-sidebar-inner {
	background: var(--wpfh-pl-surface);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius);
	padding: 1.5rem;
	position: sticky;
	top: 2rem;
}

.wpfh-pl-sidebar-header {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wpfh-pl-text);
}

.wpfh-pl-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wpfh-pl-cat-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 0.85rem;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--wpfh-pl-radius-sm);
	color: var(--wpfh-pl-text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.wpfh-pl-cat-btn:hover {
	background: var(--wpfh-pl-surface-hover);
	color: var(--wpfh-pl-text);
}

.wpfh-pl-cat-btn.is-active {
	background: #0369a1;
	border-color: #0284c7;
	color: #ffffff;
	font-weight: 600;
}

.wpfh-pl-cat-badge {
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.wpfh-pl-cat-btn.is-active .wpfh-pl-cat-badge {
	background: #ffffff;
	color: #0369a1;
	font-weight: 700;
}

/* Sidebar Modular Widgets */
.wpfh-pl-widget {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.wpfh-pl-widget-title {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0 0 0.85rem 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wpfh-pl-text);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wpfh-pl-widget-title svg {
	color: #38bdf8;
	flex-shrink: 0;
}

/* Sidebar Search Widget */
.wpfh-pl-widget-search .wpfh-pl-search-wrap {
	width: 100%;
}

.wpfh-pl-widget-search .wpfh-pl-search-input {
	width: 100%;
	font-size: 0.875rem;
	padding: 0.6rem 2.2rem 0.6rem 2.2rem;
}

/* Recent Products Widget */
.wpfh-pl-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wpfh-pl-recent-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	padding: 0.4rem;
	border-radius: var(--wpfh-pl-radius-sm);
	transition: background 0.2s ease;
}

.wpfh-pl-recent-link:hover {
	background: var(--wpfh-pl-surface-hover);
}

.wpfh-pl-recent-thumb {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-recent-thumb-ph {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #38bdf8;
	flex-shrink: 0;
	border: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-recent-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.wpfh-pl-recent-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wpfh-pl-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.wpfh-pl-recent-price {
	font-size: 0.75rem;
	font-weight: 600;
	color: #38bdf8;
	margin-top: 2px;
}

/* Price Range Filter Widget */
.wpfh-pl-price-filter-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wpfh-pl-price-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 0.85rem;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--wpfh-pl-radius-sm);
	color: var(--wpfh-pl-text-muted);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.wpfh-pl-price-btn:hover {
	background: var(--wpfh-pl-surface-hover);
	color: var(--wpfh-pl-text);
}

.wpfh-pl-price-btn.is-active {
	background: #0369a1;
	border-color: #0284c7;
	color: #ffffff;
	font-weight: 600;
}

/* Category Boxes Section (Template C) */
.wpfh-pl-cat-boxes-section {
	margin-bottom: 2rem;
}

.wpfh-pl-cat-boxes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.wpfh-pl-cat-box {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: var(--wpfh-pl-surface);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius);
	padding: 1.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wpfh-pl-cat-box:hover {
	border-color: rgba(2, 132, 199, 0.5);
	transform: translateY(-2px);
	background: var(--wpfh-pl-surface-hover);
}

.wpfh-pl-cat-box.is-active {
	border-color: #0284c7;
	background: rgba(2, 132, 199, 0.12);
	box-shadow: 0 0 0 1px #0284c7;
}

.wpfh-pl-cat-box-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #38bdf8;
}

.wpfh-pl-cat-box.is-active .wpfh-pl-cat-box-icon {
	background: #0284c7;
	color: #ffffff;
}

.wpfh-pl-cat-box-content {
	flex: 1;
	min-width: 0;
}

.wpfh-pl-cat-box-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.wpfh-pl-cat-box-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	color: var(--wpfh-pl-text);
}

.wpfh-pl-cat-box-count {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wpfh-pl-text-muted);
}

.wpfh-pl-cat-box.is-active .wpfh-pl-cat-box-count {
	background: #0284c7;
	color: #ffffff;
}

.wpfh-pl-cat-box-desc {
	font-size: 0.8125rem;
	color: var(--wpfh-pl-text-muted);
	margin: 0;
	line-height: 1.4;
}

/* Toolbar */
.wpfh-pl-toolbar {
	background: var(--wpfh-pl-surface);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wpfh-pl-toolbar-primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/* Live Search */
.wpfh-pl-search-wrap {
	position: relative;
	flex: 1 1 260px;
	display: flex;
	align-items: center;
}

.wpfh-pl-search-icon {
	position: absolute;
	left: 0.85rem;
	color: var(--wpfh-pl-text-muted);
	pointer-events: none;
}

.wpfh-pl-search-input {
	width: 100%;
	padding: 0.65rem 2.2rem 0.65rem 2.5rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius-sm);
	color: var(--wpfh-pl-text);
	font-size: 0.9375rem;
	outline: none;
	transition: all 0.2s ease;
}

.wpfh-pl-search-input:focus {
	border-color: var(--wpfh-pl-border-focus);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.wpfh-pl-search-input::placeholder {
	color: #94a3b8;
}

.wpfh-pl-search-clear {
	position: absolute;
	right: 0.65rem;
	background: none;
	border: none;
	color: var(--wpfh-pl-text-muted);
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0 0.35rem;
	line-height: 1;
}

/* Edition Filter */
.wpfh-pl-edition-filter {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.05);
	padding: 0.25rem;
	border-radius: var(--wpfh-pl-radius-sm);
	border: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-edition-btn {
	background: transparent;
	border: none;
	padding: 0.45rem 0.95rem;
	border-radius: 6px;
	color: var(--wpfh-pl-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wpfh-pl-edition-btn:hover {
	color: var(--wpfh-pl-text);
}

.wpfh-pl-edition-btn.is-active {
	background: #0284c7;
	color: #ffffff;
}

/* Actions: Sort & View switch */
.wpfh-pl-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wpfh-pl-sort-select {
	padding: 0.55rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius-sm);
	color: var(--wpfh-pl-text);
	font-size: 0.875rem;
	outline: none;
	cursor: pointer;
}

.wpfh-pl-sort-select option {
	background: #1e293b;
	color: #f8fafc;
}

.wpfh-pl-view-toggle {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.05);
	padding: 0.25rem;
	border-radius: var(--wpfh-pl-radius-sm);
	border: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-view-btn {
	background: transparent;
	border: none;
	padding: 0.4rem 0.55rem;
	border-radius: 6px;
	color: var(--wpfh-pl-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.wpfh-pl-view-btn:hover {
	color: var(--wpfh-pl-text);
}

.wpfh-pl-view-btn.is-active {
	background: #0284c7;
	color: #ffffff;
}

/* Category Chips (Topbar Grid) */
.wpfh-pl-category-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wpfh-pl-border);
}

.wpfh-pl-chip {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	font-size: 0.8125rem;
	color: var(--wpfh-pl-text-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: all 0.2s ease;
}

.wpfh-pl-chip:hover {
	background: var(--wpfh-pl-surface-hover);
	color: var(--wpfh-pl-text);
	border-color: rgba(255, 255, 255, 0.2);
}

.wpfh-pl-chip.is-active {
	background: #0369a1;
	border-color: #0284c7;
	color: #ffffff;
	font-weight: 600;
}

.wpfh-pl-chip-count {
	opacity: 0.8;
	font-size: 0.75rem;
}

/* Status Bar */
.wpfh-pl-status-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8125rem;
	color: var(--wpfh-pl-text-muted);
	padding-top: 0.5rem;
}

.wpfh-pl-reset-filters {
	background: none;
	border: none;
	color: #38bdf8;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: 0.8125rem;
}

.wpfh-pl-reset-filters:hover {
	color: #7dd3fc;
}

/* Product Cards Container */
.wpfh-pl-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* View: Grid */
.wpfh-pl-items.wpfh-pl-view-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-auto {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (max-width: 1200px) {
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-4,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-3,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-4,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-2,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-3,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-4,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-5,
	.wpfh-pl-items.wpfh-pl-view-grid.wpfh-pl-cols-auto {
		grid-template-columns: 1fr;
	}
}

/* View: List */
.wpfh-pl-items.wpfh-pl-view-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Card Element */
.wpfh-pl-card {
	background: var(--wpfh-pl-surface);
	border: 1px solid var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wpfh-pl-card:hover {
	border-color: rgba(56, 189, 248, 0.4);
	transform: translateY(-3px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.wpfh-pl-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Horizontal Card Layout */
.wpfh-pl-card--horizontal .wpfh-pl-card-inner {
	flex-direction: row;
	align-items: stretch;
}

.wpfh-pl-card--horizontal .wpfh-pl-card-media {
	width: 36%;
	min-width: 140px;
	max-width: 220px;
	aspect-ratio: auto;
	flex-shrink: 0;
}

.wpfh-pl-card--horizontal .wpfh-pl-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpfh-pl-card--horizontal .wpfh-pl-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media (max-width: 680px) {
	.wpfh-pl-card--horizontal .wpfh-pl-card-inner {
		flex-direction: column;
	}
	.wpfh-pl-card--horizontal .wpfh-pl-card-media {
		width: 100%;
		max-width: 100%;
		aspect-ratio: 16 / 9;
	}
}

/* Compact Card Layout */
.wpfh-pl-card--compact .wpfh-pl-card-body {
	padding: 0.85rem 1rem;
}

.wpfh-pl-card--compact .wpfh-pl-card-title {
	width: 100%;
	font-size: 1rem;
	margin-bottom: 0.35rem;
}

.wpfh-pl-card--compact .wpfh-pl-card-excerpt {
	font-size: 0.8125rem;
	line-height: 1.4;
	margin-bottom: 0.65rem;
}

.wpfh-pl-card--compact .wpfh-pl-card-footer {
	padding-top: 0.5rem;
}

.wpfh-pl-card--compact .wpfh-pl-btn {
	padding: 0.4rem 0.75rem;
	font-size: 0.8125rem;
}

/* No Thumb & Inline Badge */
.wpfh-pl-card--no-thumb .wpfh-pl-card-body {
	padding-top: 1.25rem;
}

.wpfh-pl-badge-inline {
	margin-bottom: 0.5rem;
}

.wpfh-pl-badge-inline .wpfh-pl-badge {
	position: static;
	display: inline-block;
}

/* Card Media & Aspect Ratios */
.wpfh-pl-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
}

.wpfh-pl-ratio--16-9 .wpfh-pl-card-media {
	aspect-ratio: 16 / 9;
}

.wpfh-pl-ratio--21-9 .wpfh-pl-card-media {
	aspect-ratio: 21 / 9;
}

.wpfh-pl-ratio--4-3 .wpfh-pl-card-media {
	aspect-ratio: 4 / 3;
}

.wpfh-pl-ratio--1-1 .wpfh-pl-card-media {
	aspect-ratio: 1 / 1;
}

.wpfh-pl-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.wpfh-pl-card:hover .wpfh-pl-thumb {
	transform: scale(1.04);
}

.wpfh-pl-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
}

.wpfh-pl-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wpfh-pl-badge--pro {
	background: var(--wpfh-pl-pro);
	color: #ffffff;
}

.wpfh-pl-badge--free {
	background: var(--wpfh-pl-free);
	color: #ffffff;
}

.wpfh-pl-badge--all {
	background: var(--wpfh-pl-accent);
	color: #ffffff;
}

/* Card Body */
.wpfh-pl-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wpfh-pl-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

.wpfh-pl-tag {
	font-size: 0.75rem;
	font-weight: 600;
	color: #7dd3fc;
	background: #1e293b;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	border: 1px solid rgba(125, 211, 252, 0.2);
}

.wpfh-pl-card-title {
	width: 100%;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem 0;
}

.wpfh-pl-card-title a {
	color: var(--wpfh-pl-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wpfh-pl-card-title a:hover {
	color: #38bdf8;
}

.wpfh-pl-card-excerpt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wpfh-pl-text-muted);
	margin: 0 0 1rem 0;
	flex: 1;
}

.wpfh-pl-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid var(--wpfh-pl-border);
	margin-top: auto;
}

.wpfh-pl-price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wpfh-pl-text);
}

.wpfh-pl-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--wpfh-pl-accent);
	color: #ffffff !important;
	padding: 0.5rem 0.95rem;
	border-radius: var(--wpfh-pl-radius-sm);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.wpfh-pl-btn:hover {
	background: var(--wpfh-pl-accent-hover);
}

/* List View Customizations */
.wpfh-pl-view-list .wpfh-pl-card-inner {
	flex-direction: row;
}

.wpfh-pl-view-list .wpfh-pl-card-media {
	width: 240px;
	flex-shrink: 0;
	aspect-ratio: auto;
}

.wpfh-pl-view-list .wpfh-pl-card-body {
	flex: 1;
}

@media (max-width: 680px) {
	.wpfh-pl-view-list .wpfh-pl-card-inner {
		flex-direction: column;
	}
	.wpfh-pl-view-list .wpfh-pl-card-media {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

/* Empty State */
.wpfh-pl-empty-state {
	text-align: center;
	padding: 4rem 1.5rem;
	background: var(--wpfh-pl-surface);
	border: 1px dashed var(--wpfh-pl-border);
	border-radius: var(--wpfh-pl-radius);
	color: var(--wpfh-pl-text-muted);
}

.wpfh-pl-empty-state svg {
	color: #64748b;
	margin-bottom: 1rem;
}

.wpfh-pl-empty-state h4 {
	font-size: 1.25rem;
	color: var(--wpfh-pl-text);
	margin: 0 0 0.5rem 0;
}

.wpfh-pl-empty-state p {
	font-size: 0.9375rem;
	margin: 0;
}

/* Align the page title (theme post-title block) with the listing container. */
body:has(.wpfh-pl-wrapper) main > .wp-block-group:first-child > .wp-block-post-title {
	max-width: calc(var(--wpfh-pl-container-width, 1400px) + 48px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
	text-align: left;
}
