/* Brand-logo tiles for [sg_home_brands]. The track, bleed and arrows come
   from homepage-strip.css. Selectors are scoped under .sg-home-brands so
   they outrank the theme's .entry-content img / p rules. Unlike the
   skin-type row this stays a slider on desktop: eight logos, six in view. */

.sg-home-brands .sg-strip__item {
	width: 140px;
}

.sg-home-brands a.sg-home-brands__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 80px;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sg-home-brands a.sg-home-brands__link:hover,
.sg-home-brands a.sg-home-brands__link:focus-visible {
	border-color: #e5a2c9;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sg-home-brands a.sg-home-brands__link:focus-visible {
	outline: 2px solid #71043d;
	outline-offset: 2px;
}

.sg-home-brands .sg-home-brands__logo {
	display: block;
	width: 104px;
	height: 44px;
	max-width: none;
	object-fit: contain;
	opacity: 0.75;
	transition: opacity 0.3s ease;
}

.sg-home-brands .sg-home-brands__link:hover .sg-home-brands__logo,
.sg-home-brands .sg-home-brands__link:focus-visible .sg-home-brands__logo {
	opacity: 1;
}

.sg-home-brands p.sg-home-brands__more {
	margin: 20px 0 0;
	padding: 0;
	text-align: center;
}

.sg-home-brands .sg-home-brands__more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: #111827;
	text-decoration: none;
	transition: color 0.3s ease;
}

.sg-home-brands .sg-home-brands__more a:hover,
.sg-home-brands .sg-home-brands__more a:focus-visible {
	color: #71043d;
	text-decoration: none;
}

.sg-home-brands .sg-home-brands__more svg {
	display: block;
	width: 16px;
	height: 16px;
}

@media (min-width: 768px) {
	.sg-home-brands .sg-strip__item {
		width: 180px;
	}

	.sg-home-brands a.sg-home-brands__link {
		height: 96px;
		padding: 16px 20px;
	}

	.sg-home-brands .sg-home-brands__logo {
		width: 140px;
		height: 56px;
	}

	.sg-home-brands p.sg-home-brands__more {
		margin-top: 28px;
	}

	.sg-home-brands .sg-home-brands__more a {
		font-size: 0.9375rem;
	}
}

@media (min-width: 1024px) {
	.sg-home-brands ul.sg-strip__list {
		gap: 20px;
		padding-top: 8px;
		padding-bottom: 12px;
	}

	/* Six tiles fill the container (100% is the page column, not the bled
	   track), so the eight logos always overflow and keep sliding. Narrow
	   desktops keep 180px tiles. */
	.sg-home-brands .sg-strip__item {
		width: max(180px, calc((100% - 5 * 20px) / 6));
	}
}