/* Prevent intrinsic image sizes from widening the product grid. */
.woocommerce .products .product {
	min-width: 0;
}

.products .product img {
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.cart__item_thumbnail img,
.cart__bottom_block img,
.woocommerce-mini-cart-item img {
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Size the catalogue by the available space, not by each category's text. */
.catalog__columns {
	display: grid;
	grid-template-columns: 14.375rem minmax(0, 1fr);
	column-gap: 1.75rem;
	align-items: start;
}

.catalog__content {
	width: 100%;
	min-width: 0;
}

.catalog__content .products {
	max-width: none;
	margin-inline: 0;
}

.catalog__content .products.columns-4 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	column-gap: 2rem;
}

.catalog__content .products .product form .quantity {
	flex: 0 0 auto;
}

.checkout__cart_summary {
	display: flex;
	justify-content: space-between;
	align-items: start;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.checkout__return_cart {
	color: #ac3b18;
	font-size: 1.375rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 61.99875em) {
	.catalog__columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.catalog__sidebar {
		display: none;
	}
}

/* Keep all three header controls within narrow screens. */
@media (max-width: 47.99875em) {
	.header__wrap {
		gap: 0.75rem;
	}

	.header__logo {
		flex: 0 1 9.9375rem;
		min-width: 0;
	}

	.header__logo img {
		display: block;
		width: 100%;
		max-width: 9.9375rem;
		height: auto;
	}

	.header__menu {
		gap: 0.5rem;
	}

	.header__menu .menu__social,
	.header__menu .icon-menu {
		flex: 0 0 2.75rem;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 0.875rem;
	}

	.icon-menu span,
	.icon-menu::before,
	.icon-menu::after {
		right: 0.625rem;
		width: 1.5rem;
		height: 0.1875rem;
	}

	.icon-menu::before {
		top: 0.6875rem;
	}

	.icon-menu::after {
		bottom: 0.6875rem;
	}

	.icon-menu span,
	.menu-open .icon-menu::before {
		top: calc(50% - 0.09375rem);
	}

	.menu-open .icon-menu::after {
		bottom: calc(50% - 0.09375rem);
	}

	.fixed {
		right: 0.75rem;
	}
}
