/* Brands listing — desktop Figma 1101:4 */

.brands-page {
	width: 100%;
	background: #FFFFFF;
	font-family: var(--global-font-family-1);
}

.brands-page__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0 auto;
	padding-top: 28px;
	padding-bottom: 48px;
	box-sizing: border-box;
}

.brands-page__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	font-weight: 400;
	font-size: 13px;
	line-height: 18px;
	color: #737378;
}

.brands-page__breadcrumb a {
	color: #737378;
	text-decoration: none;
}

.brands-page__breadcrumb a:hover {
	color: #1C1C1E;
}

.brands-page__bc-sep {
	display: block;
	width: 7px;
	height: 12px;
	flex-shrink: 0;
}

.brands-page__bc-current {
	font-weight: 600;
	color: #1C1C1E;
}

.brands-page__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.brands-page__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 640px;
	min-width: 0;
}

.brands-page__title {
	margin: 0;
	font-weight: 700;
	font-size: 34px;
	line-height: 37px;
	letter-spacing: -0.68px;
	color: #1C1C1E;
}

.brands-page__lead {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 22px;
	color: #737378;
}

.brands-page__empty {
	margin: 0;
	padding: 40px 0;
	font-size: 14px;
	color: #737378;
}

/* -------------------------------------------------------------------------- */
/* Grid + cards                                                               */
/* -------------------------------------------------------------------------- */

.brands-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.brands-grid__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.brand-card {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 248 / 320;
	border-radius: 12px;
	text-decoration: none;
	color: #FFFFFF;
	isolation: isolate;
}

.brand-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.brand-card__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.brand-card--bg-logo .brand-card__media {
	background: #F3F3F4;
}

.brand-card--bg-logo .brand-card__bg {
	object-fit: contain;
	object-position: center;
	padding: 28% 18% 22%;
	box-sizing: border-box;
	opacity: 0.22;
}

.brand-card--bg-logo .brand-card__content {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.2) 40%,
		rgba(255, 255, 255, 0.72) 100%
	);
}

.brand-card__content {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 18px 16px 16px;
	box-sizing: border-box;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(0, 0, 0, 0.08) 42%,
		rgba(0, 0, 0, 0.45) 100%
	);
}

.brand-card--dark .brand-card__content {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.35) 0%,
		rgba(255, 255, 255, 0.12) 40%,
		rgba(255, 255, 255, 0.55) 100%
	);
	color: #1C1C1E;
}

.brand-card__logo {
	display: block;
	width: auto;
	max-width: 72%;
	height: 34px;
	padding: 8px 12px;
	object-fit: contain;
	object-position: left center;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	box-sizing: content-box;
}

.brand-card--dark .brand-card__logo {
	background: rgba(255, 255, 255, 0.96);
}

.brand-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: calc(100% - 44px);
	margin: 0;
	font-weight: 400;
	font-size: 12px;
	line-height: 17px;
	opacity: 0.95;
}

.brand-card__name {
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
}

.brand-card__tagline {
	display: block;
	margin-top: 4px;
	font-weight: 700;
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.brand-card__cta {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 4px 14px rgba(28, 28, 30, 0.18);
	transition: transform 0.2s ease;
}

.brand-card__cta img {
	display: block;
	width: 16px;
	height: 16px;
}

.brand-card:hover .brand-card__cta,
.brand-card:focus-visible .brand-card__cta {
	transform: scale(1.06);
}

.brand-card:focus-visible {
	outline: 2px solid #1C1C1E;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Tablet 768–1023                                                            */
/* -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
	.brands-page__inner {
		gap: 20px;
		padding-top: 24px;
		padding-bottom: 48px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.brands-page__breadcrumb {
		gap: 8px;
		font-size: 12px;
	}

	.brands-page__header {
		gap: 8px;
	}

	.brands-page__intro {
		max-width: 560px;
	}

	.brands-page__title {
		font-size: 28px;
		line-height: 34px;
		letter-spacing: -0.56px;
	}

	.brands-page__lead {
		font-size: 14px;
		line-height: 22px;
	}

	.brands-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.brand-card {
		aspect-ratio: 240 / 280;
		border-radius: 10px;
	}

	.brand-card__content {
		padding: 14px;
		gap: 8px;
	}

	.brand-card__logo {
		height: 32px;
		padding: 7px 10px;
	}

	.brand-card__tagline {
		font-size: 12px;
		line-height: 16px;
	}

	.brand-card__desc {
		-webkit-line-clamp: 3;
		font-size: 12px;
		line-height: 16px;
		max-width: calc(100% - 40px);
	}

	.brand-card__cta {
		right: 12px;
		bottom: 12px;
		width: 34px;
		height: 34px;
	}
}

/* -------------------------------------------------------------------------- */
/* Mobile ≤767 — Figma 899:2                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.brands-page__inner {
		gap: 16px;
		padding-top: 16px;
		padding-bottom: 40px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.brands-page__breadcrumb {
		gap: 6px;
		font-size: 11px;
	}

	.brands-page__header {
		gap: 6px;
	}

	.brands-page__intro {
		gap: 6px;
		max-width: none;
	}

	.brands-page__title {
		font-size: 22px;
		line-height: 28px;
		letter-spacing: -0.44px;
	}

	.brands-page__lead {
		font-size: 13px;
		line-height: 23px;
	}

	.brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.brand-card {
		aspect-ratio: 170.5 / 209.3;
		border-radius: 8px;
		border: 0.7px solid #EBEBED;
	}

	.brand-card__content {
		padding: 11px 11px 12px;
		gap: 6px;
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.22) 0%,
			rgba(0, 0, 0, 0.05) 38%,
			rgba(0, 0, 0, 0.42) 100%
		);
	}

	.brand-card--dark .brand-card__content {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.28) 0%,
			rgba(255, 255, 255, 0.1) 40%,
			rgba(255, 255, 255, 0.5) 100%
		);
	}

	.brand-card__logo {
		height: 24px;
		max-width: 65%;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	.brand-card--dark .brand-card__logo {
		background: transparent;
	}

	.brand-card--bg-logo .brand-card__bg {
		padding: 32% 16% 28%;
		opacity: 0.18;
	}

	.brand-card__name {
		font-size: 14px;
		line-height: 18px;
	}

	.brand-card__tagline {
		margin-top: 0;
		font-size: 10px;
		line-height: 13px;
	}

	.brand-card__desc {
		-webkit-line-clamp: 3;
		max-width: calc(100% - 36px);
		font-weight: 500;
		font-size: 10px;
		line-height: 13px;
	}

	.brand-card__cta {
		right: 8px;
		bottom: 8px;
		width: 28px;
		height: 28px;
	}

	.brand-card__cta img {
		width: 12px;
		height: 12px;
	}
}
