/* Collections Hub Page */
.meowik-collections-hub {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.meowik-hub-group-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #222222;
}

.meowik-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.meowik-hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #222222;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 15px;
	background: #ffffff;
	transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.meowik-hub-card:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	color: #222222;
}

.meowik-hub-card-image {
	display: block;
	width: 100%;
	margin-bottom: 12px;
}

.meowik-hub-card-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.meowik-hub-card-title {
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.meowik-hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Collection Hero Banner */
.meowik-collection-hero {
	margin-bottom: 25px;
}

.meowik-collection-hero img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

/* Layout Structure */
.meowik-collection-layout {
	display: flex;
	gap: 30px;
	width: 100%;
	box-sizing: border-box;
	align-items: flex-start;
}

.meowik-collection-sidebar {
	flex: 0 0 25%;
	max-width: 25%;
	box-sizing: border-box;
	position: sticky;
	top: 20px;
}

.meowik-collection-main {
	flex: 0 0 75%;
	max-width: 75%;
	box-sizing: border-box;
	position: relative;
}

/* Sidebar Box Styling */
.meowik-filter-sidebar-wrapper {
	background: #ffffff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.meowik-sidebar-heading {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #222222;
	letter-spacing: 0.5px;
	color: #111111;
}

.meowik-filter-group {
	margin-bottom: 20px;
}

.meowik-filter-group:last-child {
	margin-bottom: 0;
}

.meowik-filter-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #444444;
}

/* Base Filter List */
.meowik-collection-layout ul.meowik-filter-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.meowik-collection-layout li.meowik-filter-item {
	list-style: none !important;
	margin-bottom: 8px;
}

.meowik-collection-layout li.meowik-filter-item:last-child {
	margin-bottom: 0;
}

.meowik-filter-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	color: #333333;
	user-select: none;
	width: 100%;
}

.meowik-filter-checkbox {
	cursor: pointer;
	width: 15px;
	height: 15px;
	margin: 0;
	flex-shrink: 0;
}

.meowik-filter-term-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	text-transform: capitalize;
}

.meowik-filter-term-count {
	color: #777777;
	font-size: 12px;
	white-space: nowrap;
	flex-shrink: 0;
}

.meowik-filter-list-wrapper {
	position: relative;
	transition: max-height 0.35s ease-in-out;
}

/* Hide Show More toggle on Desktop */
.meowik-filter-more-toggle {
	display: none;
}

/* Pagination */
.meowik-collection-pagination {
	margin: 30px 0;
	text-align: center;
	clear: both;
}

.meowik-collection-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid #ddd;
	text-decoration: none;
	color: #333;
	border-radius: 4px;
	background: #fff;
}

.meowik-collection-pagination .page-numbers.current {
	background-color: #222;
	color: #fff;
	border-color: #222;
}

.meowik-collection-pagination .page-numbers:hover {
	background-color: #f5f5f5;
	color: #111;
}

/* AJAX Loading State */
.meowik-collection-main.is-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease-in-out;
}

/* Mobile Responsive Layout (< 768px) */
@media (max-width: 767px) {
	.meowik-collection-layout {
		flex-direction: column;
		gap: 20px;
	}

	.meowik-collection-sidebar,
	.meowik-collection-main {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
		position: static;
	}

	.meowik-filter-sidebar-wrapper {
		padding: 15px;
	}

	/* Disable theme pseudo-elements in Grid */
	.meowik-collection-layout ul.meowik-filter-list::before,
	.meowik-collection-layout ul.meowik-filter-list::after {
		display: none !important;
		content: none !important;
	}

	/* Grid layout: 2 columns on small screens */
	.meowik-collection-layout ul.meowik-filter-list {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 12px;
	}

	.meowik-collection-layout li.meowik-filter-item {
		margin: 0 !important;
	}

	/* Mobile Collapsed State (~1 row height) */
	.meowik-filter-group.is-collapsible.is-collapsed .meowik-filter-list-wrapper {
		max-height: 38px;
		overflow: hidden;
	}

	/* Gradient fade out effect at bottom */
	.meowik-filter-group.is-collapsible.is-collapsed .meowik-filter-list-wrapper::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 45px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
		pointer-events: none;
	}

	/* Expanded State */
	.meowik-filter-group.is-collapsible.is-expanded .meowik-filter-list-wrapper {
		max-height: 2000px;
	}

	/* Show More / Show Less Button - Centered */
	.meowik-filter-more-toggle {
		display: block;
		width: 100%;
		text-align: center;
		background: none;
		border: none;
		padding: 10px 0 0 0;
		margin-top: 4px;
		color: #111111;
		font-size: 13px;
		font-weight: 700;
		text-decoration: underline;
		cursor: pointer;
	}
}

/* Grid layout: 3 columns on larger mobile / landscape screens (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
	.meowik-collection-layout ul.meowik-filter-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}