/* Matching Products - Katrille — frontend
 *
 * Gymshark "Shop the look" style list: 80×100 thumbnail on the left,
 * product info in the middle, circular add-to-cart on the right.
 */

.mpk-wrap {
	margin: 28px 0 20px;
	padding: 0;
	font-family: inherit;
}

.mpk-heading {
	margin: 0 0 14px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #000;
}

.mpk-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e5e5e5;
}

.mpk-item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid #e5e5e5;
}

/* Thumbnail */
.mpk-item-image {
	flex: 0 0 auto;
	display: block;
	width: 80px;
	height: 100px;
	overflow: hidden;
	background: #f5f5f5;
	text-decoration: none;
}

.mpk-item-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info column */
.mpk-item-info {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.4;
}

.mpk-item-title {
	display: block;
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpk-item-title:hover {
	text-decoration: underline;
}

.mpk-item-variant {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	color: #888;
}

.mpk-item-price {
	font-size: 14px;
	color: #000;
}

.mpk-item-price del {
	margin-left: 4px;
	font-size: 13px;
	color: #999;
	font-weight: 400;
}

.mpk-item-price ins {
	text-decoration: none;
	font-weight: 600;
}

/* Action column — circular bag icon, native WC ajax_add_to_cart handles the click */
.mpk-item-action {
	flex: 0 0 auto;
}

.mpk-add-to-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: #fff;
	border: 1px solid #000;
	color: #000;
	border-radius: 50%;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.mpk-add-to-cart:hover,
.mpk-add-to-cart:focus-visible {
	background: #000;
	color: #fff;
	outline: none;
}

.mpk-add-to-cart:active {
	transform: scale(0.96);
}

/* WC marks the link with .added after a successful AJAX add. */
.mpk-add-to-cart.added {
	background: #000;
	color: #fff;
}

/* WC also injects a "View cart" link after .added — hide it so our list stays clean. */
.mpk-item-action .added_to_cart {
	display: none;
}

/* Loading state injected by wc-add-to-cart.js */
.mpk-add-to-cart.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Mobile tweaks */
@media (max-width: 480px) {
	.mpk-item-image {
		width: 64px;
		height: 80px;
	}
	.mpk-item {
		gap: 12px;
		padding: 12px 0;
	}
	.mpk-heading {
		font-size: 16px;
	}
	.mpk-add-to-cart {
		width: 38px;
		height: 38px;
	}
}
