.gw-brands-cards {
	--gw-columns-web: 4;
	--gw-columns-tab: 4;
	--gw-columns-mob: 2;
	position: relative;
}

.gw-brands-grid {
	display: grid;
	grid-template-columns: repeat(var(--gw-columns-web), minmax(0, 1fr));
	gap: 16px;
	transition: max-height 0.25s ease, opacity 0.25s ease;
}

.gw-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gw-brand-card:hover {
	transform: translateY(-4px);
}

.gw-brand-card:hover .gw-brands-thumb {
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.gw-brand-card--hidden {
	display: none !important;
}

.gw-brands-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gw-brands-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gw-brands-placeholder {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #d7d7d7;
	display: inline-block;
}

.gw-brands-title {
	margin-top: 10px;
	font-weight: 600;
	color: #111;
	transition: color 0.2s ease;
}

.gw-brand-card:hover .gw-brands-title {
	color: #444;
}

.gw-brands-count {
	margin-top: 4px;
	font-size: 13px;
	color: #666;
}

.gw-brands-show-more {
	margin: 20px auto 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111;
	cursor: pointer;
	font-weight: 600;
	transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.gw-brands-show-more:hover {
	transform: translateY(-1px);
	opacity: 0.75;
}

.gw-brands-show-more:hover .gw-brands-arrow {
	transform: translateY(2px);
}

.gw-brands-show-more .gw-brands-arrow {
	line-height: 1;
	font-size: 14px;
	transition: transform 0.2s ease;
}

.gw-brands-cards .gw-brands-show-more[hidden] {
	display: none !important;
}

.gw-brands-cards.gw-brands-has-hidden::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 44px;
	height: 64px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1));
}

.gw-brands-cards.gw-brands-expanded::after {
	display: none;
}

@media (max-width: 1024px) {
	.gw-brands-grid {
		grid-template-columns: repeat(var(--gw-columns-tab), minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.gw-brands-grid {
		grid-template-columns: repeat(var(--gw-columns-mob), minmax(0, 1fr));
	}
}

