/* ================================================================
 * Haika KingSize — Cart Page
 * هم‌راستا با Design Tokens تم (steel / industrial dark)
 * موبایل + دسکتاپ | RTL
 * ================================================================ */

/* ── توکن‌های محلی صفحه (با fallback به توکن‌های اصلی تم) ── */
.haika-cart-page {
	--hcp-accent:        var(--cb-steel, #6aaecc);
	--hcp-accent-l:      var(--cb-steel-l, #a0d0e8);
	--hcp-accent-d:      var(--cb-steel-d, #3a7ea0);
	--hcp-card:          var(--cb-bg-2, #111822);
	--hcp-card-2:        var(--cb-bg-3, #161d2a);
	--hcp-card-hover:    var(--cb-bg-4, #192840);
	--hcp-text:          var(--cb-text, #ddeaf6);
	--hcp-text-2:        var(--cb-text-2, #7aaec8);
	--hcp-muted:         var(--cb-muted, #4a6e88);
	--hcp-border:        var(--cb-border, rgba(100,170,210,.14));
	--hcp-border-hover:  var(--cb-border-hover, rgba(100,170,210,.30));
	--hcp-badge-bg:      var(--cb-badge-bg, rgba(100,170,210,.09));
	--hcp-glow:          var(--cb-glow, rgba(80,140,200,.22));
	--hcp-grad:          linear-gradient(135deg, var(--cb-steel-d, #3a7ea0), var(--cb-steel, #6aaecc));
	--hcp-ok:            #34d399;
	--hcp-danger:        #f87171;
	--hcp-r-sm:          var(--cb-r-sm, 8px);
	--hcp-r-md:          var(--cb-r-md, 14px);
	--hcp-r-lg:          var(--cb-r-lg, 20px);

	max-width: 1280px;
	margin: 20px auto 64px;
	padding: 0 20px;
	color: var(--hcp-text);
	font-family: inherit;
}

/* ── تمام‌عرض کردن wrapper صفحه فقط در سبد خرید ──
   wrapper پیش‌فرض صفحه (.haika-single) دارای max-width: 820px است که
   چیدمان دو‌ستونه‌ی سبد را خفه می‌کند. فقط در صفحه‌ی cart بازش می‌کنیم. */
body.woocommerce-cart .haika-single { max-width: 1340px; }
body.woocommerce-cart .haika-single-content { max-width: none; width: 100%; }
/* هدر پیش‌فرض صفحه (eyebrow «صفحه» + عنوان خالی) در سبد لازم نیست — سبد هدر اختصاصی دارد */
body.woocommerce-cart .haika-single-header { display: none; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.haika-cart-page__header {
	position: relative;
	margin-bottom: 22px;
	display: flex;
	justify-content: center;
	/* بدون خط زیر نوار مراحل (مطابق موکاپ) */
}
.haika-cart-page__header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.haika-cart-page__heading {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.haika-cart-page__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 13px;
	color: var(--hcp-accent-l);
	background: var(--hcp-badge-bg);
	border: 1px solid var(--hcp-border-hover);
	box-shadow: inset 0 0 18px var(--hcp-glow);
}
.haika-cart-page__heading-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.haika-cart-page__title {
	margin: 0;
	font-size: 23px;
	font-weight: 800;
	color: var(--hcp-text);
	line-height: 1.15;
}
.haika-cart-page__subtitle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	color: var(--hcp-muted);
}
.haika-cart-page__count-badge {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 800;
	color: var(--hcp-accent-l);
	background: var(--hcp-badge-bg);
	border: 1px solid var(--hcp-border-hover);
	padding: 3px 9px;
	border-radius: 20px;
	line-height: 1;
}
.haika-cart-page__continue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hcp-text-2);
	text-decoration: none;
	padding: 8px 14px;
	border-radius: var(--hcp-r-sm);
	border: 1px solid var(--hcp-border);
	background: var(--hcp-badge-bg);
	transition: all .18s ease;
}
.haika-cart-page__continue:hover {
	color: var(--hcp-text);
	background: var(--hcp-card-hover);
	border-color: var(--hcp-border-hover);
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.haika-cart-page__layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 24px;
	align-items: start;
}
.haika-cart-page__items-col { min-width: 0; }
.haika-cart-page__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ─── ITEM CARD ─── */
.haika-cart-page__item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px;
	background: var(--hcp-card);
	border: 1px solid var(--hcp-border);
	border-radius: 18px;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .2s;
	position: relative;
}
.haika-cart-page__item:hover { transform: translateY(-2px); }
.haika-cart-page__item:hover {
	border-color: var(--hcp-border-hover);
	background: var(--hcp-card-2);
	box-shadow: 0 6px 22px rgba(0,0,0,.22);
}
.haika-cart-page__item.is-updating { pointer-events: none; }

/* IMAGE */
.haika-cart-page__item-img-wrap {
	display: block;
	width: 96px;
	height: 118px;
	border-radius: 13px;
	overflow: hidden;
	background: rgba(0,0,0,.25);
	border: 1px solid var(--hcp-border);
	align-self: start;
}
.haika-cart-page__item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.haika-cart-page__item:hover .haika-cart-page__item-img { transform: scale(1.04); }

/* DETAILS */
.haika-cart-page__item-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	align-self: start;
}
.haika-cart-page__item-title {
	position: relative;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--hcp-text);
	text-decoration: none;
	line-height: 1.45;
	display: inline-block;
	transition: color .15s;
}
.haika-cart-page__item-title:hover { color: var(--hcp-accent-l); }
/* نخ طلایی زیر عنوان هنگام هاور روی آیتم (مطابق موکاپ) */
.haika-cart-page__item-title::after {
	content: ''; position: absolute; inset-inline-start: 0; bottom: -5px;
	width: 0; height: 7px; opacity: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M3 3 C18 11 28 11 34 5 C40 -1 50 1 57 7' fill='none' stroke='%23C9A24B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left/contain;
	transition: width .3s, opacity .3s;
}
.haika-cart-page__item:hover .haika-cart-page__item-title::after { width: 40px; opacity: 1; }

/* ═══════════════════════════════════════════
   VARIATION EDITOR (داینامیک)
═══════════════════════════════════════════ */
.haika-cart-page__variations {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 2px;
}
.haika-cart-page__var-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.haika-cart-page__var-head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 11.5px;
}
.haika-cart-page__var-label {
	color: var(--hcp-muted);
	font-weight: 600;
}
.haika-cart-page__var-current {
	color: var(--hcp-text);
	font-weight: 700;
}
.haika-cart-page__var-current:empty::before {
	content: '—';
	color: var(--hcp-muted);
}
.haika-cart-page__var-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* گزینه‌ی متنی (پیل) */
.haika-cart-page__var-opt {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 34px;
	height: 32px;
	padding: 0 12px;
	background: var(--hcp-badge-bg);
	border: 1.5px solid var(--hcp-border);
	border-radius: var(--hcp-r-sm);
	color: var(--hcp-text-2);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all .15s ease;
	line-height: 1;
}
.haika-cart-page__var-opt:hover:not(:disabled):not(.is-active) {
	border-color: var(--hcp-border-hover);
	color: var(--hcp-text);
	background: var(--hcp-card-hover);
}
.haika-cart-page__var-opt.is-active {
	border-color: var(--hcp-accent);
	color: var(--hcp-text);
	background: linear-gradient(135deg, rgba(106,174,204,.18), rgba(106,174,204,.08));
	box-shadow: 0 0 0 1px var(--hcp-accent) inset, 0 4px 12px var(--hcp-glow);
}
.haika-cart-page__var-opt:active:not(:disabled) { transform: scale(.95); }

/* گزینه‌ی ناموجود */
.haika-cart-page__var-opt.is-unavailable,
.haika-cart-page__var-opt:disabled {
	opacity: .4;
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-color: var(--hcp-danger);
}
.haika-cart-page__var-opt.is-unavailable .haika-cart-page__var-swatch::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 44%, var(--hcp-danger) 45%, var(--hcp-danger) 55%, transparent 56%);
	border-radius: inherit;
}

/* swatch تصویری/رنگی (مثل رنگ) */
.haika-cart-page__var-row.is-swatch .haika-cart-page__var-opt.has-swatch {
	padding: 0;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	overflow: visible;
}
.haika-cart-page__var-row.is-swatch .haika-cart-page__var-opt.has-swatch .haika-cart-page__var-opt-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.haika-cart-page__var-swatch {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: var(--hcp-card-2);
}
.haika-cart-page__var-row.is-swatch .haika-cart-page__var-opt.has-swatch.is-active {
	box-shadow: 0 0 0 2px var(--cb-bg, #0d1117), 0 0 0 4px var(--hcp-accent), 0 4px 12px var(--hcp-glow);
}

/* QTY — pill گرد مطابق موکاپ (.citem .qty) */
.haika-cart-page__qty {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	background: transparent;
	border: 1.5px solid #ddc9d6;
	border-radius: 30px;
	overflow: hidden;
}
.haika-cart-page__qty-btn {
	width: 32px;
	height: 32px;
	background: transparent;
	border: 0;
	color: var(--cv-plum, #6B2D5C);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
	padding: 0;
}
.haika-cart-page__qty-btn:hover:not(:disabled) { background: rgba(107,45,92,.07); }
.haika-cart-page__qty-btn:active:not(:disabled) { transform: scale(.92); }
.haika-cart-page__qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.haika-cart-page__qty input {
	width: 30px;
	min-width: 26px;
	height: 32px;
	text-align: center;
	background: transparent;
	border: 0;
	color: var(--cv-ink, #2B1A2E);
	font-size: 13px;
	font-weight: 700;
	outline: none;
	font-family: inherit;
}

/* LEFT COLUMN: قیمت کل + قیمت واحد + حذف (مطابق .left موکاپ) */
.haika-cart-page__item-left {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	align-self: center;
	text-align: left;
}
.haika-cart-page__item-total {
	font-size: 16px;
	font-weight: 800;
	color: var(--cv-plum, #6B2D5C);
	white-space: nowrap;
	text-align: end;
}
.haika-cart-page__item-unit-price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--hcp-text-2);
	white-space: nowrap;
}
.haika-cart-page__item-unit-label { color: var(--hcp-muted); font-weight: 500; }
.haika-cart-page__item-unit-price .woocommerce-Price-amount,
.haika-cart-page__item-unit-price .amount {
	color: var(--hcp-text-2);
	font-weight: 600;
}

/* REMOVE */
/* REMOVE — متن «حذف» + آیکن، خاکستریِ ظریف (مطابق .rm موکاپ) */
.haika-cart-page__item-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	color: #b3a3ad;
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	transition: color .2s;
}
.haika-cart-page__item-remove svg { width: 13px; height: 13px; }
.haika-cart-page__item-remove:hover { color: #c0392b; }

/* LOADING OVERLAY روی item */
.haika-cart-page__item-loading {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(13, 17, 23, .62);
	background: color-mix(in srgb, var(--cb-bg, #0d1117) 62%, transparent);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	border-radius: var(--hcp-r-md);
	z-index: 6;
}
.haika-cart-page__item.is-updating .haika-cart-page__item-loading { display: flex; }
.haika-cart-page__spinner {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2.5px solid var(--hcp-border);
	border-top-color: var(--hcp-accent);
	animation: hcp-spin .7s linear infinite;
}
@keyframes hcp-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   SUMMARY SIDEBAR
═══════════════════════════════════════════ */
.haika-cart-page__summary-col { position: sticky; top: 90px; }
.haika-cart-page__summary {
	background: var(--hcp-card);
	border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-r-lg);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.haika-cart-page__summary-title {
	position: relative;
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: var(--hcp-text);
	/* بدون خط؛ فقط امضای «نخ طلایی» مطابق موکاپ */
}
.haika-cart-page__summary-title::after {
	content: ''; position: absolute; inset-inline-start: 0; top: 100%; margin-top: 3px;
	width: 54px; height: 11px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 11'%3E%3Cpath d='M3 4 C15 12 25 12 31 6 C37 0 45 1 51 7' fill='none' stroke='%23C9A24B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left/contain;
}

/* ── ردیف کوپن + «ادامه‌ی خرید» زیر آیتم‌ها (مطابق موکاپ .cart-extra) ── */
.haika-cart-page__extra {
	display: flex; align-items: center; gap: 12px;
	margin-top: 18px;
}
/* کوپن = pill چین‌دار طلایی، input کشسان + دکمهٔ طلایی «اعمال کد» */
.haika-cart-page__coupon {
	position: relative;
	flex: 1 1 auto; min-width: 0;
	display: flex; align-items: center; gap: 8px;
	background: #fff;
	border: 1.5px dashed var(--cv-gold-soft, #E3CD9A);
	border-radius: 40px;
	padding: 6px;
}
.haika-cart-page__coupon.is-applied { border-style: solid; border-color: rgba(63,157,107,.4); background: rgba(63,157,107,.06); }
.haika-cart-page__coupon.is-error { border-color: var(--hcp-danger); animation: hcp-shake .3s; }
@keyframes hcp-shake {
	0%,100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.haika-cart-page__coupon-input {
	flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 16px;
	background: transparent; border: 0;
	color: var(--cv-ink, #2B1A2E); font-size: 13.5px; font-family: inherit; outline: none;
}
.haika-cart-page__coupon-input::placeholder { color: #b3a3ad; }
.haika-cart-page__coupon-apply {
	flex: none; padding: 0 22px; height: 38px;
	background: var(--cv-gold, #C9A24B); border: 0; border-radius: 40px;
	color: #fff; font-size: 13px; font-weight: 700;
	cursor: pointer; font-family: inherit; white-space: nowrap;
	transition: filter .15s, box-shadow .15s;
}
.haika-cart-page__coupon-apply:hover { filter: brightness(1.05); box-shadow: 0 6px 16px rgba(201,162,75,.35); }
.haika-cart-page__coupon-applied {
	display: flex; align-items: center; gap: 8px; flex: 1 1 auto;
	padding: 4px 12px;
	color: #2f7d55; font-size: 13px; font-weight: 700;
}
.haika-cart-page__coupon-applied svg { color: #3f9d6b; flex: none; }
.haika-cart-page__coupon-code { flex: 1; letter-spacing: .5px; }
.haika-cart-page__coupon-remove {
	width: 24px; height: 24px; flex: none;
	background: transparent; border: 0;
	color: #b3a3ad; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.haika-cart-page__coupon-remove:hover { color: var(--hcp-danger); }
/* پیام خطای کوپن: نوتِ کوچک زیر pill (dropdown، تا چیدمان ردیف به‌هم نخورد) */
.haika-cart-page__coupon-msg {
	position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
	font-size: 11.5px; color: var(--hcp-danger);
	background: #fff; border: 1px solid #f0c4c4; border-radius: 8px;
	padding: 6px 10px; box-shadow: 0 8px 18px rgba(58,23,48,.14); z-index: 6;
}
.haika-cart-page__coupon-msg.is-error { color: var(--hcp-danger); }
.haika-cart-page__coupon-msg:empty { display: none; }

@media (max-width: 640px) {
	.haika-cart-page__extra { flex-direction: column; align-items: stretch; }
}

/* TOTALS — مطابق موکاپ: بدون خط بالا/پایین؛ فقط یک خطِ صورتیِ ملایم پیش از «مبلغ قابل پرداخت» */
.haika-cart-page__totals {
	display: flex; flex-direction: column; gap: 11px;
	padding: 4px 0 0;
}
.haika-cart-page__total-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; font-size: 13.5px;
}
.haika-cart-page__total-label {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--hcp-text-2); font-weight: 600;
}
.haika-cart-page__total-label svg { color: var(--hcp-accent); flex-shrink: 0; }
.haika-cart-page__total-value { color: var(--hcp-text); font-weight: 700; white-space: nowrap; }
.haika-cart-page__total-row--discount .haika-cart-page__total-label,
.haika-cart-page__total-row--discount .haika-cart-page__total-label svg,
.haika-cart-page__total-row--discount .haika-cart-page__total-value { color: #3f9d6b; }
.haika-cart-page__total-row--grand {
	padding-top: 14px; margin-top: 6px;
	border-top: 1.5px solid #efe0ea;   /* تنها خطِ جداکننده، رنگِ صورتی-بنفشِ ملایم (موکاپ) */
}
.haika-cart-page__total-row--grand .haika-cart-page__total-label {
	color: var(--cv-plumdk, #3A1730); font-size: 14px; font-weight: 700;
}
.haika-cart-page__total-row--grand .haika-cart-page__total-value {
	color: var(--cv-plum, #6B2D5C); font-size: 21px; font-weight: 900;
}
.haika-cart-page__total-row.is-updated { animation: hcp-pop .4s cubic-bezier(.22,1,.36,1); }
@keyframes hcp-pop { 0% { transform: scale(1);} 40% { transform: scale(1.04);} 100% { transform: scale(1);} }

/* ACTIONS */
.haika-cart-page__actions { display: flex; flex-direction: column; gap: 8px; }
.haika-cart-page__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 18px; border-radius: var(--hcp-r-md);
	font-size: 14px; font-weight: 800; text-decoration: none;
	cursor: pointer; transition: all .2s; font-family: inherit; border: 0;
}
.haika-cart-page__btn--checkout {
	background: var(--hcp-grad); color: #fff;
	box-shadow: 0 6px 18px var(--hcp-glow);
}
.haika-cart-page__btn--checkout:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--hcp-glow); }
.haika-cart-page__btn--shop {
	background: transparent; color: var(--hcp-text-2);
	border: 1px solid var(--hcp-border);
}
.haika-cart-page__btn--shop:hover { background: var(--hcp-badge-bg); border-color: var(--hcp-border-hover); color: var(--hcp-text); }

/* TRUST BADGES */
.haika-cart-page__trust {
	display: flex; flex-direction: column; gap: 6px;
	padding-top: 12px; border-top: 1px solid var(--hcp-border);
}
.haika-cart-page__trust-item {
	display: flex; align-items: center; gap: 8px;
	font-size: 11.5px; color: var(--hcp-text-2);
}
.haika-cart-page__trust-item svg { color: var(--hcp-accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   CROSS-SELLS
═══════════════════════════════════════════ */
.haika-cart-page__cross-sells {
	margin-top: 50px; padding-top: 30px;
	border-top: 1px solid var(--hcp-border);
}
.haika-cart-page__cross-sells-title {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 20px; font-size: 18px; font-weight: 800; color: var(--hcp-text);
}
.haika-cart-page__cross-sells-title svg { color: var(--hcp-accent); }
.haika-cart-page__cross-sells-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.haika-cart-page__cross-card {
	display: flex; flex-direction: column; gap: 8px;
	background: var(--hcp-card); border: 1px solid var(--hcp-border);
	border-radius: var(--hcp-r-md); padding: 12px;
	text-decoration: none; color: inherit; transition: all .2s;
}
.haika-cart-page__cross-card:hover {
	border-color: var(--hcp-border-hover); transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.haika-cart-page__cross-img {
	aspect-ratio: 3 / 4; border-radius: var(--hcp-r-sm); overflow: hidden; background: rgba(0,0,0,.25);
}
.haika-cart-page__cross-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.haika-cart-page__cross-info { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.haika-cart-page__cross-name {
	margin: 0; font-size: 13px; font-weight: 700; color: var(--hcp-text); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.haika-cart-page__cross-price { font-size: 13px; font-weight: 800; color: var(--hcp-accent-l); }

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.haika-cart-page--empty { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.haika-cart-page__empty { max-width: 480px; margin: 0 auto; text-align: center; padding: 40px 20px; }
.haika-cart-page__empty-icon {
	color: var(--hcp-accent); opacity: .5; margin-bottom: 24px;
	animation: hcp-float 3s ease-in-out infinite;
}
@keyframes hcp-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.haika-cart-page__empty-title { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--hcp-text); }
.haika-cart-page__empty-text { margin: 0 0 28px; font-size: 14px; color: var(--hcp-text-2); line-height: 1.7; }
.haika-cart-page__empty-actions { display: flex; justify-content: center; }

/* ═══════════════════════════════════════════
   POPUP MESSAGE روی item
═══════════════════════════════════════════ */
.haika-cart-page__item-popup {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(13, 17, 23, .86);
	background: color-mix(in srgb, var(--cb-bg, #0d1117) 86%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-radius: var(--hcp-r-md);
	z-index: 10; opacity: 0; pointer-events: none;
	transition: opacity .25s; padding: 16px;
}
.haika-cart-page__item-popup.is-visible { opacity: 1; pointer-events: auto; }
.haika-cart-page__item-popup-inner {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	max-width: 300px; text-align: center; color: var(--hcp-text); font-size: 13px; font-weight: 700;
}
.haika-cart-page__item-popup-inner svg { width: 26px; height: 26px; color: #fbbf24; }
.haika-cart-page__item-popup--info svg { color: var(--hcp-accent-l); }
.haika-cart-page__item-popup--success svg { color: var(--hcp-ok); }

/* ═══════════════════════════════════════════
   موبایل
═══════════════════════════════════════════ */
@media (max-width: 900px) {
	.haika-cart-page { margin: 12px auto 40px; padding: 0 12px; }
	.haika-cart-page__layout { grid-template-columns: 1fr; gap: 18px; }
	.haika-cart-page__summary-col { position: static; }
	.haika-cart-page__title { font-size: 19px; }
	.haika-cart-page__cross-sells-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.haika-cart-page__header { margin-bottom: 16px; padding-bottom: 14px; }
	.haika-cart-page__continue { font-size: 12px; padding: 6px 10px; }
	.haika-cart-page__title { font-size: 17px; }
	.haika-cart-page__count-badge { font-size: 10.5px; padding: 3px 7px; }

	/* item: کارت compact — تصویر+جزئیات بالا، قیمت/حذف ردیف پایین */
	.haika-cart-page__item {
		grid-template-columns: 76px 1fr;
		grid-template-areas:
			"img details"
			"left left";
		gap: 10px 12px;
		padding: 12px;
	}
	.haika-cart-page__item-img-wrap { grid-area: img; width: 76px; height: 94px; }
	.haika-cart-page__item-details { grid-area: details; gap: 6px; }
	.haika-cart-page__item-title { font-size: 13px; }
	.haika-cart-page__item-left {
		grid-area: left;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding-top: 10px;
		margin-top: 4px;
		border-top: 1px solid var(--hcp-border);
	}
	.haika-cart-page__item-total { font-size: 15px; }
	.haika-cart-page__item-unit-price { font-size: 10.5px; }

	.haika-cart-page__qty-btn { width: 30px; height: 32px; font-size: 16px; }
	.haika-cart-page__qty input { width: 30px; height: 32px; font-size: 13px; }

	.haika-cart-page__summary { padding: 16px; gap: 14px; }
	.haika-cart-page__summary-title { font-size: 14px; }
	.haika-cart-page__total-row { font-size: 12px; }
	.haika-cart-page__total-row--grand .haika-cart-page__total-value { font-size: 16px; }
	.haika-cart-page__btn { padding: 12px 14px; font-size: 13px; }

	.haika-cart-page__cross-sells-grid { grid-template-columns: 1fr; }
	.haika-cart-page__cross-card { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
	.haika-cart-page__cross-img { aspect-ratio: 1; }
	.haika-cart-page__empty-title { font-size: 18px; }
	.haika-cart-page__empty-text { font-size: 13px; }
}

/* ═══════════════════════════════════════════
   واحد سمت چپ همه‌ی قیمت‌ها
═══════════════════════════════════════════ */
.haika-cart-page .woocommerce-Price-amount,
.haika-cart-page .woocommerce-Price-amount bdi,
.haika-cart-page .amount,
.haika-cart-page .amount bdi,
.haika-cart-page .price,
.haika-cart-page .price bdi,
.haika-cart-page [data-haika-line-total],
.haika-cart-page [data-haika-line-total] *,
.haika-cart-page [data-haika-grand-total],
.haika-cart-page [data-haika-grand-total] *,
.haika-cart-page .haika-cart-page__total-value,
.haika-cart-page .haika-cart-page__total-value * {
	direction: ltr !important;
	unicode-bidi: isolate !important;
}
/* واحد پول (تومان) باید درست و نه برعکس نمایش داده شود */
.haika-cart-page .woocommerce-Price-currencySymbol {
	unicode-bidi: plaintext !important;
	direction: rtl !important;
	display: inline-block;
}

/* ════════════════════════════════════════════
   رفع sticky نشدن خلاصه سفارش
   body دارای overflow-y:auto است که sticful را می‌شکند؛
   overflow-x: clip جای hidden تا افقی کنترل شود ولی sticky کار کند.
═══════════════════════════════════════════ */
body.woocommerce-cart { overflow-x: clip !important; overflow-y: visible !important; }
.haika-cart-page__summary-col { position: sticky; top: 84px; align-self: start; }

/* ════════════════════════════════════════════
   📱 نوار پرداخت چسبان پایین صفحه (فقط موبایل)
═══════════════════════════════════════════ */
.haika-cart-page__mobilebar { display: none; }
@media (max-width: 900px) {
	.haika-cart-page__mobilebar {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 9990;
		padding: 10px 14px;
		padding-bottom: calc(10px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--hcp-card, #111822) 94%, transparent);
		background: var(--hcp-card, #111822);
		border-top: 1px solid var(--hcp-border-hover);
		box-shadow: 0 -10px 30px rgba(0, 0, 0, .4);
		transform: translateY(0);
		transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .25s;
	}
	.haika-cart-page__mobilebar.is-hidden {
		transform: translateY(110%);
		opacity: 0;
		pointer-events: none;
	}
	.haika-cart-page__mobilebar-total {
		display: flex;
		flex-direction: column;
		gap: 2px;
		flex: 0 0 auto;
		line-height: 1.2;
	}
	.haika-cart-page__mobilebar-label { font-size: 10.5px; color: var(--hcp-muted); }
	.haika-cart-page__mobilebar-value { font-size: 15px; font-weight: 900; color: var(--hcp-accent-l); white-space: nowrap; }
	.haika-cart-page__mobilebar .haika-cart-page__btn {
		flex: 1 1 auto;
		padding: 13px 16px;
		margin: 0;
	}
	/* فضای انتهای صفحه تا نوار محتوای آخر را نپوشاند */
	body.woocommerce-cart .haika-single { padding-bottom: 80px; }
}

/* وقتی drawer باز است، اسکرول صفحه‌ی سبد هم قفل شود (بر overflowِ sticky غلبه کند) */
body.woocommerce-cart.haika-mini-cart-open { overflow: hidden !important; }

/* ═══════════════════════════════════════════════════════════════
   CURVANA polish — رنگ برند کِروانا (remap accent از استیل به بنفش)
   پس‌زمینهٔ کارت‌ها هنوز theme-adaptive است (سه‌نما). افزایشی.
   ═══════════════════════════════════════════════════════════════ */
.haika-cart-page{
	--hcp-accent:       var(--cv-plum, #6B2D5C);
	--hcp-accent-l:     var(--cv-plum-2, #8C4178);
	--hcp-accent-d:     var(--cv-plumdk, #3A1730);
	--hcp-grad:         var(--cv-grad, linear-gradient(135deg,#6B2D5C 0%,#A85283 60%,#E7A6AE 100%));
	--hcp-glow:         rgba(231,166,174,.22);
	--hcp-border:       rgba(107,45,92,.16);
	--hcp-border-hover: rgba(201,162,75,.42);
	--hcp-badge-bg:     rgba(107,45,92,.09);
}
/* «نخ طلایی» زیر عنوان سبد خالی */
.haika-cart-page__empty-title{ position: relative; display: inline-block; }
.haika-cart-page__empty-title::after{
	content:""; display:block; width:84px; height:13px; margin:8px auto 0;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 16'%3E%3Cpath d='M4 5 C24 17 38 17 47 8 C56 -1 70 1 80 10' fill='none' stroke='%23C9A24B' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ═══════════════════════════════════════════════════════════════
   مطابقت با موکاپ Curvana — نوار مراحل، عنوان، دکمه‌ها، نوت امنیت
   ═══════════════════════════════════════════════════════════════ */

/* ── نوار مراحل «نخ طلایی» (مثل checkout، اسکوپ‌شده به سبد) ── */
.haika-cart-page .haika-steps--journey {
	justify-content: center; align-items: flex-start; gap: 0; flex-wrap: nowrap; width: 100%;
}
.haika-cart-page .haika-steps--journey .haika-steps__item::after { display: none; }
.haika-cart-page .haika-steps--journey .haika-steps__item {
	flex-direction: column; align-items: center; gap: 9px;
	width: 130px; white-space: normal; text-align: center;
	font-size: 12.5px; font-weight: 700;
}
.haika-cart-page .haika-steps--journey .haika-steps__dot {
	width: 46px; height: 46px; border-radius: 50%;
	background: #fff; border: 2px solid var(--hcp-border-hover);
	color: var(--cv-plum, #6B2D5C); box-shadow: none; transition: all .25s;
}
.haika-cart-page .haika-steps--journey .haika-steps__dot svg { width: 20px; height: 20px; }
/* مرحلهٔ فعلی (سبد): دایرهٔ سفید با حلقهٔ طلایی + آیکن طلایی */
.haika-cart-page .haika-steps--journey .haika-steps__item.is-active .haika-steps__dot {
	background: #fff; border-color: var(--cv-gold, #C9A24B);
	color: var(--cv-gold, #C9A24B); box-shadow: 0 0 0 5px rgba(201,162,75,.18);
}
.haika-cart-page .haika-steps--journey .haika-steps__item.is-active { color: var(--cv-plumdk, #3A1730); font-weight: 800; }
/* مراحل بعدی (در انتظار) */
.haika-cart-page .haika-steps--journey .haika-steps__item:not(.is-active) .haika-steps__dot { color: #b3a3ad; border-color: var(--hcp-border); }
.haika-cart-page .haika-steps--journey .haika-steps__item:not(.is-active) { color: #9b8a95; }
/* نخ موج‌دار بین مراحل */
.haika-cart-page .haika-steps--journey .haika-steps__stitch {
	flex: 0 0 auto; width: 78px; height: 16px;
	margin: 0 -22px; margin-bottom: 28px; align-self: flex-start; margin-top: 15px;
}
.haika-cart-page .haika-steps--journey .haika-steps__stitch svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) {
	.haika-cart-page .haika-steps--journey .haika-steps__item { width: 86px; font-size: 11px; }
	.haika-cart-page .haika-steps--journey .haika-steps__dot { width: 40px; height: 40px; }
	.haika-cart-page .haika-steps--journey .haika-steps__stitch { width: 38px; margin: 0 -10px; margin-top: 12px; }
}

/* ── عنوان «سبد خرید تو» + نخ طلایی + زیرنویس (مطابق موکاپ) ── */
.haika-cart-page__list-head { margin-bottom: 22px; }
.haika-cart-page__list-head .haika-cart-page__title {
	position: relative; display: inline-block;
	font-size: 25px; font-weight: 900; color: var(--cv-plumdk, #3A1730); line-height: 1.2; margin: 0;
}
.haika-cart-page__list-head .haika-cart-page__title::after {
	content: ''; position: absolute; inset-inline-start: 0; top: 100%; margin-top: 4px;
	width: 90px; height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12' preserveAspectRatio='none'%3E%3Cpath d='M4 4 C22 13 40 13 52 6 C64 0 76 1 86 8' fill='none' stroke='%23C9A24B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left/contain;
}
.haika-cart-page__sub { margin-top: 14px; font-size: 13px; color: #9b8a95; }

/* ── دکمهٔ «ادامه‌ی خرید» (ghost) در ردیف کوپن — اندازهٔ موکاپ ── */
.haika-cart-page__extra .haika-cart-page__btn--shop {
	flex: none; padding: 12px 22px; font-size: 13.5px; border-radius: 44px;
	border: 1.5px solid #d9c4d2; color: var(--cv-plumdk, #3A1730); background: transparent;
}
.haika-cart-page__extra .haika-cart-page__btn--shop:hover { border-color: var(--cv-plum, #6B2D5C); color: var(--cv-plum, #6B2D5C); background: transparent; }

/* ── دکمهٔ «ادامه و ثبت اطلاعات» — پلامِ توپر مطابق .btn-plum موکاپ ── */
.haika-cart-page__summary .haika-cart-page__btn--checkout {
	width: 100%; padding: 15px 28px; border-radius: 44px;
	background: var(--cv-plum, #6B2D5C); color: #fff;
	box-shadow: 0 10px 26px rgba(107,45,92,.32);
	font-size: 15px; font-weight: 700;
}
.haika-cart-page__summary .haika-cart-page__btn--checkout:hover {
	background: var(--cv-plumdk, #3A1730); transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(107,45,92,.42);
}

/* ── ارسال رایگانِ سبز + نوت امنیت ── */
.haika-cart-page__free { color: #3f9d6b; font-weight: 800; }
.haika-cart-page__total-row--grand .haika-cart-page__total-value { color: var(--cv-plum, #6B2D5C) !important; }
.haika-cart-page__secure {
	display: flex; align-items: center; justify-content: center; gap: 7px;
	font-size: 11.5px; color: #9b8a95; margin-top: 12px;
}
.haika-cart-page__secure svg { color: var(--cv-gold, #C9A24B); flex: none; }

/* ── ویژگی‌های متغیرِ انتخاب‌شده (نمایشی، مطابق .specs موکاپ) ── */
.haika-cart-page__specs {
	display: flex; flex-wrap: wrap; gap: 12px;
	font-size: 12px; color: #9b8a95; margin: 2px 0 6px;
}
.haika-cart-page__spec { display: inline-flex; align-items: center; gap: 6px; }
.haika-cart-page__spec-dot {
	width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block;
	background-size: cover; background-position: center;
	border: 1px solid rgba(58,23,48,.12);
}
.haika-cart-page__spec-label { color: #9b8a95; }
.haika-cart-page__spec-value { color: #6d5d68; font-weight: 700; }
