.mpag-grid {
	display: grid;
	grid-template-columns: repeat(var(--mpag-columns-desktop, 3), minmax(0, 1fr));
	gap: var(--mpag-gap, 20px);
	align-items: stretch;
}
.mpag-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: all .3s ease;
}
.mpag-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}
.mpag-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	text-decoration: none;
}
.mpag-media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #fff;
}
.mpag-slides {
	position: relative;
	width: 100%;
}
.mpag-slide {
	display: none;
	width: 100%;
}
.mpag-slide.is-active {
	display: block;
}
.mpag-product-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
}
.mpag-content {
	position: relative;
	z-index: 1;
	padding: 14px;
	pointer-events: none;
}
.mpag-title {
	margin: 0 0 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
}
.mpag-price {
	margin: 0 0 8px;
	color: inherit;
}
.mpag-description {
	color: inherit;
	line-height: 1.5;
	white-space: normal;
}
.mpag-description p {
	margin: 0 0 .5em;
}
.mpag-description p:last-child {
	margin-bottom: 0;
}
.mpag-arrow,
.mpag-dot {
	position: absolute;
	z-index: 5;
	pointer-events: auto;
	cursor: pointer;
}
.mpag-arrow {
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: #333;
	font-size: 26px;
	line-height: 1;
	box-shadow: 0 1px 5px rgba(0,0,0,.15);
}
.mpag-prev { left: 8px; }
.mpag-next { right: 8px; }
.mpag-dots {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 9px;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}
.mpag-dot {
	position: static;
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,.28);
	pointer-events: auto;
}
.mpag-dot.is-active { background: rgba(0,0,0,.8); }
.mpag-pagination {
	margin-top: 24px;
	text-align: center;
}
.mpag-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mpag-pagination a,
.mpag-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 5px 10px;
	border: 1px solid #eee;
	border-radius: 4px;
	text-decoration: none;
}
.mpag-pagination .current {
	background: #f2f2f2;
}
.mpag-no-products { grid-column: 1 / -1; }
@media (max-width: 1024px) {
	.mpag-grid { grid-template-columns: repeat(var(--mpag-columns-tablet, 2), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.mpag-grid { grid-template-columns: repeat(var(--mpag-columns-mobile, 1), minmax(0, 1fr)); }
	.mpag-card:hover { box-shadow: none; transform: none; }
}
