/* =========================================================
   Categories Page
========================================================= */

.ws-categories-page {
	padding: 45px 0 80px;
}


/* =========================================================
   Header
========================================================= */

.ws-categories-page-header {
	margin-bottom: 40px;
	text-align: center;
}

.ws-categories-page-header h1 {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 700;
	color: var(--ws-heading);
}

.ws-categories-page-header p {
	margin: 0;
	color: #777;
	font-size: 14px;
}


/* =========================================================
   Categories Grid
========================================================= */

.ws-all-categories-grid {
	display: grid;

	grid-template-columns: repeat(4, minmax(0, 1fr));

	gap: 25px;
}


/* =========================================================
   Category Card
========================================================= */

.ws-all-category-card {
	position: relative;

	display: flex;
	align-items: center;

	gap: 18px;

	min-width: 0;

	padding: 18px;

	border: 1px solid #eeeeee;
	border-radius: 14px;

	background: #fff;

	text-decoration: none;

	box-shadow: 0 3px 15px rgba(0, 0, 0, .04);

	transition:
		transform .25s ease,
		border-color .25s ease,
		box-shadow .25s ease;
}

.ws-all-category-card:hover {
	transform: translateY(-4px);

	border-color: var(--ws-primary);

	box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}


/* =========================================================
   Image
========================================================= */

.ws-all-category-image {
	flex: 0 0 90px;

	width: 90px;
	height: 90px;

	overflow: hidden;

	border-radius: 50%;

	border: 2px solid #f1f1f1;

	background: #f8f8f8;

	transition: border-color .25s ease;
}

.ws-all-category-card:hover .ws-all-category-image {
	border-color: var(--ws-primary);
}

.ws-all-category-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform .3s ease;
}

.ws-all-category-card:hover .ws-all-category-image img {
	transform: scale(1.08);
}


/* =========================================================
   Placeholder
========================================================= */

.ws-category-placeholder {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	font-size: 30px;
}


/* =========================================================
   Content
========================================================= */

.ws-all-category-content {
	flex: 1;

	min-width: 0;
}

.ws-all-category-content h2 {
	margin: 0 0 7px;

	font-size: 17px;
	font-weight: 700;

	color: var(--ws-heading);

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	transition: color .2s ease;
}

.ws-all-category-card:hover .ws-all-category-content h2 {
	color: var(--ws-primary);
}

.ws-all-category-content span {
	font-size: 13px;
	color: #888;
}


/* =========================================================
   Arrow
========================================================= */

.ws-all-category-arrow {
	flex: 0 0 34px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;

	border-radius: 50%;

	background: #f7f7f7;

	color: var(--ws-heading);

	font-size: 18px;

	transition:
		background .2s ease,
		color .2s ease,
		transform .2s ease;
}

.ws-all-category-card:hover .ws-all-category-arrow {
	background: var(--ws-primary);

	color: #fff;

	transform: translateX(-3px);
}


/* =========================================================
   Empty
========================================================= */

.ws-categories-empty {
	padding: 70px 20px;

	text-align: center;

	color: #777;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1100px) {

	.ws-all-categories-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));

		gap: 20px;
	}

	.ws-all-category-card {
		padding: 15px;
	}

	.ws-all-category-image {
		flex-basis: 75px;

		width: 75px;
		height: 75px;
	}

	.ws-all-category-content h2 {
		font-size: 15px;
	}

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

	.ws-categories-page {
		padding: 30px 0 55px;
	}

	.ws-categories-page-header {
		margin-bottom: 30px;
	}

	.ws-categories-page-header h1 {
		font-size: 25px;
	}

	.ws-all-categories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		gap: 14px;
	}

	.ws-all-category-card {
		flex-direction: column;

		align-items: center;

		text-align: center;

		gap: 10px;

		padding: 15px 10px;
	}

	.ws-all-category-image {
		flex: 0 0 auto;

		width: 90px;
		height: 90px;
	}

	.ws-all-category-content {
		width: 100%;
	}

	.ws-all-category-content h2 {
		font-size: 14px;
	}

	.ws-all-category-content span {
		font-size: 12px;
	}

	.ws-all-category-arrow {
		display: none;
	}

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

	.ws-all-categories-grid {
		gap: 12px;
	}

	.ws-all-category-image {
		width: 80px;
		height: 80px;
	}

	.ws-all-category-card {
		padding: 13px 8px;
	}

}