/* Afarin Store — Cart */

body.af-cart-page {
	--af-primary: #37CBDD;
	--af-primary-dark: #2ab5c6;
	--af-primary-light: #e8f9fc;
	--af-primary-mid: #b8eef5;
	--af-primary-glow: rgba(55, 203, 221, 0.35);
	--af-primary-soft: rgba(55, 203, 221, 0.15);
	--af-secondary: #650512;
	--af-text: #1e293b;
	--af-muted: #64748b;
	--af-white: #ffffff;
	--af-bg: #f8fdfe;
	--af-radius: 20px;
	--af-radius-sm: 14px;
	--af-font: "Yekan FaNum", Tahoma, sans-serif;
	background: var(--af-bg);
}

body.af-cart-page .afct {
	margin-top: 0;
}

body.af-cart-page .site-main {
	padding-top: 0;
}

body.af-cart-page .site-content.site-content--cart {
	padding: 48px 0 56px !important;
	max-width: none;
}

.afct-wrap {
	width: var(--af-wrap);
	margin-inline: auto;
	padding: 0;
}

/* ── Free shipping progress ── */
.af-free-shipping-bar {
	margin-bottom: 18px;
	padding: 16px 18px 14px;
	border-radius: var(--af-radius-sm);
	border: 2px solid var(--af-primary-mid);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--af-primary-light));
	box-shadow: 0 8px 24px var(--af-primary-soft);
}

.af-free-shipping-bar__inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.af-free-shipping-bar__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--af-white);
	border: 1px solid var(--af-primary-mid);
	color: var(--af-primary-dark);
}

.af-free-shipping-bar__body {
	flex: 1;
	min-width: 0;
}

.af-free-shipping-bar__text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--af-text);
}

.af-free-shipping-bar__text strong,
.af-free-shipping-bar__amount {
	font-weight: 900;
	color: var(--af-primary-dark);
}

.af-free-shipping-bar__hint {
	margin: 4px 0 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--af-muted);
}

.af-free-shipping-bar__percent {
	flex: 0 0 auto;
	align-self: center;
	min-width: 42px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--af-white);
	border: 1px solid var(--af-primary-mid);
	font-size: 0.78rem;
	font-weight: 900;
	color: var(--af-primary-dark);
	text-align: center;
}

.af-free-shipping-bar__track {
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--af-primary-mid);
	overflow: hidden;
}

.af-free-shipping-bar__fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--af-primary), var(--af-primary-dark));
	box-shadow: 0 0 12px var(--af-primary-glow);
	transition: width 0.35s ease;
}

/* ── Hero ── */
.afct-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
	padding: 32px 0 28px;
	background: var(--af-bg);
	text-align: center;
}

.afct-hero__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 55% 60% at 50% 0%, rgba(55, 203, 221, 0.18) 0%, transparent 65%),
		radial-gradient(ellipse 40% 50% at 100% 100%, rgba(101, 5, 18, 0.05) 0%, transparent 60%);
	pointer-events: none;
}

.afct-hero__dots {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image: radial-gradient(var(--af-primary-mid) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 85%);
	pointer-events: none;
}

.afct-hero__content {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0 auto;
}

.afct-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--af-primary-dark);
	margin-bottom: 14px;
}

.afct-hero__eyebrow::before,
.afct-hero__eyebrow::after {
	content: '';
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--af-primary), var(--af-primary-dark));
}

.afct-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 900;
	line-height: 1.35;
	color: var(--af-text);
}

.afct-hero__desc {
	margin: 0 auto;
	max-width: 480px;
	font-size: 0.95rem;
	line-height: 1.9;
	color: var(--af-muted);
}

/* ── Layout ── */
.afct__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: start;
}

.afct-main {
	min-width: 0;
}

.afct-sidebar {
	position: sticky;
	top: 24px;
}

.afct-sidebar .cart-collaterals {
	margin: 0;
	width: 100%;
	float: none;
}

/* ── Table card ── */
.afct-table-card {
	border-radius: var(--af-radius);
	border: 2px solid var(--af-primary-mid);
	background: var(--af-white);
	box-shadow: 0 10px 32px var(--af-primary-soft);
	overflow: hidden;
}

.afct-table-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 2px solid var(--af-primary-light);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--af-primary-light));
}

.afct-table-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--af-text);
}

.afct-table-card__count {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--af-white);
	border: 1px solid var(--af-primary-mid);
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--af-primary-dark);
}

body.af-cart-page .woocommerce-cart-form__contents {
	width: 100%;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0;
	margin: 0;
	background: transparent;
	box-shadow: none;
}

body.af-cart-page .woocommerce-cart-form__contents thead {
	background: var(--af-primary-light);
}

body.af-cart-page .woocommerce-cart-form__contents th {
	padding: 16px 18px !important;
	border: 0 !important;
	border-bottom: 2px solid var(--af-primary-mid) !important;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--af-text);
	text-transform: none;
}

body.af-cart-page .woocommerce-cart-form__contents td {
	padding: 18px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--af-primary-light) !important;
	vertical-align: middle !important;
}

body.af-cart-page .woocommerce-cart-form__contents tbody tr:last-child td {
	border-bottom: 0 !important;
}

body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail {
	width: 112px;
	min-width: 112px;
}

body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail a {
	display: block;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 14px;
	border: 2px solid var(--af-primary-mid);
	background: #f8fafc;
}

body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail img {
	width: 96px !important;
	max-width: none !important;
	height: 96px !important;
	object-fit: contain;
	object-position: center;
	border-radius: 14px;
	border: 2px solid var(--af-primary-mid);
	background: #f8fafc;
	box-shadow: none !important;
}

body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail a img {
	width: 100% !important;
	height: 100% !important;
	border: 0;
	border-radius: 0;
	background: transparent;
}

body.af-cart-page table.cart img {
	box-shadow: none !important;
}

body.af-cart-page .product-name a {
	display: block;
	font-weight: 800;
	color: var(--af-text);
	line-height: 1.55;
	text-decoration: none;
}

@media (min-width: 769px) {
	body.af-cart-page .woocommerce-cart-form__contents {
		display: table !important;
		width: 100%;
		table-layout: auto;
		border-collapse: separate;
		border-spacing: 0;
	}

	body.af-cart-page .woocommerce-cart-form__contents thead {
		display: table-header-group !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody {
		display: table-row-group !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item {
		display: table-row !important;
		grid-template-columns: none;
		grid-template-rows: none;
		padding: 0;
		margin: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td {
		display: table-cell !important;
		grid-column: auto;
		grid-row: auto;
		order: unset;
		margin: 0;
		border-top: 0 !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-remove {
		width: 44px;
		min-width: 44px;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail {
		width: 88px;
		min-width: 88px;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail a,
	body.af-cart-page .woocommerce-cart-form__contents .product-thumbnail img {
		width: 72px;
		height: 72px;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-name {
		width: auto;
		min-width: 280px;
	}

	body.af-cart-page .product-name a {
		font-size: 0.92rem;
		line-height: 1.65;
		word-break: normal;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-price,
	body.af-cart-page .woocommerce-cart-form__contents .product-subtotal {
		width: 1%;
		white-space: nowrap;
	}

	body.af-cart-page .woocommerce-cart-form__contents .product-quantity {
		width: 1%;
		white-space: nowrap;
	}
}

body.af-cart-page .product-name a:hover {
	color: var(--af-primary-dark);
}

body.af-cart-page .product-price,
body.af-cart-page .product-subtotal {
	font-weight: 800;
	color: var(--af-primary-dark);
}

body.af-cart-page .product-remove a {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(101, 5, 18, 0.08);
	color: var(--af-secondary) !important;
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

body.af-cart-page .product-remove {
	text-align: end;
}

body.af-cart-page .product-remove a:hover {
	background: var(--af-secondary);
	color: var(--af-white) !important;
	transform: scale(1.05);
}

body.af-cart-page .product-quantity {
	text-align: center;
}

body.af-cart-page .af-qty {
	display: inline-grid;
	grid-template-columns: 36px minmax(0, 1fr) 36px;
	align-items: stretch;
	width: 118px;
	max-width: 100%;
	height: 40px;
	border: 1px solid var(--af-primary-mid);
	border-radius: 10px;
	overflow: hidden;
	background: var(--af-white);
	box-shadow: 0 1px 0 rgba(55, 203, 221, 0.12);
}

body.af-cart-page .af-qty__btn {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: var(--af-bg);
	color: var(--af-text);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

body.af-cart-page .af-qty__btn:hover {
	background: var(--af-primary-soft);
	color: var(--af-primary-dark);
}

body.af-cart-page .af-qty__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

body.af-cart-page .af-qty .qty {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-inline: 1px solid var(--af-primary-mid) !important;
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-family: var(--af-font) !important;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--af-text);
	-moz-appearance: textfield;
}

body.af-cart-page .af-qty .qty::-webkit-outer-spin-button,
body.af-cart-page .af-qty .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.af-cart-page .actions {
	padding: 20px 22px !important;
	background: var(--af-bg);
	border-top: 2px solid var(--af-primary-mid) !important;
}

.afct-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

body.af-cart-page .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	flex: 1;
	min-width: 240px;
}

body.af-cart-page .coupon input.input-text {
	flex: 1;
	min-width: 160px;
	min-height: 44px;
	padding: 10px 14px;
	border: 2px solid var(--af-primary-mid);
	border-radius: 12px;
	background: var(--af-white);
	font-family: var(--af-font) !important;
	font-size: 0.9rem;
	color: var(--af-text);
}

body.af-cart-page .coupon input.input-text::placeholder {
	font-family: inherit;
	color: var(--af-muted);
	opacity: 1;
}

body.af-cart-page .afct-update-btn {
	display: none !important;
}

body.af-cart-page .woocommerce-cart-form.processing,
body.af-cart-page .cart_totals.processing {
	opacity: 0.72;
	pointer-events: none;
}

/* ── Totals sidebar ── */
.afct-totals {
	padding: 24px 22px;
	border-radius: var(--af-radius);
	border: 2px solid var(--af-primary-mid);
	background: var(--af-white);
	box-shadow: 0 12px 36px var(--af-primary-soft);
}

.afct-totals__title {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--af-primary-light);
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--af-text);
}

body.af-cart-page .afct-totals .shop_table {
	display: block;
	width: 100%;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

body.af-cart-page .afct-totals .shop_table tbody {
	display: block;
}

body.af-cart-page .afct-totals .shop_table tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px dashed var(--af-primary-mid);
}

body.af-cart-page .afct-totals .shop_table th,
body.af-cart-page .afct-totals .shop_table td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 0.9rem;
}

body.af-cart-page .afct-totals .shop_table th {
	font-weight: 700;
	color: var(--af-muted);
	text-align: start;
}

body.af-cart-page .afct-totals .shop_table td {
	font-weight: 800;
	color: var(--af-text);
	text-align: end;
	white-space: nowrap;
}

body.af-cart-page .afct-totals tr.woocommerce-shipping-totals,
body.af-cart-page .afct-totals tr.shipping {
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: start;
}

body.af-cart-page .afct-totals tr.woocommerce-shipping-totals th,
body.af-cart-page .afct-totals tr.shipping th {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--af-muted);
}

body.af-cart-page .afct-totals tr.woocommerce-shipping-totals td,
body.af-cart-page .afct-totals tr.shipping td {
	text-align: start;
	white-space: normal;
	font-weight: 400;
}

body.af-cart-page .afct-totals .woocommerce-shipping-methods {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

body.af-cart-page .afct-totals .woocommerce-shipping-methods li {
	margin: 0;
}

body.af-cart-page .afct-totals .woocommerce-shipping-methods label {
	display: block;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--af-primary-light);
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--af-primary-dark);
	line-height: 1.5;
}

body.af-cart-page .afct-totals .woocommerce-shipping-destination {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--af-primary-mid);
	background: var(--af-bg);
	font-size: 0.82rem;
	line-height: 1.65;
	color: var(--af-muted);
}

body.af-cart-page .afct-totals .woocommerce-shipping-destination strong {
	display: block;
	margin-top: 6px;
	font-weight: 700;
	color: var(--af-text);
	line-height: 1.7;
	word-break: break-word;
}

body.af-cart-page .afct-totals .woocommerce-shipping-destination,
body.af-cart-page .afct-totals .woocommerce-shipping-calculator,
body.af-cart-page .afct-totals .shipping-calculator-button,
body.af-cart-page .afct-totals .shipping-calculator-form {
	display: none !important;
}

body.af-cart-page .afct-totals .woocommerce-shipping-calculator {
	margin: 0;
}

body.af-cart-page .afct-totals .shipping-calculator-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--af-primary-mid);
	background: var(--af-white);
	color: var(--af-primary-dark) !important;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.af-cart-page .afct-totals .shipping-calculator-button:hover {
	background: var(--af-primary-light);
	border-color: var(--af-primary);
	color: var(--af-secondary) !important;
}

body.af-cart-page .afct-totals .shipping-calculator-form {
	margin-top: 12px;
	padding: 14px;
	border-radius: 12px;
	border: 1px solid var(--af-primary-mid);
	background: var(--af-white);
}

body.af-cart-page .afct-totals .shipping-calculator-form .form-row {
	margin: 0 0 12px;
	padding: 0;
}

body.af-cart-page .afct-totals .shipping-calculator-form .form-row:last-of-type {
	margin-bottom: 0;
}

body.af-cart-page .afct-totals .shipping-calculator-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--af-text);
}

body.af-cart-page .afct-totals .shipping-calculator-form .input-text,
body.af-cart-page .afct-totals .shipping-calculator-form select {
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border: 1px solid var(--af-primary-mid) !important;
	border-radius: 10px;
	background: var(--af-white);
	font-family: var(--af-font) !important;
	font-size: 0.88rem;
	color: var(--af-text);
}

body.af-cart-page .afct-totals .shipping-calculator-form .input-text:focus,
body.af-cart-page .afct-totals .shipping-calculator-form select:focus {
	outline: none;
	border-color: var(--af-primary) !important;
	box-shadow: 0 0 0 3px var(--af-primary-soft);
}

body.af-cart-page .afct-totals .shipping-calculator-form > p:last-child {
	margin: 14px 0 0;
}

body.af-cart-page .afct-totals .shipping-calculator-form .button {
	width: 100%;
	min-height: 42px;
	margin: 0;
	border-radius: 12px !important;
	font-weight: 800 !important;
}

body.af-cart-page .afct-totals tr.woocommerce-shipping-totals td::before,
body.af-cart-page .afct-totals tr.shipping td::before {
	display: none !important;
}

body.af-cart-page .afct-totals .order-total {
	border-bottom: 0;
	border-top: 2px dashed var(--af-primary-mid);
	margin-top: 4px;
	padding-top: 18px;
}

body.af-cart-page .afct-totals .order-total th,
body.af-cart-page .afct-totals .order-total td {
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--af-text);
}

body.af-cart-page .afct-totals .shop_table_responsive tbody th {
	display: block !important;
}

body.af-cart-page .afct-totals .shop_table_responsive tr {
	display: grid !important;
}

body.af-cart-page .afct-totals .shop_table_responsive tr td {
	display: block !important;
	text-align: end;
}

body.af-cart-page .afct-totals .shop_table_responsive tr td::before {
	display: none !important;
}

body.af-cart-page .afct-totals .shop_table_responsive tr.woocommerce-shipping-totals td,
body.af-cart-page .afct-totals .shop_table_responsive tr.shipping td {
	text-align: start;
}

body.af-cart-page .wc-proceed-to-checkout {
	padding-top: 0;
}

body.af-cart-page .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 50px !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	border-radius: 14px !important;
}

body.af-cart-page .af-sticky-bar__action .checkout-button {
	width: 100%;
	min-height: 50px !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	border-radius: 24px !important;
}

.afct-trust {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 2px solid var(--af-primary-light);
}

.afct-trust__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--af-muted);
}

.afct-trust__item::before {
	content: '✓';
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--af-primary-light);
	color: var(--af-primary-dark);
	font-size: 0.7rem;
	flex-shrink: 0;
}

/* ── Cross-sells ── */
body.af-cart-page .cross-sells {
	margin-top: 28px;
	padding: 24px;
	border-radius: var(--af-radius);
	border: 2px solid var(--af-primary-mid);
	background: var(--af-white);
	box-shadow: 0 8px 28px var(--af-primary-soft);
}

body.af-cart-page .cross-sells > h2 {
	margin: 0 0 18px;
	font-size: 1.1rem;
	font-weight: 900;
}

/* ── Empty cart ── */
.afct--empty {
	padding-top: 8px;
}

.afct-empty {
	padding: 56px 32px;
	border-radius: var(--af-radius);
	border: 2px solid var(--af-primary-mid);
	background: var(--af-white);
	box-shadow: 0 14px 44px var(--af-primary-soft);
	text-align: center;
}

.afct-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--af-primary-light);
	border: 2px solid var(--af-primary-mid);
	color: var(--af-primary-dark);
}

.afct-empty__icon svg {
	width: 40px;
	height: 40px;
}

.afct-empty__title {
	margin: 0 0 10px;
	font-size: 1.4rem;
	font-weight: 900;
	color: var(--af-text);
}

.afct-empty__desc {
	margin: 0 0 24px;
	font-size: 0.92rem;
	line-height: 1.9;
	color: var(--af-muted);
}

.afct-empty__btn {
	min-height: 48px !important;
	padding: 12px 28px !important;
	border-radius: 24px !important;
	font-weight: 800 !important;
}

/* ── Buttons ── */
body.af-cart-page .button,
body.af-cart-page .woocommerce .button {
	border-radius: 12px !important;
	font-weight: 800 !important;
}

body.af-cart-page .button.alt,
body.af-cart-page .checkout-button {
	background: linear-gradient(135deg, var(--af-primary), var(--af-primary-dark)) !important;
	color: var(--af-white) !important;
	box-shadow: 0 8px 22px var(--af-primary-glow) !important;
}

/* ── Notices ── */
body.af-cart-page .woocommerce-message,
body.af-cart-page .woocommerce-info,
body.af-cart-page .woocommerce-error {
	border-radius: 12px !important;
	margin-bottom: 20px !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.afct__layout {
		grid-template-columns: 1fr;
	}

	.afct-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.afct-hero {
		padding: 24px 0 18px;
		margin-bottom: 16px;
	}

	.afct-hero__desc {
		font-size: 0.88rem;
		line-height: 1.75;
	}

	.af-free-shipping-bar {
		margin-bottom: 14px;
		padding: 14px 14px 12px;
	}

	.af-free-shipping-bar__inner {
		flex-wrap: wrap;
		gap: 10px;
	}

	.af-free-shipping-bar__text {
		font-size: 0.88rem;
	}

	.af-free-shipping-bar__percent {
		margin-inline-start: auto;
	}

	.afct-table-card__head {
		padding: 14px 16px;
	}

	.afct-table-card__title {
		font-size: 0.95rem;
	}

	.afct-table-card {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	body.af-cart-page .woocommerce-cart-form__contents {
		display: block;
	}

	body.af-cart-page .woocommerce-cart-form__contents thead {
		display: none;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody {
		display: block;
	}

	body.af-cart-page .woocommerce-cart-form__contents.shop_table_responsive tr td {
		float: none !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents.shop_table_responsive tr td::before {
		display: none !important;
		content: none !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: 88px minmax(0, 1fr) auto;
		grid-template-rows: repeat(5, auto);
		gap: 0 12px;
		margin: 0 0 14px;
		padding: 16px;
		border: 1px solid var(--af-primary-mid) !important;
		border-radius: var(--af-radius-sm);
		background: var(--af-white);
		box-shadow: 0 8px 24px var(--af-primary-soft);
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td {
		display: block !important;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: start !important;
		background: transparent !important;
		float: none !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td::before {
		display: none !important;
		content: none !important;
		float: none !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-remove {
		display: flex !important;
		grid-column: 3;
		grid-row: 1;
		justify-content: flex-end;
		align-self: start;
		order: 3;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-self: start;
		width: auto;
		min-width: 0;
		order: 1;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-thumbnail a,
	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-thumbnail img {
		width: 88px;
		height: 88px;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-thumbnail a img {
		width: 100% !important;
		height: 100% !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-name {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		padding-inline-end: 8px !important;
		order: 2;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-name a {
		font-size: 0.9rem;
		line-height: 1.65;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-price,
	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-quantity,
	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-subtotal {
		display: flex !important;
		grid-column: 1 / -1;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		margin-top: 14px;
		padding-top: 12px !important;
		border-top: 1px dashed var(--af-primary-mid) !important;
		font-size: 0.88rem;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-price {
		grid-row: 3;
		margin-top: 12px;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-quantity {
		grid-row: 4;
		margin-top: 0;
		border-top: 0 !important;
		padding-top: 10px !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-subtotal {
		grid-row: 5;
		margin-top: 0;
		border-top: 0 !important;
		padding-top: 10px !important;
		font-size: 0.95rem;
		font-weight: 900;
		color: var(--af-text);
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-price::before,
	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-quantity::before,
	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-subtotal::before {
		display: block !important;
		content: attr(data-title) !important;
		flex: 0 0 auto;
		font-size: 0.78rem;
		font-weight: 800;
		color: var(--af-muted);
		float: none !important;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-subtotal .woocommerce-Price-amount {
		font-weight: 900;
		color: var(--af-primary-dark);
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr.cart_item td.product-quantity .af-qty {
		flex-shrink: 0;
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr:last-child {
		display: block !important;
		margin: 0;
		padding: 16px;
		border: 1px solid var(--af-primary-mid) !important;
		border-radius: var(--af-radius-sm);
		background: var(--af-white);
		box-shadow: 0 8px 24px var(--af-primary-soft);
	}

	body.af-cart-page .woocommerce-cart-form__contents tbody tr:last-child td.actions {
		display: block !important;
		width: 100% !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: start !important;
	}

	.afct-actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.af-cart-page .coupon {
		flex-direction: column;
		align-items: stretch;
		min-width: 0;
		width: 100%;
		float: none !important;
		padding-bottom: 0 !important;
	}

	body.af-cart-page .coupon input.input-text,
	body.af-cart-page .coupon .button {
		width: 100% !important;
		min-width: 0;
		float: none !important;
		box-sizing: border-box;
	}

	.afct-empty {
		padding: 40px 20px;
	}
}
