/* Brand directory (/brand/) */

.page-brands {
	padding-bottom: 3rem;
	background: #fff;
}

.page-brands__hero {
	padding-bottom: 0.25rem;
}

.page-brands__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.page-brands__breadcrumb a {
	color: #374151;
	text-decoration: none;
}

.page-brands__breadcrumb a:hover {
	color: var(--color-primary);
}

.page-brands__body {
	padding-top: 1.25rem;
}

.page-brands__toolbar {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0 0 1.75rem;
	padding: 0.75rem 0;
	position: sticky;
	top: var(--g1s-header-offset, 148px);
	z-index: 30;
	background: #fff;
	border-bottom: 1px solid #eef2f5;
	box-shadow: 0 8px 16px -12px rgba(15, 23, 42, 0.18);
}

.page-brands__search {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	max-width: 28rem;
	padding: 0.7rem 0.95rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #6b7280;
}

.page-brands__search:focus-within {
	border-color: #86efac;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
	color: #16a34a;
}

.page-brands__search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 0.9375rem;
	color: #111827;
	background: transparent;
	outline: none;
}

.page-brands__az {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.page-brands__az a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.4rem;
	border-radius: 8px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.page-brands__az a:hover,
.page-brands__az a:focus-visible {
	background: #dcfce7;
	color: #15803d;
}

.page-brands__letter-group {
	margin: 0 0 1.75rem;
	scroll-margin-top: calc(var(--g1s-header-offset, 148px) + 6.5rem);
}

.page-brands__letter {
	margin: 0 0 0.85rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111827;
}

.page-brands__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.page-brands__card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 5.75rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.page-brands__card:hover,
.page-brands__card:focus-visible {
	border-color: #86efac;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
	transform: translateY(-1px);
}

.page-brands__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 7.5rem;
	height: 4.75rem;
	padding: 0.2rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: transparent;
	overflow: hidden;
}

.page-brands__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: scale(1.06);
}

.page-brands__initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 1.05rem;
	font-weight: 800;
}

.page-brands__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.page-brands__name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.page-brands__count {
	font-size: 0.75rem;
	color: #6b7280;
}

.page-brands__item.is-hidden,
.page-brands__letter-group.is-hidden {
	display: none;
}

.page-brands__no-match,
.page-brands__empty {
	margin: 1.5rem 0 0;
	font-size: 0.9375rem;
	color: #6b7280;
}

.page-brands__empty a {
	color: var(--color-primary);
	font-weight: 600;
}

@media (min-width: 640px) {
	.page-brands__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.page-brands__toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.page-brands__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.page-brands__logo {
		width: 8.25rem;
		height: 5.1rem;
	}
}

@media (min-width: 1200px) {
	.page-brands__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.page-brands__logo {
		width: 8.75rem;
		height: 5.35rem;
	}
}
