/* Cart drawer — slide-in from right */
.hk-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	z-index: 1090;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

.hk-cart-backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.hk-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(480px, 100vw);
	background: var(--bg, #faf6ec);
	z-index: 1100;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
}

.hk-cart-drawer.is-open {
	transform: translateX(0);
}

body.hk-cart-locked {
	overflow: hidden;
}

/* Header */
.hk-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: #fff;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.hk-cart__head-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}

.hk-cart__head-title svg {
	color: var(--ink);
}

.hk-cart__close {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ink);
	transition: opacity .15s, transform .15s;
	flex-shrink: 0;
}

.hk-cart__close svg {
	width: 26px;
	height: 26px;
	stroke-width: 2;
}

.hk-cart__close:hover { opacity: .6; }
.hk-cart__close:active { transform: scale(.92); }

/* Content scroll area */
.hk-cart__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Free shipping progress */
.hk-cart__ship {
	background: #fff;
	padding: 14px 22px 16px;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.hk-cart__ship-msg {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--ink-soft);
	margin: 0 0 8px;
}

.hk-cart__ship-msg.is-ok {
	color: var(--accent-deep);
	font-weight: 600;
}

.hk-cart__ship-bar {
	height: 4px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}

.hk-cart__ship-bar > span {
	display: block;
	height: 100%;
	background: var(--accent);
	border-radius: 999px;
	transition: width .3s ease;
}

/* Body */
.hk-cart__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 22px;
}

/* Empty state */
.hk-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 16px;
	min-height: 100%;
}

.hk-cart__empty-emoji {
	font-size: 56px;
	margin-bottom: 16px;
}

.hk-cart__empty-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 6px;
}

.hk-cart__empty-sub {
	color: var(--ink-soft);
	font-size: 14px;
	margin: 0 0 20px;
}

.hk-cart__empty-cta {
	display: inline-block;
	background: var(--accent);
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none !important;
	transition: background .15s;
}

.hk-cart__empty-cta:hover {
	background: var(--accent-deep);
	color: #fff !important;
}

/* Items list */
.hk-cart__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hk-cart__item {
	display: flex;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 12px;
}

.hk-cart__item-thumb {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	background: var(--accent-tint);
	flex-shrink: 0;
	overflow: hidden;
}

.hk-cart__item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hk-cart__item-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(135deg, var(--accent-soft) 0 12px, var(--accent-tint) 12px 24px);
}

.hk-cart__item-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hk-cart__item-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.hk-cart__item-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	margin: 0;
	line-height: 1.35;
}

.hk-cart__item-meta {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin: 0;
}

.hk-cart__item-remove {
	border: 0;
	background: transparent;
	color: var(--ink-mute);
	cursor: pointer;
	padding: 4px;
	flex-shrink: 0;
	border-radius: 6px;
	transition: color .15s, background .15s;
}

.hk-cart__item-remove:hover {
	color: var(--coral);
	background: var(--cream);
}

/* Qty stepper */
.hk-cart__qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 2px;
}

.hk-cart__qty-btn {
	width: 26px;
	height: 26px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}

.hk-cart__qty-btn:hover {
	background: var(--cream);
}

.hk-cart__qty-val {
	min-width: 20px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}

.hk-cart__item-price {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}

/* Footer */
.hk-cart__foot {
	background: #fff;
	padding: 18px 22px 22px;
	border-top: 1px solid var(--line);
	flex-shrink: 0;
}

.hk-cart__line {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--ink-soft);
	padding: 4px 0;
}

.hk-cart__line strong {
	color: var(--accent-deep);
	font-weight: 700;
}

.hk-cart__total {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px dashed var(--line);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

.hk-cart__total span:last-child {
	color: var(--accent-deep);
}

.hk-cart__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--accent);
	color: #fff !important;
	padding: 14px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	margin-top: 16px;
	transition: background .15s, transform .15s;
}

.hk-cart__checkout:hover {
	background: var(--accent-deep);
	color: #fff !important;
	transform: translateY(-1px);
}

.hk-cart__continue {
	display: block;
	width: 100%;
	background: transparent;
	border: 0;
	color: var(--ink-soft);
	font-size: 13.5px;
	margin-top: 10px;
	cursor: pointer;
	padding: 4px;
}

.hk-cart__continue:hover {
	color: var(--ink);
}

@media (max-width: 520px) {
	.hk-cart-drawer { width: 100vw; }
}
