/* ==========================================================================
   Katma 2027 — shop.css
   WooCommerce surfaces: product archive, single product, gallery, lightbox.
   Loaded on shop pages only.
   ========================================================================== */

/* ==========================================================================
   Shop shell
   ========================================================================== */

/* No padding-bottom on .site-main here on purpose. Each shop surface already
   ends with its own breathing room — .shop-wrap on the archives, div.product
   on a single product, .section on cart and checkout — so this only added a
   second gap. It also left a white strip under the full-bleed "Možda vas
   zanima" band on category archives, which has to meet the footer directly. */

.woocommerce-breadcrumb {
	padding-block: var(--space-md);
	font-size: var(--text-sm);
	color: var(--color-muted);
}

.woocommerce-breadcrumb a {
	color: var(--color-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--color-accent);
}

/* WooCommerce notices — cart messages, package-rounding notices. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin-block: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	background-color: var(--color-bg-warm);
	border-left: 3px solid var(--katma-red);
	border-radius: var(--radius-xs);
	font-size: var(--text-sm);
	list-style: none;
}

.woocommerce-error {
	background-color: #FDF2F2;
}

/* ==========================================================================
   Product archive
   ========================================================================== */

ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

@media (max-width: 820px) {
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Card styling itself lives in components.css (.product-card): the same card
   renders here, on the homepage and in related products, from one partial. */

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

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

@media (max-width: 900px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}
}

.single-product .product_title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-sm);
}

.single-product .summary > * + * {
	margin-top: var(--space-sm);
}

.single-product .summary .price {
	display: flex;
	align-items: baseline;
	gap: var(--space-3xs);
	font-size: var(--text-xl);
	font-weight: 700;
	color: var(--katma-red);
	font-variant-numeric: tabular-nums;
}

.single-product .summary .price__unit {
	font-size: var(--text-base);
	font-weight: 500;
	color: var(--color-muted);
}

.woocommerce-product-details__short-description {
	color: var(--color-muted);
	line-height: var(--leading-relaxed);
}

/* --- Specification list --------------------------------------------------- */

.specs {
	margin: 0;
	border-top: var(--border-hairline);
}

.specs__row {
	display: grid;
	grid-template-columns: minmax(9rem, 0.5fr) minmax(0, 1fr);
	gap: var(--space-sm);
	padding-block: var(--space-2xs);
	border-bottom: var(--border-hairline);
	font-size: var(--text-sm);
}

.specs__term {
	color: var(--color-muted);
}

.specs__value {
	margin: 0;
	font-weight: 500;
	color: var(--color-heading);
}

/* A 9rem label column leaves barely 150px for the value on a phone, which
   broke "100 kom u pakiranju" across four lines. Stack instead. */
@media (max-width: 480px) {
	.specs__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-block: var(--space-xs);
	}

	.specs__term {
		font-size: var(--text-xs);
	}
}

/* --- Add to cart ---------------------------------------------------------- */

.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-xs);
	margin-block: var(--space-md);
}

.quantity {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
}

.quantity label {
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--color-muted);
}

/* Large target: parish staff are often older users (brief §26).

   Scoped with .woocommerce on purpose. The plugin ships
   `.woocommerce .quantity .qty{width:3.631em}` — three classes against the two
   in a bare `.quantity input.qty`, so the plugin won. The field stayed 65px
   and clipped its own value: a package of 100 rendered as "10(".

   Sized for four digits without reflowing. Orders here are placed in packages,
   so 10 × 100 kom is an ordinary number to type, not an edge case. */
.woocommerce .quantity input.qty {
	width: 8rem;
	min-height: 52px;
	padding-inline: var(--space-xs);
	background-color: var(--katma-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--text-md);
	font-weight: 600;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.woocommerce .quantity input.qty:focus-visible {
	border-color: var(--katma-red);
}

/* Quantity and button share a row when the summary column allows it, and the
   button takes a full row of its own when it does not — either way it stays a
   deliberate layout rather than an accidental wrap. */
.single-product form.cart .single_add_to_cart_button {
	flex: 1 1 12rem;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	min-height: 52px;
	padding: 0 var(--space-md);
	background-color: var(--katma-red);
	border: 1px solid var(--katma-red);
	border-radius: var(--radius-sm);
	color: var(--katma-white);
	font-family: var(--font-ui);
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration) var(--ease),
		border-color var(--duration) var(--ease);
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: var(--katma-red-dark);
	border-color: var(--katma-red-dark);
	color: var(--katma-white);
}

.woocommerce .button.alt {
	background-color: var(--katma-red);
}

/* Secondary action, e.g. "Nastavi kupnju". */
.woocommerce a.button.wc-backward {
	background-color: var(--katma-white);
	border-color: var(--color-border);
	color: var(--color-heading);
}

.woocommerce a.button.wc-backward:hover {
	background-color: var(--katma-white);
	border-color: var(--katma-black);
	color: var(--color-heading);
}

/* --- Description and related --------------------------------------------- */

.product-description {
	padding-block: var(--space-xl);
	border-top: var(--border-hairline);
}

.related.products,
.up-sells.products {
	padding-block: var(--space-xl);
	border-top: var(--border-hairline);
}

.related.products > h2,
.up-sells.products > h2 {
	margin-bottom: var(--space-lg);
	font-size: var(--text-xl);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.gallery__stage {
	position: relative;
	background-color: var(--color-bg-warm);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

/* Scroll-snap track: this is the whole carousel. No library. */
.gallery__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.gallery__track::-webkit-scrollbar {
	display: none;
}

.gallery__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: grid;
	place-items: center;
	padding: var(--space-md);
	cursor: zoom-in;
}

.gallery__image {
	width: auto;
	max-height: 34rem;
	object-fit: contain;
}

/* --- Stage controls ------------------------------------------------------- */

.gallery__nav,
.gallery__expand {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background-color: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-heading);
	transition: background-color var(--duration) var(--ease),
		color var(--duration) var(--ease),
		opacity var(--duration) var(--ease);
}

.gallery__nav:hover,
.gallery__expand:hover {
	background-color: var(--katma-white);
	color: var(--color-accent);
}

.gallery__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.gallery__nav svg,
.gallery__expand svg {
	width: 20px;
	height: 20px;
}

.gallery__nav--prev {
	top: 50%;
	left: var(--space-2xs);
	transform: translateY(-50%);
}

.gallery__nav--prev svg {
	transform: rotate(180deg);
}

.gallery__nav--next {
	top: 50%;
	right: var(--space-2xs);
	transform: translateY(-50%);
}

.gallery__expand {
	top: var(--space-2xs);
	right: var(--space-2xs);
}

.gallery__counter {
	position: absolute;
	bottom: var(--space-2xs);
	left: var(--space-2xs);
	z-index: 2;
	padding: 4px 10px;
	background-color: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--color-muted);
	font-variant-numeric: tabular-nums;
}

/* --- Thumbnails ----------------------------------------------------------- */

.gallery__thumbs-list {
	display: flex;
	gap: var(--space-2xs);
	overflow-x: auto;
	padding-bottom: var(--space-3xs);
	scrollbar-width: thin;
}

.gallery__thumb {
	display: block;
	flex: none;
	width: 68px;
	padding: 3px;
	background-color: var(--katma-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xs);
	transition: border-color var(--duration) var(--ease);
}

.gallery__thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.gallery__thumb:hover {
	border-color: var(--katma-stone);
}

.gallery__thumb[aria-current="true"] {
	border-color: var(--katma-red);
	box-shadow: inset 0 0 0 1px var(--katma-red);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	padding: 0;
	background-color: transparent;
	border: 0;
	overflow: hidden;
}

.lightbox::backdrop {
	background-color: rgba(17, 17, 17, 0.92);
}

/* Flex, not grid. As a grid item the image's max-height: 100% had an
   auto-sized row to resolve against, which is indefinite — so it was ignored
   and a tall calendar sheet ran past the bottom of the dialog. A flex item in
   a container with a definite height resolves it properly. */
.lightbox__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: clamp(1rem, 5vw, 4rem);
}

.lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--radius-xs);
}

.lightbox__nav,
.lightbox__close {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius-sm);
	color: var(--katma-white);
	transition: background-color var(--duration) var(--ease);
}

.lightbox__nav:hover,
.lightbox__close:hover {
	background-color: rgba(255, 255, 255, 0.22);
}

.lightbox__nav svg,
.lightbox__close svg {
	width: 24px;
	height: 24px;
}

.lightbox__nav--prev {
	left: clamp(0.5rem, 2vw, 2rem);
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--prev svg {
	transform: rotate(180deg);
}

.lightbox__nav--next {
	right: clamp(0.5rem, 2vw, 2rem);
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__close {
	top: clamp(0.5rem, 2vw, 2rem);
	right: clamp(0.5rem, 2vw, 2rem);
}

.lightbox__counter {
	position: absolute;
	bottom: clamp(0.5rem, 2vw, 2rem);
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 14px;
	background-color: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: var(--katma-white);
	font-size: var(--text-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
	.lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.lightbox__nav--prev {
		left: 0.5rem;
	}

	.lightbox__nav--next {
		right: 0.5rem;
	}
}

/* ==========================================================================
   WooCommerce colour variables
   The plugin's own stylesheet paints buttons and accents purple. Repoint its
   variables at the Katma palette rather than fighting each rule.
   ========================================================================== */

:root {
	--wc-primary: var(--katma-red);
	--wc-primary-text: var(--katma-white);
	--wc-secondary: var(--katma-ivory);
	--wc-secondary-text: var(--katma-black);
	--wc-highlight: var(--katma-red);
	--wc-highlightext: var(--katma-white);
	--wc-content-bg: var(--katma-white);
	--wc-subtext: var(--color-muted);
	--wc-green: #2E7D52;
	--wc-red: var(--katma-red);
	--wc-orange: #B26A00;
}

/* ==========================================================================
   Grid escapes
   Related products and the description sit inside div.product, which is the
   two-column grid — without this they are trapped in the first column.
   ========================================================================== */

.single-product div.product > .related.products,
.single-product div.product > .up-sells.products,
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .product-description {
	grid-column: 1 / -1;
}

/* The gallery and summary are the two real columns. */
.single-product div.product > .gallery {
	grid-column: 1;
}

.single-product div.product > .summary {
	grid-column: 2;
}

@media (max-width: 900px) {
	.single-product div.product > .gallery,
	.single-product div.product > .summary {
		grid-column: 1;
	}
}

/* ==========================================================================
   Shop wrapper
   ========================================================================== */

.shop-wrap {
	padding-bottom: var(--space-2xl);
}

/* Shop and category archive titles render through the shared masthead
   (template-parts/content/page-header.php, see katma_2027_wc_archive_header()
   in inc/woocommerce.php) — same look as every other page. WooCommerce's own
   description markup — .term-description on a category, .page-description on
   the shop page — arrives as this partial's $meta, nested one level in. */
.page-header__meta .term-description,
.page-header__meta .page-description {
	max-width: 62ch;
	line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Undoing the float grid
   WooCommerce's layout stylesheet still lays products out with floats and
   percentage widths, and adds a clearfix. Inside a CSS grid that clearfix
   ::before becomes a grid item — it eats the first cell — and the percentage
   width shrinks every card to a fraction of its track.
   ========================================================================== */

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
	content: none;
	display: none;
}

.woocommerce ul.products li.product,
ul.products li.product {
	width: auto;
	max-width: none;
	margin: 0;
	float: none;
	clear: none;
}

/* ==========================================================================
   Primary button
   WooCommerce styles `.alt` with a more specific selector than the base
   button, so it needs matching specificity to stay Katma red.
   ========================================================================== */

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background-color: var(--katma-red);
	border-color: var(--katma-red);
	color: var(--katma-white);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	background-color: var(--katma-red-dark);
	border-color: var(--katma-red-dark);
	color: var(--katma-white);
}

/* ==========================================================================
   Notices
   WooCommerce paints its own coloured top border and an icon from its icon
   font. Reset both and use the Katma treatment: warm ground, red rule, no icon.
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	border-top: 0;
	border-right: 0;
	border-bottom: 0;
	border-left: 3px solid var(--katma-red);
	color: var(--color-text);
}

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

.woocommerce-message a.button,
.woocommerce-info a.button {
	min-height: 44px;
	padding-inline: var(--space-sm);
	font-size: var(--text-sm);
	flex: none;
}

.woocommerce-error {
	border-left-color: var(--katma-red-dark);
}

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

.woocommerce-cart-form {
	margin-bottom: var(--space-xl);
}

.woocommerce table.shop_table {
	width: 100%;
	border: var(--border-hairline);
	border-radius: var(--radius-sm);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	padding: var(--space-sm) var(--space-xs);
	background-color: var(--color-bg-warm);
	border-bottom: var(--border-hairline);
	font-family: var(--font-ui);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-muted);
	text-align: left;
}

.woocommerce table.shop_table td {
	padding: var(--space-sm) var(--space-xs);
	border-top: var(--border-hairline);
	vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:first-child td {
	border-top: 0;
}

/* --- Columns -------------------------------------------------------------- */

.woocommerce table.shop_table td.product-remove,
.woocommerce table.shop_table th.product-remove {
	width: 48px;
	text-align: center;
}

.woocommerce table.shop_table td.product-thumbnail {
	width: 84px;
}

.woocommerce table.shop_table td.product-thumbnail img {
	width: 68px;
	height: 68px;
	object-fit: contain;
	border-radius: var(--radius-xs);
}

.woocommerce table.shop_table td.product-name a {
	font-weight: 600;
	color: var(--color-heading);
	text-decoration: none;
	line-height: var(--leading-snug);
}

.woocommerce table.shop_table td.product-name a:hover {
	color: var(--color-accent);
}

/* Package line under the item name. */
.cart-item__pack {
	display: block;
	margin-top: var(--space-3xs);
	font-size: var(--text-xs);
	color: var(--color-muted);
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.woocommerce table.shop_table td.product-price {
	color: var(--color-text);
}

.woocommerce table.shop_table td.product-subtotal {
	font-weight: 700;
	color: var(--color-heading);
}

.woocommerce table.shop_table td.product-quantity .quantity input.qty {
	width: 6.5rem;
	min-height: 48px;
}

/* Remove control: a real button-sized target, not a 10px cross. */
.woocommerce table.shop_table td.product-remove a.remove {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-inline: auto;
	background-color: transparent;
	border-radius: var(--radius-sm);
	color: var(--color-muted) !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}

.woocommerce table.shop_table td.product-remove a.remove:hover {
	background-color: var(--color-bg-warm);
	color: var(--katma-red) !important;
}

/* --- Actions row ---------------------------------------------------------- */

.woocommerce table.shop_table td.actions {
	padding: var(--space-sm);
	background-color: var(--color-bg-warm);
	text-align: right;
}

.woocommerce table.shop_table td.actions .button {
	min-height: 44px;
	padding-inline: var(--space-sm);
	background-color: var(--katma-white);
	border-color: var(--color-border);
	color: var(--color-heading);
	font-size: var(--text-sm);
}

.woocommerce table.shop_table td.actions .button:hover:not(:disabled) {
	background-color: var(--katma-white);
	border-color: var(--katma-black);
	color: var(--color-heading);
}

.woocommerce table.shop_table td.actions .button:disabled {
	opacity: 0.45;
	cursor: default;
}

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

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.cart-collaterals .cart_totals {
	width: min(100%, 26rem);
}

.cart_totals h2 {
	margin-bottom: var(--space-sm);
	font-size: var(--text-lg);
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--text-sm);
}

.cart_totals table.shop_table th {
	background-color: transparent;
	text-transform: none;
	letter-spacing: 0;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--color-muted);
	border-bottom: 0;
}

.cart_totals tr.order-total th,
.cart_totals tr.order-total td {
	padding-block: var(--space-sm);
	font-size: var(--text-md);
	font-weight: 700;
	color: var(--color-heading);
}

.cart_totals tr.order-total td {
	color: var(--katma-red);
	font-variant-numeric: tabular-nums;
}

.wc-proceed-to-checkout {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	margin-top: var(--space-md);
}

.wc-proceed-to-checkout .checkout-button,
.cart__continue {
	width: 100%;
}

/* ==========================================================================
   Cart on small screens

   WooCommerce's own smallscreen sheet is dequeued (see inc/woocommerce.php),
   so this is the only responsive treatment for the cart table. Each line
   becomes a card: thumbnail left, name and unit price right, quantity and
   line total on the bottom row.
   ========================================================================== */

@media (max-width: 768px) {

	.woocommerce table.shop_table.cart thead {
		display: none;
	}

	.woocommerce table.shop_table.cart,
	.woocommerce table.shop_table.cart tbody {
		display: block;
		border: 0;
		overflow: visible;
	}

	.woocommerce table.shop_table.cart tr.woocommerce-cart-form__cart-item {
		position: relative;
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		grid-template-areas:
			"thumb name"
			"thumb price"
			"qty   total";
		align-items: center;
		gap: var(--space-2xs) var(--space-sm);
		padding: var(--space-sm);
		margin-bottom: var(--space-2xs);
		border: var(--border-hairline);
		border-radius: var(--radius-sm);
	}

	.woocommerce table.shop_table.cart td {
		display: block;
		padding: 0;
		border: 0;
	}

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

	.woocommerce table.shop_table.cart td.product-name {
		grid-area: name;
		padding-right: 34px;
	}

	.woocommerce table.shop_table.cart td.product-price {
		grid-area: price;
		font-size: var(--text-sm);
		color: var(--color-muted);
	}

	.woocommerce table.shop_table.cart td.product-quantity {
		grid-area: qty;
	}

	.woocommerce table.shop_table.cart td.product-quantity .quantity input.qty {
		width: 100%;
		max-width: 6.5rem;
	}

	.woocommerce table.shop_table.cart td.product-subtotal {
		grid-area: total;
		text-align: right;
		font-size: var(--text-md);
	}

	.woocommerce table.shop_table.cart td.product-remove {
		position: absolute;
		top: 6px;
		right: 6px;
		width: auto;
	}

	.woocommerce table.shop_table.cart tr:has(td.actions) {
		display: block;
	}

	.woocommerce table.shop_table.cart td.actions {
		display: block;
		border: var(--border-hairline);
		border-radius: var(--radius-sm);
	}

	.woocommerce table.shop_table.cart td.actions .button {
		width: 100%;
	}

	.cart-collaterals {
		flex-direction: column;
	}

	.cart-collaterals .cart_totals,
	.cart-note {
		width: 100%;
		max-width: none;
	}
}

/* ==========================================================================
   Cart note
   Sits opposite the totals and answers "what happens after I click?".
   ========================================================================== */

.cart-collaterals {
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-xl);
	flex-wrap: wrap;
}

.cart-note {
	flex: 1 1 20rem;
	max-width: 34rem;
	padding: var(--space-md);
	background-color: var(--color-bg-warm);
	border-radius: var(--radius-sm);
}

.cart-note__title {
	font-size: var(--text-md);
	margin-bottom: var(--space-2xs);
}

.cart-note__text {
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	color: var(--color-muted);
}

.cart-note__list {
	margin-top: var(--space-sm);
	padding-top: var(--space-sm);
	border-top: var(--border-hairline);
}

/* ==========================================================================
   Checkout — the details step
   Six fields and a summary. WooCommerce lays the form out as two columns for
   billing and shipping; with shipping gone the second one is empty, so the
   form runs as one readable column and the summary sits below it.
   ========================================================================== */

.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details {
	display: block;
	max-width: 40rem;
}

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

.woocommerce-checkout h3 {
	margin-bottom: var(--space-sm);
	font-size: var(--text-lg);
}

.woocommerce-checkout #order_review_heading {
	margin-top: var(--space-2xl);
}

/* --- Fields --------------------------------------------------------------- */

.woocommerce-checkout .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	margin: 0 0 var(--space-sm);
	padding: 0;
}

.woocommerce-checkout .form-row label {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-heading);
}

.woocommerce-checkout .form-row .required {
	color: var(--katma-red);
	text-decoration: none;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
	width: 100%;
	min-height: 52px;
	padding: 0 var(--space-sm);
	background-color: var(--katma-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-ui);
	font-size: var(--text-base);
	color: var(--color-text);
}

.woocommerce-checkout .form-row input.input-text:focus-visible,
.woocommerce-checkout .form-row textarea:focus-visible {
	border-color: var(--katma-red);
	outline-offset: 1px;
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text {
	border-color: var(--katma-red);
}

/* Telefon and E-mail share a row where there is space for it. */
@media (min-width: 560px) {
	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last {
		display: inline-flex;
		width: calc(50% - (var(--space-sm) / 2));
	}

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

/* --- Order summary and payment -------------------------------------------- */

.woocommerce-checkout-review-order-table {
	margin-bottom: var(--space-md);
}

.woocommerce-checkout-payment {
	padding: var(--space-md);
	background-color: var(--color-bg-warm) !important;
	border: var(--border-hairline);
	border-radius: var(--radius-sm);
}

.woocommerce-checkout-payment ul.payment_methods {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-checkout-payment ul.payment_methods li {
	list-style: none;
}

.woocommerce-checkout-payment label {
	font-weight: 600;
	color: var(--color-heading);
}

.woocommerce-checkout-payment .payment_box {
	position: relative;
	margin: var(--space-2xs) 0 0;
	padding: var(--space-sm);
	background-color: var(--katma-white) !important;
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	color: var(--color-muted);
}

.woocommerce-checkout-payment .payment_box::before {
	display: none !important;
}

.woocommerce-checkout-payment .place-order {
	padding: var(--space-md) 0 0;
}

.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 60px;
	font-size: var(--text-md);
}

.woocommerce-privacy-policy-text {
	margin-top: var(--space-sm);
	font-size: var(--text-sm);
	color: var(--color-muted);
}
