/* MOT Image Grid - Frontend Styles */

.mig-grid {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.mig-row {
	display: flex;
	width: 100%;
}

.mig-item {
	position: relative;
	overflow: hidden;
	flex: 1 1 0;
	min-height: 220px;
}

.mig-item img.mig-bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mig-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
}

/* Product box on top of each image (bottom-left) */
.mig-product-box {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	max-width: calc(100% - 32px);
	text-decoration: none;
	border-radius: 8px;
	backdrop-filter: blur(4px);
	background: rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transition: transform 0.2s ease, background 0.2s ease;
}

.mig-product-box:hover {
	background: rgba(0, 0, 0, 0.28);
	transform: translateY(-2px);
}

.mig-box-img {
	padding: 8px;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mig-box-img img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border-radius: 50px;
	display: block;
}

.mig-box-content {
	padding: 6px 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.mig-category {
	font-family: inherit;
	line-height: 13px;
	color: hsla(0, 0%, 100%, 0.75);
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mig-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.mig-title-row h4 {
	font-family: inherit;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 16px;
	min-width: 0;
}

/* Icon is white: the SVG uses stroke (fill="none" on the path) so we set stroke color, not fill */
.mig-title-row svg {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	stroke: #fff;
	fill: none;
}

/* Responsive: stack into single column on small screens */
@media (max-width: 767px) {
	.mig-row {
		flex-direction: column;
	}
	.mig-item {
		flex: 1 1 100% !important;
		min-height: 260px;
	}
}
