/**
 * Brendovi A–Z — Figma 219:2386 / 232:12093.
 */

body.page-template-page-brendovi,
body.page-brendovi {
	background: var(--surface-white);
}

.brands-main {
	background: var(--surface-white);
	padding: 24px 0 48px;
}

.brands-container {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.brands-crumb {
	font-size: 13px;
	line-height: 20px;
	color: var(--ink-500);
}

.brands-crumb a:hover {
	text-decoration: underline;
	color: var(--ink-900);
}

.brands-featured .home-brands-row {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.brands-featured .home-brands-tile {
	position: relative;
	display: block;
	aspect-ratio: 194 / 332;
	overflow: hidden;
	border-radius: 4px;
	background: var(--surface-white);
}

.brands-featured .home-brands-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brands-featured .home-brands-logo-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background: var(--surface-white);
}

.brands-featured .home-brands-logo {
	max-width: 80%;
	max-height: 36px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.brands-intro__title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 36px;
	color: var(--ink-900);
}

.brands-intro__lead {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: var(--ink-500);
}

.brands-featured {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.brands-featured__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--ink-900);
}

.brands-az {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.brands-az__chip {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--ink-700);
	background: var(--surface-white);
	border: 1px solid var(--border-muted);
	border-radius: 20px;
}

a.brands-az__chip:hover {
	border-color: var(--brand-rose);
	color: var(--ink-900);
}

.brands-az__chip.is-empty {
	opacity: 0.35;
	cursor: default;
}

.brands-dir {
	display: flex;
	flex-direction: column;
}

.brands-dir__row {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 28px 0;
	border-top: 1px solid var(--border-subtle);
	scroll-margin-top: 24px;
}

.brands-dir__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.brands-dir__letter {
	flex: 0 0 72px;
	width: 72px;
}

.brands-dir__glyph {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
	color: var(--brand-rose);
}

.brands-dir__count {
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color: var(--ink-500);
}

.brands-dir__names {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	min-width: 0;
}

.brands-dir__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.brands-dir__col a {
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: var(--ink-700);
}

.brands-dir__col a:hover {
	color: var(--ink-900);
}

@media (max-width: 767px) {
	.brands-main {
		padding: 16px 0 40px;
	}

	.brands-container {
		gap: 24px;
	}

	.brands-crumb,
	.brands-featured {
		display: none;
	}

	.brands-intro__title {
		font-size: 21px;
		line-height: 28px;
	}

	.brands-intro__lead {
		font-size: 13px;
		line-height: 20px;
	}

	.brands-az__chip {
		border-radius: 24px;
		height: auto;
		min-height: 32px;
		padding: 6px 0;
	}

	.brands-dir__row {
		flex-direction: column;
		gap: 10px;
		padding: 20px 0;
	}

	.brands-dir__letter {
		display: flex;
		flex: none;
		align-items: baseline;
		width: auto;
		gap: 8px;
	}

	.brands-dir__glyph {
		font-size: 24px;
		line-height: 32px;
	}

	.brands-dir__count {
		margin: 0;
	}

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

	.brands-dir__col {
		gap: 8px;
	}

	.brands-az__chip {
		border-radius: 24px;
	}
}
