/*
 * Alican Premium 1.4.5 — brands navigation + complete homepage brand grid.
 */

.home-main .brand-showcase {
	padding-block: 24px 34px;
}

.home-main .brand-showcase__heading {
	margin-bottom: 16px;
}

.home-main .section-heading__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 4px;
	color: var(--alican-ink, #111);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.home-main .section-heading__link .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	transition: transform 180ms ease;
}

.home-main .section-heading__link:hover,
.home-main .section-heading__link:focus-visible {
	color: var(--alican-green, #58bf22);
}

.home-main .section-heading__link:hover .dashicons,
.home-main .section-heading__link:focus-visible .dashicons {
	transform: translateX(3px);
}

.home-main .brand-wall--home {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	min-height: 0;
	border: 0;
	overflow: visible;
}

.home-main .brand-wall--home .brand-wall__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 122px;
	padding: 18px 20px;
	border: 1px solid var(--alican-border, #e7e9e4);
	border-radius: 14px;
	background: #fff;
	color: var(--alican-ink, #111);
	text-decoration: none;
	filter: none;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.home-main .brand-wall--home .brand-wall__item:hover,
.home-main .brand-wall--home .brand-wall__item:focus-visible {
	border-color: rgba(88, 191, 34, 0.42);
	box-shadow: 0 10px 28px rgba(26, 32, 20, 0.08);
	transform: translateY(-2px);
}

.home-main .brand-wall--home .brand-wall__image {
	width: auto;
	max-width: min(168px, 82%);
	max-height: 54px;
	object-fit: contain;
}

.home-main .brand-wall--home .brand-wall__name {
	font-size: clamp(1rem, 1.5vw, 1.28rem);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.home-main .brand-wall--home .brand-wall__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--alican-muted, #666d64);
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-main .brand-showcase__empty {
	padding: 24px;
	border: 1px dashed var(--alican-border, #e7e9e4);
	border-radius: 14px;
	background: #fff;
	color: var(--alican-muted, #666d64);
	font-size: 0.86rem;
}

.home-main .brand-showcase__empty p {
	margin: 0;
}

@media (max-width: 980px) {
	.home-main .brand-wall--home {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.home-main .brand-showcase {
		padding-block: 18px 28px;
	}

	.home-main .brand-showcase__heading {
		align-items: flex-end;
		gap: 12px;
		margin-bottom: 13px;
	}

	.home-main .section-heading__link {
		min-height: 32px;
		font-size: 0.74rem;
	}

	.home-main .brand-wall--home {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.home-main .brand-wall--home .brand-wall__item {
		min-height: 96px;
		padding: 14px 10px;
		border-radius: 12px;
	}

	.home-main .brand-wall--home .brand-wall__image {
		max-width: min(118px, 84%);
		max-height: 42px;
	}

	.home-main .brand-wall--home .brand-wall__label {
		font-size: 0.66rem;
	}
}

.home-main .brand-wall--home .brand-wall__item:last-child {
	grid-column: auto;
	border-bottom: 1px solid var(--alican-border, #e7e9e4);
}
