/* All About Material v1.4.14 - premium featured brand product collages. */

.aam-featured-brands-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.aam-featured-brand-card,
.aam-featured-brand-card:hover {
	position: relative;
	min-height: 310px;
	display: grid;
	place-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: 28px 22px;
	border: 1px solid color-mix(in srgb, var(--aam-primary) 18%, var(--aam-line));
	border-radius: 24px;
	background: #101828;
	box-shadow: 0 18px 44px rgba(15, 31, 49, .12);
}

.aam-featured-brand-card:hover {
	box-shadow: 0 25px 58px rgba(15, 31, 49, .2);
	transform: translateY(-6px);
}

.aam-featured-brand-collage {
	position: absolute;
	z-index: -3;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 3px;
	overflow: hidden;
	background: linear-gradient(145deg, color-mix(in srgb, var(--aam-primary) 45%, #081421), #17283a);
}

.aam-featured-brand-collage img {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	filter: saturate(.9);
	transition: transform .45s ease, filter .45s ease;
}

.aam-featured-brand-card:hover .aam-featured-brand-collage img {
	transform: scale(1.045);
	filter: saturate(1.08);
}

.aam-featured-brand-collage.aam-collage-count-1 img {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}

.aam-featured-brand-collage.aam-collage-count-2 {
	grid-template-rows: 1fr;
}

.aam-featured-brand-collage.aam-collage-count-3 img:first-child {
	grid-row: 1 / -1;
}

.aam-featured-brand-overlay {
	position: absolute;
	z-index: -2;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 15, 25, .48), rgba(6, 15, 25, .82));
	transition: background .35s ease;
}

.aam-featured-brand-card:hover .aam-featured-brand-overlay {
	background: linear-gradient(180deg, rgba(6, 15, 25, .38), rgba(6, 15, 25, .78));
}

.aam-featured-brand-content {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.aam-featured-brand-content .aam-featured-brand-image {
	width: 78px;
	height: 78px;
	display: grid;
	flex: 0 0 78px;
	place-items: center;
	margin: 0 0 15px;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, .86);
	border-radius: 22px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.aam-featured-brand-content .aam-featured-brand-image.has-image {
	border-color: rgba(255, 255, 255, .86);
	background: #fff;
}

.aam-featured-brand-content .aam-featured-brand-image.is-placeholder {
	border-color: rgba(255, 255, 255, .34);
	background: rgba(255, 255, 255, .12);
	color: #fff;
	backdrop-filter: blur(10px);
}

.aam-featured-brand-content .aam-featured-brand-image b {
	font-size: 22px;
}

.aam-featured-brand-name {
	width: 100%;
	overflow: hidden;
	color: #fff;
	font: 600 20px/1.3 "Poppins", sans-serif;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aam-featured-brand-meta {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.aam-featured-brand-meta > span {
	max-width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 11px;
	font-weight: 650;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(10px);
}

.aam-featured-brand-meta svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	fill: none;
	stroke: color-mix(in srgb, var(--aam-primary) 38%, #fff);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 1050px) {
	.aam-featured-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.aam-featured-brands-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.aam-featured-brand-card,
	.aam-featured-brand-card:hover {
		min-height: 285px;
	}
}
