/* ==========================================================================
   KharidExpress product page.
   Ported from the approved prototype onto the KharidExpress design system v1.0:
   colours, radii, spacing and type below are the system's values. Orange follows
   its four roles: never text on its own, navy on any orange fill.
   Everything is scoped to .kxp, and the Avada bridge is not loaded, so the rest
   of the site is untouched. Loaded only on opted-in product pages.
   ========================================================================== */

@font-face {
	font-family: "KXP Vazirmatn";
	src: url("../fonts/vazirmatn-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.kxp {
	--kx-orange-500: #fb7e20;
	--kx-orange-600: #cf6819;
	--kx-orange-700: #a25112;
	--kx-navy-50: #e5e7e9;
	--kx-navy-800: #16233d;
	--kx-navy-900: #0a0f1b;
	--kx-sand-100: #e7e1d6;
	--kx-sand-200: #dbd2c2;
	--kx-sand-600: #857c6b;
	--kx-sand-700: #6c6455;
	--kx-ink-700: #4a5160;
	--kx-green-50: #dfece5;
	--kx-green-600: #1c7c4a;
	--kx-green-800: #11492c;
	--kx-red-50: #f4dfdf;
	--kx-red-600: #b32020;
	--kx-paper-0: #fff;
	--kx-paper-1: #faf7f2;
	--kx-paper-2: #f4efe6;

	--c-canvas: var(--kx-paper-1);
	--c-surface: var(--kx-paper-0);
	--c-sunken: var(--kx-paper-2);
	--c-line: var(--kx-sand-100);
	--c-line-strong: var(--kx-sand-600);
	--c-text: var(--kx-ink-700);
	--c-muted: var(--kx-sand-700);
	--c-strong: var(--kx-navy-800);
	--c-accent: var(--kx-orange-500);
	--c-accent-line: var(--kx-orange-600);
	--c-accent-ink: var(--kx-orange-700);
	--c-on-dark: var(--kx-paper-0);
	--c-cta: var(--kx-navy-800);
	--c-cta-hover: var(--kx-navy-900);
	--c-ok: var(--kx-green-600);
	--c-ok-bg: var(--kx-green-50);
	--c-ok-ink: var(--kx-green-800); /* green-600 is 4.2:1 on its wash, too low for text */
	--c-bad: var(--kx-red-600);
	--c-bad-bg: var(--kx-red-50);

	--r-sm: 8px;
	--r-md: 10px;
	--r-lg: 16px;
	--ease: cubic-bezier(.2, .6, .3, 1);
	--kxp-top: 0px; /* height of Avada's stuck header, set by the script */

	position: relative;
	color: var(--c-text);
	background: var(--c-surface);
	font-family: "KXP Vazirmatn", Vazirmatn, Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	font-weight: 400;
	text-align: right;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}

.kxp *,
.kxp *::before,
.kxp *::after { box-sizing: border-box; }

.kxp [hidden] { display: none !important; }

.kxp a { color: inherit; text-decoration: none; }
.kxp a:hover { color: var(--c-accent-ink); }

.kxp h1, .kxp h2, .kxp h3, .kxp h4 {
	font-family: inherit;
	color: var(--c-strong);
	letter-spacing: 0;
	margin: 0;
}

.kxp button, .kxp input, .kxp select, .kxp textarea { font-family: inherit; }
.kxp small { font-size: 13px; }
.kxp button { cursor: pointer; color: inherit; }
.kxp button:disabled { cursor: not-allowed; }

.kxp :focus-visible {
	outline: 3px solid var(--c-strong);
	outline-offset: 2px;
}

.kxp svg.kxp-i {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.kxp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.kxp-emoji {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	font-size: 18px;
	line-height: 1;
}

.kxp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kxp-dot {
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

/* Avada's main container gives way, this page sets its own width. */
body.kxp-page #main { padding: 0 !important; background: var(--kx-paper-0, #fff); }
body.kxp-page #main > .fusion-row { max-width: 100% !important; padding: 0 !important; }
/* The skip link needs id="content", but Avada styles that id as a sidebar column. */
body.kxp-page #content { width: 100%; max-width: none; float: none; margin: 0; }

.kxp-wrap {
	width: min(1320px, calc(100% - 80px));
	margin-inline: auto;
}

/* --- breadcrumb ----------------------------------------------------------- */
.kxp-crumbs { padding-block: 22px 18px; font-size: 13px; color: var(--c-muted); }
.kxp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.kxp-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.kxp-crumbs li:not(:last-child)::after { content: "‹"; }
.kxp-crumbs [aria-current] { color: var(--c-strong); }

/* --- notices -------------------------------------------------------------- */
.kxp-notices .woocommerce-message,
.kxp-notices .woocommerce-error,
.kxp-notices .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	list-style: none;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: var(--r-md);
	background: var(--c-ok-bg);
	color: var(--c-strong);
	font-size: 14px;
	border: 0;
}
.kxp-notices .woocommerce-error { background: var(--c-bad-bg); }
.kxp-notices .button { font-weight: 600; text-decoration: underline; background: none; color: inherit; padding: 0; border: 0; }

/* Avada swaps WooCommerce notices for the block-style markup. */
.kxp-notices .wc-block-components-notice-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--c-ok-bg);
	color: var(--c-strong);
	font-size: 14px;
}
.kxp-notices .wc-block-components-notice-banner.is-error { background: var(--c-bad-bg); }
.kxp-notices .wc-block-components-notice-banner.is-info { background: var(--c-sunken); }
.kxp-notices .wc-block-components-notice-banner > svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.kxp-notices .wc-block-components-notice-banner__content { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.kxp-notices .wc-block-components-notice-banner__content a { font-weight: 600; text-decoration: underline; color: var(--c-strong); background: none; padding: 0; border: 0; }

/* --- main grid ------------------------------------------------------------ */
.kxp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(320px, .95fr);
	gap: 32px;
	align-items: start;
	margin: 0;
}

/* --- gallery -------------------------------------------------------------- */
.kxp-stage {
	position: relative;
	aspect-ratio: 1 / 1;
	max-height: 560px;
	width: 100%;
	border-radius: var(--r-lg);
	background: var(--c-sunken);
	overflow: hidden;
}
.kxp-stage__label {
	position: absolute;
	top: 18px;
	inset-inline-start: 20px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--c-strong);
}
.kxp-stage__label .kxp-dot { color: var(--c-accent); }
.kxp-stage__zoom {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in !important;
}
/* Placed by its edges, so a tall photo can never run past the frame. */
.kxp-stage__zoom img {
	position: absolute;
	inset: 46px 24px 34px;
	display: block;
	width: calc(100% - 48px);
	height: calc(100% - 80px);
	object-fit: contain;
	transition: opacity var(--dur, 160ms) var(--ease);
}
/* The frame clips outside the button, so the focus ring has to sit inside it. */
.kxp-stage__zoom:focus-visible { outline-offset: -5px; border-radius: var(--r-lg); }
.kxp-stage__index {
	position: absolute;
	bottom: 14px;
	inset-inline-end: 18px;
	font-size: 13px;
	color: var(--c-muted);
}
.kxp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 14px 0; }
.kxp-thumb {
	width: 69px; height: 69px;
	padding: 4px;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	background: var(--c-surface);
}
.kxp-thumb.is-active { border-color: var(--c-strong); box-shadow: 0 0 0 1px var(--c-strong); }
.kxp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* --- product info --------------------------------------------------------- */
.kxp-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--c-muted);
	margin-bottom: 10px;
}
.kxp-eyebrow__brand { color: var(--c-strong); font-weight: 700; }
.kxp-eyebrow i { width: 22px; height: 1px; background: var(--c-line); }

.kxp .kxp-title {
	font-size: 28px;
	line-height: 1.5;
	font-weight: 700;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: right;
	overflow-wrap: anywhere;
}
.kxp-nb { white-space: nowrap; }
.kxp-subtitle { font-size: 14px; color: var(--c-muted); margin: 8px 0 0; text-align: right; }

.kxp-review-jump {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 4px;
	font-size: 13px;
	color: var(--c-muted);
}
.kxp-review-jump svg.kxp-i { width: 17px; height: 17px; color: var(--c-accent-line); }

.kxp-intro { margin-top: 16px; color: var(--c-text); line-height: 2; }
.kxp-intro p { margin: 0 0 8px; }

.kxp-highlights {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	font-size: 14px;
	color: var(--c-strong);
}
.kxp-highlights li { display: flex; align-items: center; gap: 10px; margin: 0; }
.kxp-highlights svg.kxp-i { width: 19px; height: 19px; color: var(--c-muted); }
.kxp-highlights .kxp-emoji { width: 19px; height: 19px; font-size: 16px; }

/* choices */
.kxp-choice {
	margin: 20px 0 0;
	padding: 18px 0 0;
	border: 0;
	border-top: 1px solid var(--c-line);
	min-width: 0;
}
.kxp-choice legend {
	float: right;
	width: 100%;
	display: flex;
	gap: 6px;
	padding: 0;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-strong);
}
.kxp-choice__sep { color: var(--c-muted); font-weight: 400; }
.kxp-choice__now { color: var(--c-muted); font-weight: 500; }

.kxp-options { display: flex; flex-wrap: wrap; gap: 9px; clear: both; }
.kxp-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 8px 14px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	font-size: 14px;
	color: var(--c-strong);
	cursor: pointer;
	user-select: none;
	margin: 0;
	transition: background var(--dur, 120ms) var(--ease), border-color var(--dur, 120ms) var(--ease);
}
.kxp-option:hover { background: var(--c-canvas); }
.kxp-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.kxp-option__tick.kxp-i { width: 14px !important; height: 14px !important; display: none; color: var(--c-ok); }
.kxp-option:has(input:checked) {
	border-color: var(--c-strong);
	box-shadow: 0 0 0 1px var(--c-strong);
	background: var(--c-canvas);
	font-weight: 600;
}
.kxp-option:has(input:checked) .kxp-option__tick { display: block; }
.kxp-option:has(input:focus-visible) { outline: 3px solid var(--c-strong); outline-offset: 2px; }
.kxp-option.is-alt { border-style: dashed; color: var(--c-muted); }
.kxp-option.is-disabled {
	border-color: var(--c-line);
	background: var(--c-canvas);
	color: var(--c-muted);
	text-decoration: line-through;
	cursor: not-allowed;
	opacity: .75;
}
.kxp-option.is-disabled input { cursor: not-allowed; }

.kxp-flag { display: block; width: 24px; height: 16px; object-fit: contain; border-radius: 2px; flex-shrink: 0; }
.kxp-flag--lg { width: 33px; height: 22px; }
.kxp-swatch { width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex-shrink: 0; }

.kxp-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--c-ok);
}
.kxp-summary svg.kxp-i { width: 16px; height: 16px; }
.kxp-summary b { font-weight: 600; }

.kxp-unavailable {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: var(--r-sm);
	background: var(--c-bad-bg);
	color: var(--c-bad);
	font-size: 13px;
}

.kxp-source {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	margin-top: 16px;
	padding-block: 10px;
	border-top: 1px solid var(--c-line);
	font-size: 13px;
	color: var(--c-muted);
}
.kxp-source__logo { display: block; width: 80px; height: 30px; object-fit: contain; object-position: right center; flex-shrink: 0; }
.kxp-source__name { color: var(--c-strong); font-weight: 600; }
.kxp-source__out.kxp-i { width: 15px !important; height: 15px !important; margin-inline-start: auto; }

/* --- buy card ------------------------------------------------------------- */
.kxp-card {
	position: sticky;
	top: calc(var(--kxp-top) + 20px);
	padding: 22px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-canvas);
}
.kxp-avail {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-ok);
}
.kxp-avail.is-out { color: var(--c-bad); }

.kxp-route { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kxp-route small, .kxp-route strong { display: block; }
.kxp-route small { font-size: 13px; color: var(--c-muted); line-height: 1.6; }
.kxp-route strong { font-size: 14px; font-weight: 600; color: var(--c-strong); line-height: 1.6; }
.kxp-route__line { flex: 1; min-width: 16px; border-bottom: 1px dashed var(--c-line-strong); margin-top: 14px; }

.kxp-delivery {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 12px;
	border-radius: var(--r-md);
	background: var(--c-sunken);
	color: var(--c-strong);
}
.kxp-delivery strong, .kxp-delivery small { display: block; }
.kxp-delivery strong { font-size: 14px; font-weight: 600; line-height: 1.6; }
.kxp-delivery small { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

.kxp-stocknote {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 18px;
	padding: 12px;
	border-radius: var(--r-md);
	background: var(--c-ok-bg);
	color: var(--c-ok);
}
.kxp-stocknote strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--c-ok-ink); }
.kxp-stocknote p { margin: 2px 0 0; font-size: 13px; line-height: 1.8; color: var(--c-text); }

.kxp-rows { display: grid; gap: 10px; font-size: 14px; }
.kxp-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kxp-rows > div > :first-child { color: var(--c-muted); }
.kxp-rows b, .kxp-rows bdi { font-weight: 600; color: var(--c-strong); }
.kxp-rows small { font-size: 13px; color: var(--c-muted); }
.kxp-rows__fee { display: inline-flex; align-items: center; gap: 2px; }

/* compact fee help: 26px mark with a full 44px touch area */
.kxp-tip { position: relative; display: inline-flex; }
.kxp-tip__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 26px; height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-muted);
}
.kxp-tip__btn::after { content: ""; position: absolute; inset: -9px; }
.kxp-tip__btn:hover, .kxp-tip__btn[aria-expanded="true"] { background: var(--c-sunken); color: var(--c-strong); }
.kxp-tip__btn svg.kxp-i { width: 17px; height: 17px; }
.kxp-tip__box {
	display: none;
	position: absolute;
	z-index: 5;
	bottom: calc(100% + 8px);
	inset-inline-start: -8px;
	width: 250px;
	padding: 12px;
	border-radius: var(--r-md);
	background: var(--c-strong);
	color: var(--c-on-dark);
	font-size: 13px;
	line-height: 1.9;
}
.kxp-tip:hover .kxp-tip__box,
.kxp-tip:focus-within .kxp-tip__box,
.kxp-tip.is-open .kxp-tip__box { display: block; }

.kxp-pricing-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--c-strong);
}

.kxp-total { padding-block: 14px 16px; border-top: 1px dashed var(--c-line-strong); margin-top: 14px; }
.kxp-card > .kxp-total:nth-child(1) { border-top: 0; }
.kxp-total__label { font-size: 13px; color: var(--c-muted); }
.kxp-total__line { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.kxp-total__line strong { font-size: 30px; line-height: 1.4; font-weight: 700; color: var(--c-strong); }
.kxp-total__line small { font-size: 13px; color: var(--c-muted); }
.kxp-total__line del { font-size: 15px; color: var(--c-muted); }

.kxp-note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 10px 0 0;
	padding: 9px 11px;
	border-radius: var(--r-sm);
	background: var(--c-sunken);
	font-size: 13px;
	line-height: 1.8;
	color: var(--c-text);
	text-align: right;
}
.kxp-note svg.kxp-i { width: 16px; height: 16px; margin-top: 3px; color: var(--c-ok); }

.kxp-actions { display: flex; gap: 9px; align-items: stretch; }

.kxp-qty {
	display: flex;
	align-items: center;
	direction: ltr;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface);
}
.kxp-qty__btn {
	display: none;
	place-items: center;
	width: 44px;
	min-height: 50px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-strong);
}
.kxp-qty__btn svg.kxp-i { width: 15px; height: 15px; }
.kxp-qty__btn:disabled { opacity: .3; }
.kxp-qty__value { display: none; min-width: 18px; text-align: center; font-size: 15px; font-weight: 600; color: var(--c-strong); }
.kxp .kxp-qty__input {
	width: 64px;
	height: 50px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
}
.kxp-js .kxp-qty__btn { display: grid; }
.kxp-js .kxp-qty__value { display: block; }
.kxp-js .kxp .kxp-qty__input { display: none; }

.kxp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 10px 18px;
	border: 1px solid var(--c-cta);
	border-radius: var(--r-sm);
	background: var(--c-cta);
	color: var(--c-on-dark) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	transition: background var(--dur, 120ms) var(--ease);
}
.kxp-btn:hover { background: var(--c-cta-hover); }
.kxp-btn:active:not(:disabled) { transform: translateY(1px); }
.kxp-btn:disabled { background: var(--kx-navy-50); border-color: var(--kx-navy-50); color: var(--c-muted) !important; }
.kxp-btn svg.kxp-i { width: 20px; height: 20px; }
.kxp-btn--buy { flex: 1; min-width: 0; }
/* Keeps the WooCommerce class for tracking tags, without Avada's styling of it. */
.kxp .kxp-btn.single_add_to_cart_button {
	min-height: 50px;
	padding: 10px 18px;
	border: 1px solid var(--c-cta);
	border-radius: var(--r-sm);
	background: var(--c-cta);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}
.kxp .kxp-btn.single_add_to_cart_button:hover { background: var(--c-cta-hover); }
.kxp .kxp-btn.single_add_to_cart_button:disabled { background: var(--kx-navy-50); border-color: var(--kx-navy-50); }
.kxp-btn--ghost { background: var(--c-surface); color: var(--c-strong) !important; border-color: var(--c-line-strong); min-height: 44px; font-size: 14px; font-weight: 500; }
.kxp-btn--ghost:hover { background: var(--c-canvas); }

.kxp-guest { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--c-muted); }
.kxp-noscript { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); }

/* --- trust strip ---------------------------------------------------------- */
.kxp-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-block: 44px;
	padding-block: 26px;
	border-block: 1px solid var(--c-line);
}
.kxp-trust > div {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding-inline: 10px;
	border-inline-end: 1px solid var(--c-line);
}
.kxp-trust > div:last-child { border-inline-end: 0; }
.kxp-trust svg.kxp-i { width: 28px; height: 28px; color: var(--c-strong); stroke-width: 1.35; }
.kxp-trust .kxp-emoji { width: 28px; height: 28px; font-size: 24px; }
.kxp-trust strong { display: block; font-size: 14px; font-weight: 600; color: var(--c-strong); line-height: 1.6; }
.kxp-trust small { display: block; font-size: 13px; color: var(--c-muted); line-height: 1.6; }

/* --- content + guide ------------------------------------------------------ */
.kxp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	padding-bottom: 56px;
}
.kxp-layout--full { grid-template-columns: minmax(0, 1fr); }

.kxp-tabs {
	position: sticky;
	top: var(--kxp-top);
	z-index: 4;
	display: flex;
	gap: 32px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--c-line);
	background: var(--c-surface);
}
.kxp-tabs::-webkit-scrollbar { display: none; }
.kxp-tabs a { position: relative; padding: 16px 0; font-size: 15px; white-space: nowrap; color: var(--c-muted); }
.kxp-tabs a span { font-size: 13px; margin-inline-start: 2px; }
.kxp-tabs a.is-active { color: var(--c-strong); font-weight: 600; }
.kxp-tabs a.is-active::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-accent);
}

.kxp-section { padding-block: 34px; border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(var(--kxp-top) + 70px); }
.kxp-section:last-child { border-bottom: 0; }
.kxp-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kxp-heading__n {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--c-canvas);
	border: 1px solid var(--c-line);
	font-size: 13px;
	color: var(--c-accent-ink);
}
.kxp .kxp-heading h2 { font-size: 22px; line-height: 1.5; font-weight: 700; margin: 0; padding: 0; }

.kxp-prose { font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
.kxp-prose p { margin: 0 0 14px; }
.kxp-prose p, .kxp-prose ul, .kxp-prose ol, .kxp-prose h2, .kxp-prose h3, .kxp-prose h4 { max-width: 75ch; }
.kxp-prose p:has(> img), .kxp-prose p:has(> a > img) { max-width: none; }
.kxp .kxp-prose h2, .kxp .kxp-prose h3, .kxp .kxp-prose h4 { margin: 22px 0 10px; line-height: 1.6; font-weight: 700; }
.kxp .kxp-prose h2 { font-size: 20px; }
.kxp .kxp-prose h3 { font-size: 18px; }
.kxp .kxp-prose h4 { font-size: 16px; }
.kxp-prose h2:empty, .kxp-prose h3:empty, .kxp-prose h4:empty, .kxp-prose p:empty { display: none; }
.kxp-prose ul, .kxp-prose ol { margin: 0 0 14px; padding-inline-start: 22px; }
.kxp-prose li { margin-bottom: 6px; }
.kxp-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.kxp-prose table { width: 100%; border-collapse: collapse; }
.kxp-prose td, .kxp-prose th { padding: 8px 10px; border: 1px solid var(--c-line); }
.kxp-prose.is-clamped { max-height: 520px; overflow: hidden; position: relative; }
.kxp-prose.is-clamped::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, transparent, var(--c-surface));
}
.kxp-more { margin-top: 14px; }

.kxp-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.kxp-specs tr:nth-child(odd) { background: var(--c-canvas); }
.kxp-specs th, .kxp-specs td { padding: 13px 18px; border: 0; text-align: right; }
.kxp-specs th { width: 40%; font-weight: 400; color: var(--c-muted); }
.kxp-specs td { color: var(--c-strong); }

.kxp-reviews__empty {
	padding: 26px 20px;
	border: 1px dashed var(--c-line-strong);
	border-radius: var(--r-lg);
	background: var(--c-canvas);
	text-align: center;
}
.kxp-reviews__empty svg.kxp-i { width: 30px; height: 30px; color: var(--c-accent-line); }
.kxp-reviews__empty h3 { font-size: 16px; font-weight: 600; margin-top: 6px; }
.kxp-reviews__empty p { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); }
.kxp-reviews__empty small { display: block; margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.kxp-review-list { list-style: none; margin: 0; padding: 0; }
.kxp-review-list > li { padding: 16px 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.kxp-review-form { margin-top: 16px; text-align: center; }
.kxp-review-form > summary { cursor: pointer; list-style: none; }
.kxp-review-form > summary::-webkit-details-marker { display: none; }

.kxp-faq details { border-bottom: 1px solid var(--c-line); }
.kxp-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding-block: 14px;
	list-style: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-strong);
}
.kxp-faq summary::-webkit-details-marker { display: none; }
.kxp-faq summary i { display: grid; place-items: center; color: var(--c-muted); transition: transform var(--dur, 120ms) var(--ease); }
.kxp-faq summary svg.kxp-i { width: 17px; height: 17px; }
.kxp-faq details[open] summary i { transform: rotate(45deg); }
.kxp-faq__a { padding-bottom: 14px; color: var(--c-text); font-size: 15px; line-height: 2; max-width: 720px; }
.kxp-faq__a p { margin: 0 0 8px; }
.kxp-faq--users { margin-top: 22px; }
.kxp .kxp-faq--users h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }

.kxp-ask { margin-top: 18px; }
.kxp-ask > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	cursor: pointer;
}
.kxp-ask > summary::-webkit-details-marker { display: none; }
.kxp-ask strong, .kxp-ask small { display: block; }
.kxp-ask strong { font-size: 15px; font-weight: 600; color: var(--c-strong); }
.kxp-ask small { font-size: 13px; color: var(--c-muted); }

.kxp-form { margin-top: 14px; text-align: right; }
.kxp-form p { margin: 0 0 12px; }
.kxp-form label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--c-strong); }
.kxp .kxp-form input[type="text"],
.kxp .kxp-form input[type="email"],
.kxp .kxp-form input:not([type]),
.kxp .kxp-form textarea,
.kxp .kxp-form select {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	font-size: 15px;
	color: var(--c-strong);
}
.kxp-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.kxp-flash { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.kxp-flash--ok { background: var(--c-ok-bg); color: var(--c-ok-ink); }
.kxp-flash--err { background: var(--c-bad-bg); color: var(--c-bad); }

/* --- purchase guide ------------------------------------------------------- */
.kxp-side { align-self: start; position: sticky; top: calc(var(--kxp-top) + 20px); margin-top: 12px; }
.kxp-guide { display: grid; gap: 14px; }
/* On a short window the guide scrolls by itself instead of running off the screen. */
@media (min-width: 801px) {
	.kxp-side { max-height: calc(100vh - var(--kxp-top) - 40px); overflow-y: auto; scrollbar-width: thin; }
}
.kxp-guide__card { padding: 22px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-canvas); }
.kxp .kxp-guide__title { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 0 0 18px; }
.kxp-guide__steps { list-style: none; margin: 0; padding: 0; counter-reset: kxp-step; }
.kxp-guide__steps li { position: relative; margin: 0; padding: 0 44px 22px 0; counter-increment: kxp-step; }
.kxp-guide__steps li:last-child { padding-bottom: 0; }
.kxp-guide__steps li::before {
	content: counter(kxp-step, persian);
	position: absolute;
	top: 0; right: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--c-strong);
	color: var(--c-on-dark);
	font-size: 14px;
	font-weight: 700;
}
.kxp-guide__steps li:first-child::before { background: var(--c-accent); color: var(--c-strong); }
.kxp-guide__steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 30px; bottom: 0; right: 14px;
	width: 2px;
	background: var(--c-line);
}
.kxp .kxp-guide__steps h4 { font-size: 15px; font-weight: 600; line-height: 1.7; margin: 0 0 2px; }
.kxp-guide__steps p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--c-muted); }

.kxp-guide__contact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface);
}
.kxp-guide__contact:hover { border-color: var(--c-accent-line); }
.kxp-guide__phone {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--c-sunken);
	color: var(--c-strong);
}
.kxp-guide__contact small { display: block; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.kxp-guide__contact strong { display: block; font-size: 20px; font-weight: 700; color: var(--c-strong); white-space: nowrap; text-align: right; }

/* --- zoom ----------------------------------------------------------------- */
.kxp-zoom {
	width: min(900px, calc(100% - 32px));
	max-height: 90dvh;
	padding: 10px;
	border: 0;
	border-radius: var(--r-lg);
	background: var(--c-surface);
}
.kxp-zoom::backdrop { background: rgba(10, 15, 27, .55); }
.kxp-zoom img { display: block; width: 100%; height: auto; max-height: 82dvh; object-fit: contain; }
.kxp-zoom__close {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-strong);
}

/* --- phone bar ------------------------------------------------------------ */
.kxp-mobile { display: none; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1150px) {
	.kxp-wrap { width: calc(100% - 48px); }
	.kxp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
	.kxp-gallery { grid-row: span 2; position: sticky; top: calc(var(--kxp-top) + 20px); }
	.kxp-info, .kxp-card { grid-column: 2; }
	.kxp-card { position: static; }
	.kxp-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.kxp-trust strong { font-size: 13px; }

	/* Below the three-column layout the card is out of view, so the bar keeps buying one tap away. */
	.kxp { padding-bottom: 86px; }

	.kxp-mobile {
		position: fixed;
		z-index: 60;
		inset-inline: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 10px 16px max(10px, env(safe-area-inset-bottom));
		background: var(--c-surface);
		border-top: 1px solid var(--c-line);
	}
	.kxp-mobile > div { min-width: 0; }
	.kxp-mobile small { display: block; font-size: 13px; line-height: 1.4; color: var(--c-muted); }
	.kxp-mobile strong { font-size: 19px; font-weight: 700; color: var(--c-strong); white-space: nowrap; line-height: 1.4; }
	.kxp-mobile strong small { display: inline; }
	.kxp-mobile .kxp-btn { flex: 0 0 auto; min-height: 48px; padding-inline: 14px; font-size: 14px; }

	/* Goftino's closed bubble would sit on the price. When opened it reuses the same
	   frame at full screen and its inline bottom changes, so this no longer matches. */
	body.kxp-page #goftino_w[style*="bottom: 20px"] { bottom: 84px !important; }
}

@media (max-width: 800px) {
	.kxp-layout { grid-template-columns: minmax(0, 1fr); }
	.kxp-side { position: static; margin-top: 0; }
	.kxp-guide { grid-template-columns: 1.2fr 1fr; align-items: start; }
	.kxp-trust { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
	.kxp-trust > div:nth-child(2) { border-inline-end: 0; }
	.kxp .kxp-title { font-size: 25px; }
}

@media (max-width: 600px) {
	.kxp-wrap { width: calc(100% - 32px); }
	.kxp-crumbs { padding-block: 14px 12px; }
	.kxp-crumbs li:nth-last-child(n+3):not(:first-child), .kxp-crumbs li:last-child { display: none; }
	.kxp-crumbs li:nth-last-child(2)::after { content: none; }
	.kxp-grid { display: flex; flex-direction: column; gap: 22px; }
	.kxp-gallery { position: static; width: 100%; }
	.kxp-info, .kxp-card { width: 100%; }
	.kxp-stage { max-height: none; }
	.kxp-thumb { width: 58px; height: 58px; }
	.kxp-card { padding: 20px; }
	.kxp-trust { margin-block: 28px 16px; padding-block: 22px; }
	.kxp-trust > div { justify-content: flex-start; gap: 9px; padding-inline: 6px; }
	.kxp-trust svg.kxp-i { width: 23px; height: 23px; }
	.kxp-trust strong { font-size: 13px; }
	.kxp-tabs { gap: 22px; }
	.kxp-section { padding-block: 26px; }
	.kxp .kxp-heading h2 { font-size: 20px; }
	.kxp-guide { grid-template-columns: minmax(0, 1fr); }
	.kxp-specs th, .kxp-specs td { padding: 12px; font-size: 14px; }
	.kxp-tip__box { width: 230px; inset-inline-start: -60px; }
}

@media (max-width: 360px) {
	.kxp-wrap { width: calc(100% - 24px); }
	.kxp-mobile strong { font-size: 17px; }
	.kxp-actions { flex-wrap: wrap; }
	.kxp-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.kxp *, .kxp *::before, .kxp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.kxp-mobile, .kxp-tabs, .kxp-zoom { display: none !important; }
}
