/* ============ Luvherbs cart page ============ */

.lh-cart-page {
	--lh-bg: #fbf9ee;
	--lh-card: #fffef9;
	--lh-border: #e9e5d3;
	--lh-ink: #0f1a14;
	--lh-muted: #5d665e;
	--lh-primary: #2d5a3a;
	--lh-primary-dark: #244a2f;
	--lh-radius: 12px;

	background: var(--lh-bg);
	color: var(--lh-ink);
	font-family: 'Poppins', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.lh-cart-page *,
.lh-cart-page *::before,
.lh-cart-page *::after {
	box-sizing: border-box;
}

.lh-cart-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Hero ---------- */
.lh-cart-hero {
	background: linear-gradient(135deg, #e9f3de 0%, #d4ebd5 50%, #c6e5cb 100%);
	padding: 72px 0 80px;
}

.lh-cart-breadcrumb {
	font-size: 12px;
	color: var(--lh-muted);
}
.lh-cart-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.lh-cart-breadcrumb a:hover { color: var(--lh-primary); }

.lh-cart-eyebrow {
	margin: 20px 0 0;
	font-size: 12px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--lh-primary);
}

.lh-cart-title {
	margin: 12px 0 0;
	font-size: clamp(36px, 5vw, 52px);
	font-weight: 600;
	line-height: 1.1;
	color: var(--lh-ink);
}

/* ---------- Body / grid ---------- */
.lh-cart-body {
	padding: 56px 0 80px;
}

.lh-cart-page .woocommerce-notices-wrapper,
.lh-cart-page .woocommerce-message,
.lh-cart-page .woocommerce-error,
.lh-cart-page .woocommerce-info {
	margin-bottom: 24px;
}

.lh-cart-page .woocommerce-message,
.lh-cart-page .woocommerce-error,
.lh-cart-page .woocommerce-info {
	list-style: none;
	padding: 14px 18px;
	border: 1px solid var(--lh-border);
	border-left: 3px solid var(--lh-primary);
	border-radius: 8px;
	background: var(--lh-card);
	font-size: 14px;
}
.lh-cart-page .woocommerce-message::before,
.lh-cart-page .woocommerce-error::before,
.lh-cart-page .woocommerce-info::before { display: none; }

.lh-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

/* ---------- Items card ---------- */
.lh-cart-items {
	background: var(--lh-card);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	overflow: hidden;
}

.lh-cart-item {
	display: flex;
	gap: 20px;
	padding: 20px;
	border-bottom: 1px solid var(--lh-border);
}

.lh-item-thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
}
.lh-item-thumb a,
.lh-item-thumb img {
	display: block;
	width: 96px;
	height: 96px;
}
.lh-item-thumb img {
	object-fit: cover;
	border-radius: 8px;
}

.lh-item-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

.lh-item-top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.lh-item-cat {
	margin: 0;
	font-size: 12px;
	color: var(--lh-muted);
}

.lh-item-name {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--lh-ink);
}
.lh-item-name a {
	color: inherit;
	text-decoration: none;
}
.lh-item-name a:hover { color: var(--lh-primary); }

.lh-item-info dl.variation {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--lh-muted);
}
.lh-item-info dl.variation dt,
.lh-item-info dl.variation dd {
	display: inline;
	margin: 0;
}
.lh-item-info dl.variation dd p { display: inline; margin: 0 8px 0 0; }

.lh-item-price {
	margin: 0;
	font-size: 14px;
	color: var(--lh-ink);
	white-space: nowrap;
}

.lh-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ---------- Quantity ---------- */
.lh-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--lh-border);
	border-radius: 6px;
	background: var(--lh-card);
}

.lh-qty .quantity {
	margin: 0;
	display: block;
}

.lh-qty .quantity .screen-reader-text { /* keep label hidden */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.lh-qty input.qty {
	width: 32px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: inherit;
	font-size: 14px;
	color: var(--lh-ink);
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none;
}
.lh-qty input.qty::-webkit-outer-spin-button,
.lh-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.lh-qty input.qty:focus { outline: none; }

.lh-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lh-ink);
	cursor: pointer;
	transition: background .15s;
}
.lh-qty-btn:hover { background: #f3f0df; }

.lh-qty-fixed {
	padding: 0 14px;
	font-size: 14px;
	line-height: 34px;
}

/* ---------- Remove ---------- */
.lh-cart-page .product-remove { margin: 0; padding: 0; }

.lh-cart-page a.remove.lh-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent !important;
	color: var(--lh-muted) !important;
	font-size: inherit;
	line-height: 1;
	text-decoration: none;
	transition: color .15s;
}
.lh-cart-page a.remove.lh-remove:hover {
	color: var(--lh-ink) !important;
	background: transparent !important;
}

/* ---------- Coupon / actions ---------- */
.lh-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
}

.lh-coupon {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.lh-coupon .input-text {
	width: 190px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--lh-border);
	border-radius: 6px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	color: var(--lh-ink);
}
.lh-coupon .input-text:focus {
	outline: none;
	border-color: var(--lh-primary);
}

.lh-btn-outline,
.lh-cart-page .button.lh-btn-outline {
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--lh-primary);
	border-radius: 6px;
	background: transparent;
	color: var(--lh-primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.lh-btn-outline:hover,
.lh-cart-page .button.lh-btn-outline:hover {
	background: var(--lh-primary);
	color: #fff;
}
.lh-btn-outline:disabled { opacity: .5; cursor: not-allowed; }

/* quantity changes update the cart automatically, so hide the manual button */
.lh-update { display: none; }

/* ---------- Order summary ---------- */
.lh-summary {
	background: var(--lh-card);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
	padding: 28px;
}

.lh-summary-title {
	margin: 0 0 24px;
	font-size: 20px;
	font-weight: 500;
	color: var(--lh-ink);
}

.lh-summary-table,
.lh-summary-table tbody {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

.lh-summary-table tr {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 6px 0;
	border: 0;
}

.lh-summary-table th,
.lh-summary-table td {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.lh-summary-table th { color: var(--lh-muted); text-align: left; }
.lh-summary-table td { color: var(--lh-ink); text-align: right; }

/* hide the "data-title" labels WooCommerce injects on mobile */
.lh-summary-table td::before { display: none !important; }

.lh-summary-table tr.order-total {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--lh-border);
	align-items: center;
}
.lh-summary-table tr.order-total th { color: var(--lh-ink); }
.lh-summary-table tr.order-total td {
	font-size: 19px;
	font-weight: 500;
}
.lh-summary-table tr.order-total small { display: block; font-size: 11px; color: var(--lh-muted); }

/* shipping method list */
.lh-summary-table .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}
.lh-summary-table .woocommerce-shipping-destination,
.lh-summary-table .shipping-calculator-button {
	font-size: 12px;
	color: var(--lh-muted);
}
.lh-summary-table .shipping-calculator-button { color: var(--lh-primary); }

.lh-summary-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--lh-muted);
}

/* ---------- Checkout button ---------- */
.lh-summary .wc-proceed-to-checkout {
	margin-top: 24px;
	padding: 0;
}

.lh-summary .wc-proceed-to-checkout a.checkout-button,
.lh-btn-primary,
.lh-cart-page .button.lh-btn-primary {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 28px;
	border: 0;
	border-radius: 3px;
	background: var(--lh-primary);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: opacity .15s;
}
.lh-summary .wc-proceed-to-checkout a.checkout-button:hover,
.lh-btn-primary:hover,
.lh-cart-page .button.lh-btn-primary:hover {
	background: var(--lh-primary);
	color: #fff;
	opacity: .9;
}

/* ---------- Empty cart ---------- */
.lh-cart-empty {
	max-width: 520px;
	margin: 0 auto;
	padding: 56px 32px;
	text-align: center;
	background: var(--lh-card);
	border: 1px solid var(--lh-border);
	border-radius: var(--lh-radius);
}

.lh-cart-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: #e9f3de;
	color: var(--lh-primary);
}

.lh-cart-empty .cart-empty,
.lh-cart-empty .woocommerce-info {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 20px;
	font-weight: 500;
	color: var(--lh-ink);
}
.lh-cart-empty .woocommerce-info::before { display: none; }

.lh-cart-empty-text {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--lh-muted);
}

.lh-cart-empty .return-to-shop {
	margin: 28px auto 0;
	max-width: 240px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.lh-cart-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.lh-cart-hero { padding: 56px 0 60px; }
	.lh-cart-body { padding: 40px 0 60px; }
}

@media (max-width: 520px) {
	.lh-cart-item { gap: 14px; padding: 16px; }
	.lh-item-thumb,
	.lh-item-thumb a,
	.lh-item-thumb img {
		width: 72px;
		height: 72px;
	}
	.lh-item-thumb { flex-basis: 72px; }
	.lh-item-name { font-size: 15px; }
	.lh-summary { padding: 22px; }
	.lh-coupon .input-text { width: 100%; flex: 1; }
	.lh-coupon { width: 100%; }
}


/* ====================================================
   WooCommerce overrides (beat woocommerce.css specificity)
   ==================================================== */

/* 1. Kill the float / 48% width on the totals box */
.woocommerce .lh-cart-side,
.woocommerce-page .lh-cart-side {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce .cart-collaterals .cart_totals.lh-summary,
.woocommerce-page .cart-collaterals .cart_totals.lh-summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* 2. Make sure the form fills its grid column too */
.woocommerce .lh-cart-form,
.woocommerce-page .lh-cart-form {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* 3. Summary table: remove WooCommerce borders / bold headings */
.woocommerce .lh-summary table.lh-summary-table,
.woocommerce-page .lh-summary table.lh-summary-table {
	display: block !important;
	width: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}
.woocommerce .lh-summary table.lh-summary-table tbody,
.woocommerce-page .lh-summary table.lh-summary-table tbody {
	display: block !important;
	width: 100%;
}
.woocommerce .lh-summary table.lh-summary-table tr,
.woocommerce-page .lh-summary table.lh-summary-table tr {
	display: flex !important;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	border: 0 !important;
}
.woocommerce .lh-summary table.lh-summary-table th,
.woocommerce .lh-summary table.lh-summary-table td,
.woocommerce-page .lh-summary table.lh-summary-table th,
.woocommerce-page .lh-summary table.lh-summary-table td {
	display: block !important;
	width: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 1.5;
}
.woocommerce .lh-summary table.lh-summary-table th { color: var(--lh-muted) !important; text-align: left; }
.woocommerce .lh-summary table.lh-summary-table td { color: var(--lh-ink) !important; text-align: right; }

.woocommerce .lh-summary table.lh-summary-table tr.order-total {
	margin-top: 8px;
	padding-top: 14px !important;
	border-top: 1px solid var(--lh-border) !important;
	align-items: center;
}
.woocommerce .lh-summary table.lh-summary-table tr.order-total th { color: var(--lh-ink) !important; }
.woocommerce .lh-summary table.lh-summary-table tr.order-total td {
	font-size: 19px !important;
	font-weight: 500 !important;
}
.woocommerce .lh-summary table.lh-summary-table tr.order-total td strong { font-weight: 500; }
.woocommerce .lh-summary table.lh-summary-table td::before { display: none !important; }

/* 4. Summary title on one line */
.woocommerce .lh-summary h2.lh-summary-title {
	margin: 0 0 24px !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 1.3;
	padding: 0;
}

/* 5. Checkout button: full width, theme green */
.woocommerce .lh-summary .wc-proceed-to-checkout {
	padding: 0 !important;
	margin: 24px 0 0 !important;
}
.woocommerce .lh-summary .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .lh-summary .wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 15px 28px !important;
	border-radius: 3px !important;
	background: var(--lh-primary) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-align: center;
}

/* 6. Hide the manual Update cart button (auto-updates via JS) */
.lh-cart-page .lh-cart-actions .lh-update { display: none !important; }

/* 7. Coupon row: keep input + button aligned */
.woocommerce .lh-cart-actions .coupon.lh-coupon {
	float: none !important;
	display: flex;
	align-items: center;
	gap: 8px;
}
.woocommerce .lh-cart-actions .coupon.lh-coupon .input-text {
	float: none !important;
	width: 190px !important;
	margin: 0 !important;
}
.woocommerce .lh-cart-actions .button.lh-btn-outline {
	float: none !important;
	height: 40px;
	padding: 0 18px !important;
	background: transparent !important;
	color: var(--lh-primary) !important;
	border: 1px solid var(--lh-primary) !important;
	font-weight: 500 !important;
}
.woocommerce .lh-cart-actions .button.lh-btn-outline:hover {
	background: var(--lh-primary) !important;
	color: #fff !important;
}

/* 8. Make the grid column exactly 360px on desktop */
@media (min-width: 961px) {
	.lh-cart-grid { grid-template-columns: minmax(0, 1fr) 360px !important; }
}