/* MES Process Bar — homepage product category shortcuts (5 columns) */

.vc_custom_mes_process_bar,
.vc_custom_mes_process_bar > .vc_column_container > .vc_column-inner,
.vc_custom_mes_process_col {
	padding: 0 !important;
	margin: 0 !important;
}

.vc_custom_mes_process_bar .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.mes-process-bar {
	width: 100%;
	margin: 0;
	padding: 0;
	background: #1d1e1e;
	background: linear-gradient(to right, #1d1e1e 0%, #313131 100%);
}

.mes-process-bar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.mes-process-bar__item {
	flex: 1 1 20%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	box-sizing: border-box;
}

.mes-process-bar__item:last-child {
	border-right: none;
}

.mes-process-bar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 160px;
	padding: 28px 12px 24px;
	text-decoration: none !important;
	text-align: center;
	box-sizing: border-box;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mes-process-bar__link:hover,
.mes-process-bar__link:focus {
	background-color: #ffffff;
	text-decoration: none !important;
	outline: none;
}

.mes-process-bar__icon {
	display: block;
	line-height: 0;
}

.mes-process-bar__icon img {
	display: block;
	width: auto;
	max-width: 100px;
	height: 64px;
	margin: 0 auto;
	object-fit: contain;
	padding: 0;
}

.mes-process-bar__title {
	display: block;
	margin: 0;
	padding: 0;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
	font-family: Arial, Helvetica, sans-serif;
	transition: color 0.25s ease;
}

.mes-process-bar__link:hover .mes-process-bar__title,
.mes-process-bar__link:focus .mes-process-bar__title {
	color: #1f1a18 !important;
}

/* Full-bleed helpers when placed inside WoodMart / WPBakery rows */
.wd-page-content .mes-process-bar,
.entry-content .mes-process-bar,
.vc_column-inner > .wpb_wrapper > .mes-process-bar {
	margin-left: 0;
	margin-right: 0;
}

/* Tablet: keep 5 columns until narrow, then wrap to ~3 */
@media (max-width: 991px) {
	.mes-process-bar__item {
		flex: 1 1 33.333%;
	}

	.mes-process-bar__item:nth-child(3n) {
		border-right: none;
	}

	.mes-process-bar__item:last-child {
		border-right: 1px solid rgba(255, 255, 255, 0.12);
	}

	.mes-process-bar__link {
		min-height: 140px;
		padding: 22px 8px 18px;
	}

	.mes-process-bar__icon img {
		max-width: 88px;
		height: 56px;
	}

	.mes-process-bar__title {
		font-size: 12px;
	}
}

/* Mobile: 2 columns (last item full width) */
@media (max-width: 575px) {
	.mes-process-bar__item {
		flex: 1 1 50%;
	}

	.mes-process-bar__item:nth-child(3n) {
		border-right: 1px solid rgba(255, 255, 255, 0.12);
	}

	.mes-process-bar__item:nth-child(2n) {
		border-right: none;
	}

	.mes-process-bar__item:last-child {
		flex: 1 1 100%;
		border-right: none;
	}

	.mes-process-bar__link {
		min-height: 125px;
		padding: 18px 6px 16px;
	}

	.mes-process-bar__icon img {
		max-width: 78px;
		height: 50px;
	}

	.mes-process-bar__title {
		font-size: 12px;
	}
}
