/* Cart page — airy Nabhya bag, compact GST in the summary only */

body.nj-cart-body {
	background: #f8f4ee;
}

.nj-cart {
	padding: 40px 24px 96px;
	background: var(--nj-secondary, #f8f4ee);
}

.nj-cart__wrap {
	max-width: 1120px;
}

.nj-cart__intro {
	margin-bottom: 36px;
}

.nj-cart__intro h1 {
	margin-top: 6px;
	font-family: var(--nj-serif);
	font-size: clamp(36px, 4.4vw, 52px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--nj-foreground);
}

.nj-cart .woocommerce {
	display: grid;
	gap: 40px;
}

.nj-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

.nj-cart .woocommerce-message,
.nj-cart .woocommerce-info,
.nj-cart .woocommerce-error {
	margin: 0 0 8px;
	padding: 14px 18px;
	border: 1px solid var(--nj-border);
	border-radius: 14px;
	background: var(--nj-white);
	font-size: 14px;
}

.nj-cart .klb-free-shipping {
	margin: 0;
	padding: 18px 28px 0;
	border: 0;
	background: transparent;
}

.nj-cart .klb-free-shipping .shipping-notice {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--nj-muted);
}

.nj-cart .klb-free-shipping .shipping-progress {
	height: 3px;
	border-radius: 999px;
	background: #efe8dc;
	overflow: hidden;
}

.nj-cart .klb-free-shipping .shipping-progress span {
	height: 100%;
	background: #6f9e6a;
}

.nj-cart .woocommerce-cart-form {
	background: var(--nj-white);
	border: 1px solid var(--nj-border);
	border-radius: 20px;
	overflow: hidden;
}

.nj-cart .nj-cart-table,
.nj-cart .nj-cart-table tbody {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.nj-cart .nj-cart-table thead,
.nj-cart .nj-cart-item .product-subtotal {
	display: none;
}

.nj-cart .nj-cart-actions {
	display: block;
}

.nj-cart .nj-cart-item {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) 40px;
	grid-template-areas:
		"thumb name remove"
		"thumb price price"
		"thumb qty qty"
		"break break break";
	align-items: start;
	column-gap: 24px;
	row-gap: 8px;
	padding: 28px 32px;
	border-bottom: 1px solid var(--nj-border);
	background: transparent;
}

.nj-cart .nj-cart-item:last-of-type {
	border-bottom: 0;
}

.nj-cart .nj-cart-item td {
	padding: 0;
	border: 0;
	background: transparent;
	vertical-align: middle;
}

.nj-cart .nj-cart-item td::before {
	content: none !important;
}

.nj-cart .product-thumbnail {
	grid-area: thumb;
}

.nj-cart .product-name {
	display: contents;
}

.nj-cart-item__info {
	grid-area: name;
	min-width: 0;
}

.nj-cart .product-price {
	grid-area: price;
	padding: 2px 0 0;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 600;
}

.nj-cart .product-quantity {
	grid-area: qty;
	padding: 4px 0 2px;
}

.nj-cart .product-remove {
	grid-area: remove;
	justify-self: end;
}

.nj-cart .product-thumbnail img {
	width: 108px;
	height: 108px;
	object-fit: cover;
	border-radius: 16px;
	background: var(--nj-soft);
}

.nj-cart .product-name a {
	font-family: var(--nj-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--nj-foreground);
}

.nj-cart .variation,
.nj-cart .wc-item-meta {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--nj-muted);
}

.nj-cart .variation dt,
.nj-cart .variation dd {
	display: inline;
	margin: 0;
}

.nj-cart .variation dd {
	margin-right: 10px;
}

.nj-cart-breakdown {
	grid-area: break;
	width: 100%;
	max-width: none;
	margin-top: 6px;
}

.nj-cart-breakdown summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nj-primary);
	user-select: none;
}

.nj-cart-breakdown summary::-webkit-details-marker {
	display: none;
}

.nj-cart-breakdown summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
}

.nj-cart-breakdown[open] summary::after {
	margin-top: 2px;
	transform: rotate(-135deg);
}

.nj-cart-breakdown__table {
	margin-top: 10px;
	overflow: visible;
	border: 1px solid var(--nj-border);
	border-radius: 12px;
	background: #fbf8f3;
}

.nj-cart-breakdown .gold-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 12px;
	line-height: 1.4;
}

.nj-cart-breakdown .gold-table th,
.nj-cart-breakdown .gold-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--nj-border);
	text-align: left;
	vertical-align: top;
	background: transparent;
	overflow-wrap: anywhere;
}

.nj-cart-breakdown .gold-table th:first-child,
.nj-cart-breakdown .gold-table td:first-child {
	width: 34%;
}

.nj-cart-breakdown .gold-table th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nj-muted);
}

.nj-cart-breakdown .gold-table td:nth-child(n + 2),
.nj-cart-breakdown .gold-table th:nth-child(n + 2) {
	text-align: right;
	white-space: nowrap;
}

.nj-cart-breakdown .gold-table tr:last-child th,
.nj-cart-breakdown .gold-table tr:last-child td {
	border-bottom: 0;
}

.nj-cart-breakdown .gold-table .woocommerce-Price-amount,
.nj-cart-breakdown .gold-table .woocommerce-Price-amount bdi {
	font-family: var(--nj-sans);
	font-size: 12px;
	font-weight: inherit;
}

.nj-cart .product-price .woocommerce-Price-amount,
.nj-cart-totals .woocommerce-Price-amount {
	font-family: var(--nj-sans);
	font-size: inherit;
	font-weight: inherit;
}

.nj-cart a.remove.nj-cart-remove,
.nj-cart .nj-cart-item a.remove {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--nj-muted) !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	text-decoration: none !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.nj-cart a.remove.nj-cart-remove::before,
.nj-cart a.remove.nj-cart-remove::after,
.nj-cart .nj-cart-item a.remove::before,
.nj-cart .nj-cart-item a.remove::after {
	content: none !important;
	display: none !important;
}

.nj-cart a.remove.nj-cart-remove i,
.nj-cart .nj-cart-item a.remove i {
	display: none !important;
}

.nj-cart a.remove.nj-cart-remove svg,
.nj-cart .nj-cart-item a.remove svg {
	display: block;
	width: 20px;
	height: 20px;
}

.nj-cart a.remove.nj-cart-remove:hover,
.nj-cart .nj-cart-item a.remove:hover {
	color: var(--nj-primary) !important;
	background: #f8f2ea !important;
}

.nj-cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--nj-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--nj-white);
}

.nj-cart .quantity .qty,
.nj-cart .quantity input.qty {
	width: 44px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	box-shadow: none;
}

.nj-cart .quantity-button,
.nj-cart .quantity .minus,
.nj-cart .quantity .plus,
.nj-cart button.minus,
.nj-cart button.plus {
	width: 36px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--nj-foreground);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.nj-cart .nj-cart-actions td {
	padding: 20px 32px 28px;
	background: transparent;
	border: 0;
}

.nj-cart .nj-cart-actions .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.nj-cart-coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nj-cart-coupon .input-text,
.nj-cart #coupon_code {
	min-width: 180px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--nj-border);
	border-radius: 999px;
	background: var(--nj-white);
	font: inherit;
	box-shadow: none;
}

.nj-cart-btn,
.nj-cart button.button,
.nj-cart a.button,
.nj-cart a.checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-family: var(--nj-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.nj-cart-btn--ghost,
.nj-cart button.button,
.nj-cart .coupon .button {
	border: 1px solid var(--nj-border);
	background: var(--nj-white);
	color: var(--nj-foreground);
}

.nj-cart-btn--ghost:hover,
.nj-cart button.button:hover {
	border-color: var(--nj-primary);
	color: var(--nj-primary);
}

.nj-cart-btn--primary,
.nj-cart a.checkout-button,
.nj-cart a.checkout-button.button {
	width: 100%;
	border: 0;
	background: var(--nj-primary);
	color: var(--nj-white) !important;
}

.nj-cart-btn--primary:hover,
.nj-cart a.checkout-button:hover {
	background: var(--nj-primary-hover);
	color: var(--nj-white) !important;
}

.nj-cart-collaterals {
	width: 100%;
}

.nj-cart-totals {
	padding: 32px;
	border: 1px solid var(--nj-border);
	border-radius: 20px;
	background: var(--nj-white);
}

.nj-cart-totals h2 {
	margin: 0 0 22px;
	font-family: var(--nj-serif);
	font-size: 30px;
	font-weight: 500;
}

.nj-cart-totals .shop_table {
	width: 100%;
	margin: 0;
	border: 0;
}

.nj-cart-totals .shop_table th,
.nj-cart-totals .shop_table td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--nj-border);
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	vertical-align: top;
}

.nj-cart-totals .shop_table td {
	text-align: right;
	white-space: nowrap;
}

.nj-cart-totals .nj-cart-line--gst th small {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--nj-muted);
}

.nj-cart-totals .order-total th,
.nj-cart-totals .order-total td {
	padding-top: 18px;
	border-bottom: 0;
	font-size: 18px;
	font-weight: 700;
}

.nj-cart-totals .order-total td {
	color: var(--nj-primary);
}

.nj-cart-totals .order-total small,
.nj-cart-totals .includes_tax {
	display: none;
}

.nj-cart-totals__note {
	margin: 8px 0 24px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--nj-muted);
}

.nj-cart-empty {
	padding: 72px 24px;
	border: 1px dashed var(--nj-border);
	border-radius: 20px;
	background: var(--nj-white);
	text-align: center;
}

.nj-cart-empty__eyebrow {
	margin-bottom: 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nj-primary);
}

.nj-cart-empty h2 {
	margin: 0 0 10px;
	font-family: var(--nj-serif);
	font-size: 36px;
	font-weight: 500;
}

.nj-cart-empty p {
	margin: 0 0 24px;
	color: var(--nj-muted);
}

.nj-cart-empty .nj-cart-btn {
	min-width: 220px;
}

@media (min-width: 980px) {
	.nj-cart .woocommerce:has(.woocommerce-cart-form) {
		grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
		align-items: start;
		gap: 48px;
	}

	.nj-cart .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.nj-cart .woocommerce-cart-form {
		grid-column: 1;
	}

	.nj-cart-collaterals {
		grid-column: 2;
		position: sticky;
		top: 28px;
	}
}

@media (max-width: 979px) {
	.nj-cart {
		padding: 28px 16px 72px;
	}

	.nj-cart .nj-cart-item {
		grid-template-columns: 84px minmax(0, 1fr) 36px;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty qty"
			"break break break";
		column-gap: 16px;
		row-gap: 8px;
		padding: 22px 20px;
	}

	.nj-cart-breakdown__table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.nj-cart-breakdown .gold-table {
		table-layout: auto;
		min-width: 520px;
	}

	.nj-cart .product-thumbnail img {
		width: 84px;
		height: 84px;
	}

	.nj-cart .product-name a {
		font-size: 22px;
	}

	.nj-cart .nj-cart-actions td {
		padding: 16px 20px 24px;
	}

	.nj-cart-totals {
		padding: 24px;
	}
}
