/**
 * Tegral Category Grid - Styles
 */

.has-category-grid .woocommerce-products-header {
	margin-bottom: 0;
}

.category-grid-wrapper {
	background-color: #e0e0e0;
	padding: 20px 0;
	margin-bottom: 20px;
	width: 100%;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

.category-grid__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #333;
	color: #fff;
	padding: 12px 15px;
	box-sizing: border-box;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.category-grid__item:visited {
	color: #fff;
}

.category-grid__item:hover {
	background-color: #fc5c04;
	color: #fff;
}

.category-grid__item--active {
	background-color: #fc5c04;
}

.category-grid__label {
	flex: 1;
	line-height: 1.3;
}

.category-grid__arrow {
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	margin-left: 10px;
	flex-shrink: 0;
}

@media screen and (max-width: 1024px) {
	.category-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.category-grid__item {
		font-size: 13px;
		padding: 10px 12px;
	}
}

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