/* Solimar brands page — [solimar_brands]. Every selector is scoped under .smm-brands. */

.smm-brands {
	--smm-bar-bg: #edffbe;
	--smm-blue: #0770bb;
	--smm-blue-dark: #055a93;
	--smm-text: #242424;
	--smm-muted: #5a5a5a;
	--smm-border: #e7e9e1;
	--smm-soft: #f6f8f1;
	--smm-white: #fff;
	--smm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	font-family: var(--smm-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--smm-text);
}

.smm-brands *,
.smm-brands *::before,
.smm-brands *::after {
	box-sizing: border-box;
}

.smm-brands ul,
.smm-brands li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm-brands a {
	color: inherit;
	text-decoration: none;
}

.smm-brands a:focus-visible,
.smm-brands .smm-brands__input:focus-visible {
	outline: 2px solid var(--smm-blue);
	outline-offset: 2px;
}

.smm-brands .smm-brands__title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--smm-text);
}

/* Search */

.smm-brands .smm-brands__search {
	margin: 0 0 28px;
}

.smm-brands .smm-brands__search[hidden] {
	display: none;
}

.smm-brands .smm-brands__label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}

.smm-brands .smm-brands__input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	max-width: 460px;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--smm-border);
	border-radius: 5px;
	background: var(--smm-white);
	box-shadow: none;
	color: var(--smm-text);
	font: inherit;
}

.smm-brands .smm-brands__input:focus {
	border-color: var(--smm-blue);
}

.smm-brands .smm-brands__status {
	min-height: 1.5em;
	margin: 8px 0 0;
	color: var(--smm-muted);
	font-size: 14px;
}

/* Top brands */

.smm-brands .smm-brands__top {
	margin: 0 0 40px;
}

.smm-brands .smm-brands__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.smm-brands .smm-brands__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-height: 84px;
	padding: 14px 16px;
	border: 1px solid var(--smm-border);
	border-left: 3px solid var(--smm-blue);
	border-radius: 6px;
	background: var(--smm-white);
	transition: background-color .15s, border-color .15s;
}

.smm-brands .smm-brands__card:hover {
	background: var(--smm-bar-bg);
}

.smm-brands .smm-brands__card .smm-brands__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.smm-brands .smm-brands__count {
	color: var(--smm-muted);
	font-size: 13px;
}

/* A–Z index */

.smm-brands .smm-brands__index {
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0 0 24px;
	padding: 10px 0;
	background: var(--smm-white);
	border-bottom: 1px solid var(--smm-border);
}

.smm-brands .smm-brands__index ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.smm-brands .smm-brands__index a,
.smm-brands .smm-brands__index span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
}

.smm-brands .smm-brands__index a {
	background: var(--smm-soft);
	color: var(--smm-blue);
}

.smm-brands .smm-brands__index a:hover {
	background: var(--smm-blue);
	color: var(--smm-white);
}

.smm-brands .smm-brands__index span,
.smm-brands .smm-brands__index a.is-disabled {
	background: none;
	color: #b5b5b5;
	pointer-events: none;
}

/* Groups */

.smm-brands .smm-brands__group {
	margin: 0 0 28px;
	scroll-margin-top: 70px;
}

.smm-brands .smm-brands__group[hidden],
.smm-brands .smm-brands__list li[hidden],
.smm-brands .smm-brands__top[hidden] {
	display: none;
}

.smm-brands .smm-brands__letter {
	margin: 0 0 10px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--smm-bar-bg);
	color: var(--smm-blue);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.smm-brands .smm-brands__list {
	columns: 4 200px;
	column-gap: 28px;
}

.smm-brands .smm-brands__list li {
	break-inside: avoid;
	padding: 4px 0;
	font-size: 15px;
}

.smm-brands .smm-brands__list a {
	font-weight: 500;
}

.smm-brands .smm-brands__list a:hover {
	color: var(--smm-blue);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.smm-brands .smm-brands__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.smm-brands .smm-brands__card {
		min-height: 72px;
		padding: 10px 12px;
	}

	.smm-brands .smm-brands__list {
		columns: 2 140px;
	}

	.smm-brands .smm-brands__index a,
	.smm-brands .smm-brands__index span {
		min-width: 30px;
		height: 30px;
	}
}
