.category-card {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	box-sizing: border-box;
	width: 190px;
	min-height: 230px;
	max-width: 100%;
	background-color: $bg-main;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: 5px 0 30px 0 #CECECE;
	transition: all 0.3s ease;
	cursor: pointer;

	@media (max-width: $mobile) {
		width: 160px;
		min-height: 210px;
	}

	&:hover,
	&:focus {
		border-color: $accent-main;
	}

	&:active {
		box-shadow: 0 0 20px 0 rgba(#CECECE, 0.5);
	}
}

.category-card__body {
	margin-bottom: auto;
	padding: 10px 10px 0;
	text-align: center;
}

.category-card__image {
	position: relative;
	margin-bottom: -3px;
	width: 100%;
	height: 110px;
	background-color: #DFDFDF;
	background-image: url("/uploads/images/no_picture.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
	overflow: hidden;

	@media (max-width: $mobile) {
		margin-bottom: 0;
		height: 90px;
	}
}

.category-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.category-card__title {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 8px auto;
	max-width: 120px;
	min-height: 34px;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	line-height: 17px;
	color: $text-main;
	word-break: break-word;
}

.category-card__footer {
	@include caption;
	padding: 7px 10px 16px;
	color: #828282;
	border-top: 1px solid #e0e0e0;

	@media (max-width: $mobile) {
		margin-top: -3px;
		padding: 15px 10px 8px;
		font-weight: 400;
		font-size: 12px;
		line-height: 17px;
		letter-spacing: 0.01em;
	}
}

.category-card__footer p {
	margin: 0 0 3px;
}

.category-card__footer p:last-child {
	margin-bottom: 0;
}

.category-card__footer b {
	font-weight: 500;
	color: $text-main;

	@media (max-width: $mobile) {
		font-weight: 400;
	}
}

.category-card__footer em {
	font-style: normal;
	color: $accent-main;
}

.category-card__footer i {
	font-style: normal;
	color: $red;
}

