/**
 * Cart page — Almutaheda Pack
 *
 * Covers:
 *   .alm-cart-wrap          — outer page wrapper
 *   .alm-cart-header        — page title + progress
 *   .alm-cart-progress      — step indicator
 *   .alm-cart-layout        — 65/35 desktop grid, stacked mobile
 *   .alm-cart-item          — single line item card
 *   .alm-qty-control        — accessible quantity stepper
 *   .alm-cart-form__actions — coupon + update buttons
 *   .alm-cart-summary       — order summary sidebar panel
 *   .alm-cart-reassurance   — manual-order signals
 *   .alm-cart-wa            — WhatsApp assistance block
 *   .alm-mini-cart-*        — header mini-cart
 *   .alm-cart-empty-*       — empty cart state
 *
 * Loaded only on is_cart() and mini-cart widget contexts.
 */

/* ── Page wrapper ────────────────────────────────────────────────── */

.alm-cart-wrap {
	padding-block: clamp(2rem, 5vw, 4rem);
}

/* ── Cart page header ────────────────────────────────────────────── */

.alm-cart-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--alm-space-6);
	flex-wrap: wrap;
	margin-block-end: var(--alm-space-6);
}

.alm-cart-header__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
}

.alm-cart-header__subtitle {
	margin: var(--alm-space-2) 0 0;
	color: var(--alm-color-text-secondary);
	font-size: var(--alm-text-sm);
}

/* ── Progress indicator ──────────────────────────────────────────── */

.alm-cart-progress {
	flex-shrink: 0;
}

.alm-cart-progress__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0;
}

.alm-cart-progress__step {
	display: flex;
	align-items: center;
	gap: var(--alm-space-2);
	padding-inline: var(--alm-space-3);
	padding-block: var(--alm-space-2);
	color: var(--alm-color-text-muted);
	font-size: var(--alm-text-xs);
	position: relative;
}

.alm-cart-progress__step + .alm-cart-progress__step::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 60%;
	background: var(--alm-color-border);
}

.alm-cart-progress__step--done {
	color: var(--alm-color-text-secondary);
}

.alm-cart-progress__step--current {
	color: var(--alm-color-navy-primary);
	font-weight: var(--alm-weight-semibold);
}

.alm-cart-progress__num {
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--alm-radius-full);
	font-size: var(--alm-text-xs);
	font-weight: var(--alm-weight-bold);
	font-family: var(--alm-font-latin);
	background: var(--alm-color-border);
	color: var(--alm-color-text-secondary);
	flex-shrink: 0;
}

.alm-cart-progress__step--done .alm-cart-progress__num {
	background: var(--alm-color-navy-primary-10);
	color: var(--alm-color-navy-primary);
}

.alm-cart-progress__step--current .alm-cart-progress__num {
	background: var(--alm-color-navy-primary);
	color: var(--alm-color-white);
}

/* ── Cart notices ────────────────────────────────────────────────── */

.alm-cart-notices {
	margin-block-end: var(--alm-space-5);
}

.alm-cart-notices:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	margin: 0 0 var(--alm-space-3);
	padding: var(--alm-space-3) var(--alm-space-4);
	border-radius: var(--alm-radius-md);
	font-size: var(--alm-text-sm);
	list-style: none;
}

.woocommerce-message {
	background: var(--alm-color-success-bg);
	border: 1px solid var(--alm-color-success);
	color: var(--alm-color-success);
}

.woocommerce-error {
	background: var(--alm-color-error-bg);
	border: 1px solid var(--alm-color-error);
	color: var(--alm-color-error);
}

.woocommerce-info {
	background: var(--alm-color-info-bg);
	border: 1px solid var(--alm-color-info);
	color: var(--alm-color-info);
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
	font-weight: var(--alm-weight-semibold);
	text-underline-offset: 2px;
}

/* ── Main layout: 65 / 35 ────────────────────────────────────────── */

.alm-cart-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--alm-space-8);
	align-items: start;
}

@media (min-width: 64rem) {
	.alm-cart-layout {
		grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr);
	}
}

/* ── Cart items column ───────────────────────────────────────────── */

.alm-cart-items {
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-5);
}

/* ── Single cart item card ───────────────────────────────────────── */

.alm-cart-item {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: var(--alm-space-4);
	padding: var(--alm-space-4);
	background: var(--alm-color-white);
	border: 1px solid var(--alm-color-border);
	border-radius: var(--alm-radius-lg);
	box-shadow: var(--alm-shadow-xs);
}

@media (min-width: 48rem) {
	.alm-cart-item {
		grid-template-columns: 7rem 1fr;
		padding: var(--alm-space-5);
	}
}

/* Media column */

.alm-cart-item__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--alm-radius-md);
	background: linear-gradient(145deg, #fbf8f3 0%, #efe5d7 100%);
	flex-shrink: 0;
}

.alm-cart-item__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.alm-cart-item__media img,
.alm-cart-item__media .woocommerce-placeholder {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: var(--alm-space-2);
}

.alm-cart-item__img-placeholder {
	position: absolute;
	inset-block-end: var(--alm-space-1);
	inset-inline: 0;
	text-align: center;
	font-size: 0.65rem;
	font-weight: 600;
	color: var(--alm-color-copper-deep, #8b5e2f);
	pointer-events: none;
}

/* Content column */

.alm-cart-item__content {
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-3);
	min-width: 0;
}

.alm-cart-item__meta {
	min-width: 0;
}

.alm-cart-item__name {
	margin: 0;
	font-size: var(--alm-text-base);
	font-weight: var(--alm-weight-semibold);
	line-height: 1.4;
}

.alm-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.alm-cart-item__name a:hover {
	color: var(--alm-color-sand-dark);
}

.alm-cart-item__sku {
	margin: var(--alm-space-1) 0 0;
	font-size: var(--alm-text-xs);
	color: var(--alm-color-text-muted);
	font-family: var(--alm-font-latin);
}

.alm-cart-item__attrs {
	margin: var(--alm-space-2) 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--alm-space-1) var(--alm-space-3);
}

.alm-cart-item__attr-row {
	display: flex;
	align-items: baseline;
	gap: var(--alm-space-1);
	font-size: var(--alm-text-xs);
}

.alm-cart-item__attr-row dt {
	color: var(--alm-color-text-muted);
	font-weight: var(--alm-weight-medium);
}

.alm-cart-item__attr-row dd {
	margin: 0;
	color: var(--alm-color-text-primary);
}

.alm-cart-item__variation {
	margin-block-start: var(--alm-space-2);
	font-size: var(--alm-text-xs);
	color: var(--alm-color-text-secondary);
}

.alm-cart-item__backorder {
	margin: var(--alm-space-1) 0 0;
	font-size: var(--alm-text-xs);
	color: var(--alm-color-warning);
}

/* Commerce row: price, qty, subtotal, remove */

.alm-cart-item__commerce {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--alm-space-3) var(--alm-space-4);
	margin-block-start: auto;
}

.alm-cart-item__price {
	font-size: var(--alm-text-sm);
	color: var(--alm-color-text-secondary);
	min-width: 4rem;
}

.alm-cart-item__price .woocommerce-Price-amount {
	font-weight: var(--alm-weight-semibold);
	color: var(--alm-color-text-primary);
}

.alm-cart-item__subtotal {
	font-size: var(--alm-text-sm);
	font-weight: var(--alm-weight-bold);
	color: var(--alm-color-navy-primary);
}

.alm-cart-item__actions {
	margin-inline-start: auto;
}

.alm-cart-item__remove {
	display: inline-flex;
	align-items: center;
	gap: var(--alm-space-1);
	padding: var(--alm-space-1-5) var(--alm-space-2);
	color: var(--alm-color-text-muted);
	font-size: var(--alm-text-xs);
	text-decoration: none;
	border-radius: var(--alm-radius-sm);
	transition: color 0.15s, background 0.15s;
	min-height: 2.75rem;
}

.alm-cart-item__remove:hover {
	color: var(--alm-color-error);
	background: var(--alm-color-error-bg);
}

.alm-cart-item__remove:focus-visible {
	outline: 2px solid var(--alm-color-sand);
	outline-offset: 2px;
}

/* ── Quantity control stepper ─────────────────────────────────────── */

.alm-cart-item__qty-wrap {
	position: relative;
}

.alm-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--alm-color-border);
	border-radius: var(--alm-radius-md);
	overflow: hidden;
	background: var(--alm-color-white);
}

.alm-qty-control__btn {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--alm-color-navy-primary);
	transition: background 0.15s, color 0.15s;
	touch-action: manipulation;
}

.alm-qty-control__btn:hover {
	background: var(--alm-color-navy-primary-10);
}

.alm-qty-control__btn:focus-visible {
	outline: 2px solid var(--alm-color-sand);
	outline-offset: -2px;
}

.alm-qty-control__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.alm-qty-control .qty,
.alm-qty-control__input {
	width: 3.25rem;
	min-height: 2.75rem;
	border: none;
	border-inline: 1px solid var(--alm-color-border);
	text-align: center;
	font-size: var(--alm-text-base);
	font-weight: var(--alm-weight-semibold);
	font-family: var(--alm-font-latin);
	color: var(--alm-color-text-primary);
	background: var(--alm-color-white);
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}

.alm-qty-control .qty::-webkit-inner-spin-button,
.alm-qty-control .qty::-webkit-outer-spin-button,
.alm-qty-control__input::-webkit-inner-spin-button,
.alm-qty-control__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.alm-qty-control .qty:focus,
.alm-qty-control__input:focus {
	outline: none;
	background: var(--alm-color-navy-primary-10);
}

/* ── Cart form actions ───────────────────────────────────────────── */

.alm-cart-form__actions {
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-4);
	padding-block-start: var(--alm-space-4);
	border-block-start: 1px solid var(--alm-color-border);
}

.alm-cart-coupon__label {
	display: block;
	font-size: var(--alm-text-sm);
	font-weight: var(--alm-weight-medium);
	margin-block-end: var(--alm-space-2);
	color: var(--alm-color-text-primary);
}

.alm-cart-coupon__row {
	display: flex;
	gap: var(--alm-space-2);
}

.alm-cart-coupon__input {
	flex: 1 1 0;
	min-width: 0;
}

.alm-cart-form__update-wrap {
	display: flex;
	align-items: center;
	gap: var(--alm-space-3);
	flex-wrap: wrap;
}

.alm-cart-form__update {
	min-width: 8rem;
}

.alm-cart-form__update:disabled {
	display: none;
}

/* ── Order summary sidebar ───────────────────────────────────────── */

.alm-cart-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-4);
}

@media (min-width: 64rem) {
	.alm-cart-sidebar {
		position: sticky;
		top: calc(var(--alm-header-height, 72px) + var(--alm-space-4));
		max-height: calc(100vh - var(--alm-header-height, 72px) - var(--alm-space-8));
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

.alm-cart-summary {
	padding: var(--alm-space-5);
	background: var(--alm-color-white);
	border: 1px solid var(--alm-color-border);
	border-radius: var(--alm-radius-lg);
	box-shadow: var(--alm-shadow-sm);
}

.alm-cart-summary__heading {
	margin: 0 0 var(--alm-space-4);
	font-size: var(--alm-text-xl);
}

.alm-cart-summary__rows {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.alm-cart-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--alm-space-4);
	padding-block: var(--alm-space-3);
	border-block-end: 1px solid var(--alm-color-border);
	font-size: var(--alm-text-sm);
}

.alm-cart-summary__row:last-child {
	border-block-end: none;
}

.alm-cart-summary__row dt {
	color: var(--alm-color-text-secondary);
	flex-shrink: 0;
}

.alm-cart-summary__row dd {
	margin: 0;
	font-weight: var(--alm-weight-semibold);
	text-align: end;
	color: var(--alm-color-text-primary);
}

.alm-cart-summary__row--discount dt {
	color: var(--alm-color-success);
}

.alm-cart-summary__row--discount dd {
	color: var(--alm-color-success);
}

.alm-cart-summary__shipping-note {
	font-size: var(--alm-text-xs);
	color: var(--alm-color-text-muted);
	font-weight: var(--alm-weight-regular);
	text-align: end;
}

.alm-cart-summary__row--total {
	padding-block-start: var(--alm-space-4);
	margin-block-start: var(--alm-space-2);
	border-block-start: 2px solid var(--alm-color-navy-primary);
	border-block-end: none;
}

.alm-cart-summary__row--total dt {
	color: var(--alm-color-navy-primary);
	font-weight: var(--alm-weight-bold);
	font-size: var(--alm-text-base);
}

.alm-cart-summary__row--total dd {
	font-size: var(--alm-text-xl);
	color: var(--alm-color-navy-primary);
}

.alm-cart-summary__row--total .woocommerce-Price-amount {
	font-size: var(--alm-text-xl);
	font-weight: var(--alm-weight-bold);
}

.alm-cart-summary__disclaimer {
	margin: var(--alm-space-3) 0 0;
	padding: var(--alm-space-3);
	background: var(--alm-color-surface-subtle);
	border-radius: var(--alm-radius-sm);
	font-size: var(--alm-text-xs);
	color: var(--alm-color-text-muted);
	line-height: 1.7;
}

.alm-cart-summary__cta {
	margin-block-start: var(--alm-space-4);
}

.alm-cart-summary__cta .checkout-button,
.alm-cart-summary__cta .alm-btn {
	width: 100%;
	justify-content: center;
}

/* ── Override WC purple default checkout button ───────────────────── */

.woocommerce .alm-cart-summary__cta .checkout-button,
.woocommerce-cart .checkout-button.alm-btn--primary,
a.checkout-button.alm-btn--primary {
	background-color: var(--alm-color-navy-primary) !important;
	border-color: var(--alm-color-navy-primary) !important;
	color: var(--alm-color-white) !important;
}

.woocommerce .alm-cart-summary__cta .checkout-button:hover,
.woocommerce-cart .checkout-button.alm-btn--primary:hover,
a.checkout-button.alm-btn--primary:hover {
	background-color: var(--alm-color-navy-primary-90) !important;
	border-color: var(--alm-color-navy-primary-90) !important;
}

/* ── Reassurance panel ───────────────────────────────────────────── */

.alm-cart-reassurance {
	padding: var(--alm-space-4);
	background: var(--alm-color-surface-subtle);
	border: 1px solid var(--alm-color-border);
	border-radius: var(--alm-radius-lg);
}

.alm-cart-reassurance__eyebrow {
	margin: 0 0 var(--alm-space-3);
	font-size: var(--alm-text-xs);
	font-weight: var(--alm-weight-bold);
	letter-spacing: 0.05em;
	color: var(--alm-color-copper-deep, #8b5e2f);
}

.alm-cart-reassurance__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-2-5);
}

.alm-cart-reassurance__item {
	display: flex;
	align-items: flex-start;
	gap: var(--alm-space-2-5);
	font-size: var(--alm-text-sm);
	color: var(--alm-color-text-secondary);
	line-height: 1.5;
}

.alm-cart-reassurance__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--alm-color-navy-primary);
	margin-block-start: 0.1rem;
}

/* ── WhatsApp assistance block ───────────────────────────────────── */

.alm-cart-wa {
	padding: var(--alm-space-5);
	background: linear-gradient(135deg, rgba(22, 139, 91, 0.05), transparent 50%), var(--alm-color-white);
	border: 1px solid rgba(22, 139, 91, 0.2);
	border-radius: var(--alm-radius-lg);
}

.alm-cart-wa__inner {
	display: flex;
	align-items: center;
	gap: var(--alm-space-4);
	flex-wrap: wrap;
}

.alm-cart-wa__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--alm-radius-full);
	background: rgba(22, 139, 91, 0.1);
	color: var(--alm-color-whatsapp, #168b5b);
	flex-shrink: 0;
}

.alm-cart-wa__content {
	flex: 1 1 12rem;
	min-width: 0;
}

.alm-cart-wa__title {
	margin: 0 0 var(--alm-space-1);
	font-size: var(--alm-text-base);
	font-weight: var(--alm-weight-bold);
}

.alm-cart-wa__text {
	margin: 0;
	font-size: var(--alm-text-sm);
	color: var(--alm-color-text-secondary);
	line-height: 1.6;
}

.alm-cart-wa__btn {
	flex-shrink: 0;
	white-space: nowrap;
}

/* ── Cross-sells override ────────────────────────────────────────── */

.cart-cross-sells,
.cross-sells {
	margin-block-start: var(--alm-space-6);
}

.cart-cross-sells h2,
.cross-sells h2 {
	font-size: var(--alm-text-xl);
	margin-block-end: var(--alm-space-4);
}

.cart-cross-sells ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--alm-space-3);
}

@media (min-width: 48rem) {
	.cart-cross-sells ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ── Cart totals fallback widget ─────────────────────────────────── */

.alm-cart-totals .alm-cart-totals__heading {
	font-size: var(--alm-text-xl);
	margin-block-end: var(--alm-space-4);
}

/* ── Mini cart ───────────────────────────────────────────────────── */

.alm-mini-cart__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-3);
	max-height: 22rem;
	overflow-y: auto;
	scrollbar-width: thin;
}

.alm-mini-cart__item {
	position: relative;
}

.alm-mini-cart__remove {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--alm-radius-full);
	background: var(--alm-color-white);
	border: 1px solid var(--alm-color-border);
	color: var(--alm-color-text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1;
}

.alm-mini-cart__remove:hover {
	background: var(--alm-color-error-bg);
	border-color: var(--alm-color-error);
	color: var(--alm-color-error);
}

.alm-mini-cart__item-inner {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: var(--alm-space-2);
	padding-inline-end: 1.75rem;
}

.alm-mini-cart__img {
	border-radius: var(--alm-radius-sm);
	overflow: hidden;
	background: var(--alm-color-surface-subtle);
}

.alm-mini-cart__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	aspect-ratio: 1 / 1;
	padding: var(--alm-space-1);
}

.alm-mini-cart__details {
	min-width: 0;
}

.alm-mini-cart__name {
	display: block;
	font-size: var(--alm-text-sm);
	font-weight: var(--alm-weight-semibold);
	color: var(--alm-color-text-primary);
	text-decoration: none;
	line-height: 1.4;
	margin-block-end: var(--alm-space-1);
}

.alm-mini-cart__qty {
	font-size: var(--alm-text-xs);
	color: var(--alm-color-text-secondary);
}

.alm-mini-cart__qty .woocommerce-Price-amount {
	font-weight: var(--alm-weight-semibold);
	color: var(--alm-color-navy-primary);
}

.alm-mini-cart__footer {
	border-block-start: 1px solid var(--alm-color-border);
	padding-block-start: var(--alm-space-3);
	margin-block-start: var(--alm-space-3);
}

.alm-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: var(--alm-text-sm);
	margin-block-end: var(--alm-space-3);
}

.alm-mini-cart__total .woocommerce-Price-amount {
	font-weight: var(--alm-weight-bold);
	font-size: var(--alm-text-base);
}

.alm-mini-cart__actions {
	display: flex;
	flex-direction: column;
	gap: var(--alm-space-2);
}

.alm-mini-cart__actions .button,
.alm-mini-cart__actions a {
	display: block;
	width: 100%;
	text-align: center;
	padding: var(--alm-space-2-5) var(--alm-space-4);
	border-radius: var(--alm-radius-lg);
	font-size: var(--alm-text-sm);
	font-weight: var(--alm-weight-semibold);
	text-decoration: none;
	min-height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.alm-mini-cart__actions .wc-forward {
	background: var(--alm-color-navy-primary);
	color: var(--alm-color-white);
	border: 2px solid var(--alm-color-navy-primary);
}

.alm-mini-cart__actions .wc-forward:hover {
	background: var(--alm-color-navy-primary-90);
	border-color: var(--alm-color-navy-primary-90);
}

.alm-mini-cart__actions .checkout {
	background: transparent;
	color: var(--alm-color-navy-primary);
	border: 2px solid var(--alm-color-navy-primary);
}

.alm-mini-cart__actions .checkout:hover {
	background: var(--alm-color-navy-primary-10);
}

.alm-mini-cart__empty {
	padding: var(--alm-space-5) 0;
	text-align: center;
	color: var(--alm-color-text-muted);
	font-size: var(--alm-text-sm);
}

/* ── Empty cart state ────────────────────────────────────────────── */

.alm-cart-empty-wrap {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.alm-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--alm-space-5);
	padding-block: var(--alm-space-8) var(--alm-space-10);
}

.alm-cart-empty__visual {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	border-radius: var(--alm-radius-full);
	background: var(--alm-color-surface-subtle);
	color: var(--alm-color-text-muted);
}

.alm-cart-empty__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.alm-cart-empty__text {
	margin: 0;
	font-size: var(--alm-text-base);
	color: var(--alm-color-text-secondary);
	max-width: 40ch;
	line-height: 1.8;
}

.alm-cart-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--alm-space-3);
	justify-content: center;
}

.alm-cart-empty__section-title {
	font-size: var(--alm-text-xl);
	margin: var(--alm-space-10) 0 var(--alm-space-4);
}

.alm-cart-empty__cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--alm-space-2);
}

.alm-cart-empty__cat-link {
	display: inline-flex;
	align-items: center;
	gap: var(--alm-space-2);
	padding: var(--alm-space-2) var(--alm-space-4);
	border: 1px solid var(--alm-color-border);
	border-radius: var(--alm-radius-full);
	font-size: var(--alm-text-sm);
	color: var(--alm-color-text-secondary);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
	min-height: 44px;
}

.alm-cart-empty__cat-link:hover {
	border-color: var(--alm-color-navy-primary);
	color: var(--alm-color-navy-primary);
}

.alm-cart-empty__cat-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--alm-radius-full);
	background: var(--alm-color-navy-primary-10);
	color: var(--alm-color-navy-primary);
	font-size: var(--alm-text-xs);
	font-weight: var(--alm-weight-bold);
	font-family: var(--alm-font-latin);
}

.alm-cart-empty__product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
	.alm-cart-empty__product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ── Mobile responsive overrides ────────────────────────────────── */

@media (max-width: 47.99rem) {
	.alm-cart-header {
		flex-direction: column;
		gap: var(--alm-space-4);
	}

	.alm-cart-progress__list {
		gap: 0;
	}

	.alm-cart-progress__step {
		padding-inline: var(--alm-space-2);
		flex-direction: column;
		align-items: center;
		gap: var(--alm-space-1);
		text-align: center;
	}

	.alm-cart-progress__step + .alm-cart-progress__step::before {
		display: none;
	}

	.alm-cart-item {
		grid-template-columns: 5rem 1fr;
		gap: var(--alm-space-3);
		padding: var(--alm-space-3);
	}

	.alm-cart-item__commerce {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--alm-space-2);
	}

	.alm-cart-item__actions {
		margin-inline-start: 0;
	}

	.alm-cart-summary__cta .alm-btn {
		font-size: var(--alm-text-md);
		min-height: 3.25rem;
	}

	.alm-cart-wa__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.alm-cart-wa__btn {
		width: 100%;
		justify-content: center;
	}

	.alm-cart-empty__actions .alm-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── Reduced motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.alm-cart-item__remove,
	.alm-cart-empty__cat-link,
	.alm-qty-control__btn,
	.alm-mini-cart__remove {
		transition: none;
	}
}
