/* Fan grid/list sections (categories + attribute terms). */
.fan-wrapper {
	position: relative;
	padding: 70px 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.fan-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
}

.fan-container {
	position: relative;
	width: 90%;
	max-width: 1350px;
	margin: 0 auto;
	background: #fff;
	padding: 40px 50px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.fan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 35px;
}

.fan-header h2 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
}

.fan-toggle-btn {
	border: 1px solid #999;
	background: #fff;
	color: #333;
	border-radius: 18px;
	padding: 6px 18px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.fan-toggle-btn:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.fan-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 25px;
}

.fan-card {
	display: block;
	text-decoration: none;
	color: #333;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #eee;
	transition: 0.3s ease;
}

.fan-card img {
	width: 100%;
	height: 165px;
	object-fit: cover;
}

.fan-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.fan-title {
	text-align: center;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
}

.fan-list-item {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #fff;
	padding: 18px;
	border-radius: 6px;
	border: 1px solid #eee;
	margin-bottom: 15px;
	text-decoration: none;
	color: #333;
	transition: 0.3s ease;
}

.fan-list-item img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
}

.fan-list-title {
	font-size: 18px;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.fan-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1024px) {
	.fan-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.fan-container {
		padding: 25px 20px;
	}

	.fan-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}

	.fan-header {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.fan-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
