/*
 * Hubka Theme
 *
 * Phase: 11B.4 — WooCommerce Styling
 * Purpose: Cart page presentation — line-item table rhythm, quantity
 * controls, coupon area, totals panel, and buttons. Uses the same
 * calm, editorial treatment established for Checkout. Never alters
 * WooCommerce behavior.
 *
 * All classes confirmed directly from WooCommerce's shipped cart.css
 * bundle rather than guessed.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

.hubka-cart {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Line items table rhythm. */
.wc-block-cart-items__row {
	padding-block: var(--wp--preset--spacing--40);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.wc-block-cart-item__product {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--20);
}

.wc-block-cart-item__prices {
	color: var(--wp--preset--color--muted);
}

.wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--muted);
}

.wc-block-cart-item__remove-link:hover,
.wc-block-cart-item__remove-link:focus-visible {
	color: var(--wp--preset--color--primary);
}

/* Quantity controls: comfortable touch targets, quiet by default. */
.wc-block-components-quantity-selector {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.375rem;
}

.wc-block-components-quantity-selector__input {
	border: none;
	text-align: center;
}

.wc-block-components-quantity-selector__button {
	color: var(--wp--preset--color--muted);
	background: none;
	border: none;
}

.wc-block-components-quantity-selector__button:hover,
.wc-block-components-quantity-selector__button:focus-visible {
	color: var(--wp--preset--color--primary);
}

/* Totals panel: a quiet, separated summary — not competing with the
 * line items for attention. */
.wp-block-woocommerce-cart-order-summary-block {
	background-color: var(--wp--preset--color--background-secondary);
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--40);
}

.wc-block-components-totals-item {
	padding-block: var(--wp--preset--spacing--20);
}

.wc-block-components-totals-item__label {
	color: var(--wp--preset--color--muted);
}

.wc-block-components-totals-footer-item {
	border-block-start: 1px solid var(--wp--preset--color--border);
	padding-block-start: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--20);
	font-weight: 600;
}

/* Coupon area: understated, not a distraction from checking out. */
.wc-block-components-totals-coupon__input input {
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-totals-coupon__button {
	font-size: var(--wp--preset--font-size--small);
}

/* Proceed to Checkout: the one primary action on this page. */
.wc-block-cart__submit-button {
	inline-size: 100%;
	padding-block: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--30);
}
