/* Styles for store/cart.html (moved from its <style> block). */

body {
	margin: 0;
	font-family: var(--font-system);
	background: var(--color-surface-muted);
	color: var(--color-text);
}
#header { position: sticky; top: 0; z-index: var(--z-header); }
/* Sticky, not static -- pins right under the sticky #header while
   scrolling. No cart badge floats over this page (you're already
   in the cart), so unlike the other 4 store pages' .deals-banner
   this one doesn't need the right-padding reservation, or as tall
   a min-height (nothing here needs clearing) -- just enough for
   the bold title + tier-details lines, growing if the details
   line wraps. flex-direction:column stacks them, centered both
   ways since there's no badge to stay clear of. */
.deals-banner {
	position: sticky; top: 48px; z-index: var(--z-store-banner);
	background: var(--color-success-surface); color: var(--color-success); font-size: var(--font-size-xs);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 42px;
	padding: var(--space-1-5) var(--space-4); text-align: center;
}
.deals-banner-title { font-weight: var(--font-weight-bold); }
.deals-banner-details { font-weight: var(--font-weight-medium); margin-top: 1px; }
.cart-container { max-width: 700px; margin: 0 auto; padding: var(--space-6) var(--space-4) 64px; }
.cart-title { font-size: var(--font-size-5xl); font-weight: var(--font-weight-semibold); margin: var(--space-2) 0 var(--space-6); color: var(--color-text); }
.cart-status { color: var(--color-text-muted); padding: var(--space-8) 0; text-align: center; }
.cart-status a { color: var(--color-primary); }
.cart-line {
	display: flex; gap: var(--space-4); align-items: center; background: var(--color-surface);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-card-hairline); padding: var(--space-3-5); margin-bottom: var(--space-3);
}
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-subtle); flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: var(--font-weight-semibold); font-size: var(--font-size-md); }
.cart-line-meta { color: var(--color-text-muted); font-size: var(--font-size-sm); margin-top: var(--space-0-5); }
.cart-line-price { color: var(--color-text-secondary); font-size: var(--font-size-base); margin-top: var(--space-1); }
.qty-stepper { display: flex; align-items: center; gap: var(--space-2); }
.qty-stepper button {
	width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
	background: var(--color-surface); cursor: pointer; font-size: var(--font-size-md); line-height: 1;
}
.qty-stepper span { min-width: 20px; text-align: center; font-size: var(--font-size-base); }
.remove-link { color: var(--color-danger-strong); font-size: var(--font-size-sm); background: none; border: none; cursor: pointer; padding: 0; margin-top: var(--space-1-5); }
.cart-summary {
	background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card-hairline);
	padding: 18px; margin-top: var(--space-2);
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-3-5); }
.bundle-discount-row { color: var(--color-success); font-weight: var(--font-weight-medium); font-size: var(--font-size-base); margin-top: -6px; }
.bundle-nudge-row { color: var(--color-primary); font-weight: var(--font-weight-medium); font-size: var(--font-size-sm); margin: -8px 0 var(--space-3-5); }
.cart-total-row { border-top: 1px solid var(--color-border-soft); padding-top: var(--space-3); }
	.ship-to-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3-5); font-size: var(--font-size-base); color: var(--color-text-secondary); }
	.ship-to-row select { padding: var(--space-1-5) var(--space-2); border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: var(--font-size-base); background: var(--color-surface); }
.checkout-btn {
	width: 100%; padding: var(--space-3-5); border: none; border-radius: var(--radius-md);
	background: var(--color-primary); color: var(--color-text-inverse); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); cursor: pointer;
}
.checkout-btn:disabled { background: var(--color-border-indigo); cursor: not-allowed; }
.btn-spinner {
	display: inline-block; width: 14px; height: 14px; margin-right: var(--space-2);
	border: 2px solid var(--color-surface-a50); border-top-color: var(--color-border-inverse);
	border-radius: var(--radius-round); vertical-align: -2px; animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.checkout-note { color: var(--color-text-muted); font-size: var(--font-size-sm); text-align: center; margin-top: var(--space-2-5); display: none; }
.cart-error { color: var(--color-danger-strong); font-size: var(--font-size-base); margin-top: var(--space-3); }
.back-link, .back-link:hover, .back-link:visited { font-size: var(--font-size-base); color: var(--color-primary); text-decoration: none; background: none; display: inline-block; margin-bottom: var(--space-2); }


/* ==== Moved from inline styles in cart.html ==== */
