.tmk-category-grid-wrapper {
	width: 100%;
	margin: 20px 0;
}

.tmk-category-grid {
	display: grid;
	grid-template-columns: repeat(var(--columns, 4), 1fr);
	gap: 25px;
	width: 100%;
}

@media (max-width: 1024px) {
	.tmk-category-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.tmk-category-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.tmk-category-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
	}
}

.tmk-category-card {
	background: white;
	border: 2px solid #f0f0f0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tmk-category-card:hover {
	border-color: #ea9066;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
	transform: translateY(-5px);
}

.tmk-category-image {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #667eea15, #764ba215);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-size: 3em;
}

.tmk-category-image-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tmk-category-card:hover .tmk-category-image-img {
	transform: scale(1.1);
}

.tmk-category-image-emoji {
	font-size: 3em;
	display: block;
}

.tmk-category-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.tmk-category-name {
	font-size: 1.2em;
	font-weight: 600;
	margin: 0 0 8px 0;
}

.tmk-category-name a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.tmk-category-name a:hover {
	color: #f8f3ec;
}

.tmk-category-description {
	font-size: 0.9em;
	color: #666;
	margin: 0 0 15px 0;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tmk-category-count {
	font-size: 0.85em;
	color: #999;
	margin: 0 0 15px 0;
}

.tmk-category-link {
	display: inline-block;
	padding: 10px 16px;
	background: rgb(231, 76, 37);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: opacity 0.3s ease;
	text-align: center;
}

.tmk-category-link:hover {
	opacity: 0.9;
}

.tmk-category-grid-empty {
	padding: 40px;
	text-align: center;
	color: #999;
	font-size: 1.1em;
}
