/* =========================================================
   WooSpax Product Category
========================================================= */

.ws-category-page {
	padding: 35px 0 70px;
}


/* =========================================================
   Category Header
========================================================= */

.ws-category-header {
	display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    background: #fff;
}

.ws-category-header-image {
	flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f1f1;
    background: #f8f8f8;
}

.ws-category-header-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.ws-category-header-content {
	flex: 1;
}

.ws-category-header-title {
	margin: 0 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ws-heading);
}

.ws-category-description {
	max-width: 800px;

	margin-bottom: 12px;

	font-size: 15px;
	line-height: 1.8;

	color: #666;
}

.ws-category-description p {
	margin: 0;
}

.ws-category-product-count {
	margin: 0;
    font-size: 16px;
    color: #767575;
}


/* =========================================================
   Sub Categories
========================================================= */

.ws-category-subcategories {
	margin-bottom: 45px;
}

.ws-category-section-title {
	margin: 0 0 25px;

	font-size: 22px;
	font-weight: 700;

	color: var(--ws-heading);
}

.ws-subcategory-grid {
	display: grid;

	grid-template-columns: repeat(6, minmax(0, 1fr));

	gap: 25px;
}

.ws-subcategory-item {
	display: flex;

	flex-direction: column;

	align-items: center;

	text-align: center;

	text-decoration: none;

	color: inherit;
}

.ws-subcategory-image {
	width: 110px;
	height: 110px;

	margin-bottom: 10px;

	border-radius: 50%;

	overflow: hidden;

	border: 2px solid #eeeeee;

	background: #f8f8f8;

	transition:
		border-color .2s ease,
		transform .2s ease;
}

.ws-subcategory-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform .25s ease;
}

.ws-subcategory-placeholder {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	font-size: 30px;
}

.ws-subcategory-title {
	margin: 0 0 5px;

	font-size: 15px;
	font-weight: 600;

	color: var(--ws-heading);

	transition: color .2s ease;
}

.ws-subcategory-count {
	font-size: 12px;

	color: #999;
}

.ws-subcategory-item:hover .ws-subcategory-image {
	border-color: var(--ws-primary);

	transform: translateY(-3px);
}

.ws-subcategory-item:hover .ws-subcategory-image img {
	transform: scale(1.08);
}

.ws-subcategory-item:hover .ws-subcategory-title {
	color: var(--ws-primary);
}


/* =========================================================
   Products Header
========================================================= */

.ws-category-products-header {
	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 25px;

	margin-bottom: 25px;
}

.ws-category-products-title h2 {
	margin: 0;

	font-size: 22px;

	color: var(--ws-heading);
}

.ws-category-products-header .ws-shop-toolbar {
	flex: 1;
}


/* =========================================================
   Empty
========================================================= */

.ws-category-empty {
	padding: 70px 20px;

	text-align: center;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1100px) {

	.ws-subcategory-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));

		gap: 20px;
	}

	.ws-category-header-image {
		width: 125px;
		height: 125px;

		flex-basis: 125px;
	}

	.ws-category-header-title {
		font-size: 27px;
	}

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

	.ws-category-page {
		padding-top: 25px;
	}

	.ws-category-header {
		flex-direction: column;

		text-align: center;

		gap: 18px;

		padding: 20px;

		margin-bottom: 30px;
	}

	.ws-category-header-image {
		width: 120px;
		height: 120px;

		flex-basis: 120px;
	}

	.ws-category-header-title {
		font-size: 24px;
	}

	.ws-category-description {
		font-size: 14px;
	}

	.ws-category-subcategories {
		margin-bottom: 35px;
	}

	.ws-category-section-title {
		font-size: 20px;

		margin-bottom: 20px;
	}

	.ws-subcategory-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));

		gap: 20px 12px;
	}

	.ws-subcategory-image {
		width: 85px;
		height: 85px;
	}

	.ws-subcategory-title {
		font-size: 13px;
	}

	.ws-category-products-header {
		display: block;

		margin-bottom: 20px;
	}

	.ws-category-products-title {
		margin-bottom: 18px;
	}

	.ws-category-products-title h2 {
		font-size: 20px;
	}

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

	.ws-category-header {
		border-radius: 12px;

		padding: 16px;
	}

	.ws-category-header-image {
		width: 100px;
		height: 100px;

		flex-basis: 100px;
	}

	.ws-category-header-title {
		font-size: 22px;
	}

	.ws-subcategory-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));

		gap: 18px 8px;
	}

	.ws-subcategory-image {
		width: 75px;
		height: 75px;
	}

	.ws-subcategory-title {
		font-size: 12px;
	}

	.ws-subcategory-count {
		font-size: 11px;
	}

}