/* Industrial strip: bridges dark hero â†’ light content; brand accent ties to logo */
.roichamps-sub-categories-slider {
	width: 100%;
	position: relative;
	padding: 1.5rem 0 1.75rem;
	/* background: linear-gradient(180deg, #dedede 0%, #ebebeb 35%, #efefef 100%); */
	/* border-top: 3px solid var(--e-global-color-47835ed); */
	/* box-shadow: inset 0 18px 22px -18px rgba(0, 0, 0, 0.35); */
}

.roichamps-sub-category-item {
	height: 100%;
	display: flex;
	align-items: stretch;
}

.roichamps-sub-categories-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.roichamps-sub-categories-slider .swiper-slide {
	height: auto;
	display: flex;
	align-items: stretch;
}

.roichamps-sub-category-item {
	width: 100%;
	display: flex;
	align-items: stretch;
	height: 100%;
}

.roichamps-sub-category-link {
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
	width: 100%;
	height: 100%;
	max-height: 170px;
	border-radius: 8px;
	overflow: hidden;
	background: #fafafa;
	border: 1px solid #2a2a2a;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.85) inset,
		0 10px 22px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Brand bar slides in â€” reads â€œheavy equipmentâ€ more than a soft gradient */
.roichamps-sub-category-link::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--e-global-color-47835ed);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 4;
	pointer-events: none;
}

.roichamps-sub-category-link:hover {
	transform: translateY(-3px);
	text-decoration: none;
	border-color: var(--e-global-color-47835ed);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 14px 28px rgba(0, 0, 0, 0.14),
		0 0 0 1px color-mix(in srgb, var(--e-global-color-47835ed) 35%, transparent);
}

.roichamps-sub-category-link:hover::before {
	transform: scaleX(1);
}

.roichamps-sub-category-image {
	width: 100%;
	height: 100px;
	min-height: 100px;
	max-height: 100px;
	flex-shrink: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	position: relative;
	overflow: hidden;
	transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.roichamps-sub-category-link:hover .roichamps-sub-category-image {
	/* background: linear-gradient(165deg, #cfcfcf 0%, #e3e3e3 50%, #ececec 100%); */
}

.roichamps-sub-category-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition:
		transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	filter: contrast(1.02);
	opacity: 1;
	position: relative;
	z-index: 1;
}

.roichamps-sub-category-link:hover .roichamps-sub-category-image img {
	transform: scale(1.04);
	filter: contrast(1.06);
}

.roichamps-sub-category-content {
	padding: 10px;
	text-align: center;
	background: #F7F9FB;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	max-height: 70px;
	overflow: hidden;
	transition: background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.roichamps-sub-category-link:hover .roichamps-sub-category-content {
	background: #eeeeee;
}

.roichamps-sub-category-title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #141414;
	line-height: 1.35;
	transition: color 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	word-wrap: break-word;
	overflow-wrap: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.roichamps-sub-category-link:hover .roichamps-sub-category-title {
	color: var(--e-global-color-47835ed);
}

.roichamps-sub-categories-slider .swiper-button-next,
.roichamps-sub-categories-slider .swiper-button-prev {
	width: 44px;
	height: 44px;
	background: #1a1a1a;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	color: #fff;
	margin-top: -22px;
	transition:
		background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.roichamps-sub-categories-slider .swiper-button-next::after,
.roichamps-sub-categories-slider .swiper-button-prev::after {
	font-size: 18px;
	font-weight: 700;
}

.roichamps-sub-categories-slider .swiper-button-next:hover,
.roichamps-sub-categories-slider .swiper-button-prev:hover {
	background: var(--e-global-color-47835ed);
	border-color: color-mix(in srgb, var(--e-global-color-47835ed) 65%, #ffffff);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
	transform: scale(1.05);
}

.roichamps-sub-categories-slider .swiper-button-prev {
	left: 0;
}

.roichamps-sub-categories-slider .swiper-button-next {
	right: 0;
}

.roichamps-sub-categories-slider .swiper-pagination {
	bottom: 0;
}

.roichamps-sub-categories-slider .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #8a8a8a;
	opacity: 1;
	transition:
		background-color 0.3s ease,
		width 0.3s ease,
		border-radius 0.3s ease;
}

.roichamps-sub-categories-slider .swiper-pagination-bullet-active {
	background: var(--e-global-color-47835ed);
	width: 24px;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.roichamps-sub-categories-slider {
		padding: 1rem 0 1.35rem;
	}

	.roichamps-sub-category-image {
		height: 70px;
		min-height: 70px;
		padding: 2px;
	}

	.roichamps-sub-category-content {
		padding: 5px 10px;
		min-height: 40px;
	}

	.roichamps-sub-category-title {
		font-size: 11px;
	}

	.roichamps-sub-categories-slider .swiper-button-next,
	.roichamps-sub-categories-slider .swiper-button-prev {
		width: 36px;
		height: 36px;
		display: none;
		margin-top: -18px;
	}

	.roichamps-sub-categories-slider .swiper-button-next::after,
	.roichamps-sub-categories-slider .swiper-button-prev::after {
		font-size: 14px;
	}
}
