/* ==========================================================================
   Platform - Cart page (/cart/)
   Bespoke, theme-matched design for the classic [woocommerce_cart] shortcode.
   Loaded only on is_cart() by inc/cart-page.php.

   Everything is scoped to .sp-cart / .sp-cart-hero / .sp-cart-empty so no other
   page can be affected. Colours come from the site palette:
     navy #102a71 · navy-dark #001840 · gold #f5c400 · cream #fffdf0
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Tokens + shell
   -------------------------------------------------------------------------- */
/*
 * The tokens live on the PAGE BODY, not on .sp-cart.
 * The hero, the step rail and WooCommerce's notice wrapper are rendered by
 * hooks that fire OUTSIDE <div class="sp-cart">, so scoping the custom
 * properties to .sp-cart left them unresolved there (a gold pill with no
 * background, navy text on a navy hero). Body scope covers every part.
 */
body.sp-cart-page,
.sp-cart {
	--sp-navy: #102a71;
	--sp-navy-dark: #001840;
	--sp-gold: #f5c400;
	--sp-gold-deep: #d9a900;
	--sp-cream: #fffdf0;
	--sp-ink: #16224a;
	--sp-muted: #5c6575;
	--sp-card: #ffffff;
	--sp-line: rgba(16, 42, 113, .12);
	--sp-line-strong: rgba(16, 42, 113, .2);
	--sp-soft: #f4f5f8;
	--sp-ok: #1a7f45;
	--sp-shadow: 0 24px 48px -34px rgba(0, 24, 64, .55);
}

.sp-cart {
	padding: 0 0 64px;
	color: var(--sp-ink);
	font-family: inherit;
}

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

/* --------------------------------------------------------------------------
   1. Hero (rendered by semnan_cart_hero() on woocommerce_before_cart)
   -------------------------------------------------------------------------- */
.sp-cart-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 26px;
	padding: 42px 0 36px;
	color: #fff;
	background:
		radial-gradient(760px 320px at 88% -30%, rgba(245, 196, 0, .24), transparent 62%),
		radial-gradient(640px 280px at 6% 132%, rgba(16, 42, 113, .62), transparent 68%),
		linear-gradient(135deg, #001840 0%, #0a2160 52%, #102a71 100%);
}

.sp-cart-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 78%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 78%);
}

/* luminous gold edge that closes the hero and separates it from the content */
.sp-cart-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(245, 196, 0, .95) 22%, rgba(255, 220, 95, 1) 50%, rgba(245, 196, 0, .95) 78%, transparent);
	pointer-events: none;
}

.sp-cart-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sp-cart-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2px;
	color: rgba(255, 255, 255, .9);
	backdrop-filter: blur(6px);
}

.sp-cart-hero__eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--sp-gold);
	box-shadow: 0 0 0 3px rgba(245, 196, 0, .22);
}

.sp-cart-hero__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.35;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.3px;
}

.sp-cart-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffd633, #f5c400);
	color: #001840;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.7;
	white-space: nowrap;
	box-shadow: 0 8px 18px -10px rgba(245, 196, 0, .95);
}

.sp-cart-hero__sub {
	margin: 0;
	max-width: 620px;
	font-size: 13.5px;
	line-height: 2;
	color: rgba(255, 255, 255, .74);
}

/* steps */
.sp-cart-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.sp-cart-steps__i {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, .6);
}

.sp-cart-steps__i.is-active {
	color: #fff;
}

.sp-cart-steps__n {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .16);
	font-size: 11.5px;
	font-weight: 800;
	color: rgba(255, 255, 255, .82);
}

.sp-cart-steps__i.is-active .sp-cart-steps__n {
	background: var(--sp-gold);
	border-color: var(--sp-gold);
	color: #001840;
}

.sp-cart-steps__sep {
	width: 22px;
	height: 1px;
	background: rgba(255, 255, 255, .24);
}

/* --------------------------------------------------------------------------
   2. Layout grid
   -------------------------------------------------------------------------- */
.sp-cart__grid {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

@media (min-width: 960px) {
	.sp-cart__grid {
		grid-template-columns: minmax(0, 1fr) 372px;
		gap: 28px;
	}
}

.sp-cart__main {
	min-width: 0;
}

/* --------------------------------------------------------------------------
   3. Item cards
   -------------------------------------------------------------------------- */
.sp-cart-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sp-cart .sp-cart-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 16px;
	background: var(--sp-card);
	border: 1px solid var(--sp-line);
	border-radius: 20px;
	box-shadow: 0 1px 0 rgba(16, 42, 113, .03);
	transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.sp-cart .sp-cart-item:hover {
	border-color: rgba(245, 196, 0, .55);
	box-shadow: 0 18px 34px -26px rgba(0, 24, 64, .5);
}

/* thumbnail */
.sp-cart-item__thumb {
	flex: 0 0 104px;
	width: 104px;
	height: 104px;
	border-radius: 15px;
	overflow: hidden;
	background: var(--sp-soft);
}

.sp-cart-item__thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.sp-cart .sp-cart-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

/* body */
.sp-cart-item__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sp-cart .sp-cart-item__name {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.75;
	color: var(--sp-ink);
	text-decoration: none;
	transition: color .18s ease;
}

.sp-cart .sp-cart-item__name:hover,
.sp-cart .sp-cart-item__name:focus-visible {
	color: var(--sp-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sp-cart-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 11.5px;
	line-height: 1.9;
	color: var(--sp-muted);
}

.sp-cart-item__meta-i {
	display: inline-flex;
	align-items: center;
	color: rgba(16, 42, 113, .45);
}

.sp-cart-item__dot {
	color: rgba(16, 42, 113, .28);
}

.sp-cart .sp-cart-item__price {
	margin: 2px 0 0;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--sp-navy);
}

.sp-cart .sp-cart-item__price .amount {
	font-weight: 700;
}

.sp-cart .sp-cart-item__price del {
	margin-inline-end: 6px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--sp-muted);
	opacity: .8;
}

.sp-cart .sp-cart-item__price ins {
	text-decoration: none;
}

/* quantity stepper */
.sp-cart-item__qty {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.sp-cart-item__qty-label {
	font-size: 10.5px;
	font-weight: 700;
	color: rgba(16, 42, 113, .45);
	letter-spacing: .2px;
}

.sp-cart .sp-qty {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--sp-soft);
	border: 1px solid var(--sp-line);
}

.sp-cart .sp-qty .quantity {
	display: flex;
	margin: 0;
}

.sp-cart .sp-qty input.qty {
	width: 42px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--sp-ink);
	-moz-appearance: textfield;
	appearance: textfield;
}

.sp-cart .sp-qty input.qty:focus {
	outline: none;
}

.sp-cart .sp-qty input.qty::-webkit-outer-spin-button,
.sp-cart .sp-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sp-cart .sp-qty-btn {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--sp-navy);
	cursor: pointer;
	transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sp-cart .sp-qty-btn:hover {
	background: #fff;
	color: #001840;
	box-shadow: 0 2px 8px rgba(16, 42, 113, .16);
}

.sp-cart .sp-qty-btn:active {
	transform: scale(.94);
}

.sp-cart .sp-qty-btn:focus-visible {
	outline: 2px solid var(--sp-navy);
	outline-offset: 1px;
}

/* items sold individually: a static pill instead of an empty stepper */
.sp-cart .sp-qty-fixed {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--sp-line);
	border-radius: 999px;
	background: var(--sp-soft);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	color: var(--sp-navy);
}

/* line total */
.sp-cart-item__total {
	flex: 0 0 auto;
	min-width: 116px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
}

.sp-cart-item__total-label {
	font-size: 10.5px;
	font-weight: 700;
	color: rgba(16, 42, 113, .45);
}

.sp-cart .sp-cart-item__total .amount {
	font-size: 14.5px;
	font-weight: 900;
	color: var(--sp-navy-dark);
	white-space: nowrap;
}

/* remove — an opaque badge, not a ghost glyph: the link sits ON TOP of the
   product photo, so a transparent 26px circle with a 38%-opacity navy × was
   invisible against a photograph. White disc + drawn red × + shadow, and
   z-index above the thumbnail. */
.sp-cart .sp-cart-item__remove {
	position: absolute;
	top: 6px;
	inset-inline-start: 6px;
	display: flex;
	z-index: 3;
}

.sp-cart .sp-cart-item__remove a.remove {
	position: relative;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(16, 42, 113, .1);
	border-radius: 999px;
	/* !important: WooCommerce's own .woocommerce a.remove sets
	   color: #a00 !important and a red :hover background, and it is served
	   AFTER this sheet — without this the badge would go red-on-red on hover. */
	background: #fff !important;
	color: #b81c23 !important;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 24, 64, .2);
	transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

/* 44px hit area around a 28px disc: the visible badge stays light, the
   tappable region reaches the 44px minimum (WCAG / touch-target guidance). */
.sp-cart .sp-cart-item__remove a.remove::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 999px;
}

.sp-cart .sp-cart-item__remove a.remove svg {
	display: block;
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}

.sp-cart .sp-cart-item__remove a.remove:hover {
	background: #b81c23 !important;
	border-color: #b81c23;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(184, 28, 35, .36);
}

.sp-cart .sp-cart-item__remove a.remove:focus-visible {
	outline: 2px solid #b81c23;
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Coupon + update row
   -------------------------------------------------------------------------- */
.sp-cart-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: 18px;
}

.sp-cart .sp-cart-coupon {
	flex: 1 1 260px;
	min-width: 0;
	margin: 0;
}

.sp-cart-coupon__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sp-muted);
}

.sp-cart-coupon__row {
	display: flex;
	gap: 8px;
}

.sp-cart .sp-cart-coupon .input-text,
.sp-cart .sp-cart-coupon__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--sp-line-strong);
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 13.5px;
	color: var(--sp-ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.sp-cart .sp-cart-coupon .input-text:focus,
.sp-cart .sp-cart-coupon__input:focus {
	outline: none;
	border-color: var(--sp-navy);
	box-shadow: 0 0 0 3px rgba(16, 42, 113, .12);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.sp-cart .sp-btn,
.sp-cart button.sp-btn,
.sp-cart a.sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.6;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease,
		border-color .18s ease, color .18s ease;
}

/*
 * Specificity note: WooCommerce paints every `.button` with
 * `.woocommerce button.button` (0,2,1) — grey #ebe9eb / text #515151 — and a
 * single-class variant such as `.sp-cart .sp-btn--ghost` (0,2,0) LOSES, so the
 * coupon / update buttons stayed WooCommerce grey. The variants are therefore
 * scoped through body + cart (0,3,1) to win outright without !important.
 */
body.sp-cart-page .sp-cart .sp-btn--gold {
	background: linear-gradient(180deg, #ffd633, #f5c400);
	color: #001840;
	box-shadow: 0 12px 26px -14px rgba(245, 196, 0, .95);
}

body.sp-cart-page .sp-cart .sp-btn--gold:hover {
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -14px rgba(245, 196, 0, 1);
	color: #001840;
}

body.sp-cart-page .sp-cart .sp-btn--ghost {
	background: #fff;
	border-color: var(--sp-line-strong);
	color: var(--sp-navy);
}

body.sp-cart-page .sp-cart .sp-btn--ghost:hover {
	background: #fffdf0;
	border-color: var(--sp-gold);
	color: var(--sp-navy-dark);
	box-shadow: 0 10px 22px -18px rgba(0, 24, 64, .8);
}

.sp-cart .sp-btn:focus-visible {
	outline: 2px solid var(--sp-navy);
	outline-offset: 2px;
}

.sp-cart .sp-btn:disabled,
.sp-cart .sp-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.sp-cart-form__update {
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   6. Summary card
   -------------------------------------------------------------------------- */
.sp-cart__side {
	min-width: 0;
}

.sp-summary {
	overflow: hidden;
	background: var(--sp-card);
	border: 1px solid var(--sp-line);
	border-radius: 22px;
	box-shadow: var(--sp-shadow);
}

/* gold ribbon across the top edge of the summary card */
.sp-summary::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #f5c400 0%, #ffdc5f 45%, #f5c400 100%);
}

.sp-summary__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #001840 0%, #102a71 100%);
	color: #fff;
}

.sp-summary__head h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.sp-summary__ico {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: rgba(245, 196, 0, .18);
	color: var(--sp-gold);
	flex: 0 0 auto;
}

/* WooCommerce totals, restyled without touching its markup */
.sp-cart .sp-cart-collaterals {
	width: auto;
	float: none;
	margin: 0;
}

.sp-cart .sp-summary .cart_totals {
	width: auto;
	float: none;
	margin: 0;
	padding: 4px 18px 2px;
	background: transparent;
	border: 0;
}

.sp-cart .sp-summary .cart_totals>h2 {
	display: none;
}

.sp-cart .sp-summary .cart_totals .shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 13.5px;
}

.sp-cart .sp-summary .cart_totals .shop_table th,
.sp-cart .sp-summary .cart_totals .shop_table td {
	padding: 11px 0;
	border: 0;
	background: transparent;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.9;
	vertical-align: top;
	color: var(--sp-muted);
}

.sp-cart .sp-summary .cart_totals .shop_table th {
	text-align: right;
	width: auto;
}

.sp-cart .sp-summary .cart_totals .shop_table td {
	text-align: left;
	color: var(--sp-ink);
}

.sp-cart .sp-summary .cart_totals .shop_table td .amount,
.sp-cart .sp-summary .cart_totals .shop_table td .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--sp-ink);
}

.sp-cart .sp-summary .cart_totals .shop_table tr.cart-discount th,
.sp-cart .sp-summary .cart_totals .shop_table tr.cart-discount td {
	color: var(--sp-ok);
}

.sp-cart .sp-summary .cart_totals .shop_table tr.order-total th,
.sp-cart .sp-summary .cart_totals .shop_table tr.order-total td {
	padding-top: 15px;
	padding-bottom: 6px;
	border-top: 1px solid var(--sp-line);
	font-size: 14.5px;
	font-weight: 800;
	color: var(--sp-ink);
}

.sp-cart .sp-summary .cart_totals .shop_table tr.order-total td .amount {
	font-size: 21px;
	font-weight: 900;
	color: var(--sp-navy-dark);
	letter-spacing: -.3px;
}

.sp-cart .sp-summary .cart_totals .shop_table small.shipping-contents {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--sp-muted);
}

/* shipping calculator link/rows */
.sp-cart .sp-summary .cart_totals .woocommerce-shipping-totals td {
	padding-bottom: 4px;
}

.sp-cart .sp-summary .cart_totals a.shipping-calculator-button {
	font-size: 12px;
	font-weight: 700;
	color: var(--sp-navy);
	text-decoration: none;
}

.sp-cart .sp-summary .cart_totals .shipping-calculator-form {
	margin-top: 8px;
}

/* checkout button */
.sp-cart .sp-summary .cart_totals .wc-proceed-to-checkout {
	padding: 14px 0 10px;
	margin: 0;
}

.sp-cart .sp-summary .cart_totals .wc-proceed-to-checkout a.checkout-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, #ffd633, #f5c400);
	color: #001840 !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 14px 30px -16px rgba(245, 196, 0, 1);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sp-cart .sp-summary .cart_totals .wc-proceed-to-checkout a.checkout-button::after {
	content: "";
	width: 17px;
	height: 17px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sp-cart .sp-summary .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 18px 34px -16px rgba(245, 196, 0, 1);
	color: #001840 !important;
}

.sp-cart .sp-summary .cart_totals .wc-proceed-to-checkout a.checkout-button:focus-visible {
	outline: 3px solid rgba(16, 42, 113, .5);
	outline-offset: 2px;
}

/* trust list */
.sp-summary__trust {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 14px 18px 18px;
	border-top: 1px dashed var(--sp-line);
	list-style: none;
}

.sp-summary__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
	color: var(--sp-muted);
}

.sp-summary__trust svg {
	flex: 0 0 auto;
	color: var(--sp-ok);
}


/* sticky summary on desktop */
@media (min-width: 960px) {
	.sp-cart__side {
		position: sticky;
		top: 108px;
	}
}

/* --------------------------------------------------------------------------
   7. Empty state
   -------------------------------------------------------------------------- */
.sp-cart-empty {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 0 20px;
}

.sp-cart-empty__card {
	position: relative;
	overflow: hidden;
	padding: 44px 24px 40px;
	text-align: center;
	background: var(--sp-card);
	border: 1px solid var(--sp-line);
	border-radius: 24px;
	box-shadow: var(--sp-shadow);
}

.sp-cart-empty__card::before {
	content: "";
	position: absolute;
	top: -120px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	width: 420px;
	height: 260px;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(245, 196, 0, .22), transparent 72%);
}

.sp-cart-empty__art {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, rgba(245, 196, 0, .3), rgba(245, 196, 0, .06));
	color: var(--sp-navy);
}

.sp-cart-empty__title {
	position: relative;
	margin: 10px 0 8px;
	font-size: clamp(19px, 2.6vw, 23px);
	font-weight: 800;
	line-height: 1.7;
	color: var(--sp-navy-dark);
}

.sp-cart-empty__text {
	position: relative;
	max-width: 480px;
	margin: 0 auto 22px;
	font-size: 13.5px;
	line-height: 2;
	color: var(--sp-muted);
}

.sp-cart-empty__cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

/* the core "cart is empty" paragraph is replaced by our own copy */
/* WooCommerce's own "your cart is empty" paragraph is replaced by our copy.
 * It arrives wrapped in .woocommerce-notices-wrapper (not as a direct child of
 * the card, which is why an earlier direct-child selector never matched), so
 * both the wrapper and the paragraph are hidden. The OUTER .sp-cart-empty div
 * keeps the wc-empty-cart-message class that cart.js looks for. */
.sp-cart-empty__card>.woocommerce-notices-wrapper,
.sp-cart-empty__card .wc-empty-cart-message,
.sp-cart-empty__card>.cart-empty,
.sp-cart-empty__card>p.cart-empty.woocommerce-info {
	display: none;
}

/* suggestions rail */
.sp-cart-suggest {
	margin-top: 28px;
}

.sp-cart-suggest__title {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 800;
	color: var(--sp-navy-dark);
}

.sp-cart-suggest__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.sp-cart-suggest__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

.sp-cart-suggest__item {
	margin: 0;
}

.sp-cart .sp-cart-suggest__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 12px;
	background: var(--sp-card);
	border: 1px solid var(--sp-line);
	border-radius: 18px;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sp-cart .sp-cart-suggest__link:hover {
	border-color: rgba(245, 196, 0, .6);
	box-shadow: 0 18px 32px -24px rgba(0, 24, 64, .5);
	transform: translateY(-2px);
}

.sp-cart-suggest__thumb {
	display: block;
	overflow: hidden;
	border-radius: 13px;
	background: var(--sp-soft);
	aspect-ratio: 16 / 10;
}

.sp-cart-suggest__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.sp-cart-suggest__name {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.9;
	color: var(--sp-ink);
}

.sp-cart-suggest__price {
	display: block;
	margin-top: auto;
	font-size: 13px;
	font-weight: 800;
	color: var(--sp-navy);
}

.sp-cart-suggest__price .amount {
	font-weight: 800;
}

/* --------------------------------------------------------------------------
   8. Notices — page scope, not just inside .sp-cart
   WooCommerce prints add-to-cart / coupon / stock messages in
   .woocommerce-notices-wrapper, which renders BEFORE <div class="sp-cart">, so
   .sp-cart-scoped rules never matched them and they appeared as raw grey
   WooCommerce boxes between the hero and the item list.
   -------------------------------------------------------------------------- */
body.sp-cart-page .woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

body.sp-cart-page .woocommerce-message,
body.sp-cart-page .woocommerce-info,
body.sp-cart-page .woocommerce-error,
.sp-cart .woocommerce-message,
.sp-cart .woocommerce-info,
.sp-cart .woocommerce-error {
	position: relative;
	margin: 0 0 14px;
	padding: 15px 50px 15px 20px;
	border: 1px solid var(--sp-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 30px -28px rgba(0, 24, 64, .7);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.9;
	color: var(--sp-ink);
	list-style: none;
}

/* RTL: the text starts on the right, so the glyph needs right-hand room */
body.sp-cart-page .woocommerce-message::before,
body.sp-cart-page .woocommerce-info::before,
body.sp-cart-page .woocommerce-error::before {
	left: auto;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 17px;
}

body.sp-cart-page .woocommerce-message {
	border-color: rgba(26, 127, 69, .28);
	background: #f6fbf8;
}

body.sp-cart-page .woocommerce-info {
	border-color: rgba(16, 42, 113, .22);
	background: #f7f9fd;
}

body.sp-cart-page .woocommerce-error {
	border-color: rgba(184, 28, 35, .26);
	background: #fff7f7;
}

body.sp-cart-page .woocommerce-message::before {
	color: var(--sp-ok);
}

body.sp-cart-page .woocommerce-info::before {
	color: var(--sp-navy);
}

body.sp-cart-page .woocommerce-error::before {
	color: #b81c23;
}

/* the «مشاهده سبد خرید» button WooCommerce appends to each notice */
body.sp-cart-page .woocommerce-message .button,
body.sp-cart-page .woocommerce-info .button,
body.sp-cart-page .woocommerce-error .button {
	float: left;
	margin-inline-start: 12px;
	padding: 7px 15px;
	border: 0;
	border-radius: 10px;
	background: var(--sp-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.8;
	box-shadow: none;
}

body.sp-cart-page .woocommerce-message .button:hover,
body.sp-cart-page .woocommerce-info .button:hover {
	background: var(--sp-navy-dark);
	color: #fff;
}

/* --------------------------------------------------------------------------
   9. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 719px) {
	.sp-cart {
		padding-bottom: 48px;
	}

	.sp-cart-hero {
		padding: 28px 0 26px;
		margin-bottom: 18px;
	}

	.sp-cart-hero__inner {
		padding-inline: 16px;
		gap: 10px;
	}

	.sp-cart-hero__sub {
		font-size: 12.5px;
		line-height: 1.95;
	}

	.sp-cart-steps {
		gap: 8px;
	}

	.sp-cart-steps__i {
		font-size: 11.5px;
		gap: 6px;
	}

	.sp-cart-steps__n {
		width: 21px;
		height: 21px;
		font-size: 10.5px;
	}

	.sp-cart-steps__sep {
		width: 12px;
	}

	.sp-cart__grid,
	.sp-cart-empty {
		padding-inline: 16px;
	}

	.sp-cart .sp-cart-item {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px;
		border-radius: 17px;
	}

	.sp-cart-item__thumb {
		flex: 0 0 78px;
		width: 78px;
		height: 78px;
		border-radius: 13px;
	}

	.sp-cart-item__body {
		flex: 1 1 132px;
		gap: 3px;
		padding-inline-end: 4px;
	}

	.sp-cart .sp-cart-item__name {
		font-size: 13px;
		line-height: 1.8;
	}

	.sp-cart-item__meta {
		font-size: 10.5px;
	}

	.sp-cart .sp-cart-item__price {
		font-size: 11.5px;
	}

	.sp-cart-item__qty {
		order: 5;
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}

	.sp-cart-item__qty-label {
		font-size: 10px;
	}

	.sp-cart .sp-qty {
		padding: 2px;
	}

	.sp-cart .sp-qty-btn {
		width: 28px;
		height: 28px;
	}

	.sp-cart .sp-qty input.qty {
		width: 34px;
		height: 28px;
		font-size: 12.5px;
	}

	.sp-cart-item__total {
		order: 6;
		flex: 1 1 auto;
		min-width: 0;
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		gap: 6px;
		padding-top: 2px;
	}

	.sp-cart-item__total-label {
		font-size: 10px;
	}

	.sp-cart .sp-cart-item__total .amount {
		font-size: 13px;
	}

	.sp-cart .sp-cart-item__remove {
		top: 6px;
		inset-inline-start: 6px;
	}

	.sp-cart .sp-cart-item__remove a.remove {
		width: 24px;
		height: 24px;
	}

	/* 24 + 20 = 44px hit area on a phone */
	.sp-cart .sp-cart-item__remove a.remove::after {
		inset: -10px;
	}

	.sp-cart-form__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sp-cart-form__update {
		width: 100%;
	}

	.sp-summary {
		border-radius: 19px;
	}

	.sp-cart .sp-summary .cart_totals {
		padding: 2px 16px 0;
	}

	.sp-summary__head {
		padding: 14px 16px;
	}

	.sp-summary__trust {
		padding: 12px 16px 16px;
	}

	.sp-cart .sp-summary .cart_totals .shop_table th,
	.sp-cart .sp-summary .cart_totals .shop_table td {
		padding: 10px 0;
	}

	.sp-cart-empty__card {
		padding: 34px 18px 32px;
		border-radius: 20px;
	}

	.sp-cart-empty__art {
		width: 78px;
		height: 78px;
	}

	.sp-cart-empty__art svg {
		width: 50px;
		height: 50px;
	}

	.sp-cart-empty__cta {
		flex-direction: column;
		align-items: stretch;
	}

	.sp-cart-empty__cta .sp-btn {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   10. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

	.sp-cart *,
	.sp-cart *::before,
	.sp-cart *::after {
		transition: none !important;
		animation: none !important;
	}
}
