.woocommerce-cart {
	background: #f6f8fb;
	color: var(--ahan-color-text);
	font-family: var(--ahan-font-family);
}

.woocommerce-cart .site-main {
	width: 100%;
	padding: 0;
	background: #f6f8fb;
}

.woocommerce-cart .entry,
.woocommerce-cart .entry-content {
	margin: 0;
}

.ahan-cart-page,
.woocommerce-cart .ahan-desktop-header,
.woocommerce-cart .ahan-desktop-footer {
	font-family: var(--ahan-font-family);
	color: var(--ahan-color-text);
}

.ahan-cart-page {
	min-height: 60vh;
	overflow-x: clip;
	padding: 28px 0 38px;
	background: #f6f8fb;
}

.ahan-cart-page__inner {
	display: grid;
	gap: 16px;
}

.ahan-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(290px, 348px);
	gap: 22px;
	align-items: start;
}

.ahan-cart-main,
.ahan-cart-summary,
.ahan-cart-empty {
	border: 1px solid var(--ahan-color-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--ahan-shadow-sm);
}

.ahan-cart-main {
	min-width: 0;
	padding: 22px;
}

.ahan-cart-heading {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
}

.ahan-cart-heading h1,
.ahan-cart-empty h1 {
	margin: 0;
	color: #071122;
	font-size: 1.72rem;
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: 0;
}

.ahan-cart-heading p,
.ahan-cart-empty p {
	margin: 0;
	color: var(--ahan-color-text-muted);
	font-size: 0.96rem;
	line-height: 1.45;
}

.ahan-cart-discount-notice {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid #bfd6f2;
	border-radius: 8px;
	background: #f4f8fe;
}

.ahan-cart-discount-notice strong {
	color: #071122;
	font-size: 0.96rem;
	font-weight: 900;
	line-height: 1.3;
}

.ahan-cart-discount-notice p {
	margin: 0;
	color: var(--ahan-color-text-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.ahan-cart-items {
	display: grid;
	gap: 10px;
}

.ahan-cart-item {
	display: grid;
	grid-template-columns: 86px minmax(180px, 1fr) minmax(86px, 0.42fr) minmax(106px, 0.44fr) minmax(96px, 0.42fr) auto;
	gap: 14px;
	align-items: center;
	min-width: 0;
	padding: 14px 0;
	border-top: 1px solid var(--ahan-color-border);
}

.ahan-cart-item:first-child {
	border-top: 0;
}

.ahan-cart-item__media {
	display: block;
	width: 86px;
	height: 86px;
	overflow: hidden;
	border: 1px solid var(--ahan-color-border);
	border-radius: 6px;
	background: #f8fafc;
}

.ahan-cart-item__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ahan-cart-item__image--placeholder {
	background: linear-gradient(135deg, #eef2f6, #fff);
}

.ahan-cart-item__product {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.ahan-cart-item__sku {
	color: var(--ahan-color-text-muted);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.ahan-cart-item__title {
	min-width: 0;
	color: #071122;
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ahan-cart-item__title:hover,
.ahan-cart-item__title:focus-visible {
	color: var(--ahan-color-brand-blue);
}

.ahan-cart-item__price,
.ahan-cart-item__quantity,
.ahan-cart-item__subtotal {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.ahan-cart-item__price > span:not(.ahan-price),
.ahan-cart-item__quantity > span:not(.ahan-qty-control),
.ahan-cart-item__subtotal > span:not(.ahan-price) {
	color: var(--ahan-color-text-muted);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.ahan-cart-item__price .ahan-price,
.ahan-cart-item__subtotal .ahan-price {
	text-transform: none;
}

.ahan-cart-item__subtotal .ahan-price__value,
.ahan-cart-summary__total .ahan-price__value {
	font-size: 1.08rem;
}

.ahan-cart-item__remove {
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid #f0c6c6;
	border-radius: 6px;
	background: #fff7f7;
	color: var(--ahan-color-status-red);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 900;
	cursor: pointer;
	white-space: nowrap;
}

.ahan-cart-item__remove:hover,
.ahan-cart-item__remove:focus-visible {
	border-color: var(--ahan-color-status-red);
	background: #fff0f0;
}

.ahan-cart-summary {
	position: sticky;
	top: 112px;
	display: grid;
	gap: 12px;
	padding: 18px;
}

.ahan-cart-summary h2 {
	margin: 0;
	color: #071122;
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.12;
}

.ahan-cart-summary__totals {
	display: grid;
	gap: 10px;
	margin: 0;
}

.ahan-cart-summary__totals div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--ahan-color-border);
}

.ahan-cart-summary__totals dt,
.ahan-cart-summary__totals dd {
	margin: 0;
}

.ahan-cart-summary__totals dt {
	color: var(--ahan-color-text-muted);
	font-size: 0.88rem;
	font-weight: 800;
}

.ahan-cart-summary__totals dd {
	color: #071122;
	font-weight: 900;
	text-align: right;
}

.ahan-cart-summary__totals .ahan-cart-summary__total {
	padding-bottom: 0;
	border-bottom: 0;
}

.ahan-cart-summary__checkout,
.ahan-cart-empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 6px;
	background: var(--ahan-color-brand-blue);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
}

.ahan-cart-summary__checkout:hover,
.ahan-cart-summary__checkout:focus-visible,
.ahan-cart-empty a:hover,
.ahan-cart-empty a:focus-visible {
	background: #074f99;
	color: #fff;
}

.ahan-cart-notices {
	min-height: 0;
}

.ahan-cart-notice {
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--ahan-color-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ahan-color-text);
	font-weight: 800;
}

.ahan-cart-notice--success {
	border-color: #b7dfc2;
	background: #f1fbf4;
	color: var(--ahan-color-status-green);
}

.ahan-cart-notice--error {
	border-color: #f0c6c6;
	background: #fff7f7;
	color: var(--ahan-color-status-red);
}

.ahan-cart-empty {
	display: grid;
	justify-items: start;
	gap: 14px;
	min-height: 280px;
	align-content: center;
	padding: 44px;
}

.ahan-cart-page.is-loading {
	cursor: progress;
}

.ahan-cart-page.is-loading .ahan-cart-item,
.ahan-cart-page.is-loading .ahan-cart-summary {
	opacity: 0.62;
}

.ahan-cart-page.is-loading button,
.ahan-cart-page.is-loading input {
	cursor: wait;
}

@media (max-width: 1180px) {
	.ahan-cart-layout {
		grid-template-columns: minmax(0, 1fr) 308px;
		gap: 16px;
	}

	.ahan-cart-main {
		padding: 18px;
	}

	.ahan-cart-item {
		grid-template-columns: 78px minmax(150px, 1fr) 78px 96px 88px;
		gap: 11px;
	}

	.ahan-cart-item__remove {
		grid-column: 2 / -1;
		justify-self: start;
	}

	.ahan-cart-item__media {
		width: 78px;
		height: 78px;
	}
}

@media (max-width: 900px) {
	.ahan-cart-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ahan-cart-summary {
		position: static;
	}
}

@media (max-width: 767px) {
	.woocommerce-cart {
		overflow-x: hidden;
	}

	.woocommerce-cart .site-main {
		max-width: 100%;
		overflow-x: hidden;
		padding-bottom: 104px;
	}

	.woocommerce-cart .site-footer,
	.woocommerce-cart .ahan-desktop-header,
	.woocommerce-cart .ahan-desktop-footer {
		display: none;
	}

	.ahan-cart-page {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		padding: 10px 0 118px;
	}

	.ahan-cart-page__inner {
		width: calc(100% - 28px);
		max-width: calc(100% - 28px);
		gap: 12px;
		min-width: 0;
		margin-inline: auto;
	}

	.ahan-cart-layout,
	.ahan-cart-main,
	.ahan-cart-summary,
	.ahan-cart-empty,
	.ahan-cart-items,
	.ahan-cart-item {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.ahan-cart-main,
	.ahan-cart-summary,
	.ahan-cart-empty {
		border-radius: 8px;
	}

	.ahan-cart-main,
	.ahan-cart-summary {
		padding: 14px;
	}

	.ahan-cart-heading {
		margin-bottom: 12px;
	}

	.ahan-cart-heading h1,
	.ahan-cart-empty h1 {
		font-size: 1.35rem;
	}

	.ahan-cart-heading p {
		font-size: 0.86rem;
		overflow-wrap: anywhere;
	}

	.ahan-cart-item {
		grid-template-columns: 74px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 14px 0;
	}

	.ahan-cart-item__media {
		width: 74px;
		height: 74px;
	}

	.ahan-cart-item__product {
		align-self: start;
	}

	.ahan-cart-item__sku {
		font-size: 0.72rem;
	}

	.ahan-cart-item__title {
		font-size: 0.9rem;
	}

	.ahan-cart-item__price,
	.ahan-cart-item__quantity,
	.ahan-cart-item__subtotal {
		gap: 5px;
	}

	.ahan-cart-item__price {
		grid-column: 1 / 2;
	}

	.ahan-cart-item__quantity {
		grid-column: 2 / 3;
	}

	.ahan-cart-item__subtotal {
		grid-column: 1 / 2;
	}

	.ahan-cart-item__remove {
		grid-column: 2 / 3;
		justify-self: start;
		min-height: 38px;
	}

	.ahan-cart-summary {
		gap: 12px;
	}

	.ahan-cart-summary__totals div {
		min-width: 0;
	}

	.ahan-cart-summary__totals dt,
	.ahan-cart-summary__totals dd {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.ahan-cart-summary__checkout,
	.ahan-cart-empty a {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.ahan-cart-empty {
		min-height: 320px;
		padding: 28px 18px;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 380px) {
	.ahan-cart-page__inner {
		width: calc(100% - 20px);
		max-width: calc(100% - 20px);
	}

	.ahan-cart-main,
	.ahan-cart-summary {
		padding: 12px;
	}

	.ahan-cart-item {
		grid-template-columns: 66px minmax(0, 1fr);
		gap: 9px;
	}

	.ahan-cart-item__media {
		width: 66px;
		height: 66px;
	}

	.ahan-cart-item__title {
		font-size: 0.84rem;
	}

	.ahan-cart-item__remove {
		padding-inline: 10px;
	}
}
