/* Brands page — search, popular brands, A-Z directory */

.brands-page {
	width: 100%;
	float: none;
	margin: 24px 0 48px;
	clear: both;
}

.brands-page > .container {
	max-width: 1140px;
}

.brands-page__content {
	min-width: 0;
}

.brands-page__header {
	margin: 0 0 20px;
}

.brands-page__header h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.25;
	color: #01163a;
}

.brands-page__intro {
	margin: 0;
	max-width: 42em;
	color: #445;
	font-size: 15px;
	line-height: 1.5;
}

.brands-page__search {
	margin: 0 0 32px;
}

.brands-page__search-row {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 640px;
	border: 1px solid #d5e2ea;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.brands-page__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 0;
	outline: none;
	font-size: 16px;
	color: #234;
	background: transparent;
}

.brands-page__search-input::placeholder {
	color: #8899aa;
}

.brands-page__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 0 20px;
	border: 0;
	background: #d93d3d;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.brands-page__search-btn:hover,
.brands-page__search-btn:focus {
	background: #c23232;
	color: #fff;
}

.brands-page__search-btn .sl-icon {
	width: 16px;
	height: 16px;
}

.brands-page__section-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #01163a;
}

.brands-page__popular {
	margin: 0 0 36px;
}

.brands-page__popular-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.brands-page__popular-grid > li {
	margin: 0;
	min-width: 0;
}

.brands-page__popular-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-height: 110px;
	height: 100%;
	padding: 16px;
	border: 1px solid #dce8ef;
	border-radius: 6px;
	background: #fff;
	color: #234;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.brands-page__popular-card:hover,
.brands-page__popular-card:focus {
	border-color: #0f75bc;
	background: #f4f8fb;
	color: #0f75bc;
	text-decoration: none;
}

.brands-page__popular-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e8f4fa;
	color: #0f75bc;
}

.brands-page__popular-icon .sl-icon {
	width: 18px;
	height: 18px;
}

.brands-page__popular-name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	word-break: break-word;
}

.brands-page__directory {
	margin: 0 0 8px;
}

.brands-page__index {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 8px;
	margin: 0 0 24px;
	padding: 14px 16px;
	background: #f4f8fb;
	border: 1px solid #d5e2ea;
	border-radius: 6px;
}

.brands-page__index-label {
	font-weight: 700;
	color: #01163a;
	margin-right: 4px;
}

.brands-page__index-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.brands-page__index-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid #dce8ef;
	border-radius: 4px;
	background: #fff;
	color: #0f75bc;
	font-weight: 700;
	text-decoration: none;
}

.brands-page__index-links a:hover,
.brands-page__index-links a:focus {
	background: #0f75bc;
	border-color: #0f75bc;
	color: #fff;
	text-decoration: none;
}

.brands-page__index-links a.is-disabled {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.brands-page__filter-empty {
	margin: 0 0 20px;
	padding: 12px 14px;
	background: #fff8f0;
	border: 1px solid #f0d7b8;
	border-radius: 6px;
	color: #5c4a32;
	font-size: 14px;
}

.brands-page__section {
	margin: 0 0 28px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8eef3;
	scroll-margin-top: 100px;
}

.brands-page__section:last-of-type {
	border-bottom: 0;
}

.brands-page__section.is-hidden,
.brands-page__grid > li.is-hidden {
	display: none;
}

.brands-page__letter {
	margin: 0 0 12px;
	padding-bottom: 6px;
	font-size: 22px;
	font-weight: 700;
	color: #01163a;
	border-bottom: 2px solid #0f75bc;
	display: inline-block;
	min-width: 2rem;
}

.brands-page__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px 12px;
}

.brands-page__grid li {
	min-width: 0;
	margin: 0;
}

.brands-page__grid a {
	display: block;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #234;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
	text-decoration: none;
}

.brands-page__grid a:hover,
.brands-page__grid a:focus {
	background: #f4f8fb;
	border-color: #d5e2ea;
	color: #0f75bc;
	text-decoration: none;
}

@media (max-width: 767px) {
	.brands-page {
		margin: 16px 0 32px;
	}

	.brands-page__header h1 {
		font-size: 24px;
	}

	.brands-page__search-row {
		max-width: none;
		flex-direction: column;
	}

	.brands-page__search-input {
		height: 48px;
	}

	.brands-page__search-btn {
		height: 48px;
	}

	.brands-page__popular-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.brands-page__popular-card {
		min-height: 96px;
		padding: 14px;
	}

	.brands-page__index {
		padding: 12px;
	}

	.brands-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px 8px;
	}

	.brands-page__grid a {
		padding: 8px;
		font-size: 13px;
	}
}

@media (max-width: 380px) {
	.brands-page__grid {
		grid-template-columns: 1fr;
	}
}
