/*
 * SAHA — brand.css
 * Brand card, brand grid, brand archive (Phase 2 dùng tới).
 */

.saha-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.saha-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px;
	background: var(--saha-color-surface);
	border: 1px solid var(--saha-color-border);
	border-radius: var(--saha-radius);
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.saha-brand-card:hover,
.saha-brand-card:focus-within {
	border-color: var(--saha-color-primary);
	box-shadow: 0 2px 10px rgba(11, 92, 171, .08);
}

.saha-brand-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 64px;
}

.saha-brand-card__logo img {
	max-width: 100%;
	max-height: 64px;
	object-fit: contain;
}

.saha-brand-card__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.saha-brand-card__count {
	color: var(--saha-color-muted);
	font-size: 12px;
}

/* --- Brand archive header ---------------------------------------------- */

.saha-brand-header {
	margin-bottom: 24px;
}

.saha-brand-header__banner img {
	width: 100%;
	height: auto;
	border-radius: var(--saha-radius);
}

.saha-brand-header__main {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.saha-brand-header__logo img {
	max-width: 120px;
	height: auto;
}

.saha-brand-header__title {
	margin: 0 0 6px;
	font-size: 24px;
}

.saha-brand-header__excerpt {
	max-width: 60em;
	color: var(--saha-color-muted);
}

/* Nội dung SEO đặt dưới grid sản phẩm (spec §23). */
.saha-brand-seo-content {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--saha-color-border);
}

@media (max-width: 575px) {
	.saha-brand-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.saha-brand-header__main {
		flex-direction: column;
		align-items: flex-start;
	}
}

.saha-brand-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.saha-brand-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--saha-color-surface-alt);
	border-radius: 50%;
	color: var(--saha-color-primary);
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
}

.saha-brand-header__country,
.saha-brand-header__website {
	margin: 4px 0;
	font-size: 14px;
}
