body.ems-store-home .ems-homepage .ems-shop-categories {
	position: relative;
	overflow: hidden;
	padding: 54px 0;
	background: #fff;
}

.ems-homepage .ems-shop-categories__head {
	position: relative;
	text-align: center;
}

.ems-homepage .ems-shop-categories__head h2 {
	margin: 0 0 10px;
	color: #111;
	font-size: 32px;
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
}

.ems-homepage .ems-shop-categories__head p {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.45;
}

.ems-homepage .ems-shop-categories__head > a {
	position: absolute;
	top: 7px;
	right: 0;
	color: #111;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ems-homepage .ems-shop-categories__head > a:hover,
.ems-homepage .ems-shop-categories__head > a:focus-visible {
	color: #f5a313;
}

.ems-homepage .ems-shop-categories__slider {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.ems-homepage .ems-shop-categories__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 34px 0 20px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ems-homepage .ems-shop-categories__viewport::-webkit-scrollbar {
	display: none;
}

.ems-homepage .ems-shop-categories__track {
	display: flex;
	gap: 12px;
	width: max-content;
	padding: 0 max(20px, calc((100vw - 1360px) / 2));
}

.ems-homepage .ems-shop-categories__card {
	display: flex;
	width: auto;
	height: 250px;
	flex: 0 0 clamp(250px, 22vw, 322px);
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	color: #111;
	text-align: center;
	text-decoration: none;
	scroll-snap-align: center;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.ems-homepage .ems-shop-categories__card:hover,
.ems-homepage .ems-shop-categories__card:focus-visible {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
	color: #111;
	transform: translateY(-2px);
}

.ems-homepage .ems-shop-categories__media {
	display: block;
	height: 168px;
	flex: 0 0 168px;
	overflow: hidden;
	background: #f5f5f5;
}

.ems-homepage .ems-shop-categories__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 240ms ease;
}

.ems-homepage .ems-shop-categories__card:hover .ems-shop-categories__media img,
.ems-homepage .ems-shop-categories__card:focus-visible .ems-shop-categories__media img {
	transform: scale(1.025);
}

.ems-homepage .ems-shop-categories__body {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	padding: 10px 16px 12px;
}

.ems-homepage .ems-shop-categories__body strong {
	display: block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.ems-homepage .ems-shop-categories__body > span {
	display: block;
	margin-top: 4px;
	color: #777;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.ems-homepage .ems-shop-categories__arrow {
	position: absolute;
	top: calc(50% + 7px);
	z-index: 3;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	color: #111;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.ems-homepage .ems-shop-categories__arrow--prev {
	left: 18px;
}

.ems-homepage .ems-shop-categories__arrow--next {
	right: 18px;
}

.ems-homepage .ems-shop-categories__arrow:hover,
.ems-homepage .ems-shop-categories__arrow:focus-visible {
	border-color: #f5a313;
	color: #f5a313;
}

.ems-homepage .ems-shop-categories__arrow[disabled],
.ems-homepage .ems-shop-categories__slider.is-static .ems-shop-categories__arrow {
	display: none;
}

@media (max-width: 767px) {
	body.ems-store-home .ems-homepage .ems-shop-categories {
		padding: 42px 0;
	}

	.ems-homepage .ems-shop-categories__head h2 {
		font-size: 26px;
	}

	.ems-homepage .ems-shop-categories__head > a {
		position: static;
		display: inline-block;
		margin-top: 12px;
	}

	.ems-homepage .ems-shop-categories__viewport {
		padding-top: 28px;
		padding-bottom: 12px;
	}

	.ems-homepage .ems-shop-categories__card {
		height: 185px;
		flex-basis: 260px;
	}

	.ems-homepage .ems-shop-categories__media {
		height: 120px;
		flex-basis: 120px;
	}

	.ems-homepage .ems-shop-categories__body {
		padding: 8px 14px 10px;
	}

	.ems-homepage .ems-shop-categories__body strong {
		font-size: 16px;
	}

	.ems-homepage .ems-shop-categories__arrow {
		display: none;
	}
}

/* Homepage category rail: provide the new section's spacing and stable 4:3 cards. */
body.ems-store-home .ems-homepage.bd-el-home .ems-shop-categories {
	padding: 60px 0 64px;
}

.ems-homepage.bd-el-home .ems-shop-categories__head h2 {
	margin-bottom: 16px;
}

.ems-homepage.bd-el-home .ems-shop-categories__head p {
	margin: 0;
}

.ems-homepage.bd-el-home .ems-shop-categories__viewport {
	padding-top: 44px;
	padding-bottom: 0;
}

.ems-homepage.bd-el-home .ems-shop-categories__track {
	gap: 20px;
}

.ems-homepage.bd-el-home .ems-shop-categories__card {
	height: auto;
	min-height: 0;
}

.ems-homepage.bd-el-home .ems-shop-categories__media {
	height: auto;
	aspect-ratio: 4 / 3;
	flex: 0 0 auto;
}

.ems-homepage.bd-el-home .ems-shop-categories__body {
	min-height: 78px;
}

/* The category section owns the inter-section gap, so the preserved brand
 * section keeps its internal spacing without doubling the gap. */
.ems-homepage.bd-el-home .ems-shop-categories + .bd-el-brands-section {
	padding-top: 0;
}

@media (max-width: 1100px) and (min-width: 768px) {
	.ems-homepage.bd-el-home .ems-shop-categories__card {
		flex-basis: min(42vw, 340px);
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	body.ems-store-home .ems-homepage.bd-el-home .ems-shop-categories {
		padding-top: 48px;
	}
}

@media (max-width: 767px) {
	body.ems-store-home .ems-homepage.bd-el-home .ems-shop-categories {
		padding-top: 38px;
		padding-bottom: 64px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__viewport {
		padding-top: 40px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__card {
		flex-basis: 260px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__body {
		min-height: 70px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__arrow {
		display: grid;
		width: 36px;
		height: 36px;
		font-size: 28px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__arrow--prev {
		left: 10px;
	}

	.ems-homepage.bd-el-home .ems-shop-categories__arrow--next {
		right: 10px;
	}
}
