/* Fonts catalog — junior3d.ru theme alignment */

.j3d-fonts-sidebar {
	margin-bottom: 24px;
}

.j3d-fonts-sidebar .j3d-sidebar-block {
	margin-bottom: 24px;
}

.j3d-fonts-search-form {
	display: flex;
	align-items: stretch;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.j3d-fonts-search-form__input {
	flex: 1;
	min-width: 0;
	border: none;
	padding: 8px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
	background: transparent;
	box-shadow: none;
	outline: none;
}

.j3d-fonts-search-form__input::placeholder {
	color: #aaa;
}

.j3d-fonts-search-form__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 0 14px;
	border: none;
	border-left: 1px solid #e8e8e8;
	background: #f5f5f5;
	color: #888;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.j3d-fonts-search-form__btn:hover,
.j3d-fonts-search-form__btn:focus {
	color: #555;
	background: #ececec;
	outline: none;
}

.j3d-fonts-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.j3d-fonts-links > li {
	margin: 0;
	border-bottom: 1px solid #f0f2fa;
}

.j3d-fonts-links > li:last-child {
	border-bottom: none;
}

.j3d-fonts-links > li > a {
	display: block;
	padding: 9px 4px;
	font-size: 13px;
	line-height: 1.45;
	color: #3d4a5c;
	text-decoration: none;
	transition: color 0.15s ease;
}

.j3d-fonts-links > li > a:hover,
.j3d-fonts-links > li > a:focus {
	color: #424cb9;
	text-decoration: none;
	outline: none;
}

.j3d-fonts-links > li > a .fa {
	margin-right: 6px;
	color: #7b86c8;
	font-size: 12px;
}

.j3d-fonts-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.j3d-fonts-tags > li > a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #e8eaf6;
	border-radius: 999px;
	background: #f7f8fc;
	color: #4a5568;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.j3d-fonts-tags > li > a:hover,
.j3d-fonts-tags > li > a:focus {
	border-color: #c8cff0;
	background: #fff;
	color: #424cb9;
	text-decoration: none;
	outline: none;
}

.j3d-fonts-catalog {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.j3d-fonts-catalog__item {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	border: 1px solid #eceef8;
	background: #f7f8fc;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.j3d-fonts-catalog__item:hover,
.j3d-fonts-catalog__item:focus {
	border-color: #c8cff0;
	box-shadow: 0 4px 12px rgba(66, 76, 185, 0.12);
	text-decoration: none;
	outline: none;
}

.j3d-fonts-catalog__item img {
	display: block;
	width: 100%;
	height: 72px;
	object-fit: cover;
}

.j3d-fonts-catalog__label {
	display: block;
	padding: 7px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #3d4a5c;
	text-align: center;
}

.j3d-fonts-catalog__item:hover .j3d-fonts-catalog__label,
.j3d-fonts-catalog__item:focus .j3d-fonts-catalog__label {
	color: #424cb9;
}

.j3d-fonts-more {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #424cb9;
	text-decoration: none;
}

.j3d-fonts-more:hover,
.j3d-fonts-more:focus {
	color: #353fa0;
	text-decoration: underline;
	outline: none;
}

.j3d-fonts-page .headline h1 {
	margin: 0 0 12px;
	font-size: 28px;
	line-height: 1.3;
	color: #333;
}

.j3d-fonts-page .breadcrumb {
	margin-bottom: 10px;
}

.col-md-3.j3d-fonts-sidebar {
	padding-left: 15px;
}

@media (max-width: 991px) {
	.j3d-fonts-catalog {
		grid-template-columns: 1fr 1fr;
	}
}