.mkh-product-carousel {
	--mkh-pc-ink: var(--wp--preset--color--ink, #1e1e1e);
	--mkh-pc-muted: var(--wp--preset--color--muted, #484848);
	--mkh-pc-line: var(--wp--preset--color--mist, #e0dede);
	--mkh-pc-blue: var(--wp--preset--color--primary, #400080);
	--mkh-pc-pink: var(--wp--preset--color--accent, #f4b011);
	--mkh-pc-gap: 2rem;
	--mkh-pc-visible: 5;
	width: 100%;
	max-width: var(--mkh-content-max, 1190px);
	margin: 2.5rem auto;
	padding: 0 var(--mkh-header-gutter, 1.25rem) 1rem;
	color: var(--mkh-pc-ink);
	box-sizing: border-box;
}

.mkh-product-carousel *,
.mkh-product-carousel *::before,
.mkh-product-carousel *::after {
	box-sizing: border-box;
}

.mkh-product-carousel__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.mkh-product-carousel__heading {
	margin: 0;
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.mkh-product-carousel__sub {
	margin: 0.4rem 0 0;
	color: var(--mkh-pc-muted);
	font-size: 0.95rem;
	max-width: 36rem;
	line-height: 1.45;
}

.mkh-product-carousel__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mkh-pc-ink);
	background: #fff;
	color: var(--mkh-pc-ink);
	border-radius: 999px;
	padding: 0.7rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.mkh-product-carousel__cta:hover {
	background: var(--mkh-pc-ink);
	color: #fff;
}

.mkh-product-carousel__tabs {
	display: flex;
	gap: 1.75rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--mkh-pc-line);
	margin-bottom: 1.35rem;
	scrollbar-width: none;
}

.mkh-product-carousel__tabs::-webkit-scrollbar {
	display: none;
}

.mkh-product-carousel__tab {
	appearance: none;
	border: 0;
	background: none;
	padding: 0 0 0.85rem;
	margin: 0 0 -1px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--wp--preset--color--slate, #747474);
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

.mkh-product-carousel__tab.is-active {
	color: var(--mkh-pc-ink);
	font-weight: 700;
	border-bottom-color: var(--mkh-pc-blue);
}

.mkh-product-carousel__stage {
	position: relative;
}

.mkh-product-carousel__track {
	display: flex;
	gap: var(--mkh-pc-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.25rem 0 1rem;
	scrollbar-width: none;
}

.mkh-product-carousel__track::-webkit-scrollbar {
	display: none;
}

.mkh-product-carousel__btn {
	position: absolute;
	top: 5.5rem;
	z-index: 4;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--mkh-pc-blue);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mkh-product-carousel__btn:hover {
	transform: scale(1.05);
}

.mkh-product-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.mkh-product-carousel__btn--prev {
	left: calc(-2.75rem - 0.5rem);
}

.mkh-product-carousel__btn--next {
	right: calc(-2.75rem - 0.5rem);
}

.mkh-product-carousel__empty {
	margin: 0;
	padding: 2rem 0;
	color: var(--mkh-pc-muted);
}

.mkh-pcard {
	flex: 0 0 calc((100% - (var(--mkh-pc-visible) - 1) * var(--mkh-pc-gap)) / var(--mkh-pc-visible));
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: var(--mkh-pc-ink);
}

.mkh-pcard__media {
	position: relative;
	aspect-ratio: 1;
	background: #fff;
	margin-bottom: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	overflow: hidden;
}

.mkh-pcard__media img,
.mkh-product-carousel__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mkh-pcard__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	background: var(--mkh-pc-pink);
	color: var(--mkh-pc-ink);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.28rem 0.5rem;
	line-height: 1.2;
}

.mkh-pcard__name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.3;
}

.mkh-pcard__name a {
	color: inherit;
	text-decoration: none;
}

.mkh-pcard__name a:hover {
	text-decoration: underline;
}

.mkh-pcard__desc {
	margin: 0.2rem 0 0;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--mkh-pc-ink);
}

.mkh-pcard__price {
	margin: 0.65rem 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	line-height: 1.15;
	font-weight: 700;
}

.mkh-pcard__price .woocommerce-Price-amount,
.mkh-pcard__price .amount {
	font-size: 1.35rem;
	font-weight: 700;
}

.mkh-pcard__price del {
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.6;
}

.mkh-pcard__price ins {
	text-decoration: none;
}

.mkh-pcard__currency {
	font-size: 0.78rem;
	font-weight: 700;
	margin-top: 0.2rem;
}

.mkh-pcard__amount {
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mkh-pcard__cents {
	font-size: 0.95rem;
	font-weight: 700;
	margin-top: 0.15rem;
}

.mkh-pcard__rating {
	margin: 0.55rem 0 0;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--mkh-pc-muted);
}

.mkh-pcard__stars {
	color: var(--mkh-pc-ink);
	letter-spacing: 0.05em;
	font-size: 0.72rem;
}

.mkh-pcard__more {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	color: var(--mkh-pc-blue);
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
}

.mkh-pcard__more:hover {
	text-decoration: underline;
}

.mkh-pcard__actions {
	margin-top: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.mkh-pcard__cart {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--mkh-pc-blue);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mkh-pcard__wish {
	width: 2rem;
	height: 2rem;
	color: var(--mkh-pc-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

@media (max-width: 980px) {
	.mkh-product-carousel {
		--mkh-pc-gap: 1.25rem;
		--mkh-pc-visible: 3;
		margin: 2rem auto;
		padding: 0 1.15rem 0.75rem;
	}

	.mkh-product-carousel__btn {
		display: none;
	}

	.mkh-product-carousel__head {
		align-items: flex-start;
		gap: 0.85rem 1rem;
	}

	.mkh-product-carousel__tabs {
		gap: 1.15rem;
		margin-inline: -0.15rem;
		padding-inline: 0.15rem;
	}
}

@media (max-width: 560px) {
	.mkh-product-carousel {
		--mkh-pc-gap: 1rem;
		--mkh-pc-visible: 2;
		margin: 1.65rem auto;
		padding: 0 1rem 0.5rem;
	}

	.mkh-product-carousel__cta {
		padding: 0.6rem 1.05rem;
		font-size: 0.82rem;
	}

	.mkh-pcard__name {
		font-size: 0.82rem;
	}
}
