/**
 * WooCommerce styling.
 *
 * This restyles WooCommerce's own markup rather than replacing it, so the
 * cart, checkout, account area and any extensions keep working.
 */

.woo-page {
	padding-block: var(--space-xl) var(--space-3xl);
}

/* =========================================================
   Shop archive
   ========================================================= */

.woocommerce-products-header {
	margin-block-end: var(--space-lg);
	text-align: center;
}

.woocommerce-products-header__title {
	font-size: var(--text-3xl);
}

.term-description {
	max-width: 42rem;
	margin: var(--space-sm) auto 0;
	color: var(--color-text-muted);
}

/* WooCommerce's loop wrapper becomes the theme's product grid. */
ul.products {
	display: grid;
	gap: var(--space-md);
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * WooCommerce's float clearfix. In a grid the ::before becomes a real grid
 * item and takes the first cell, pushing every product along one column.
 * Matched at WooCommerce's own specificity so this wins.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
	content: none;
	display: none;
}

ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

@media (max-width: 1023px) {
	ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-sm);
	}
}

/* ---------- Sorting ---------- */

.woocommerce-ordering select {
	min-height: 2.75rem;
	border-radius: var(--radius-pill);
	padding-inline: var(--space-sm);
}

.woocommerce-ordering {
	margin-block-end: var(--space-lg);
	display: flex;
	justify-content: flex-end;
}

/* =========================================================
   Single product
   ========================================================= */

.single-product div.product {
	display: grid;
	gap: var(--space-2xl);
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: start;
}

.single-product div.product .woocommerce-product-gallery {
	position: sticky;
	top: 6rem;
	width: 100% !important;
	float: none !important;
	padding: var(--space-md);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-lg);
}

.single-product div.product .woocommerce-product-gallery__image img {
	/*
	 * The jar photography is portrait (2:3). Left uncapped it makes the
	 * gallery column far taller than the summary beside it, stranding the
	 * buying controls at the top of a long empty column.
	 */
	max-height: 32rem;
	width: auto;
	margin-inline: auto;
	/*
	 * WooCommerce's own rule forces the width to 100%, so with the height
	 * capped the photo would be squashed. Contain keeps the jar's true shape.
	 */
	object-fit: contain;
	border-radius: var(--radius-md);
}

.single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.single-product .product_title {
	font-size: var(--text-2xl);
	margin-block-end: var(--space-xs);
}

.single-product .price {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--color-text);
}

.single-product .price del {
	margin-inline-end: var(--space-2xs);
	color: var(--color-text-muted);
	font-size: var(--text-base);
	font-weight: var(--weight-regular);
}

.single-product .price ins {
	color: var(--color-sale);
	text-decoration: none;
}

.product-stock {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
	margin-block: var(--space-xs);
	padding: var(--space-3xs) var(--space-xs);
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.product-stock.is-in-stock {
	background: #e7f5ec;
	color: var(--color-success);
}

.product-stock.is-out-of-stock {
	background: var(--color-surface-sunken);
	color: var(--color-text-muted);
}

.woocommerce-product-details__short-description {
	margin-block: var(--space-sm);
	color: var(--color-text-muted);
}

/* ---------- Quantity and add to cart ---------- */

.quantity .qty {
	width: 4.5rem;
	min-height: 3rem;
	text-align: center;
}

form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	align-items: center;
	margin-block: var(--space-md) !important;
}

form.cart .button,
.single_add_to_cart_button {
	min-height: 3rem;
	padding-inline: var(--space-lg);
	background: var(--munchi-yellow);
	border: 0;
	border-radius: var(--radius-pill);
	color: var(--munchi-navy);
	font-weight: var(--weight-bold);
	cursor: pointer;
	transition: background-color var(--duration-base) var(--ease-out);
}

form.cart .button:hover,
.single_add_to_cart_button:hover {
	background: var(--munchi-yellow-dark);
}

.product-assurances {
	display: grid;
	gap: var(--space-2xs);
	margin-block-start: var(--space-md);
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-border);
}

.product-assurances__item {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.product-assurances__item .munchi-icon {
	color: var(--munchi-yellow-dark);
}

/* ---------- Tabs ---------- */

.woocommerce-tabs {
	grid-column: 1 / -1;
	margin-block-start: var(--space-2xl);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0 0 var(--space-lg);
	padding: 0;
	border-block-end: 1px solid var(--color-border);
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
	content: none !important;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
	content: none !important;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--space-xs) var(--space-sm);
	border-block-end: 2px solid transparent;
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a {
	border-color: var(--munchi-yellow);
}

/* ---------- Related products ---------- */

.related.products,
.up-sells.products {
	grid-column: 1 / -1;
	margin-block-start: var(--space-2xl);
}

.related.products > h2,
.up-sells.products > h2 {
	margin-block-end: var(--space-lg);
	font-size: var(--text-2xl);
	text-align: center;
}

@media (max-width: 899px) {
	.single-product div.product {
		/*
		 * minmax(0, 1fr), not 1fr: a plain 1fr column grows to its widest
		 * content, which widened the page past the screen and made phones
		 * zoom the whole page out, leaving the header looking short.
		 */
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}

	.single-product div.product .woocommerce-product-gallery {
		position: static;
	}
}

/*
 * On phones the add-to-cart control sticks to the bottom of the viewport, so
 * it is always reachable without scrolling back up a long product page.
 */
@media (max-width: 767px) {
	.single-product form.cart {
		position: sticky;
		bottom: 0;
		z-index: 20;
		margin-inline: calc(-1 * var(--gutter)) !important;
		padding: var(--space-xs) var(--gutter);
		background: var(--color-surface);
		border-block-start: 1px solid var(--color-border);
		box-shadow: 0 -4px 20px rgba(17, 26, 36, 0.08);
	}

	.single-product .single_add_to_cart_button {
		flex: 1;
	}
}

/* =========================================================
   Cart
   ========================================================= */

.woocommerce-cart table.shop_table {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--color-surface);
}

.woocommerce-cart table.shop_table th {
	padding: var(--space-sm);
	background: var(--color-surface-sunken);
	font-family: var(--font-display);
	font-size: var(--text-sm);
	text-align: start;
}

.woocommerce-cart table.shop_table td {
	padding: var(--space-sm);
	border-block-start: 1px solid var(--color-border);
	vertical-align: middle;
}

.woocommerce-cart .product-thumbnail img {
	width: 4.5rem;
	height: auto;
	border-radius: var(--radius-sm);
}

.cart_totals {
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.cart_totals h2 {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
}

/*
 * WooCommerce marks its primary actions with .alt (proceed to checkout, place
 * order, add to cart on the product page) and colours them purple with
 * selectors more specific than a plain .button rule, so these match them.
 */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--munchi-yellow);
	color: var(--munchi-navy);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--munchi-yellow-dark);
	color: var(--munchi-navy);
}

/*
 * The theme's product card button inside WooCommerce loops (shop, related
 * products, up-sells), where WooCommerce's grey .button rule outranks the
 * card's own .btn--primary.
 */
.woocommerce a.button.product-card__button {
	/* WooCommerce makes it inline-block, which collapses the cart icon. */
	display: inline-flex;
	gap: var(--space-2xs);
	align-items: center;
	justify-content: center;
	background: var(--munchi-yellow);
	color: var(--munchi-navy);
	border-radius: var(--radius-pill);
	font-weight: var(--weight-bold);
}

.woocommerce a.button.product-card__button:hover {
	background: var(--munchi-yellow-dark);
	color: var(--munchi-navy);
}

.wc-proceed-to-checkout .button {
	display: block;
	width: 100%;
	min-height: 3.25rem;
	line-height: 3.25rem;
	background: var(--munchi-yellow);
	border-radius: var(--radius-pill);
	color: var(--munchi-navy);
	font-weight: var(--weight-bold);
	text-align: center;
	text-decoration: none;
}

/* WooCommerce floats the totals into a 48% column; the grid below places them instead. */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.woocommerce-cart .cart-collaterals {
	margin-block-start: var(--space-lg);
}

/* Items on the left, the order summary beside them, as on checkout. */
@media (min-width: 1024px) {
	.woocommerce-cart .woo-page .woocommerce {
		display: grid;
		gap: 0 var(--space-xl);
		grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
		align-items: start;
	}

	.woocommerce-cart .woo-page .woocommerce > * {
		grid-column: 1 / -1;
	}

	.woocommerce-cart .woo-page .woocommerce > .woocommerce-cart-form {
		grid-column: 1;
	}

	.woocommerce-cart .woo-page .woocommerce > .cart-collaterals {
		grid-column: 2;
		position: sticky;
		top: 6rem;
		margin-block-start: 0;
	}
}

/*
 * Phones and small tablets: each cart item becomes a card. WooCommerce's own
 * small-screen styles start at 768px and turn every cell into a labelled
 * block ("Price:", "Quantity:"), so this matches that breakpoint and replaces
 * them. Scoped to table.cart, the items table, so the totals table is left alone.
 */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart thead {
		display: none;
	}

	.woocommerce-cart table.shop_table.cart,
	.woocommerce-cart table.shop_table.cart tbody {
		display: block;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item {
		display: grid;
		gap: var(--space-2xs) var(--space-sm);
		grid-template-columns: 5rem minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb qty  subtotal";
		align-items: center;
		padding: var(--space-sm);
		border-block-start: 1px solid var(--color-border);
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item:first-child {
		border-block-start: 0;
	}

	.woocommerce-cart table.shop_table.cart tr.cart_item td {
		display: block;
		padding: 0;
		background: none;
		border: 0;
		/* WooCommerce right-aligns these cells with !important. */
		text-align: start !important;
	}

	/* WooCommerce's "Price:" style labels; the card layout makes them redundant. */
	.woocommerce-cart table.shop_table.cart tr.cart_item td::before {
		content: none;
		display: none;
	}

	.woocommerce-cart table.shop_table.cart td.product-thumbnail {
		display: block !important;
		grid-area: thumb;
		width: auto;
	}

	.woocommerce-cart table.cart .product-thumbnail img {
		width: 5rem;
		height: 5rem;
	}

	.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; }
	.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; width: auto; }
	.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; }
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal {
		grid-area: subtotal;
		font-weight: var(--weight-bold);
		text-align: end !important;
	}

	/* The line subtotal already shows the price at quantity 1. */
	.woocommerce-cart table.shop_table.cart tr.cart_item td.product-price {
		display: none;
	}

	.woocommerce-cart table.shop_table.cart tr:last-child {
		display: block;
	}

	.woocommerce-cart table.shop_table.cart td.actions {
		display: grid;
		gap: var(--space-2xs);
		padding: var(--space-sm);
		border-block-start: 1px solid var(--color-border);
	}

	.woocommerce-cart table.shop_table.cart td.actions::before {
		content: none;
		display: none;
	}

	.woocommerce-cart .coupon {
		display: grid;
		float: none;
		width: 100%;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	/* WooCommerce sizes both of these at 48%, which overflows with the gap. */
	.woocommerce-cart table.cart td.actions .coupon .input-text,
	.woocommerce-cart table.cart td.actions .coupon .button {
		width: auto;
		min-width: 0;
		max-width: none;
		float: none;
	}

	.woocommerce-cart td.actions > .button[name="update_cart"] {
		float: none;
		width: 100%;
	}
}

/* =========================================================
   Checkout
   ========================================================= */

.woocommerce-checkout .col2-set {
	display: grid;
	gap: var(--space-lg);
	grid-template-columns: 1fr;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
}

.woocommerce-checkout h3 {
	margin-block-end: var(--space-sm);
	font-size: var(--text-xl);
}

.woocommerce-checkout .form-row {
	margin-block-end: var(--space-sm);
}

.woocommerce-checkout label {
	display: block;
	margin-block-end: var(--space-3xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

#order_review,
#customer_details {
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

#order_review {
	margin-block-start: var(--space-lg);
}

#payment ul.payment_methods {
	padding: 0;
	border: 0;
	background: none;
}

#payment ul.payment_methods li {
	padding: var(--space-sm);
	margin-block-end: var(--space-2xs);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	list-style: none;
}

#place_order {
	/* WooCommerce floats it right, which squeezes whatever follows it. */
	float: none;
	width: 100%;
	min-height: 3.25rem;
	background: var(--munchi-yellow);
	border: 0;
	border-radius: var(--radius-pill);
	color: var(--munchi-navy);
	font-weight: var(--weight-bold);
	cursor: pointer;
}

@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		gap: var(--space-lg) var(--space-xl);
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		/*
		 * The details span both rows; without this the browser shares their
		 * height between the rows and opens a gap under "Your order".
		 */
		grid-template-rows: auto 1fr;
		align-items: start;
	}

	/*
	 * WooCommerce emits the heading and the review panel as siblings of the
	 * customer details, so auto-placement would push the summary into a
	 * second row — below the whole form. Spanning the details column across
	 * both rows keeps the summary beside it, where it belongs.
	 */
	.woocommerce-checkout form.checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.woocommerce-checkout form.checkout #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin-block: 0;
	}

	.woocommerce-checkout form.checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		margin-block-start: 0;
		position: sticky;
		top: 6rem;
	}
}

/* =========================================================
   Messages and notices
   ========================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	margin-block-end: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	border: 0;
	border-inline-start: 4px solid var(--munchi-yellow);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);
	list-style: none;
}

.woocommerce-error {
	border-color: var(--color-error);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-inline-start: auto;
	padding: var(--space-3xs) var(--space-sm);
	background: var(--munchi-navy);
	border-radius: var(--radius-pill);
	color: var(--color-text-inverse);
	font-size: var(--text-sm);
	text-decoration: none;
}

/* =========================================================
   My account
   ========================================================= */

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin-block-end: var(--space-lg);
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--munchi-yellow);
	border-color: var(--munchi-yellow);
}

/* =========================================================
   Star ratings
   ========================================================= */

.star-rating {
	color: var(--munchi-yellow-dark);
}

.woocommerce-product-rating {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	margin-block-end: var(--space-xs);
}

/*
 * The product card supplies its own surface, so the WooCommerce list item
 * around it is purely structural.
 */
ul.products li.product {
	display: flex;
	background: none;
	border: 0;
	padding: 0;
	list-style: none;
}

ul.products li.product > .product-card {
	width: 100%;
}

ul.products li.product::before,
ul.products li.product::after {
	content: none;
}

/* =========================================================
   Free shipping progress
   ========================================================= */

.shipping-progress {
	margin-block-end: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.shipping-progress__message {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	margin-block-end: var(--space-2xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.shipping-progress.is-qualified .shipping-progress__message {
	color: var(--color-success);
}

.shipping-progress__track {
	height: 6px;
	overflow: hidden;
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
}

.shipping-progress__bar {
	display: block;
	height: 100%;
	background: var(--munchi-yellow);
	border-radius: var(--radius-pill);
	transition: width var(--duration-slow) var(--ease-out);
}

.shipping-progress.is-qualified .shipping-progress__bar {
	background: var(--color-success);
}

/* =========================================================
   Checkout assurances
   ========================================================= */

.checkout-assurances {
	clear: both;
	display: grid;
	gap: var(--space-2xs);
	margin-block-start: var(--space-md);
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-border);
	list-style: none;
}

.checkout-assurances__item {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.checkout-assurances__item .munchi-icon {
	color: var(--munchi-yellow-dark);
}

/* =========================================================
   Empty cart
   ========================================================= */

.cart-empty-state {
	padding-block: var(--space-xl);
	text-align: center;
}

.cart-empty-state__icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto var(--space-md);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
}

.cart-empty-state__icon .munchi-icon {
	width: 2rem;
	height: 2rem;
}

.cart-empty-state__title {
	font-size: var(--text-2xl);
}

.cart-empty-state__text {
	max-width: 30rem;
	margin: var(--space-sm) auto var(--space-lg);
	color: var(--color-text-muted);
}

.cart-empty-state__suggestions {
	margin-block-start: var(--space-3xl);
	text-align: start;
}

.cart-empty-state__suggestions-title {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
	text-align: center;
}

/* =========================================================
   Ingredients list
   ========================================================= */

.entry-content .product-ingredients,
.product-ingredients {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0;
	/*
	 * Specificity note: these sit inside .entry-content, whose prose rule
	 * restores list markers and indentation. Both must be overridden here.
	 */
	padding-inline-start: 0;
	list-style: none;
}

.entry-content .product-ingredients li,
.product-ingredients li {
	padding: var(--space-3xs) var(--space-sm);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

/* =========================================================
   Product meta (SKU, categories)
   ========================================================= */

.product_meta {
	margin-block-start: var(--space-md);
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.product_meta > span {
	display: block;
	margin-block-end: var(--space-3xs);
}

.product_meta a {
	color: var(--color-text);
}

/* =========================================================
   Cart actions row
   ========================================================= */

.woocommerce-cart table.shop_table td.actions {
	/*
	 * Must stay a table cell. As a flex box it loses its colspan, drops into
	 * the first column and stretches that column to the coupon form's width.
	 */
	display: table-cell;
	padding: var(--space-sm);
	background: var(--color-surface-sunken);
	text-align: end;
}

.woocommerce-cart .coupon {
	display: inline-flex;
	float: left;
	gap: var(--space-2xs);
	align-items: center;
}

.woocommerce-cart .coupon .input-text {
	flex: 1;
	min-width: 0;
	max-width: 16rem;
}

/*
 * WooCommerce's cart buttons carry only .button, so they need styling here
 * rather than inheriting the theme's .btn class.
 */
.woocommerce-cart td.actions .button,
.woocommerce .cart .button,
.woocommerce-cart .coupon .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-md);
	background: var(--munchi-navy);
	border: 1px solid var(--munchi-navy);
	border-radius: var(--radius-pill);
	color: var(--color-text-inverse);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.woocommerce-cart td.actions .button:hover,
.woocommerce-cart .coupon .button:hover {
	background: var(--munchi-navy-soft);
}

/* "Update cart" is secondary to applying a coupon. */
.woocommerce-cart td.actions > .button[name="update_cart"],
.woocommerce-cart td.actions > button[type="submit"]:last-child {
	background: transparent;
	color: var(--color-text);
}

.woocommerce-cart td.actions > .button[name="update_cart"]:hover,
.woocommerce-cart td.actions > button[type="submit"]:last-child:hover {
	background: var(--munchi-navy);
	color: var(--color-text-inverse);
}

.woocommerce-cart td.actions .button:disabled {
	opacity: 0.4;
	cursor: default;
}

/* ---------- Remove item ---------- */

.woocommerce-cart .product-remove .remove {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color var(--duration-fast) var(--ease-out),
		color var(--duration-fast) var(--ease-out);
}

.woocommerce-cart .product-remove .remove:hover {
	background: var(--color-error);
	color: var(--color-text-inverse);
}

/* ---------- Cart item thumbnails ---------- */

/* Matches WooCommerce's own `.woocommerce-cart table.cart img` (32px) so this wins. */
.woocommerce-cart table.cart .product-thumbnail img {
	width: 5.5rem;
	max-width: none;
	height: 5.5rem;
	/* A square crop of the portrait jar shot that keeps the lid and label. */
	object-fit: cover;
	object-position: 50% 40%;
	background: var(--color-surface-sunken);
	border-radius: var(--radius-sm);
}

/* The remove and photo columns take only what they need; the name takes the rest. */
.woocommerce-cart table.shop_table .product-remove {
	width: 3.5rem;
}

.woocommerce-cart table.shop_table .product-thumbnail {
	width: 6.5rem;
}

.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-quantity,
.woocommerce-cart table.shop_table .product-subtotal {
	white-space: nowrap;
}

.woocommerce-cart .product-name a {
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
	text-decoration: underline;
}

/* ---------- Totals table ---------- */

.cart_totals table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	padding: var(--space-2xs) 0;
	background: none;
	border: 0;
	border-block-end: 1px solid var(--color-border);
	font-size: var(--text-sm);
	text-align: start;
}

.cart_totals table.shop_table td {
	text-align: end;
}

.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td {
	padding-block-start: var(--space-sm);
	border-block-end: 0;
	font-family: var(--font-display);
	font-size: var(--text-lg);
}

.wc-proceed-to-checkout {
	margin-block-start: var(--space-md);
}


/* =========================================================
   Checkout form fields
   ========================================================= */

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
	display: grid;
	gap: 0 var(--space-sm);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* WooCommerce's own width classes, mapped onto the grid. */
.woocommerce-checkout .form-row-first { grid-column: 1; }
.woocommerce-checkout .form-row-last { grid-column: 2; }

.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .form-row:not(.form-row-first):not(.form-row-last) {
	grid-column: 1 / -1;
}

.woocommerce .required,
.woocommerce-checkout .required {
	color: var(--color-error);
	border: 0;
	text-decoration: none;
}

.woocommerce-checkout textarea {
	min-height: 6rem;
	resize: vertical;
}

@media (max-width: 599px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last {
		grid-column: 1;
	}
}

/* =========================================================
   Order review table
   ========================================================= */

#order_review table.shop_table {
	width: 100%;
	margin-block-end: var(--space-md);
	border: 0;
	border-collapse: collapse;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
	padding: var(--space-2xs) 0;
	background: none;
	border: 0;
	border-block-end: 1px solid var(--color-border);
	font-size: var(--text-sm);
	text-align: start;
}

#order_review table.shop_table td,
#order_review table.shop_table tfoot td {
	text-align: end;
	white-space: nowrap;
}

/* The line-item name reads as a label, not a figure. */
#order_review table.shop_table td.product-name {
	text-align: start;
	white-space: normal;
}

#order_review table.shop_table thead th {
	font-family: var(--font-display);
	text-transform: none;
}

#order_review table.shop_table .product-quantity {
	color: var(--color-text-muted);
	font-weight: var(--weight-regular);
}

#order_review table.shop_table tr.order-total th,
#order_review table.shop_table tr.order-total td {
	padding-block-start: var(--space-sm);
	border-block-end: 0;
	font-family: var(--font-display);
	font-size: var(--text-lg);
}

/* =========================================================
   Payment methods
   ========================================================= */

#payment ul.payment_methods li {
	display: grid;
	gap: var(--space-2xs) var(--space-xs);
	/* Radio beside its label, with the description aligned under the label. */
	grid-template-columns: auto 1fr;
	align-items: center;
}

#payment ul.payment_methods li input[type="radio"] {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--munchi-navy);
}

#payment ul.payment_methods li label {
	margin: 0;
	font-weight: var(--weight-semibold);
	cursor: pointer;
}

#payment ul.payment_methods li .payment_box {
	grid-column: 2;
	margin: 0;
	padding: 0;
	background: none;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

#payment ul.payment_methods li .payment_box::before {
	content: none;
}

#payment ul.payment_methods li img {
	display: inline-block;
	max-height: 1.5rem;
	width: auto;
}

/* The selected method is worth marking, not just checking. */
#payment ul.payment_methods li:has( input:checked ) {
	border-color: var(--munchi-navy);
	background: var(--color-surface-sunken);
}

#payment .form-row.place-order {
	margin-block: var(--space-md) 0;
	padding: 0;
}

.woocommerce-terms-and-conditions-wrapper {
	margin-block-end: var(--space-sm);
	font-size: var(--text-sm);
}

/* =========================================================
   My Account — navigation
   ========================================================= */

.woocommerce-account .woo-page .container {
	display: grid;
	gap: var(--space-xl);
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	align-items: start;
}

.woocommerce-MyAccount-navigation {
	position: sticky;
	top: 6rem;
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: var(--space-3xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation a {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-sm);
	background: none;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	color: var(--color-text);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.woocommerce-MyAccount-navigation a:hover {
	background: var(--color-surface);
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--munchi-yellow);
	border-color: var(--munchi-yellow);
	color: var(--munchi-navy);
}

.woocommerce-MyAccount-navigation .munchi-icon {
	width: 1.1rem;
	height: 1.1rem;
}

.woocommerce-MyAccount-content {
	min-width: 0;
}

@media (max-width: 899px) {
	.woocommerce-account .woo-page .container {
		grid-template-columns: 1fr;
	}

	.woocommerce-MyAccount-navigation {
		position: static;
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-3xs);
	}
}

/* =========================================================
   My Account — dashboard
   ========================================================= */

.account-dashboard__greeting {
	margin-block-end: var(--space-lg);
	font-size: var(--text-xl);
}

.account-dashboard__cards {
	display: grid;
	gap: var(--space-sm);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	margin-block-end: var(--space-2xl);
	padding: 0;
	list-style: none;
}

.account-dashboard__card a {
	display: grid;
	gap: var(--space-3xs);
	height: 100%;
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition:
		transform var(--duration-base) var(--ease-out),
		box-shadow var(--duration-base) var(--ease-out);
}

.account-dashboard__card a:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.account-dashboard__card-icon {
	color: var(--munchi-yellow-dark);
}

.account-dashboard__card-title {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
}

.account-dashboard__card-text {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

/* ---------- Recent orders ---------- */

.account-recent-orders__title {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
}

.account-recent-orders__list {
	display: grid;
	gap: var(--space-2xs);
	padding: 0;
	list-style: none;
}

.account-recent-orders__item {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	justify-content: space-between;
	padding: var(--space-sm) var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.account-recent-orders__number {
	display: block;
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.account-recent-orders__date {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.account-recent-orders__meta {
	display: flex;
	gap: var(--space-sm);
	align-items: center;
}

.account-recent-orders__total {
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
}

.account-empty-cta {
	margin-block-start: var(--space-md);
}

/* ---------- Order status pills ---------- */

.order-status {
	display: inline-block;
	padding: var(--space-3xs) var(--space-xs);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	text-transform: capitalize;
}

.order-status--processing { background: #fff2cc; color: #8a6400; }
.order-status--completed { background: #e7f5ec; color: var(--color-success); }
.order-status--cancelled,
.order-status--failed { background: #fdeaea; color: var(--color-error); }

/* =========================================================
   My Account — login and registration
   ========================================================= */

/*
 * WooCommerce's own form templates are left intact — they carry the
 * authentication nonces — so only their layout is restyled here.
 */
.woocommerce-account:not(.logged-in) .woo-page .container {
	display: block;
}

#customer_login {
	display: grid;
	gap: var(--space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	max-width: 56rem;
	margin-inline: auto;
}

#customer_login .col-1,
#customer_login .col-2 {
	width: 100%;
	float: none;
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

#customer_login h2 {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
}

.woocommerce-form-login__rememberme {
	display: inline-flex;
	gap: var(--space-3xs);
	align-items: center;
	font-size: var(--text-sm);
}

.woocommerce-form__label-for-checkbox {
	font-weight: var(--weight-regular);
}

.woocommerce-LostPassword {
	margin-block-start: var(--space-sm);
	font-size: var(--text-sm);
}

/* =========================================================
   Order received
   ========================================================= */

.woocommerce-order {
	max-width: 48rem;
	margin-inline: auto;
}

.woocommerce-thankyou-order-received {
	margin-block-end: var(--space-lg);
	padding: var(--space-md) var(--space-lg);
	background: #e7f5ec;
	border: 0;
	border-inline-start: 4px solid var(--color-success);
	border-radius: var(--radius-md);
	color: #14532d;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
}

.woocommerce-thankyou-order-received::before {
	content: none;
}

ul.woocommerce-thankyou-order-details.order_details {
	display: grid;
	gap: var(--space-md) var(--space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	margin: 0 0 var(--space-xl);
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	list-style: none;
}

ul.order_details li {
	display: grid;
	gap: var(--space-3xs);
	/*
	 * Grid items default to min-content width, so a long email address
	 * overflows its track and collides with the next column.
	 */
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 0;
	border: 0;
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

ul.order_details li strong {
	color: var(--color-text);
	font-family: var(--font-display);
	font-size: var(--text-base);
	text-transform: none;
	letter-spacing: normal;
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin-block-start: var(--space-xl);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
}

.woocommerce-order-details table.shop_table {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--color-surface);
}

.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
	padding: var(--space-sm);
	border-block-start: 1px solid var(--color-border);
	font-size: var(--text-sm);
	text-align: start;
}

.woocommerce-order-details table.shop_table thead th {
	background: var(--color-surface-sunken);
	border-block-start: 0;
	font-family: var(--font-display);
}

.woocommerce-order-details table.shop_table td.product-total,
.woocommerce-order-details table.shop_table tfoot td {
	text-align: end;
}

.woocommerce-customer-details address {
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-style: normal;
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
}

/* ---------- What happens next ---------- */

.order-next-steps {
	margin-block-start: var(--space-2xl);
	padding: var(--space-lg);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-lg);
}

.order-next-steps__title {
	margin-block-end: var(--space-md);
	font-size: var(--text-xl);
}

.order-next-steps__list {
	display: grid;
	gap: var(--space-md);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.order-next-steps__item {
	display: flex;
	gap: var(--space-2xs);
	align-items: flex-start;
}

.order-next-steps__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	color: var(--munchi-yellow-dark);
}

.order-next-steps__item-title {
	font-size: var(--text-base);
}

.order-next-steps__text {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.order-next-steps__actions {
	margin-block-start: var(--space-lg);
}

/* =========================================================
   Account forms
   ========================================================= */

/*
 * WooCommerce's login, registration, address and account-details forms emit
 * .button / .woocommerce-Button rather than the theme's .btn, so they need
 * styling here. The templates themselves are left alone — they carry the
 * authentication nonces.
 */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-Button,
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"],
.woocommerce-ResetPassword button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-lg);
	background: var(--munchi-yellow);
	border: 1px solid var(--munchi-yellow);
	border-radius: var(--radius-pill);
	color: var(--munchi-navy);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-Button:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover,
.woocommerce-ResetPassword button[type="submit"]:hover {
	background: var(--munchi-yellow-dark);
}

.woocommerce-form .form-row,
.woocommerce-form p {
	margin-block-end: var(--space-sm);
}

.woocommerce-form label {
	display: block;
	margin-block-end: var(--space-3xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.woocommerce-form-login__rememberme input[type="checkbox"],
.woocommerce-form__input-checkbox {
	width: 1rem;
	height: 1rem;
	accent-color: var(--munchi-navy);
}

.woocommerce-privacy-policy-text p,
.woocommerce-form-register p:not(.form-row) {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.woocommerce-LostPassword a {
	color: var(--color-text-muted);
}

/* ---------- Addresses and account details ---------- */

.woocommerce-Addresses {
	display: grid;
	gap: var(--space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.woocommerce-Address {
	width: 100%;
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: baseline;
	justify-content: space-between;
	margin-block-end: var(--space-sm);
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-size: var(--text-lg);
}

.woocommerce-Address address {
	font-style: normal;
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.woocommerce-EditAccountForm fieldset {
	margin-block-start: var(--space-lg);
	padding: var(--space-lg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.woocommerce-EditAccountForm legend {
	padding-inline: var(--space-2xs);
	font-family: var(--font-display);
	font-weight: var(--weight-bold);
}

/* ---------- Orders table ---------- */

.woocommerce-orders-table {
	width: 100%;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
	padding: var(--space-sm);
	border-block-start: 1px solid var(--color-border);
	font-size: var(--text-sm);
	text-align: start;
}

.woocommerce-orders-table thead th {
	background: var(--color-surface-sunken);
	border-block-start: 0;
	font-family: var(--font-display);
}

.woocommerce-orders-table .woocommerce-button {
	padding-inline: var(--space-sm);
	font-size: var(--text-xs);
}

@media (max-width: 599px) {
	.woocommerce-orders-table thead {
		display: none;
	}

	.woocommerce-orders-table tr {
		display: grid;
		gap: var(--space-3xs);
		padding: var(--space-sm);
		border-block-start: 1px solid var(--color-border);
	}

	.woocommerce-orders-table td {
		padding: 0;
		border: 0;
	}

	.woocommerce-orders-table td::before {
		content: attr(data-title) ": ";
		font-weight: var(--weight-semibold);
	}
}

/* =========================================================
   Shop and category archive header
   ========================================================= */

.shop-header {
	display: grid;
	gap: var(--space-lg);
	align-items: center;
	margin-block-end: var(--space-xl);
	padding: var(--space-xl);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

/* A category with a thumbnail gets a two-column banner. */
.shop-header--with-image {
	/* Wide enough for the category photographs, which are wide scenes. */
	grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
}

.shop-header__title {
	font-size: var(--text-3xl);
}

.shop-header__description {
	max-width: 44rem;
	margin-block-start: var(--space-sm);
	color: var(--color-text-muted);
}

.shop-header__description p {
	margin-block-end: var(--space-2xs);
}

.shop-header__count {
	margin-block-start: var(--space-sm);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.shop-header__media {
	justify-self: end;
}

.shop-header__image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 68% center;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
	.shop-header {
		padding: var(--space-lg);
	}

	.shop-header--with-image {
		grid-template-columns: 1fr;
	}

	.shop-header__media {
		justify-self: stretch;
	}
}

/* =========================================================
   Range navigation
   ========================================================= */

.shop-nav {
	margin-block-end: var(--space-md);
}

.shop-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.shop-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
	transition:
		background-color var(--duration-fast) var(--ease-out),
		border-color var(--duration-fast) var(--ease-out);
}

.shop-nav__link:hover {
	border-color: var(--munchi-navy);
}

.shop-nav__link.is-active {
	background: var(--munchi-yellow);
	border-color: var(--munchi-yellow);
	color: var(--munchi-navy);
}

/*
 * The range links and the sort control share a row: both are ways of
 * narrowing the same grid.
 */
.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	justify-content: space-between;
	margin-block-end: var(--space-lg);
}

.shop-toolbar .shop-nav {
	margin-block-end: 0;
}

.shop-toolbar .woocommerce-ordering {
	margin-block-end: 0;
	margin-inline-start: auto;
}

@media (max-width: 599px) {
	.shop-toolbar {
		align-items: stretch;
	}

	.shop-toolbar .woocommerce-ordering {
		width: 100%;
		margin-inline-start: 0;
	}
}

.woocommerce-ordering select {
	border: 1px solid var(--color-border-strong);
	background: var(--color-surface);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

/* =========================================================
   Empty archive
   ========================================================= */

.shop-empty-state {
	grid-column: 1 / -1;
	padding-block: var(--space-2xl);
	text-align: center;
}

.shop-empty-state__icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto var(--space-md);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
}

.shop-empty-state__icon .munchi-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.shop-empty-state__title {
	font-size: var(--text-2xl);
}

.shop-empty-state__text {
	max-width: 28rem;
	margin: var(--space-sm) auto var(--space-lg);
	color: var(--color-text-muted);
}

/* =========================================================
   Archive pagination
   ========================================================= */

.woocommerce-pagination {
	margin-block-start: var(--space-xl);
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: var(--space-xs);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
	background: var(--munchi-yellow);
	border-color: var(--munchi-yellow);
	color: var(--munchi-navy);
}

/* WooCommerce repeats the tab name as a heading inside each panel; keep it modest. */
.woocommerce-Tabs-panel > h2:first-child {
	margin-block-end: var(--space-sm);
	font-size: var(--text-xl);
}

/* The allergen statement under the ingredients reads as label small print. */
.product-allergens__title {
	margin-block: var(--space-lg) var(--space-2xs);
	font-size: var(--text-base);
}

.product-allergens {
	max-width: 46rem;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

/* Store pages: a compact, left-aligned title so the cart starts above the fold. */
.woocommerce-cart .page-header,
.woocommerce-checkout .page-header,
.woocommerce-account .page-header {
	padding-block: var(--space-xl) 0;
	text-align: start;
}

.woocommerce-cart .page-header .container--narrow,
.woocommerce-checkout .page-header .container--narrow,
.woocommerce-account .page-header .container--narrow {
	width: min(var(--container-max), 100% - (var(--gutter) * 2));
}

.woocommerce-cart .page-header__title,
.woocommerce-checkout .page-header__title,
.woocommerce-account .page-header__title {
	font-size: var(--text-2xl);
}

.woocommerce-cart .woo-page,
.woocommerce-checkout .woo-page,
.woocommerce-account .woo-page {
	padding-block-start: var(--space-md);
}

/* WooCommerce restyles this button (size, padding, corners) with a more specific rule. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	margin-block-end: 0;
	padding: 0 var(--space-md);
	border-radius: var(--radius-pill);
	font-size: var(--text-base);
	line-height: 1.2;
}

/* WooCommerce fixes the coupon field at 80px. */
.woocommerce-cart table.cart td.actions .coupon .input-text {
	width: 13rem;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-sm);
	border-radius: var(--radius-pill);
}

/* The "View cart" / "Continue shopping" link inside a store notice. */
.woocommerce-message .button,
.woocommerce-info .button {
	min-height: 0;
	padding: var(--space-3xs) var(--space-sm);
	background: transparent;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-pill);
	color: var(--color-text);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
	background: var(--munchi-navy);
	border-color: var(--munchi-navy);
	color: var(--color-text-inverse);
}

/*
 * Phone coupon row. Last in the file, and as specific as the desktop field
 * width above and WooCommerce's own coupon rules, so it wins over both.
 */
@media (max-width: 768px) {
	.woocommerce-cart table.cart td.actions .coupon {
		display: grid;
		gap: var(--space-2xs);
		grid-template-columns: minmax(0, 1fr) auto;
		width: auto;
		padding: 0;
	}

	/* Placed explicitly: WooCommerce's coupon markup has a hidden child that
	   would otherwise take the first cell. */
	.woocommerce-cart table.cart td.actions .coupon .input-text {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		margin: 0;
	}

	.woocommerce-cart table.cart td.actions .coupon .button {
		grid-column: 2;
		grid-row: 1;
	}
}

/* =========================================================
   Shipping calculator in the cart totals
   ========================================================= */

/*
 * The totals are label/value pairs, laid out as rows rather than table
 * columns. A real table shrink-wraps any row that is made a block (the
 * shipping row below), leaving the calculator form half the card's width.
 */
.cart_totals table.shop_table,
.cart_totals table.shop_table tbody {
	display: block;
}

.cart_totals table.shop_table tr {
	display: flex;
	gap: var(--space-sm);
	align-items: baseline;
	justify-content: space-between;
	border-block-end: 1px solid var(--color-border);
}

.cart_totals table.shop_table tr:last-child {
	border-block-end: 0;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	border-block-end: 0;
	/* WooCommerce stripes alternate rows on phones. */
	background: none !important;
}

/*
 * The shipping row stacks: the label, then the shipping details and the
 * calculator form beneath it at the card's full width. Left in the value
 * cell, the form is squeezed into two-thirds of a narrow column and
 * right-aligned.
 */
.cart_totals table.shop_table tr.woocommerce-shipping-totals {
	display: block;
	padding-block: var(--space-2xs);
	border-block-end: 1px solid var(--color-border);
}

.cart_totals table.shop_table tr.woocommerce-shipping-totals th,
.cart_totals table.shop_table tr.woocommerce-shipping-totals td {
	display: block;
	padding: 0;
	border: 0;
	text-align: start !important;
}

.cart_totals table.shop_table tr.woocommerce-shipping-totals th {
	margin-block-end: var(--space-3xs);
}

/* WooCommerce's phone layout hides the th and labels the cell itself instead. */
.cart_totals table.shop_table tr.woocommerce-shipping-totals th {
	display: block !important;
}

.cart_totals table.shop_table tr.woocommerce-shipping-totals td::before {
	content: none;
	display: none;
}

.woocommerce-shipping-destination,
.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
}

.woocommerce-shipping-calculator {
	margin-block-start: var(--space-2xs);
}

.cart_totals .shipping-calculator-form {
	display: grid;
	gap: var(--space-sm);
	margin-block-start: var(--space-sm);
	padding: var(--space-md);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-sm);
}

.cart_totals .shipping-calculator-form .form-row {
	display: grid;
	gap: var(--space-3xs);
	margin: 0;
	padding: 0;
	width: 100%;
	float: none;
}

.cart_totals .shipping-calculator-form label {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.cart_totals .shipping-calculator-form .button {
	justify-self: start;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-lg);
	background: var(--munchi-navy);
	border: 0;
	border-radius: var(--radius-pill);
	color: var(--color-text-inverse);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	cursor: pointer;
}

.cart_totals .shipping-calculator-form .button:hover {
	background: var(--munchi-navy-soft);
}

.shipping-calculator-button {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

/*
 * Phones: WooCommerce hides each totals label and repeats it inside the value
 * cell ("Subtotal:₹249"). The rows above already pair label and value, so
 * show the real label and drop the repeated one.
 */
@media (max-width: 768px) {
	.woocommerce-cart .cart_totals table.shop_table th {
		display: block !important;
	}

	.woocommerce-cart .cart_totals table.shop_table td::before {
		content: none;
		display: none;
	}

	.woocommerce-cart .cart_totals table.shop_table tr:not(.woocommerce-shipping-totals) td {
		text-align: end !important;
	}
}

/* =========================================================
   Single product: summary beside the photo
   ========================================================= */

/*
 * Not sticky. Its sticky area would be the whole product block, so it slid
 * over the tabs and related products below, and the summary beside it is the
 * taller column anyway. WooCommerce's position: relative also turned the
 * theme's top: 6rem into a 96px downward shift, so top is reset too.
 */
.woocommerce div.product div.images.woocommerce-product-gallery {
	position: relative;
	top: auto;
	margin-block-end: 0;
}

.woocommerce div.product .product_title {
	margin-block-end: var(--space-xs);
	font-size: var(--text-3xl);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* The flavour on its own line, as on the jar label and the product cards. */
.product_title__descriptor {
	display: block;
	color: var(--color-text-muted);
	font-size: 0.6em;
	letter-spacing: 0;
}

/* WooCommerce colours the price olive (#958e09) with a more specific rule. */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	margin-block-end: var(--space-sm);
	color: var(--munchi-navy);
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: var(--weight-black);
}

.woocommerce div.product .woocommerce-product-details__short-description {
	max-width: 34rem;
	margin-block: 0 var(--space-md);
	color: var(--color-text-muted);
	font-size: var(--text-lg);
}

.woocommerce div.product .woocommerce-product-details__short-description p {
	margin: 0;
}

/* Net weight, best before, price per 100 g: three facts read across one strip. */
.product-facts {
	display: grid;
	/* Best before is the longest value, so the middle column is widest. */
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1fr);
	margin: 0 0 var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.product-facts__item {
	padding: var(--space-sm) var(--space-md);
}

.product-facts__item + .product-facts__item {
	border-inline-start: 1px solid var(--color-border);
}

.product-facts dt {
	margin-block-end: 2px;
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
}

.product-facts dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	line-height: var(--leading-snug);
}

.woocommerce div.product .product-stock {
	margin-block: 0 var(--space-xs);
}

/* The buy button takes the rest of the row beside the quantity. */
.woocommerce div.product form.cart {
	margin-block: 0 var(--space-lg) !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1;
	border: 0;
	min-height: 3.25rem;
	max-width: 22rem;
	font-size: var(--text-base);
}

.woocommerce div.product form.cart .quantity .qty {
	min-height: 3.25rem;
	border-radius: var(--radius-pill);
}

/* What's inside: the ingredients as pills, the allergen statement as small print. */
.product-inside {
	margin-block-end: var(--space-md);
	padding: var(--space-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.product-inside__title {
	margin-block-end: var(--space-sm);
	font-size: var(--text-lg);
}

.product-inside .product-ingredients li {
	background: var(--munchi-yellow-soft);
}

.product-inside .product-allergens {
	max-width: none;
	margin-block: var(--space-sm) 0;
	padding-block-start: var(--space-sm);
	border-block-start: 1px dashed var(--color-border-strong);
	font-size: var(--text-xs);
}

.product-inside .product-allergens strong {
	color: var(--color-text);
}

/* The facts strip stacks into rows on narrow phones rather than squeezing. */
@media (max-width: 479px) {
	.product-facts {
		grid-template-columns: 1fr;
	}

	.product-facts__item {
		display: flex;
		justify-content: space-between;
		gap: var(--space-sm);
		padding: var(--space-xs) var(--space-sm);
	}

	.product-facts__item + .product-facts__item {
		border-inline-start: 0;
		border-block-start: 1px solid var(--color-border);
	}

	.product-facts dd {
		text-align: end;
	}
}

/* =========================================================
   Single product: tabs
   ========================================================= */

/* WooCommerce draws its tabs as grey boxes with more specific rules. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	border-block-end: 1px solid var(--color-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	content: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	content: none;
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: var(--space-sm) var(--space-md);
	border-block-end: 3px solid transparent;
	color: var(--color-text-muted);
	font-weight: var(--weight-bold);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	border-color: var(--munchi-yellow);
	color: var(--color-text);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 48rem;
	margin: 0;
	font-size: var(--text-lg);
}

/* The Product Information table: label and value pairs, not a spreadsheet. */
.woocommerce div.product .woocommerce-tabs table.shop_attributes {
	max-width: 36rem;
	border: 0;
	font-size: var(--text-base);
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product .woocommerce-tabs table.shop_attributes td {
	padding: var(--space-xs) 0;
	background: none;
	border: 0;
	border-block-end: 1px solid var(--color-border);
	font-style: normal;
	text-align: start;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th {
	width: 12rem;
	color: var(--color-text-muted);
	font-weight: var(--weight-semibold);
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

/* With no ingredient list above it, the allergen note needs no divider. */
.product-inside__title + .product-allergens {
	margin-block-start: 0;
	padding-block-start: 0;
	border-block-start: 0;
}

/* Phones: the tabs stay on one line and scroll sideways instead of wrapping. */
@media (max-width: 599px) {
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
		display: none;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		padding: var(--space-xs) var(--space-sm);
		white-space: nowrap;
	}
}

/*
 * Small phones: the order summary table fits its card instead of widening
 * the page. Fixed layout lets long product names wrap rather than set the
 * table's width, and the cards give back some padding.
 */
@media (max-width: 479px) {
	#order_review,
	#customer_details {
		padding: var(--space-md);
	}

	#order_review table.shop_table {
		width: 100%;
		table-layout: fixed;
	}

	#order_review table.shop_table th,
	#order_review table.shop_table td {
		overflow-wrap: anywhere;
	}

	#order_review table.shop_table thead .product-total,
	#order_review table.shop_table tbody .product-total {
		width: 6.5rem;
		text-align: end;
	}

	/* The shipping options get the full width under their label, as in the cart. */
	#order_review table.shop_table tr.woocommerce-shipping-totals th,
	#order_review table.shop_table tr.woocommerce-shipping-totals td {
		display: block;
		width: auto;
		text-align: start;
	}

	#order_review table.shop_table tr.woocommerce-shipping-totals th {
		padding-block-end: 0;
		border-block-end: 0;
	}
}

/* WooCommerce's lavender payment box, in the theme's cream instead. */
.woocommerce-checkout #payment {
	background: var(--color-surface-sunken);
	border-radius: var(--radius-md);
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--color-surface);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--color-surface);
}

/* =========================================================
   Quantity stepper (assets/js/quantity.js)
   ========================================================= */

/*
 * The minus, number and plus read as one control. Without JavaScript there
 * is no .has-stepper, and the plain number field is left as it was.
 */
.quantity.has-stepper {
	display: inline-flex;
	align-items: stretch;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-pill);
}

.quantity.has-stepper:focus-within {
	border-color: var(--munchi-navy);
}

.woocommerce .quantity.has-stepper input.qty,
.woocommerce div.product form.cart .quantity.has-stepper input.qty {
	width: 2.75rem;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-weight: var(--weight-bold);
	text-align: center;
	/* The browser's own arrows: replaced by the buttons either side. */
	-moz-appearance: textfield;
	appearance: textfield;
}

.quantity.has-stepper input.qty::-webkit-inner-spin-button,
.quantity.has-stepper input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.qty-step {
	display: grid;
	place-items: center;
	width: 2.75rem;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--color-text);
	font-size: 1.25rem;
	font-weight: var(--weight-bold);
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.qty-step:hover:not(:disabled) {
	background: var(--color-surface-sunken);
}

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

.qty-step:disabled {
	color: var(--color-border-strong);
	cursor: default;
}

/* On the product page the stepper matches the Add to cart button's height. */
.woocommerce div.product form.cart .quantity.has-stepper input.qty,
.woocommerce div.product form.cart .quantity.has-stepper .qty-step {
	min-height: 3.25rem;
}

/* WooCommerce's small-screen styles make loop buttons display: block, which collapses the cart icon. */
.woocommerce ul.products li.product a.button.product-card__button {
	display: inline-flex;
}

/*
 * Checkboxes and radios in WooCommerce forms ("Ship to a different address",
 * "Remember me", payment methods): larger targets for touch, and the label
 * lines up beside them.
 */
.woocommerce form input[type="checkbox"],
.woocommerce form input[type="radio"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 var(--space-2xs) 0 0;
	accent-color: var(--munchi-navy);
	vertical-align: middle;
	cursor: pointer;
}

.woocommerce form label.woocommerce-form__label-for-checkbox,
.woocommerce-checkout #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	cursor: pointer;
}

/* The eye button that reveals the password: a full-size target. */
.woocommerce form .password-input .show-password-input {
	top: 50%;
	right: var(--space-2xs);
	width: 2.25rem;
	height: 2.25rem;
	transform: translateY(-50%);
}
