/* Brands page (Template Name: Brands Page) -------------------------
   A-Z of every stocked brand. Tiles carry the brand name + product count
   today; when brand thumbnails are uploaded they switch to logo tiles via
   .hs-brands__item--logo, and the grid keeps the same rhythm. */

.hs-brands__head { padding: 40px 0 0; }
.hs-brands__title {
	margin: 0 0 12px;
	font-family: var(--hs-font-bold);
	font-size: clamp(30px, 3.4vw, 45px);
	line-height: 1.05;
	color: var(--hs-red);
}
.hs-brands__count {
	margin: 0 0 20px;
	font-family: var(--hs-font-semibold);
	font-size: 16px;
	color: var(--hs-muted);
}
.hs-brands__intro { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.hs-brands__empty { margin: 40px 0 80px; font-size: 16px; color: var(--hs-muted); }

/* Jump strip: all 27 buckets (A-Z plus #) always shown, letters with no
   brands dimmed and inert. A fixed column count rather than flex-wrap — at
   27 flex items the row overflowed by a couple of pixels and dropped "#"
   onto a line of its own. The grid always fills whole rows. */
.hs-brands__az {
	display: grid;
	grid-template-columns: repeat(27, minmax(0, 1fr));
	gap: 5px;
	margin: 0 0 40px;
	padding: 12px;
	background: var(--hs-bg-soft);
	border-radius: var(--hs-radius);
}
.hs-brands__az-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 34px;
	border-radius: 6px;
	font-family: var(--hs-font-bold);
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}
a.hs-brands__az-item { background: #fff; color: var(--hs-ink); }
a.hs-brands__az-item:hover,
a.hs-brands__az-item:focus-visible { background: var(--hs-red); color: #fff; }
.hs-brands__az-item.is-empty { color: #bdbdbd; }

.hs-brands__group { margin: 0 0 40px; scroll-margin-top: 120px; }
.hs-brands__letter {
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hs-red);
	font-family: var(--hs-font-bold);
	font-size: 24px;
	line-height: 1;
	color: var(--hs-red);
}

.hs-brands__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
.hs-brands__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 100%;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--hs-line);
	border-radius: var(--hs-radius);
	color: var(--hs-ink);
	text-decoration: none;
}
.hs-brands__link:hover,
.hs-brands__link:focus-visible { border-color: var(--hs-red); color: var(--hs-red); }
.hs-brands__name { font-family: var(--hs-font-semibold); font-size: 15px; line-height: 1.3; }
.hs-brands__qty {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--hs-bg-grey);
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	color: var(--hs-muted);
}
.hs-brands__link:hover .hs-brands__qty { background: var(--hs-red); color: #fff; }

/* Logo tiles: square-ish, image centred and contained. */
.hs-brands__item--logo .hs-brands__link { justify-content: center; padding: 14px; }
.hs-brands__logo { display: block; width: 100%; }
.hs-brands__logo img { display: block; width: 100%; height: 64px; object-fit: contain; }

@media (max-width: 1024px) {
	.hs-brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hs-brands__az { grid-template-columns: repeat(14, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.hs-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hs-brands__head { padding-top: 24px; }
	.hs-brands__az { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; padding: 10px; }
	.hs-brands__az-item { height: 30px; font-size: 14px; }
}
@media (max-width: 420px) {
	.hs-brands__grid { grid-template-columns: 1fr; }
	.hs-brands__az { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
