/* =========================================================================
   Handknitted — Cart page
   -------------------------------------------------------------------------
   Layout from the Figma "Cart" frame (139:500): checkout steps + item list
   on the left, grey summary panel on the right bleeding to the viewport
   edge (panel 605/1440 ≈ 42%, flush against the header hairline).
   ========================================================================= */

.woocommerce-cart .site-content { padding-block: 0; }

.site-main--cart { min-height: 50vh; }

.hk-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
	align-items: stretch;
}

/* ---- Left column --------------------------------------------------------- */
.hk-cart-main {
	padding: 2.4rem clamp(1.5rem, 4vw, 60px) 3.5rem clamp(1rem, 5.8vw, 84px);
	max-width: 800px;
}

/* Checkout steps: "Cart - Shipping - Payment - Confirmation"
   (current step cyan, others ink, regular weight — per Cart.png) */
.hk-steps {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0 0 3.4rem;
	padding: 0;
	font-family: "Nexa", var(--hk-font);
	font-weight: 400;
	font-size: 1rem;
	color: var(--hk-ink);
}
.hk-steps__item { display: inline-flex; align-items: center; gap: 0.4em; }
.hk-steps__item:not(:last-child)::after { content: "-"; }
.hk-steps__item a,
.hk-steps__item span { color: inherit; text-decoration: none; }
.hk-steps__item a:hover { color: var(--hk-brand); text-decoration: none; }
.hk-steps__item.is-current > * { color: var(--hk-brand); }

/* ---- Cart items ----------------------------------------------------------- */
.hk-cart-item {
	display: grid;
	grid-template-columns: 182px minmax(0, 1fr);
	gap: 1.5rem;
	padding-block: 0 2.4rem;
	border-bottom: 1px solid var(--hk-line);
}
.hk-cart-item + .hk-cart-item { padding-top: 2.4rem; }
/* The design closes the list with a cyan rule. */
.hk-cart-item:last-child { border-bottom-color: var(--hk-brand); }

.hk-cart-item__image img {
	display: block;
	width: 100%;
	aspect-ratio: 182 / 230;
	object-fit: contain; /* whole image, letterboxed if needed */
	background: #fff; /* white letterbox — odd image ratios blend in */
	border-radius: 2px;
}

.hk-cart-item__name {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.25rem;      /* 20px */
	line-height: 1.2;
	margin: 0 0 0.2rem;
}
.hk-cart-item__name a { color: var(--hk-ink); text-decoration: none; }
.hk-cart-item__name a:hover { color: var(--hk-brand); text-decoration: none; }

/* Cyan type line ("Pullover") between name and price */
.hk-cart-item__desc {
	font-family: "Nexa", var(--hk-font);
	font-size: 0.9375rem;
	color: var(--hk-brand);
	margin: 0 0 0.5rem;
}

.hk-cart-item__price {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.125rem;     /* 18px */
	color: var(--hk-ink);
	margin: 0 0 1.6rem;
}

/* Label-over-value strip: Price / Size / Quantity / Total */
.hk-cart-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2.6rem;
	margin: 0;
}
.hk-cart-item__cell dt {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1rem;
	color: var(--hk-ink);
	margin: 0 0 0.35rem;
}
.hk-cart-item__cell dd {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--hk-ink-soft);
}
.hk-cart-item__cell .woocommerce-Price-amount { color: var(--hk-ink-soft); }

/* Quantity input — looks like plain text per the design, still editable */
.hk-cart-item__cell .quantity { display: inline-block; }
.hk-cart-item__cell .qty {
	width: 44px;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--hk-ink-soft);
	appearance: textfield;
	-moz-appearance: textfield;
}
.hk-cart-item__cell .qty::-webkit-outer-spin-button,
.hk-cart-item__cell .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-cart-item__cell .qty:focus {
	outline: 1px solid var(--hk-brand);
	outline-offset: 2px;
	border-radius: 1px;
}

/* Edit / Remove — cyan, bottom-right of the item body */
.hk-cart-item__actions {
	margin-top: 2.6rem;
	display: flex;
	justify-content: flex-end;
	gap: 1.4rem;
}
.hk-cart-item__actions a {
	font-family: "Nexa", var(--hk-font);
	font-size: 0.9375rem;
	color: var(--hk-brand);
	text-decoration: none;
}
.hk-cart-item__actions a:hover { color: var(--hk-brand-dark); text-decoration: underline; }

/* ---- Right summary panel -------------------------------------------------- */
.hk-cart-summary {
	background: #f9f9f9;
}
.hk-cart-summary__inner {
	padding: clamp(3rem, 9.5vw, 138px) clamp(1.5rem, 5vw, 60px) 3.5rem clamp(1.5rem, 7.6vw, 110px);
	max-width: calc(320px + clamp(1.5rem, 7.6vw, 110px) + clamp(1.5rem, 5vw, 60px));
}

.hk-cart-summary__title {
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.375rem;
	color: var(--hk-ink);
	/* Big breathing room between the heading and the rows, per the design */
	margin: 0 0 5.5rem;
}

.hk-cart-summary__rows { margin: 0 0 2.2rem; }
.hk-cart-summary__row {
	display: grid;
	grid-template-columns: minmax(110px, 179px) 1fr;
	font-size: 1rem;
	line-height: 2.2;
	color: var(--hk-ink);
}
.hk-cart-summary__row dt { font-weight: 400; }
.hk-cart-summary__row dd { margin: 0; }
/* Woo wraps the order total in <strong>; the design keeps all rows equal. */
.hk-cart-summary__row dd strong,
.hk-cart-summary__row dd .woocommerce-Price-amount { font-weight: 400; }

.hk-btn-checkout {
	display: block;
	width: 100%;
	max-width: 320px;
	height: 50px;
	line-height: 50px;
	background: var(--hk-brand-btn);
	color: #fff !important;
	text-align: center;
	border-radius: 2px;
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.125rem;
	text-decoration: none !important;
}
.hk-btn-checkout:hover { background: var(--hk-brand-btn-dark); }

.hk-cart-summary__note {
	font-size: 0.9375rem;
	color: var(--hk-ink);
	margin: 1.1rem 0 0;
	max-width: 270px;
	line-height: 1.4;
}

.hk-cart-summary__methods-label {
	font-family: "Nexa", var(--hk-font);
	font-weight: 400;
	font-size: 0.9375rem;
	color: var(--hk-ink);
	margin: 5rem 0 0.6rem;
}
.hk-cart-summary__methods {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
}

/* ---- Empty cart ------------------------------------------------------------ */
.site-main--cart .cart-empty,
.site-main--cart .wc-empty-cart-message {
	padding: 4rem var(--hk-gutter) 0;
	text-align: center;
	font-family: "Nexa", var(--hk-font);
	font-weight: 700;
	font-size: 1.375rem;
}
.site-main--cart .return-to-shop {
	text-align: center;
	padding-bottom: 4rem;
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
	.hk-cart-layout { grid-template-columns: 1fr; }
	.hk-cart-main { max-width: none; padding-bottom: 2.5rem; }
	.hk-cart-summary__inner {
		padding: 2.5rem var(--hk-gutter);
		max-width: none;
	}
	.hk-btn-checkout,
	.hk-cart-summary__methods { max-width: 400px; }
}
@media (max-width: 560px) {
	.hk-cart-item { grid-template-columns: 120px 1fr; gap: 1rem; }
}
