/* ==========================================================================
   MKP – redesigned single product page
   Loaded after the theme stylesheet (priority 99) and scoped to
   .mkp-product-page / .mkp-container so nothing else is affected.
   ========================================================================== */

.mkp-container {
	--mkp-accent: var(--mks-add-to-cart-color, #c08911);
	--mkp-accent-dark: #8f6407;
	--mkp-accent-soft: #fbf4e3;
	--mkp-accent-line: #efdcae;
	--mkp-ink: #14171f;
	--mkp-text: #4b5160;
	--mkp-muted: #8a909c;
	--mkp-line: #eceef2;
	--mkp-surface: #ffffff;
	--mkp-chip: #f4f5f7;
	--mkp-green: #1b7f4b;
	--mkp-green-soft: #e9f7ef;
	--mkp-red: #d6314b;
	--mkp-red-soft: #fdecef;
	--mkp-star: #f2a91c;
	--mkp-radius: 22px;
	--mkp-radius-sm: 14px;
	--mkp-shadow: 0 1px 2px rgba(20, 23, 31, .04), 0 8px 24px rgba(20, 23, 31, .04);
	--mkp-btn-h: 56px;
}

@supports (color: color-mix(in srgb, red, blue)) {
	.mkp-container {
		--mkp-accent-dark: color-mix(in srgb, var(--mkp-accent) 72%, #000);
		--mkp-accent-soft: color-mix(in srgb, var(--mkp-accent) 9%, #fff);
		--mkp-accent-line: color-mix(in srgb, var(--mkp-accent) 28%, #fff);
	}
}

/* ---------- Breadcrumb ---------------------------------------------------- */
.mkp-container .mkp-breadcrumb {
	margin: 18px 0 18px;
	font-size: 12.5px;
	color: var(--mkp-muted);
}
.mkp-container .mkp-breadcrumb a {
	color: var(--mkp-muted);
}
.mkp-container .mkp-breadcrumb a:hover {
	color: var(--mkp-accent-dark);
}
.mkp-container .mkp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	line-height: 2;
}
.mkp-container .mkp-breadcrumb a::after {
	content: "\f104";
	display: inline-block;
	margin: 0 9px;
	font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
	font-weight: 300;
	font-size: 11px;
	color: #b6bac4;
}
.mkp-container .mkp-breadcrumb > span { color: var(--mkp-text); }

/* ---------- Hero grid ----------------------------------------------------- */
.mkp-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 0;
	align-items: start;
	margin: 0 0 24px;
	/* one continuous card: gallery + summary */
	background: var(--mkp-surface);
	border: 1px solid var(--mkp-line);
	box-shadow: var(--mkp-shadow);
}

.mkp-gallery-card,
.mkp-summary-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 26px;
	min-width: 0;
}



@media (min-width: 992px) {
	.mkp-hero {
		border-radius: var(--mkp-radius);
	}
	.mkp-gallery-card {
		position: sticky;
		top: 96px;
	}
}

/* ---------- Gallery ------------------------------------------------------- */
.mkp-gallery-card .mkp-gallery-inner,
.mkp-gallery-card .spm-gallery {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

.mkp-gallery-card .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
}

.mkp-gallery-card .flex-viewport {
	position: relative;
	border-radius: 18px;
	background: linear-gradient(160deg, #ffffff 0%, #f1f2f5 100%);
	overflow: hidden;
}

.mkp-gallery-card .woocommerce-product-gallery__image {
	background: transparent;
}

.mkp-gallery-card .woocommerce-product-gallery__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
}

.mkp-gallery-card .woocommerce-product-gallery__image img,
.mkp-gallery-card .spm-gallery:not(.mks-gallery-single) .woocommerce-product-gallery__image:first-child img.wp-post-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	background: transparent;
	border-radius: 0;
	padding: 18px;
	mix-blend-mode: multiply;
}

/* Thumbnails */
.mkp-gallery-card .flex-control-thumbs {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	margin: 14px 0 0;
	padding: 2px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.mkp-gallery-card .flex-control-thumbs::-webkit-scrollbar { display: none; }
.mkp-gallery-card .flex-control-thumbs::before,
.mkp-gallery-card .flex-control-thumbs::after { display: none; }

.mkp-gallery-card .flex-control-thumbs li {
	flex: 0 0 calc((100% - 40px) / 5);
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
}

.mkp-gallery-card .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 6px;
	background: #fff;
	border: 1.5px solid var(--mkp-line);
	border-radius: 14px;
	opacity: .75;
	cursor: pointer;
	transition: border-color .2s, opacity .2s, transform .2s;
}
.mkp-gallery-card .flex-control-thumbs li img:hover {
	opacity: 1;
}
.mkp-gallery-card .flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: var(--mkp-accent);
	box-shadow: 0 0 0 3px var(--mkp-accent-soft);
}

/* Floating actions (favourite / share) */
.mkp-gallery-card .spm-sal {
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto;
	z-index: 6;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.mkp-gallery-card .spm-sal .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0 !important;
	border-radius: 50%;
	background: #fff !important;
	color: #2b2f3a;
	box-shadow: 0 2px 10px rgba(20, 23, 31, .12);
	transition: transform .15s, box-shadow .15s, color .15s;
}
.mkp-gallery-card .spm-sal .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(20, 23, 31, .16);
	color: var(--mkp-accent-dark);
}
.mkp-gallery-card .spm-sal .btn i {
	font-size: 19px;
	line-height: 1;
}

/* Bookmark glyph -> heart (the theme JS swaps the bookmark markup) */
.mkp-gallery-card .spm-sal .spm-like-icon::before {
	content: "\f004";
}
.mkp-gallery-card .spm-sal .spm-like-icon.text-danger {
	color: var(--mkp-red) !important;
}

/* Expand button (moved into the viewport by mkp-product.js) */
.mkp-gallery-card .mks-product-gallery-open {
	left: auto;
	right: 14px;
	top: auto;
	bottom: 14px;
	width: 44px;
	height: 44px;
	background: #fff;
	color: #2b2f3a;
	font-size: 17px;
	box-shadow: 0 2px 10px rgba(20, 23, 31, .12);
}
.mkp-gallery-card .mks-product-gallery-open:hover {
	background: var(--mkp-accent);
	color: #fff;
}

/* Theme overlay badges inside the gallery */
.mkp-gallery-card .mks-spt {
	z-index: 5;
}

/* ---------- Summary card -------------------------------------------------- */
.mkp-summary-card {
	padding: 26px 28px 28px;
}

.mkp-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mkp-info__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.mkp-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--mkp-text);
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}
.mkp-rating:hover { color: var(--mkp-ink); }
.mkp-rating__avg { font-weight: 800; color: var(--mkp-ink); }
.mkp-rating__count { color: var(--mkp-muted); }

.mkp-stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
	direction: rtl;
}
.mkp-stars__bg { color: #dcdee4; }
.mkp-stars__fg {
	position: absolute;
	top: 0;
	right: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--mkp-star);
}
.mkp-stars i {
	font-style: normal;
}
.mkp-stars__bg i,
.mkp-stars__fg i {
	font-weight: 900;
}

.mkp-sku {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 10px;
	background: var(--mkp-chip);
	font-size: 12px;
	color: var(--mkp-text);
	white-space: nowrap;
}
.mkp-sku__code {
	font-weight: 700;
	color: var(--mkp-ink);
	direction: ltr;
	unicode-bidi: embed;
}

.mkp-container h1.mkp-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: clamp(20px, 1.75vw, 26px);
	font-weight: 800;
	line-height: 1.75;
	color: var(--mkp-ink);
	text-align: right;
}
.mkp-container h1.mkp-title::before,
.mkp-container h1.mkp-title::after { display: none; }

.mkp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0;
	padding: 0 0 18px;
	list-style: none;
	border-bottom: 1px solid var(--mkp-line);
	font-size: 13px;
	color: var(--mkp-muted);
}
.mkp-meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 0 0 16px;
}
.mkp-meta li + li {
	padding: 0 16px;
	border-right: 1px solid var(--mkp-line);
}
.mkp-meta a,
.mkp-meta strong {
	color: var(--mkp-ink);
	font-weight: 700;
	text-decoration: none;
}
.mkp-meta a:hover { color: var(--mkp-accent-dark); }

/* ---------- Buy block ----------------------------------------------------- */
.mkp-buy {
	padding: 20px 0 4px;
}

.mkp-buy__status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.mkp-stock {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 180px;
	padding: 11px 18px 11px 22px;
	border-radius: 14px;
	background: var(--mkp-green-soft);
	color: var(--mkp-green);
}
.mkp-stock__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mkp-green);
	color: #fff;
	font-size: 15px;
}
.mkp-stock__text {
	display: flex;
	flex-direction: column;
	line-height: 1.5;
}
.mkp-stock__text strong {
	font-size: 14px;
	font-weight: 800;
}
.mkp-stock__text small {
	font-size: 11.5px;
	opacity: .85;
}
.mkp-stock.is-out {
	background: var(--mkp-red-soft);
	color: var(--mkp-red);
}
.mkp-stock.is-out .mkp-stock__icon {
	background: var(--mkp-red);
}

.mkp-buy__status.is-notify {
	display: block;
}

.mkp-notify {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--mkp-red-soft);
	border: 1px solid color-mix(in srgb, var(--mkp-red) 14%, #fff);
	box-sizing: border-box;
}
.mkp-notify__lead {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.mkp-notify__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--mkp-red) !important;
	color: #fff !important;
	font-size: 14px;
	line-height: 1;
}
.mkp-notify__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.5;
}
.mkp-notify__copy strong {
	font-size: 14px;
	font-weight: 800;
	color: var(--mkp-red);
}
.mkp-notify__copy small {
	font-size: 12px;
	color: #8d4452;
}
.mkp-notify__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	direction: rtl;
}
.mkp-container .mkp-notify .tell-me-in-stock-input {
	display: block;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: 46px;
	margin: 0 !important;
	padding: 0 14px;
	border: 1px solid #f3c6ce !important;
	border-radius: 12px;
	background: #fff;
	color: var(--mkp-ink);
	font-size: 13.5px;
	text-align: center;
	box-shadow: none;
	box-sizing: border-box;
}
.mkp-container .mkp-notify .tell-me-in-stock-input::placeholder {
	color: #b08a92;
}
.mkp-container .mkp-notify .tell-me-in-stock-input:focus {
	outline: none;
	border-color: var(--mkp-red) !important;
}
.mkp-container .mkp-notify .mkp-notify__btn.tell-me-in-stock-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 148px;
	max-width: 100%;
	height: 46px;
	margin: 0 !important;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--mkp-red);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
}
.mkp-container .mkp-notify .mkp-notify__btn:hover {
	color: #fff;
	filter: brightness(.96);
}
.mkp-container .mkp-notify .mkp-notify__btn .spinner-border,
.mkp-notify__spin {
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mkp-notify-spin .6s linear infinite;
}
@keyframes mkp-notify-spin {
	to { transform: rotate(360deg); }
}
.mkp-container .mkp-notify .mkp-notify__btn.is-done {
	opacity: .72;
	pointer-events: none;
}
.mkp-notify__msg {
	margin: 0;
	padding: 8px 12px;
	border-radius: 10px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
	transition: opacity .25s ease;
}
.mkp-notify__msg[hidden] { display: none !important; }
.mkp-notify__msg.is-ok { color: var(--mkp-green); }
.mkp-notify__msg.is-err { color: var(--mkp-red); }
.mkp-notify__msg.is-leaving { opacity: 0; }

/* Price */
.mkp-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-inline-start: auto;
	text-align: left;
	min-width: 0;
}
.mkp-price__amount .price,
.mkp-price .price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	padding: 0;
	line-height: 1.3;
	font-size: 15px;
	color: var(--mkp-ink);
}
.mkp-price .price del,
.mkp-price del {
	order: -1;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	font-size: 15px;
	font-weight: 500;
	color: var(--mkp-muted);
	opacity: 1;
}
.mkp-price .price ins,
.mkp-price ins {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	background: none;
	text-decoration: none;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 900;
	color: var(--mkp-accent-dark);
	line-height: 1.2;
}
.mkp-price .price > .woocommerce-Price-amount,
.mkp-price .price > bdi {
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 900;
	color: var(--mkp-accent-dark);
}
.mkp-price .woocommerce-Price-amount,
.mkp-price bdi {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-weight: inherit;
	color: inherit;
}
.mkp-price .woocommerce-Price-currencySymbol {
	width: auto !important;
	min-width: 0;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: var(--mkp-text);
}
.mkp-price del .woocommerce-Price-currencySymbol {
	font-size: 12px;
}
/* Neutralise legacy spacing rules (.price ins > span > bdi > span { margin: 0 5px }) */
.mkp-price .price { margin-top: 0; text-align: inherit; }
.mkp-price .price ins > span > bdi > span,
.mkp-price .price del > span > bdi > span { margin: 0; }
/* Toman artwork -> editable text unit */
.mkp-price .woocommerce-Price-currencySymbol:has(.mks-toman-symbol) {
	font-size: 14px;
	font-weight: 600;
	color: var(--mkp-text);
}
.mkp-price .woocommerce-Price-currencySymbol:has(.mks-toman-symbol) > * {
	display: none !important;
}
.mkp-price .woocommerce-Price-currencySymbol:has(.mks-toman-symbol)::after {
	content: var(--mkp-unit, "تومان");
}
.mkp-price del .woocommerce-Price-currencySymbol:has(.mks-toman-symbol) { font-size: 12px; }

.mkp-price__badge,
.mkp-price .mkp-price__badge {
	display: inline-flex;
	align-items: center;
	order: -2;
	margin: 0 0 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--mkp-red);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.7;
	vertical-align: middle;
}

/* Cart form */
.mkp-buy__cart {
	margin: 0;
}
.mkp-buy__cart form.cart,
.mkp-buy__cart .cart {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.mkp-buy .spm-form-add-to-cart,
.mkp-buy .woocommerce-variation-add-to-cart,
.mkp-buy .single_variation_wrap .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-direction: row;
	align-items: stretch;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.mkp-buy .spm-form-add-to-cart .btn-add-to-cart,
.mkp-buy .single_add_to_cart_button {
	order: 1;
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: auto;
	min-height: var(--mkp-btn-h);
	height: var(--mkp-btn-h);
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mkp-accent) 86%, #fff) 0%, var(--mkp-accent) 100%);
	background-color: var(--mkp-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--mkp-accent) 32%, transparent);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.mkp-buy .spm-form-add-to-cart .btn-add-to-cart:hover,
.mkp-buy .single_add_to_cart_button:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 12px 24px color-mix(in srgb, var(--mkp-accent) 38%, transparent);
	color: #fff;
}
.mkp-buy .single_add_to_cart_button:not(.loading)::after {
	content: "\f07a";
	font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
	font-weight: 300;
	font-size: 20px;
	line-height: 1;
}
.mkp-buy .single_add_to_cart_button.disabled,
.mkp-buy .single_add_to_cart_button:disabled {
	filter: grayscale(.4);
	opacity: .55;
	box-shadow: none;
}

/* Quantity */
.mkp-buy .spm-simple-qty,
.mkp-buy .woocommerce-variation-add-to-cart .quantity-wrapper {
	order: 2;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	direction: ltr;
	height: var(--mkp-btn-h);
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--mkp-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}
.mkp-buy .spm-simple-qty .spm-increment,
.mkp-buy .spm-simple-qty .spm-decrement {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mkp-ink);
	font-size: 18px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mkp-buy .spm-simple-qty .spm-increment:hover,
.mkp-buy .spm-simple-qty .spm-decrement:hover {
	background: var(--mkp-accent-soft);
	color: var(--mkp-accent-dark);
}
.mkp-buy .spm-simple-qty .quantity {
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0;
	border-left: 1px solid var(--mkp-line);
	border-right: 1px solid var(--mkp-line);
}
.mkp-buy .spm-simple-qty .quantity input,
.mkp-buy .spm-simple-qty .quantity input.qty {
	width: 52px !important;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center !important;
	font-size: 18px;
	font-weight: 800;
	color: var(--mkp-ink);
	-moz-appearance: textfield;
	appearance: textfield;
}
.mkp-buy .spm-simple-qty .quantity input::-webkit-outer-spin-button,
.mkp-buy .spm-simple-qty .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Variable products */
.mkp-buy .variations {
	width: 100%;
	margin: 0 0 14px;
}
.mkp-buy .woocommerce-variation-price .price,
.mkp-buy .woocommerce-variation-price .price ins {
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 900;
	color: var(--mkp-accent-dark);
	background: none;
}
.mkp-buy.mkp-has-variation .mkp-price {
	display: none;
}
.mkp-buy .single_variation_wrap {
	margin-top: 4px;
}

/* ---------- Trust badges -------------------------------------------------- */
.mkp-trust {
	display: grid;
	grid-template-columns: repeat(var(--mkp-trust-count, 5), minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.mkp-trust > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 3px;
	margin: 0;
	padding: 14px 6px 12px;
	border-radius: var(--mkp-radius-sm);
	background: var(--mkp-chip);
	text-align: center;
	min-width: 0;
}
.mkp-trust__icon { display: block; line-height: 1; }
.mkp-trust i {
	margin-bottom: 6px;
	font-size: 24px;
	line-height: 1;
	color: #3a3f4b;
}
.mkp-trust strong {
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--mkp-ink);
}
.mkp-trust small {
	font-size: 11px;
	line-height: 1.5;
	color: var(--mkp-muted);
}

/* ---------- Intro & features --------------------------------------------- */
.mkp-intro {
	margin: 22px 0 0;
	font-size: 14px;
	line-height: 2.1;
	color: #666c79;
	text-align: justify;
}
.mkp-intro p { margin: 0 0 6px; }
.mkp-intro p:last-child { margin-bottom: 0; }

.mkp-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
.mkp-features__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 16px 8px 14px;
	border: 1px solid var(--mkp-accent-line);
	border-radius: var(--mkp-radius-sm);
	background: var(--mkp-accent-soft);
	text-align: center;
	min-width: 0;
}
.mkp-features__icon {
	margin-bottom: 6px;
	font-size: 26px;
	line-height: 1;
	color: var(--mkp-accent);
}
.mkp-features__item strong {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--mkp-ink);
}
.mkp-features__item small,
.mkp-features__item span:not(.mkp-features__icon) {
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--mkp-muted);
}

.mkp-note {
	margin-top: 16px;
}
.mkp-hooks:empty { display: none; }
.mkp-hooks { margin-top: 0; }

/* ---------- Tabs card ----------------------------------------------------- */
.mkp-tabs {
	margin: 0 0 24px;
	background: var(--mkp-surface);
	border: 1px solid var(--mkp-line);
	border-radius: var(--mkp-radius);
	box-shadow: var(--mkp-shadow);
	overflow: hidden;
}

.mkp-tabs__nav {
	display: flex;
	justify-content: center;
	gap: clamp(20px, 4.5vw, 64px);
	padding: 0 24px;
	border-bottom: 1px solid var(--mkp-line);
	overflow-x: auto;
	scrollbar-width: none;
}
.mkp-tabs__nav::-webkit-scrollbar { display: none; }

.mkp-tabs__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 20px 4px;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--mkp-text);
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s;
}
.mkp-tabs__tab:hover { color: var(--mkp-ink); }
.mkp-tabs__tab:focus-visible {
	outline: 2px solid var(--mkp-accent);
	outline-offset: -4px;
	border-radius: 8px;
}
.mkp-tabs__tab.is-active {
	font-weight: 800;
	color: var(--mkp-accent-dark);
}
.mkp-tabs__tab.is-active::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--mkp-accent);
}
.mkp-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mkp-chip);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--mkp-text);
}
.mkp-tabs__tab.is-active .mkp-tabs__count {
	background: var(--mkp-accent-soft);
	color: var(--mkp-accent-dark);
}

.mkp-tabs__panel {
	padding: 28px 32px 32px;
}
.mkp-tabs__panel[hidden] { display: none !important; }

/* Neutralise legacy section chrome inside the panels */
.mkp-tabs__panel .section-title,
.mkp-tabs__panel .spm-title-section {
	display: none;
}
.mkp-tabs__panel .limited-box {
	max-height: none !important;
	overflow: visible !important;
	padding-bottom: 0;
}
.mkp-tabs__panel .limited-box::after,
.mkp-tabs__panel .limited-box::before { display: none !important; }
.mkp-tabs__panel .limited-toggle-show,
.mkp-tabs__panel .limited-toggle,
.mkp-tabs__panel .mks-limited-toggle { display: none !important; }
.mkp-tabs__panel .limited-box h2,
.mkp-tabs__panel .limited-box h3 {
	font-weight: 800;
	line-height: 1.8;
}
.mkp-panel-description .limited-box p {
	text-align: justify;
	text-align-last: start;
}
.mkp-panel-description .limited-box h2,
.mkp-panel-description .limited-box h3 {
	font-weight: 800;
	text-align: right;
	margin: 28px 0 8px;
}
.mkp-panel-description .limited-box h2:first-of-type { margin-top: 22px; }
.mkp-panel-description .limited-box ul {
	margin: 8px 0 0;
	padding: 0 20px 0 0;
	list-style: none;
}
.mkp-panel-description .limited-box li {
	margin: 0 0 6px;
	line-height: 2;
}
.mkp-panel-description .limited-box a {
	color: var(--mkp-accent-dark);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--mkp-accent) 45%, transparent);
	text-underline-offset: 4px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.mkp-panel-description .limited-box a:hover {
	color: var(--mkp-accent);
	text-decoration-color: currentColor;
}
.mkp-tabs__panel .limited-box h2 { font-size: 20px; }
.mkp-tabs__panel .limited-box h3 { font-size: 17px; }
.mkp-tabs__panel .limited-box,
.mkp-tabs__panel .limited-box p {
	font-size: 14.5px;
	line-height: 2.2;
	color: #50565f;
}
.mkp-tabs__panel .limited-box img { max-width: 100%; height: auto; border-radius: 12px; }

.mkp-panel-reviews .spm-comments,
.mkp-panel-reviews #p-comments,
.mkp-panel-reviews .mks-comments-section {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* ---------- Specs --------------------------------------------------------- */
.mkp-specs__group + .mkp-specs__group { margin-top: 26px; }

.mkp-specs__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--mkp-ink);
}
.mkp-specs__title::before {
	content: "";
	width: 4px;
	height: 18px;
	border-radius: 4px;
	background: var(--mkp-accent);
}

.mkp-specs__list {
	margin: 0;
	padding: 0;
	column-count: 2;
	column-gap: 64px;
	column-rule: 1px solid var(--mkp-line);
}
.mkp-specs__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin: 0;
	padding: 15px 0;
	border-bottom: 1px solid #f0f1f4;
	break-inside: avoid;
}
.mkp-specs__row dt {
	flex: 0 1 44%;
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--mkp-ink);
}
.mkp-specs__row dd {
	flex: 1 1 auto;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.9;
	color: #6a707d;
	text-align: left;
}
.mkp-specs__row dd a { color: var(--mkp-accent-dark); }

/* ---------- Q&A ----------------------------------------------------------- */
.mkp-qa {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px;
	align-items: start;
}
.mkp-qa__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.mkp-qa__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 36px 16px;
	border: 1.5px dashed var(--mkp-line);
	border-radius: var(--mkp-radius-sm);
	text-align: center;
	font-size: 13.5px;
	color: var(--mkp-muted);
}
.mkp-qa__empty i { font-size: 28px; color: #c5c9d2; }

.mkp-qa-item {
	padding: 16px 18px;
	border: 1px solid var(--mkp-line);
	border-radius: var(--mkp-radius-sm);
	background: #fff;
}
.mkp-qa-item__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}
.mkp-qa-item__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mkp-accent-soft);
	color: var(--mkp-accent);
	font-size: 17px;
}
.mkp-qa-item__who {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
}
.mkp-qa-item__who strong { font-size: 13.5px; font-weight: 800; color: var(--mkp-ink); }
.mkp-qa-item__who time { font-size: 11.5px; color: var(--mkp-muted); }
.mkp-qa-item__text {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: var(--mkp-ink);
}
.mkp-qa-answer {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--mkp-chip);
}
.mkp-qa-answer.is-staff {
	background: var(--mkp-accent-soft);
	border: 1px solid var(--mkp-accent-line);
}
.mkp-qa-answer__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 800;
	color: var(--mkp-text);
}
.mkp-qa-answer.is-staff .mkp-qa-answer__badge { color: var(--mkp-accent-dark); }
.mkp-qa-answer p {
	margin: 0;
	font-size: 13.5px;
	line-height: 2;
	color: #50565f;
}

.mkp-qa__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border: 1px solid var(--mkp-line);
	border-radius: var(--mkp-radius);
	background: #fafbfc;
	min-width: 0;
}
.mkp-qa__form-head h3 {
	margin: 0 0 4px;
	font-size: 16.5px;
	font-weight: 800;
	color: var(--mkp-ink);
}
.mkp-qa__form-head p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--mkp-muted);
}
.mkp-qa__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.mkp-qa__field {
	display: block;
	margin: 0;
	min-width: 0;
}
.mkp-qa__field--wide { grid-column: 1 / -1; }
.mkp-qa__field > span {
	display: block;
	margin: 0 0 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mkp-text);
}
.mkp-qa__field > span em { color: var(--mkp-red); font-style: normal; }
.mkp-qa__field > span small { font-weight: 400; color: var(--mkp-muted); font-size: 11px; }
.mkp-qa__form input[type="text"],
.mkp-qa__form input[type="tel"],
.mkp-qa__form textarea {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--mkp-line);
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: var(--mkp-ink);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.mkp-qa__form textarea { min-height: 120px; resize: vertical; line-height: 1.9; }
.mkp-qa__form input:focus,
.mkp-qa__form textarea:focus {
	outline: 0;
	border-color: var(--mkp-accent);
	box-shadow: 0 0 0 3px var(--mkp-accent-soft);
}
.mkp-qa__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mkp-qa__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}
.mkp-qa__response {
	font-size: 13px;
	line-height: 1.9;
}
.mkp-qa__response:empty { display: none; }
.mkp-qa__response.is-ok { color: var(--mkp-green); }
.mkp-qa__response.is-err { color: var(--mkp-red); }

.mkp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 800;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.mkp-btn--primary {
	background: var(--mkp-accent);
	color: #fff;
}
.mkp-btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.mkp-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Legal cards --------------------------------------------------- */
.mkp-legal {
	margin: 0 0 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
	.mkp-summary-card { padding: 22px; }
	.mkp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
	.mkp-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.mkp-gallery-card { position: static; }
	.mkp-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mkp-qa { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
	.mkp-gallery-card { padding: 14px 14px 4px; }
	.mkp-summary-card { padding: 14px 16px 20px; }

	.mkp-container .mkp-breadcrumb { margin: 12px 0; }

	.mkp-gallery-card .spm-sal { top: 10px; right: 10px; }
	.mkp-gallery-card .spm-sal .btn { width: 40px; height: 40px; }
	.mkp-gallery-card .mks-product-gallery-open { right: 10px; bottom: 10px; width: 40px; height: 40px; }

	.mkp-info__top { flex-wrap: wrap; }
	.mkp-container h1.mkp-title { font-size: 18px; }
	.mkp-meta { font-size: 12.5px; }
	.mkp-meta li + li { padding: 0 12px; }

	/* Rating + SKU sit under brand/category; desktop order stays. */
	.mkp-info > .mkp-title { order: 1; }
	.mkp-info > .mkp-meta {
		order: 2;
		padding-bottom: 10px;
		border-bottom: 0;
	}
	.mkp-info > .mkp-info__top {
		order: 3;
		margin-bottom: 0;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--mkp-line);
	}
	.mkp-info > .mkp-buy,
	.mkp-info > .mkp-trust,
	.mkp-info > .mkp-intro,
	.mkp-info > .mkp-features,
	.mkp-info > .mkp-note,
	.mkp-info > .mkp-hooks { order: 4; }

	.mkp-buy__status { flex-direction: column; align-items: stretch; gap: 14px; }
	.mkp-notify { padding: 12px; }
	.mkp-notify__form { grid-template-columns: minmax(0, 1fr); }
	.mkp-container .mkp-notify .mkp-notify__btn.tell-me-in-stock-btn { width: 100% !important; min-width: 0; }
	.mkp-price { margin-inline-start: 0; align-items: flex-end; text-align: left; }
	.mkp-price .price { align-items: flex-end; }
	.mkp-stock { min-width: 0; padding: 9px 14px; }
	.mkp-price { flex: 0 1 auto; max-width: 100%; }
	.mkp-price .price ins,
	.mkp-price ins { font-size: 22px; gap: 4px; }

	.mkp-buy .spm-form-add-to-cart,
	.mkp-buy .woocommerce-variation-add-to-cart { gap: 10px; }
	.mkp-buy { --mkp-btn-h: 52px; }
	.mkp-buy .spm-simple-qty .spm-increment,
	.mkp-buy .spm-simple-qty .spm-decrement { width: 36px; }
	.mkp-buy .spm-simple-qty .quantity input,
	.mkp-buy .spm-simple-qty .quantity input.qty { width: 40px !important; font-size: 16px; }
	.mkp-buy .single_add_to_cart_button { font-size: 15px; padding: 0 12px; gap: 8px; }

	.mkp-container .mkp-breadcrumb { padding: 0 12px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.mkp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
	.mkp-trust > li { flex: 0 0 calc((100% - 16px) / 3); }
	.mkp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.mkp-tabs__nav { justify-content: flex-start; padding: 0 14px; gap: 22px; }
	.mkp-tabs__tab { padding: 16px 2px; font-size: 13.5px; }
	.mkp-tabs__panel { padding: 20px 16px 24px; }

	.mkp-specs__list { column-count: 1; column-rule: 0; }
	.mkp-specs__row dt { flex-basis: 40%; }
	.mkp-qa__fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 479.98px) {
	.mkp-buy .single_add_to_cart_button { font-size: 14px; padding: 0 8px; gap: 6px; white-space: nowrap; }
	.mkp-buy .single_add_to_cart_button:not(.loading)::after { font-size: 17px; }
	.mkp-buy .spm-simple-qty .spm-increment,
	.mkp-buy .spm-simple-qty .spm-decrement { width: 32px; }
	.mkp-buy .spm-simple-qty .quantity input,
	.mkp-buy .spm-simple-qty .quantity input.qty { width: 34px !important; }
	.mkp-buy .spm-form-add-to-cart { gap: 8px; }
	.mkp-trust { gap: 8px; }
	.mkp-trust > li { padding: 12px 4px 10px; }
	.mkp-trust strong { font-size: 11.5px; }
	.mkp-trust small { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.mkp-container * { transition: none !important; }
}
